I wrote an extended class that allows you to do all of this in struts. It
beats the heck out of other solutions I've been give. Read the following:

I don't know if a similar solution has been provided, but, I tweaked the
Link Tag to support the writing of
'javascript:[function_name]([param1,param2,param3...])' to the href
attribute of the final output. Here is a summarization of it's
functionality:

I added the following attributes:

function - This is the name of the javascript function that will be called;

functionName - This is the name of the bean that will provide parameter
values from one of it's properties.

functionProperty - This is a property of a bean that will either provide a
String or an ArrayList to populate the parameters of the function

urlIndex - This allows you to include the url generated by href,forward or
page to be included at a specific place in the funcion's parameters.

There is another class that I wrote that does the actual processing and
preparation of the url. I named it EcmaUtil.  I modeled the computeURL and
computerParam methods of the RequestUtils class when I built the methods for
the EcmaUtil.

The LinkTag class that I wrote extends the BaseHandlerTag under the
org.apache.struts.taglib.html package of struts jar.

I know the code needs a bit of reworking to fit back in to the struts
framework. I stripped out the MessageReources for the most part and removed
some exception handling that will need to be included again.

Anyways, if nobody has done this in the nightly or if it sounds like it
might be of use. Let me know and I will post the code,the tld and an example
of it's usage.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws

-----Original Message-----
From: Daniel Jaffa [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 8:36 PM
To: 'Struts Users Mailing List'
Subject: RE: question on getting values from popup


I replied to this same message about two weeks ago.  Check the archives

Daniel Jaffa
Java Developer


-----Original Message-----
From: Narasimha Rao [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 4:21 PM
To: [EMAIL PROTECTED]
Subject: question on getting values from popup


hi,
    i have a controller from which i am populating ,lets say
http://localhost:8080/action.do.The jsp page is set.jsp
when a button is clicked in set.jsp.it calls a popup window.now the
problem
is how to get the values from the popup window to the controller.
please reply back
                       thanx
                narasimha



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


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



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

Reply via email to