aspose file tools
The moose likes Struts and the fly likes Jsp <html:link building of an url Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Jsp <html:link building of an url" Watch "Jsp <html:link building of an url" New topic
Author

Jsp <html:link building of an url

Avram Adriana
Greenhorn

Joined: Apr 03, 2009
Posts: 1
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!
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

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
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Jsp <html:link building of an url
 
Similar Threads
How to Edit Details in database using JSP page?
How to store a value so that any JSP page can read it?
Webspere 345 exam questions
Display all Users Detail on JSP page when we Loged in through ADMIN
two forms in the same page, how to?