This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Hidden Variables and Hyper Link
Joined: Mar 06, 2006
Feb 05, 2007 06:42:00
I have a question on the hidden variables . I have a simple
<form name = "XXXX" method = "POST" action "">
< input type = "hidden" name = "a" value = "a"
<td align="right"><a href="/nams/svc/myaccount/save/ealert"><img src="/templates/nams/images/btn_close.gif" width="83" height="22" border="0"></a></td>
As in the above the action is empty so when i link on the hyper link . will the hidden variable also pass with the request.
Means can i pass the hidden variables by click on the hyper - link and this hyper link point to action defined in the strust-config.xml
Thanks in advance for your prompt answer
Author and all-around good cowpoke
Joined: Mar 22, 2000
Feb 05, 2007 07:02:00
What happened when you tried it?
Joined: Aug 25, 2005
Feb 05, 2007 16:33:00
Clicking on a hyper link will always use HTTP GET (not POST).
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Joined: Aug 15, 2004
Feb 06, 2007 00:58:00
Clicking on the link is redirecting to that URL. If you want your form fields on the server you need to submit the page/form. Other option would be make your hidden fields part of the link's URL.
subject: Hidden Variables and Hyper Link
Resetting Values in JSP Page
Populating form values with hyperlink clicks
Cannot retrieve mapping for action /content/AddLinks
Getting "not a multipart request" even though the image is being saved.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014