Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
170
rated 0 times [  174] [ 4]  / answers: 1 / hits: 9308  / 10 Years ago, tue, may 6, 2014, 12:00:00

I have a javascript function that needs to be called under a condition.



The condition is given below



<%if(request.getAttribute(isValidUser).equals(false))
{%>
Redirect();
<%}%>


Redirect() is the function name that I have declared and defined in the section.



When I execute the page I am getting the following error.



    org.apache.jasper.JasperException: An exception occurred 
processing JSP page /HomePage.jsp at line 136


HomePage.jsp:



133:      <p><input type=password name=password id=password placeholder=Password/></p>
134: <span id=nullPassword class=error></span>
135: </div><span style=color:red;>
136: <%if(request.getAttribute(isValidUser).equals(false))
137: {%>
138: Redirect();
139: <%}%>


Please help me out.



Thank you.


More From » jsp

 Answers
8

I don't have enough rep points to comment, but it looks like your js function call should be in script tags.


[#45510] Monday, May 5, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tatyanna

Total Points: 552
Total Questions: 96
Total Answers: 96

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
;