jQuery in Action, 3rd edition
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

JSTL problem

paul alvin

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

Joined: Jan 10, 2002
Posts: 63865

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] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: JSTL problem
It's not a secret anymore!