File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Jsp <html:link building of an url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Jsp <html:link building of an url" Watch "Jsp <html:link building of an url" New topic

Jsp <html:link building of an url

Avram Adriana

Joined: Apr 03, 2009
Posts: 1
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='<%="/ 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?
Ankit Garg

Joined: Aug 03, 2008
Posts: 9462

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...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63839

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Jsp <html:link building of an url
It's not a secret anymore!