File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes JSTL problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSTL problem" Watch "JSTL problem" New topic
Author

JSTL problem

paul alvin
Greenhorn

Joined: Nov 15, 2012
Posts: 15
I have this code



The page must display the create news item link but it doesnt. When I tried to change the value of the salary to 121 it shows the page. Whats wrong here?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

Why are you mixing JSTL, EL and scriptlets? That's just a big old mess and asking for trouble.

What is the purpose of this line: <c:set var="salary" scope="session" value='<%= session.getAttribute( "theName" ) %>' /> ???

All it does is to take a scoped variable named theName and copy it to salary. Why? And why use a scriptlet at all when just ${theName} could be used?

What's 121? Why is this magic number hard coded into the page? What does it men?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL problem
 
Similar Threads
Can I combine the 2 <c:if> EL expressions?
Struts2 tags + tiles menu
Problem with nested c:forEach
Struts / Tiles - changing which layout is used at runtime
Implementation of google charts in JSP