• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tricky html:multibox problem

 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, guys:

I have a jsp page that can display multiple checkboxes generated with
logic:iterate tag. The trick part is that I also have a search box to
search for certain items from the above list, people then can check
checkboxes of those search results, and click on a link to return to
the original page. I want the searched items still checked on the original page.

I have two action classes to handle the above and display the original page and page for search results using same jsp, and action form. Now the problem is that checked items on search results page are not checked once I return to the original page.

I use: request.getParameterValues() to get checked items in my action class, but always get null values.

I suspect this is because I use the same action form for two action classes?
I am wondering if you guys can explain to me what is wrong with my solution?

regards,
 
Slava Lovkiy
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please, note, if you use request.getParameterValues() than, the request should either contain parameres in url or this should be a POST request to the page, so that all input field from form being passed to action.

It is not clear for me what is the workflow of you app., but I think you can try to play with the 'scope' attribute of ActionForm used in both actions, on original page and search box.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic