Forums Register Login

Custom tag not evaluating ${} expressions

+Pie Number of slices to send: Send
Hi,
I've been stuck for a few days now... I'm trying to build a custum tag with parameters but my setter always receive a string when I pass a value as ${model.testStr}.

It's one of my first tag so I as an exemple I redefined the c:out tag in my library... Same soruce code, same config and yet the explression is passed as a srting...
JSP:

Results in :

ps : "SWEET!" is my ${model.testStr}

Here's my lcc.tdl:


Any help will be greatly appreciated,

Thanks,

Matt
+Pie Number of slices to send: Send
As per forum instructions, please include what versions of JSP, JSTL and Servlets that you are using.

Problems like this are a sign of mixing incompatible versions, or of web app misconfiguration.
+Pie Number of slices to send: Send
Here's what i'm using :
tomcat 6 with liferay 5.2 portlet container
portlet 2.0

For my jsp version I think it's 1.2 since in my web.xml I have the http://java.sun.com/dtd/web-app_2_3.dtd specified.

For my jstl version 2.0, as it was showing in my last post...

The problem is probably between the jsp 1.2 and jstl 2.0... I'll experiment a bit and let guys kknow...
+Pie Number of slices to send: Send
You'll need to get your versions straight. For example, there is no JSTL 2.0.

Check the JSP FAQs for info on setting up the proper versions and declaring your web.xml properly.
+Pie Number of slices to send: Send
Hi,

Obviously my config is wrong... Would you have any good working example that I could follow?

Keep in mind that it'is my first custom tag...
+Pie Number of slices to send: Send
Have you consulted the JSP FAQ as instructed?
+Pie Number of slices to send: Send
I finaly figured it out...

I changed my web.xml header to this :



Thanks
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1965 times.
Similar Threads
displat:table tag pls help me
Problem with JSTL
Problem while Tag lib Up gradation
Issues adding i18n Chinese support to existing Struts based code
Creating and populating a List of javaBeans in a JSP w/o using scriptlets
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:04:50.