aspose file tools*
The moose likes Struts and the fly likes Using popup with html:link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using popup with html:link" Watch "Using popup with html:link" New topic
Author

Using popup with html:link

erin yap
Greenhorn

Joined: Mar 15, 2008
Posts: 3
Hi. I saw this topic
here

and we have the same objective. To Pass the parameter then my action goes to a popup instead of a page.

I've tried modifying his code but I get a problem.
It says, Attribute onClick invalid for tag link according to TLD.

This is my javascript:



My html:link



I still have not made an action path and forward for it yet. The html:link is my problem.

Please help me.
Thank you.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'd suggest you not use an html:link tag for this. It doesn't buy you anything. Just use a regular HTML <a> tag.


Merrill
Consultant, Sima Solutions
erin yap
Greenhorn

Joined: Mar 15, 2008
Posts: 3
but how will I be able to pass the paramID, paramProperty, and paramName?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Your tag would look something like this.

If your web application isn't at least Servlet version 2.4 compliant, you'll have to use a bean:write tag instead of an EL expression for the customer ID.
[ March 16, 2008: Message edited by: Merrill Higginson ]
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
The attribute should be onclick...all lower case.

- Brent
 
 
subject: Using popup with html:link