• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tricky html:multibox problem

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic