This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using popup with html:link

 
erin yap
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
erin yap
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but how will I be able to pass the paramID, paramProperty, and paramName?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The attribute should be onclick...all lower case.

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic