I have some questions about handling HttpRequest/Response in web-app

View: New views
4 Messages — Rating Filter:   Alert me  

I have some questions about handling HttpRequest/Response in web-app

by sysuzdf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello All!
I am a MULE beginner,and I have some questions about handling HttpRequest in web-app, the case is:
I put MULE into TOMCAT, configured the MuleReceiverServlet in the web.xml, and configured an Servlet Endpoint. I can post a FORM from the JSP page to the endpoint , transform it to my Object, and handle it with my Component, the question is:
After handling my Object, if i want to add something in the http REQUEST (like "request.setAttribute(name,value);" in the traditional servlet programming) ,and REDIRECT the client's RESPONSE to another jsp page, how should i do?I am confused about how to do with the HttpServletRequest/Response.

thanks!

   

Parent Message unknown Re: I have some questions about handling HttpRequest/Response in web-app

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Redirect will not preserve request parameters, it is just a response code with a new url for client to optionally follow.

Andrew

On Oct 30, 2009 4:40 AM, "sysuzdf" <zhoudf@...> wrote:


Hello All!
I am a MULE beginner,and I have some questions about handling HttpRequest in
web-app, the case is:
I put MULE into TOMCAT, configured the MuleReceiverServlet in the web.xml,
and configured an Servlet Endpoint. I can post a FORM from the JSP page to
the endpoint , transform it to my Object, and handle it with my Component,
the question is:
After handling my Object, if i want to add something in the http REQUEST
(like "request.setAttribute(name,value);" in the traditional servlet
programming) ,and REDIRECT the client's RESPONSE to another jsp page, how
should i do?I am confused about how to do with the
HttpServletRequest/Response.

thanks!


--
View this message in context: http://old.nabble.com/I-have-some-questions-about-handling-HttpRequest-Response-in-web-app-tp26126609p26126609.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Re: I have some questions about handling HttpRequest/Response in web-app

by sysuzdf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Anderw:
Thanks for reply! That's the problem, where can I get the HttpServletResponse and modify it?Is there any api relate to this?

 
Andrew Perepelytsya wrote:
Redirect will not preserve request parameters, it is just a response code
with a new url for client to optionally follow.

Andrew

On Oct 30, 2009 4:40 AM, "sysuzdf" <zhoudf@mail2.sysu.edu.cn> wrote:


Hello All!
I am a MULE beginner,and I have some questions about handling HttpRequest in
web-app, the case is:
I put MULE into TOMCAT, configured the MuleReceiverServlet in the web.xml,
and configured an Servlet Endpoint. I can post a FORM from the JSP page to
the endpoint , transform it to my Object, and handle it with my Component,
the question is:
After handling my Object, if i want to add something in the http REQUEST
(like "request.setAttribute(name,value);" in the traditional servlet
programming) ,and REDIRECT the client's RESPONSE to another jsp page, how
should i do?I am confused about how to do with the
HttpServletRequest/Response.

thanks!


--
View this message in context:
http://old.nabble.com/I-have-some-questions-about-handling-HttpRequest-Response-in-web-app-tp26126609p26126609.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email

Re: I have some questions about handling HttpRequest/Response in web-app

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just set properties on reply message.

Andrew