need 2 parameters for html:link

2005-07-06 Thread Mick Knutson
I have the following that works almost fine:

html:link forward=historicalTransactions
paramId=commonEnrollmentID
paramName=consumerValidatorForm
paramProperty=commonEnrollmentID

bean:message key=label.menu.historicalTrx /
/html:link


Then what I get is http://URL?commonEnrollmentID=12345;

What I need to be generated is:
http://URL?action=historicalcommonEnrollmentID=12345;

Because historical is an action method on my LookupDispatchAction that
needs to be called when I click this link.
Thanks in advance for your help.

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need 2 parameters for html:link

2005-07-06 Thread Michael Jouravlev
On 7/6/05, Mick Knutson [EMAIL PROTECTED] wrote:
 I have the following that works almost fine:
 
 html:link forward=historicalTransactions
 paramId=commonEnrollmentID
 paramName=consumerValidatorForm
 paramProperty=commonEnrollmentID
 
 bean:message key=label.menu.historicalTrx /
 /html:link
 
 
 Then what I get is http://URL?commonEnrollmentID=12345;
 
 What I need to be generated is:
 http://URL?action=historicalcommonEnrollmentID=12345;
 
 Because historical is an action method on my LookupDispatchAction that
 needs to be called when I click this link.

How about quick and dirty

 html:link page=URL?action=historical
 paramId=commonEnrollmentID
 paramName=consumerValidatorForm
 paramProperty=commonEnrollmentID
 
 bean:message key=label.menu.historicalTrx /
 /html:link

Michael.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need 2 parameters for html:link

2005-07-06 Thread Rick Reumann

Mick Knutson wrote the following on 7/6/2005 6:42 PM:



html:link forward=historicalTransactions
paramId=commonEnrollmentID
paramName=consumerValidatorForm
paramProperty=commonEnrollmentID

bean:message key=label.menu.historicalTrx /
/html:link


Then what I get is http://URL?commonEnrollmentID=12345;

What I need to be generated is:
http://URL?action=historicalcommonEnrollmentID=12345;

Because historical is an action method on my LookupDispatchAction that
needs to be called when I click this link.
Thanks in advance for your help.


Been a while since I used the html:link tag, but if you decide to use 
JSTL it would be...


c:url var=url scope=page value=/yourAction.do
   c:param name=action value=historicalTransactions/
   c:param name=commonEnrollmentID value=12345/
/c:url
a href=${url}Historical Transactions/a


More than likely this line would be dynamic for the id:

c:param name=commonEnrollmentID value=${someID}/

--
Rick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: need 2 parameters for html:link

2005-07-06 Thread gvanmatre
 On 7/6/05, Mick Knutson [EMAIL PROTECTED] wrote:
  I have the following that works almost fine:
  
  html:link forward=historicalTransactions
  paramId=commonEnrollmentID
  paramName=consumerValidatorForm
  paramProperty=commonEnrollmentID
  
  bean:message key=label.menu.historicalTrx /
  /html:link
  
  
  Then what I get is http://URL?commonEnrollmentID=12345;
  
  What I need to be generated is:
  http://URL?action=historicalcommonEnrollmentID=12345;
  
  Because historical is an action method on my LookupDispatchAction that
  needs to be called when I click this link.
 
 How about quick and dirty
 
  html:link page=URL?action=historical
  paramId=commonEnrollmentID
  paramName=consumerValidatorForm
  paramProperty=commonEnrollmentID
  
  bean:message key=label.menu.historicalTrx /
  /html:link
 

Or, if you like JSTL and Struts-EL, something like this might work too?

c:url value=URL var=url
 c:param name=action value=historical /
 c:param name=commonEnrollmentID 
value=${consumerValidatorForm.commonEnrollmentID} /
/c:url

html:link href=${url}/

I believe that the struts-el tag will give you the jsessionid and the struts 
synchronization token encoding over just the JSTL url tag.


Gary

 Michael.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]