Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 988
  • Last Modified:

Pass Hidden value from JSP to JSP

hello,
Can anyone tell me method how to pass the value from one jsp to other.

I got this set of list from DB.

1.abc
2.edf
3.rrt

Now I want each to be hyperlinked.
<a href=aa.jsp>1.abc</a>
ONce user click on 1.abc it should go to the page aa.jsp with the value (abc) as  name value pair or whatever. I know how to do it using form. But without forms how can U do it. I dont even want to use sessions.

On aa.jsp I want to accept abc or edf or rrt depending on what been click . So that if abc is click then store procedure with input parameter as abc or edf or rrt be executed.

Hope you got my idea.
Thx
Hyd
0
princehyderabad
Asked:
princehyderabad
  • 2
1 Solution
 
kiranhkCommented:
clicking on the link will not send anything that is in the form.. so even if u put a hidden filed in a form along with your link it will not be sent... so the only option is

<a href=aa.jsp?1=abc>1.abc</a>
<a href=aa.jsp?1=edf>2.abc</a>
<a href=aa.jsp?1=rrt>3.abc</a>
0
 
kiranhkCommented:
thanks...with this i got my JSP Master certificate :)
0
 
princehyderabadAuthor Commented:
Congrats !!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now