Paul Clapham wrote:But that's because in the code you posted, the timestamp values don't have any format at all. A Date, or a Timestamp, is essentially just a number which represents the number of milliseconds
Yogesh Lonkar wrote:Well i am certain that it should allow you to get firstName attribute back from session. because i have compiled your project personaly on my workspace and it work here. may be clean and build will do
Yogesh Lonkar wrote:
Bear Bibeault wrote:A book from 2001 is worse than useless. It'll fill your head with all sorts of trash that's no longer true.
Bear Bibeault wrote:Nope. Not needed. It's completely superflous. The El deals with scoped variables, not scripting variables (which are defunct as of 2002).
So you are saying that ${(stheatre eq "Oh yes!")} evaluates to true? Have you verified this?
Bear Bibeault wrote:And I just noticed this on your submit button: onclick="location.href='form.jsp'"What on earth is that doing there? The only purpose for a submit button is to submit the form. What are you trying to accomplish with the click handler?
Seetharaman Venkatasamy wrote:so that control flow will not come.
Bear Bibeault wrote:A couple of things:
<% String stheatre = (String) session.getAttribute("stheatre"); %>
Why is it there?
Your page-relative action:
<form action="validator"
is a bug waiting to happen. Use server-relative URLs that start with the context path.
Debugging: Rather than just seeing if the checkbox is checked, have you verified what the exact value of stheatre is on the second run?