• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

Jsp <html:link building of an url

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Posts: 9674
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • 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...
Posts: 67496
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
She'll be back. I'm just gonna wait here. With this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic