hi catherine,
I am new to the struts framework so please ignore and correct if i am wrong
But when using jsp without struts, you experience the same problem while
passing parameters to javascript function.
I think a better way(which always works!!!) is to make that java variable as
a hidden variable of the jsp page and then access it in the script tag by
using document.formName.VaribleName.value tag.
Hope it works.
Do correct me if i am wrong.
Vishal

-----Original Message-----
From: Catherine [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 27, 2005 7:51 PM
To: user@struts.apache.org
Subject: Re:<bean:write> tag within <html:link> tag


I thought rahul wanted <a href="/myapp/someAction.do?id=/foo"/> to invoke
someAction and passing a parameter, id. What will happen if you click <a
hred="/foo"/>?

I still can't figure out how to solve my problem, that is get <bean:message>
tag evaluated as the parameter of a javascript call. Like the following:

<html:submit onclick="setSubmitAction(<bean:message
key="MyPanel.theField.label"/>)"><bean:message
key="MyPanel.theField.label"/></htm:submit> 

Some time I also need to pass a java variable as the parameter to a
javascript function, and I encounter the same problem. For example,
<html:submit onclick="setSubmitAction(<%= myVar %>)" >
myVar will not get evaluated.

Can someone shied some lights on this? 

Thanks a lot,
Catherine


-------------------------------------------------------------
<a href="http://Struts_User_List.roomity.com";>roomity.com</a>
roomity.com is broadband internet. ~~1127830842502~~
-------------------------------------------------------------

Make your callers hear anything you like.Call 456 say DIALER TONES.

An idea can change your life. 

************** LEGAL DISCLAIMER ************
This E-Mail may contain Confidential and/or legally privileged Information and 
is meant for the intended recipient(s) only. If you have received this e-mail 
in error and are not the intended recipient/s, kindly notify us at [EMAIL 
PROTECTED] and then delete this e-mail immediately from your system. You are 
also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification, distribution and/or publication of this 
e-mail, its contents or its attachment/s other than by its intended recipient/s 
is strictly prohibited and may be unlawful.

Internet Communications cannot be guaranteed to be secure or error-free as 
information could be delayed, intercepted, corrupted, lost, or contain viruses. 
IDEA Cellular Limited does not accept any liability for any errors, omissions, 
viruses or computer problems experienced by any recipient as a result of this 
e-mail.

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

Reply via email to