Okay. So you're writing a JSP Tag file, not a JSP Java tag. Understood.

The JSP should evaluate the attribute for you. So I don't know why it is not, 
but I am going to take a shot in the dark.

<%@ tag isELIgnored="false" %>
Add isELIgnored="false" to the tag file directive and see what happens.

Felix Khazin <[EMAIL PROTECTED]> wrote: I'm using 2.0, and no I don't have 
rtexprvalue set to true. I am not
using a TLD. I just wrote a custom.tag put it in my WEB-INF/tags/
directory and then did this in my code: 

<%@ taglib prefix="mytags" tagdir="/WEB-INF/tags/" %>

Do I need to make a TLD, or can I just define rtexprvalue to be true in
my taglib line above?

Thank you!
Felix

-----Original Message-----
From: Paul Benedict [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 5:39 PM
To: Struts Users Mailing List
Subject: RE: Passing Struts request attribute to custom tag

In your TLD, do you have this set to true?
true

Also, what JSP version is your container?

Felix Khazin  wrote: Sure, Sorry about that...

My custom tag takes in an integer value and then does some math to it.
This is the error I am getting: 

java.lang.NumberFormatException: For input string: "${pageSize}"

This error is coming from a line in my custom tag where I attempt to
parse the string to get an int.

What's interesting is that my custom tag gets the string ${pageSize} and
not the evaluated string which in this is case is 9.

Felix

-----Original Message-----
From: Paul Benedict [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 5:26 PM
To: Struts Users Mailing List
Subject: Re: Passing Struts request attribute to custom tag

Can you explain in more detail how it doesn't work?

Felix Khazin  wrote: Hi,

 

I am having a problem with a view using struts that I can't figure
out...

 

I have a controller that sets an attribute for example:

 

request.setAttribute("pageSize", _pageSize);

 

In my view if I use JSTL like , everything
is fine and it gets output. But if I want to use that same EL expression
in a custom tag it doesn't work.

 

So for example I have  this doesn't
work. Anyone have any ideas?

 

Thank you very much,

Felix

 



    
---------------------------------
Sneak preview the  all-new Yahoo.com. It's not radically different. Just
radically better. 


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



   
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.


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



                
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 

Reply via email to