Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes accessing one class variable values in another class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "accessing one class variable values in another class" Watch "accessing one class variable values in another class" New topic
Author

accessing one class variable values in another class

Bushra Fathima
Greenhorn

Joined: Oct 22, 2008
Posts: 11
i hav two JSPs namely upload.jsp and track.jsp. i have 2 classes one for upload namely upload.java and the other is track.java. I set a variable in upload.java called upload.jsp.i traverse to track.jsp and upon form submit i call track.java.here in this class i want to use upload's variable with its value set in upload.java. I have used setter and getter methods. But its not working. If i instantiate the upload class in track class my application stops working at this point.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

Please don't post the same question more than once.
You are also leaving out vital details about your situation. Code snippets, exception/error messages and stack traces. Please read our FAQ before you continue. The better question you ask, the more help we can be.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
jQuery in Action, 2nd edition
 
subject: accessing one class variable values in another class
 
Similar Threads
File Upload
How to read a input type file in servlet and display the contents of a file in servlet
Using Scanner to read one line at a time
Using Scanner to read one line at a time
Html:button is not working in Mozilla?