Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem While using EL

 
vinoth subramaniam
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i am using JSTL 1.1 , I created an custom tag called "advice" and it have a attribute named "user". Through a form i am getting the username parameter.
I am sure that, there is some problem while passing the "user" attribute. Since i am using EL in the attribute. So whats the reason behind this error?

If i want to use the parameter in the "user" attribute section, what should i do?

here is my TLD



Then here is the java class file supports the custom tag



Here is the jsp


i am facing the problem at line no 9 here. I am getting the following

"This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying."

Thanks in advance
 
Devi Taruni
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey did you copy the tld as it is??
I could see the problem with your tld file to be

<rtexprevalue>true</rtexprevalue>, whereas the available tag is <rtexprvalue>

check the spelling!!!
 
vinoth subramaniam
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sch´┐Żn Sinn, You are right, it is the problem.

It should be <rtexprvalue>... i did a mistake. Thankyou very much


Thankyou for your valuable time.
 
Devi Taruni
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic