This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL not showing results Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL not showing results" Watch "JSTL not showing results" New topic
Author

JSTL not showing results

saravanan sambandam
Ranch Hand

Joined: Aug 30, 2010
Posts: 42
Hi guys,

<input type="text" name="page_id" value="${requestScope.ug_Id}" />

I too got the result from request.attribute by using JSTL.

But, somewhere i am not getting result. It shows empty see my script let code its working fine.



Thanks
Saravanan.S
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1016
In your scriptlet code you access the variable as: request.getAttribute("MenusList");

In your JSTL code, you access the variable as: ${requestScope.MenuList}

Your attribute name in the JSTL seems to be missing an 's'

saravanan sambandam
Ranch Hand

Joined: Aug 30, 2010
Posts: 42
Thanks Mr. Stefan Evans

I made stupid mistakes.

I am so happy now. Because i removed some of the script lets from my JSPs.


Thanks alot to all.

My heartily thanks to code ranch groups who has supporting me directly or indirectly.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSTL not showing results
 
Similar Threads
How to pass JSTL value to javascript function
How to use Break / exist statement here in foreach (JSTL)
Recursion & JSTL?
questions about JSTL variables
pass jstl value to javascript