Hi Adam,
Thanks for the help. The problem I have is, if I'm using the html:link
tag 
to pass the parameters, how do I pass the static value?

For example, if I wanted to have two links on the one page, I was
thinking of doing something like the following:

<html:link href="" paramId="helpMessage" staticvalue="helpMessage1"
        
onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000,
height=500,left=10,top=100')">
</html:link>

<html:link href="" paramId="helpMessage" staticvalue="helpMessage2"
        
onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000,
height=500,left=10,top=100')">
</html:link>

A) will this parameter get appended to the 'poppedup.jsp@

B) there is no "staticvalue" attribute on the link tag. So 
how do I define a string value to get passed. The docs say 
you need to pass it a page scoped bean and it looks up the 
value from the bean!!

This always confuses me,
Thanks for your help,
Brian




-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 03 July 2003 13:42
To: Struts Users Mailing List
Subject: Re: How to pass parameters to a javascript popup

Brian McSweeney wrote:
> a) if this makes any sense

yes it does

> b) how to pass the parameter (should I go through an action?)

I don't see any reason to go thro an action, but you could go thro an 
action forward mapping for the sake of the URL appearance and security. 
A querystring parameter would be fine. What do you think the problem 
might be?


---------------------------------------------------------------------
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]

Reply via email to