jQuery in Action, 3rd edition
The moose likes JSP and the fly likes custom tag and getAttribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "custom tag and getAttribute" Watch "custom tag and getAttribute" New topic

custom tag and getAttribute

Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

I have written my first custom tag and it all works fine if i type

the problems come when i try and pass a session attribute to it.

sorry i know this is just syntax but my tutorial stopped before it got to anything like this
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63349

What problems?

Please read this for more information.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

sorry, it was a compile error, so i thought the error would be glaringly obvious to someone who knew...
The compiler error is:
swapna hyderabad

Joined: Nov 20, 2008
Posts: 20
The custom tag "satable" is having searchstring attribute which is taking "jsp expression", for the taht you need to define in the TLD of this tag attribute value "rtexprvalue=true" as shown below..


I think i got your question correctly
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575


instead of this ,use below one

Hope This Helps
[ December 01, 2008: Message edited by: seetharaman venkatasamy ]
Wendy Gibbons

Joined: Oct 21, 2008
Posts: 1107

thanks guys, i will try this next time i get to do some training
I agree. Here's the link: http://aspose.com/file-tools
subject: custom tag and getAttribute
jQuery in Action, 3rd edition