You're trying to mix JSP syntax, which is processed on the server before the page is sent to the browser, with Javascript, which is processed by the browser after the page is sent. You can't do that.

What you'll need to do is, when formA opens formB (presumably by submitting an HTTP request), include the information you need from formA as request parameters formB can then access during rendering.

L.

O. Oke wrote:
Help please!

BACKGROUND
==========
A parent window/form - formA opens up formB.  In
formB, I am using logic:equal.  In the value attribute
of logic:equal, I want to dynamically get the current
value of a field in formA - opener.

PART OF SOURCE CODE
===================
<logic:equal name="repBranch" property="country_id"
value=opener.forms[0].to_country.value>


PROBLEM
=======
None of the lines below (value attribute of
logic:equal) work:
value=opener.forms[0].to_country.value
value="opener.forms[0].to_country.value"
value='opener.forms[0].to_country.value'
value=javascript:opener.forms[0].to_country.value
value="javascript:opener.forms[0].to_country.value"
value='javascript:opener.forms[0].to_country.value'

The only time it works is when the value is hardcoded
i.e. value="UK"

I do not want to hard code the country name, because
it is not always UK.


Please tell me how to proceed...

Thank you.

O. Oke


        
        
                
___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com


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

Reply via email to