This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

needed to send variable in anchor to same page jump  RSS feed

 
shivam singhal
Ranch Hand
Posts: 231
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


code is working fine,

my problem : please check the red coloured lines in code above, here i want to send different value of res_pkey to my-offers according to the user selected row of the table, thats why i am using it in the anchor tag.
previously i tried : <c:set> but it updates its value during loading of the page and set it to the last row's value.

I want : when user select a row, only that perticular value should be given to tha my-offers

please help me, stucked in this, from half of the day.. please :)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Red text on tan is a poor choice. I cannot read it.

And you do realize that values in the anchor are not sent to the server? So a JSP will never see them. Why aren't you using request params to carry parameters?
 
shivam singhal
Ranch Hand
Posts: 231
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am sorry bear bibeault for red text...
thanks for the reply, i am going to read about request params.. :)
 
shivam singhal
Ranch Hand
Posts: 231
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not resolved yet, please help..



I want c:set to display the id of a selected row (name for the above code), but it only gets the last row's (loaded) id. How to do that, please help..
jsp jstl
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!