Catherine wrote:
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"/>?

Exactly what you'd expect: the browser with load the resource at /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>

As pointed out at the beginning of this thread, you can't nest JSP tags like that. You can use the same approachs to solve your problem as I described for Rahul.

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.

This, on the other hand, should work fine. Make sure tha myVar is correctly defined first. You could check that by putting <% System.out.println("myVar = " + myVar); %> immediately before the <html:sumbit> tag.

L.


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

Reply via email to