troubleshooting Question

JSP causing JS to error

Avatar of princehyderabad
princehyderabad asked on
JSP
4 Comments1 Solution242 ViewsLast Modified:
hi,

Just a wired error: NullPointerException

JSP page:

...
//javascript
...
function main()
{
...
okay();
...
}
function okay()
{
 <% System.out.print("................"); %>
 alert("hi");
 return true;
}


Works fine. But when I add this code it shows me error:

function okay()
{
 <% System.out.print("................");
              //  Calling Stored Procedure
               CallableStatement cs2 = conn.prepareCall("{call abc(?) }");
               cs2.setString(1, userID);
               cs2.execute();
%>

 return true;
}

PS: All variable is define and I'm getting all valid values

thx,
PH
ASKER CERTIFIED SOLUTION
suprapto45

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros