Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Dominic Paquette

Ranch Hand
+ Follow
since Dec 13, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dominic Paquette

I think the IsThreadSafe = false means that your generated servlet class will NOT implement the SingleThreadedModel.
Hi everybody,
I was looking or a big sample mysql database (lots of data) to do some tests... anyone have a hint on where I could download that?
thanks in advance
dominic
I think your compiler can't locate the javax.servlet, javax.servlet.http packages. Your CLASSPATH has to include those.
Hope this helps
Dominic
17 years ago
Hi,
I think that when tomcat is run as an NT service it redirects the output to the file stdout.log. Look in your logs directory
Hope this helps
Dominic
17 years ago
Hi,
What's hapenning is this:
checks in the session to see if there is an attribute named aaa. If there is one it displays its "xml" property.
If there is no "aaa" attribute in the session, a new instance is created and it's properties will be initialized to the corresponding parameter present in the request(example xml=somevalue). Then it it displays the "xml" property.
Hope this helps
Dominic
17 years ago
JSP
Hi,
to get your parameters names you can use
HttpServletRequest.getParameterNames() or getParameterMap(), but you won't get them in the same order as the <input> feilds in you html form so I guess it's no use to you.
to get the query string try HttpServletRequest.getQueryString()
If the order of the parameters are important for you, maybee you can name you parameters with a counter or somethig like
<input type="text" name="param1"/>
<input type="text" name="param2"/>
<input type="text" name="param3"/>
Hope this helps
Dominic
17 years ago
Hi,
Maybe you should print the error message in you catch clause to get a hint on what the problem might be.
Dominic
17 years ago
JSP
Hi,
I would think that the jsessionid and the session object are created when you call HttpServletRequest.getSession to create a new session.
I guess that when you call HttpSession.invalidate and that there are no other references made to the HttpSession object, it get's garbage collected.
Remember, I'm really not sure about what I'm saying here
Dominic
17 years ago
Hi,
First I would try to access http://yourip:8080 and see if you at least get the default web app (the one with the samples that comes with tomcat)
hope this helps
Dominic
17 years ago
JSP
You could, for example,
1- generate your file and give it a unique filename (if I understand correctly, in your situation you have 1 file per client). Store the filename in the client's session so you can retreive it later.
2- put the file in a directory where the client has read access (ex: webapp/yourWebAppName/pdf/)
3- when your client needs to download the file, you generate a page that has a link to the file. You use the filename that you stored in your client's session to get the complete path to your file.
Hope this helps
Dominic
17 years ago
Hi everybody, I haven't posted here in a while, I had to move back here in canada. I even stoped studying for a month or so, and I don't remember much(I have a really, really bad memory from drinking beer I think). Here's my question. I bought a voucher in france, can I use it here in montreal?
Thanks in advance
Dominic
Hi Robert, I had the same problem, did you try to look in the Servlet class generated by the container (in the /work directory). I bet you there are some out.write() calls.
17 years ago
JSP
Yes, but since you implement the SingleThreadModel, there will be only one instance of your servlet class processing the request. So, to me, I think it's ok to use instance variables. I'll check out your other answer, maybee I overlooked something.
Dominic
Hi,
Did you try HttpServletResponse.getQueryString() ?
17 years ago