• Post Reply Bookmark Topic Watch Topic
  • New Topic

parameters

 
sue gari
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a jsp page that uses request parameters and then loads another jsp page. Currently the parameters are passed along with the url. Is there any other way we could send the parameters to the target jsp page other than session or hidden fields. The target jsp page uses request.getParameter to get the parameters passed and this target jsp is used by many other jsp pages.

So please keep in mind that whatever method is suggested, it should work with request.getParameter used with the jsp target page. I tried to set request.setAttribute but I believe it requires requires request.getAttribute to get the parameters.
Sorry for the confusion. Any help is appreciated.

Sue
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way would be to use parameters.
 
sue gari
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't want the parameters as a query string to the url. Is there any other method that I can use to send the parameters. I just want to know if there is something like POST variables that are set in the message body rather as a query string.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That greatly depends on how you are transitioning from one JSP to the other. Forward? Form submission? Redirect?
 
sue gari
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.setHeader("Location", "xxx.jsp");


We are using the above code. Any help is appreciated.

thanks,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!