• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

application to application security

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 67510
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whats up with just passing a GET param? (I've never used Struts btw)
 
Don't listen to Steve. Just read this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic