• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • 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)
reply
    Bookmark Topic Watch Topic
  • New Topic