• Post Reply Bookmark Topic Watch Topic
  • New Topic

application to application security

 
Patrick Mallahan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I have two seperate apps running on the same Tomcat Server. I need to be able to get a variable from the previous jsp and verify it in an if statement in the second jsp. Here is what I have so far, but I am getting an error:

JSP 1


JSP 2


ERROR


for some reason it is not working. If you notice user ID hase to be less than 3 to access the second jsp, this is just a temp fix until I can get the second project to interact with the user database.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The snippets of code you included and your exception:

Caused by: java.lang.NullPointerException
at com.aga.forecast.utilities.DBConnection.getConnection(DBConnection.java:42)
at com.aga.forecast.module.DAO.getEmployees(DAO.java:29)


don't seem to have much to do with each other.
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whats up with just passing a GET param? (I've never used Struts btw)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!