I do not know a lot about JSESSIONID, and again, I am not sure what the relationship between cookies and sessions is. What I do know is this, the session var stores a JSESSIONID and it can be accessed with an appropriately named method in the api. The method returns a nonsensical string as one...
SOLUTION
I made a newbie mistake. The problem is this: an absolute path in a hyperlink creates a new request and thus a new session. A relative path does not, so instead of "myhost/controller" you have to use "contoller
you are totally on the right track, but what I have failed to get across is this:
The jsp page has a session
It generates some code includign a hyper link
you click on the hyper link to boot up the controller class and subsequently the details page
ahh, but wait, you just started a new request...
the path you mentioned is a mapping in my tomcat web.xml stuff or one of those config files and it accesses the controller class that uses a factory to forward the request to the viewdetails command. so if I could get the info to the control class that would solve teh problem I think
That is the root of the problem, the htmlUtil code you see there is the front end, ie what is output to explorer, the link that is generated that has my local url in it is my gateway to the viewDetails servlet, how can I pass the current "request", ie the one used by my jsp page, through to the...
here is the criticl jsp code
ArrayList productsForRooms = new ArrayList();//list of product lists
ShowroomProductsXRefDAO myShowroomProductsXRefDAO = new ShowroomProductsXRefDAO();
if(showrooms.size()>0){
for(int i=0; i<showrooms.size(); i++){...
as I said at the bottom of my post I am a newb. I don't quite understand the interaction between the general JSP context(including context, session, response, and request).
what I think is happening is the following, when I click on the generates link...something like
<href...
the application you are working on probably has a com directory in the src file or something similar to this. The problem may be that the missing package is in the wrong location...if that is the case, copy and past it into the com directory where the remainder of the application exists
platform details
win2k/apache2/tomcat5/mysql(not sure about version num)
goal
dynamically create a table of photo graphs which are queried from the database.
have those photographs redirect the user to a details.jsp page where information about the photo is displayed.
my approach
use a list of...
it's written that vchkpwd can lookup in /etc/passwd for locals sites but it doesn't work !
Im under FreeBSD and all work except that ! vpopmail is compiled with the --enable-passwd=y option !
I've a small memory system (128Mg) and a big forum in php running...
all works fine, but sometimes, a long query such as a search, blocks all the others queries, and the processlist become bigger and bigger, and it take many time to rewind in a normal situation...
How can i do to avoid this ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.