aspose file tools*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "custom tag and getAttribute" Watch "custom tag and getAttribute" New topic
Author

custom tag and getAttribute

Wendy Gibbons
Bartender

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
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

What problems?

Please read this for more information.


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

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
Greenhorn

Joined: Nov 20, 2008
Posts: 20
Hi,
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..

<attribute>
<name>value</name>
<required>false/false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>

I think i got your question correctly
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi



instead of this ,use below one




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

Joined: Oct 21, 2008
Posts: 1107

thanks guys, i will try this next time i get to do some training
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: custom tag and getAttribute