• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Jsp <html:link building of an url

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
I have a problem in sending some information from one jsp to another.
The case is:
- i have a page (jsp) in which i have information from a database.
- this information is in a table.
at the beginning of the page i have a button named "search" which makes submit to the form and practically interrogates the database for datas from a given day.
- each line from the table has a button named "edit" and when this button is pressed it goes to another jsp. The patch to this jsp is given like this: >html:link page='<%="/servlet_name_for_jsp2.do?op=smth&.... and in the section "..." i have parameters which i want to send from one page to another;
- i also have for each line some checkboxes and the point is that when i check three for example, i want their value to be sent when i press the edit button for one of them.
- i managed to do this but only when i press the search button: i check three of them, i press the search button (makes the submit), then i press the edit button and because i saved in session the list of checked values, it puts this list in the url.
- now the problem is that the user cand-t do this, so i have to generate this list when i press the edit button.
how do i do this?
Thanks!
 
Sheriff
Posts: 9691
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Avram, welcome to javaranch.

I couldn't understand your problem properly, but you should use forms instead of hyperlinks for your edit button. You must have multiple rows which must look like this



That way the values of your checkboxes will go into the request to the second page...
 
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic