This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
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
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

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: 60802
    
  65

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


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