Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Row wise links in JSP

 
Sudharshan Reddy Ch
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a requirement like i've to privide link to each row in a table. To be more specific, i'm retrieving some data from SAP system and displaying it in a table. If user clicks on a particular row i've to extract first 3 fields data of that particular row and i've to pass those fileds to another function.

Please help me out regarding.

Thanks,
 
Rusty Smythe
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sudharshan Reddi Chemicala:
Please help me out regarding.


If you have a specific question, I'd be happy to answer it.
(How To Ask Questions)
 
Sudharshan Reddy Ch
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Rusty Smythe,

My code looks like this



That particular code gives me some records in tabular format. Now i've a requirement like if i click a field i need to retrieve first 3 fields (GJAHR, WWBRD, PERDE) values of that particular row into some variables and pass them to another JSP page.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you'll need to structure your HTML to do just that. Use anchor tags and perhaps hidden form elements and some JavaScript to do just that.

Except for serving as a template to create any HTML and JavaScript necessary, there's not much JSP is going to do for you in this regard.
 
Rusty Smythe
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Bear said, or you could hack something out quickly like:



[ August 14, 2006: Message edited by: Rusty Smythe ]
[ August 14, 2006: Message edited by: Rusty Smythe ]
 
Sudharshan Reddy Ch
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rusty Smythe, it works.
 
Rusty Smythe
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh, I made a small boo-boo in the code; the ampersands need to be entities, or the HTML is not valid.

& -> &
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!