Re: Sorting a Table based on any of the columns

2000-11-29 Thread G.Nagarajan
why don't you use the "order by" clause. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Salian, Santosh (GXS, TCS) Sent: Wednesday, November 29, 2000 12:25 AM To: [EMAIL PROTECTED] Subject: Sorting a

FW: Oracle JDeveloper and Tags and EJB's

2000-11-29 Thread Jenkins, Christopher
Hi, We are trying to use tag libraries (XML) from within JSP to call EJB's. The code in the attached files all reads quite sensibly but doesn't work under JDeveloper 3.1, (Oracle V8.1.6 NT V4). I've searched thru the archives but couldn't find any notes on how to set up JDeveloper for Tag

Re: can i store an ArrayList in Session?

2000-11-29 Thread Shuja Nawaz
hi. - Original Message - From: "Craig R. McClanahan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 11:45 AM Subject: Re: can i store an ArrayList in Session? Nguyen Van Tuan wrote: I think you can't do that because session in JSP use cookie to store

Re: Testing servlets/JSP with automated tool

2000-11-29 Thread G.Nagarajan
I found a good tool at OpenSTA. It is open source and free. Has anyone used this ? -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ivan Kougaenko Sent: Wednesday, November 29, 2000 12:18 AM To: [EMAIL

Re: How to identify the different instance of the same browser?

2000-11-29 Thread Thang Nguyen
I'm just a beginer in JSP, and I never in circumstance like that, but when using Servlet, I see that each session has an seperate Id even for several instances. I heard that Jsp could mix with Servlet, So give it a try ! Regards. -Original Message- From: Micha³ Trojanowski [mailto:[EMAIL

Re: How to identify the different instance of the same browser?

2000-11-29 Thread Robuschi (Delfi)
Hello If you have a common starting page, you could store the session ID in a bean and then the bean should give back a counter of that session... This could be a starting idea Bye Robuschi Roberto Delfi srl P.za Ravenet 1/b - 43100 PARMA Tel. 0521/932474 Fax

Odp: Re: [JSP-INTEREST] How to identify the different instance of the same browser?

2000-11-29 Thread Micha³ Trojanowski
Hi! I'm not sure if I understood you correctly about that counter, but the problem is that when I open a browser and then I choose File-New Window, I get two browsers, that have two identical session ids. (This situation does not exist, when I open new browser by running it from command line or

Mail function in JSP and Websphere/iPlanet

2000-11-29 Thread Daniel Kolvik
Have a Form Mail function in JSP and its running under Allair Jrun. When I'm trying to get it working under Websphere/iPlanet It doesn't work.. I use this "demo code".. %@ page import="javax.servlet.http.HttpUtils" % %@ page import="java.util.*" % %@ page import = "java.sql.*" % %@ page import =

Re: Odp: Re: [JSP-INTEREST] How to identify the different instance of the same browser?

2000-11-29 Thread Robuschi (Delfi)
- Original Message - Hi! I'm not sure if I understood you correctly about that counter, but the problem is that ... sequential type, it matters for me which response was sent to which of instances. I don't have an exact idea of how to do that. You can try to get some session

Re: a little offtopic

2000-11-29 Thread Aaron Hayes
the -e means you can enter one or more lines of script. If -e is used then Perl will not look for a script filename. Aaron -Original Message- From: Daniel Lynn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 29, 2000 5:12 AM To: [EMAIL PROTECTED] Subject: a little offtopic OK,

Re: HttpSession.isNew

2000-11-29 Thread Murali Mohana Rao
Hi Anthony, In Http Session you have to use the isNew() method for test the new session. I hope it should help you.. Regards, Murali. Anthony Mak wrote: If I use URL Rewriting, it seems session.isNew() do not work anymore. How can I test whether a session is new in this case? Anthony Mak

Re: a little offtopic

2000-11-29 Thread Daniel Lynn
I appologize to the 4500+ people that I caused undue effort in hitting their delete button. As for PERL questions getting me banned from the list, I wonder, aren't we all in the same industry here? Lets face it, all languages have different addvantages and disadvantages, that's why there are so

Re: Mail function in JSP and Websphere/iPlanet

2000-11-29 Thread Scott Stirling
light-sarcasmThe notorious "doesn't work" problem is usually accompanied by error messages, stack traces in the browser or logs, or other epiphenomenona./light-sarcasm Anything like that in your case that might help debug this? Scott Stirling -Original Message- From: A mailing list

Re: Sorting a Table based on any of the columns

2000-11-29 Thread Walker, Chris
Hi Santosh, In similar situations I generally run sorts at the client - it requires no additional server requests, and you don't overload the server with sort jobs. Create a JavaScript object to hold a single row in your table, then store the objects in an Array. You'll need a compare function

Re: session time increase??

2000-11-29 Thread Murali Mohana Rao
Hi Subu, the synatx for session time increase is, you have specify the time in seconds. session.setMaxInactiveInterval(4000) . Murali. subramanian Athimoolam wrote: kk Thanks for your reply. tell me the full syntax... i tried httpsession setMaxIedealTime(121212); (i thng syntext is

How to pass value?

2000-11-29 Thread Branko Kaucic
Hi, all! I wrote a test page, where I use bean TB with propertie "val" (String). I would like to pass String ValueA to that bean on following way, but I got error message "Syntax error in JSP tag. No quote after name". Culd someone, please, tell me, how to pass value ValueA to bean? HTML BODY

Re: a little offtopic

2000-11-29 Thread Hines, Bill
Wouldn't it be fun if everyone had your attitude, and the list was further polluted with questions about COBOL, JCL, Assembler, etc? It's not the effect of hitting 'delete' once for YOUR message, it's having to do it repeatedly all day while reading messages and filtering out non-relevant

Re: JSP in Apache

2000-11-29 Thread Aaron Hayes
Just incase anyone was interested in what the problem was for future reference - I thought it was a problem with port 80 conflicts which is why I uuninstalled IIS, but this did not help and I then realised the address that was conflicting was not port 80 or 8007, but port 8080 which I did not

How to pass value? (2)

2000-11-29 Thread Branko Kaucic
Hi, again! Thanks, I found a solution. Please, ignore my previous mail. Brank === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set

JSP Compile Problems with Tomcat

2000-11-29 Thread Schreyer, Marcus
Hi folks, I am trying to access a Java Bean (located under the Web-inf/classes directory) from a JSP that is under a subdirectory of the context. Everything works fine, when this is done directly on the context level. But within a subdirectory the compiler is not able to compile the generated

Re: a little off topic

2000-11-29 Thread G.Nagarajan
Asking questions related to JSP is ok. something like why the .js file is not loaded from a servlet or printing images from a servlet etc. Comparing technologies like asp with jsp etc is also fine. But it should not go down to the nuts and bolts of the other technology like which operator, which

a doubt on sessions

2000-11-29 Thread Lorena Carlo
Hello all, I have a doubt on session, can any body tell me if it is necesary to invalidate a session when the user presses a button that have a the following javascript code: "javascript:window.top.close()", that closes the browser window?. If I have to invalidate the session, how can i do

Re: can i store an ArrayList in Session?

2000-11-29 Thread Sachin S. Khanna
An ArrayList object is basically a object in java. And it is perfectly possible to store objects in sessions. A look at the HttpSession Api Doc would confirm that point. Maybe you are working on The Java Servlet 2.1 specification which uses setValue() instead of setAttribute() method. Have a nice

Re: how to get the Content Length

2000-11-29 Thread Prabhu bharat
hi varun does this method Request.ServerVariables("content_length") gives nonzero output bharat. - Original Message - From: Varun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 10:12 AM Subject: how to get the Content Length hi i wanted to know the

some forms in the same jsp

2000-11-29 Thread Marcos
hi, i am getting some info from a database. i put all the info into a drop-down listbox. i mean in my main.jsp i have done this. so if i press some of the info in the list box and i apply a submit button i will be send to the same page but it will show some info as before and some info get

Re: a doubt on sessions

2000-11-29 Thread Felix Velasco
there's no need to invalidate the session, since it'll disappear from the server after a time. However, if you would need doing it, it could can be done with client (i.e.:JavaScript) code, since it resides in the server. Only server java code inside a jsp can do it. -Mensaje

Re: a doubt on sessions

2000-11-29 Thread G.Nagarajan
If the browser window is closed, the browser does not send the session cookie. but the session objects would still be in the server until the session times out. So it is good to invalidate the session. So it is better to redirect the user to a logout servlet or jsp which invalidates the session

Re: a doubt on sessions

2000-11-29 Thread Kai Hackemesser
I have a doubt on session, can any body tell me if it is necesary to invalidate a session when the user presses a button that have a the following javascript code: "javascript:window.top.close()", that closes the browser window?. The session invalidates after time when the browser was

list admin: Please remove dead emails and Out-of-Office-Idiots - PLEASE!!!

2000-11-29 Thread Kai Hackemesser
- The following addresses had permanent fatal errors - [EMAIL PROTECTED] - Transcript of session follows - ... while talking to mail.hotmail.com.: RCPT To:[EMAIL PROTECTED] 550 Requested action not taken:user account inactive 550 [EMAIL PROTECTED]... User unknown

Re: a doubt on sessions

2000-11-29 Thread Ying Sun
If the servlet doesn't set the session time,when the user close the browser,the session will automatically expired.But if the servlet set the session time say 30 minutes,and user close the brower only in 15 minutes,how to invalidate the session?which method to invoke when the user close the

Re: UPLOAD of FILES in JSP/SERVLETS

2000-11-29 Thread Sunil Roy
Thanks Javier Aguado Sunil Roy - Original Message - From: "Javier Aguado" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 24, 2000 2:11 PM Subject: Re: " UPLOAD of FILES " in JSP/SERVLETS but a good site for download a freeware bean is http://www.jspsmart.com/ good

Is possible to access an HttpSession with its ID from another session ?

2000-11-29 Thread Ismael Blesa Part
Is possible to access an HttpSession with its ID from another session ? I have an application and I need to pass some information from one session to another. Then I send the sessionID to a JSP where I want to get access to the two sessions, the created session and the session associated with the

Re: Is possible to access an HttpSession with its ID from another session ?

2000-11-29 Thread Mark Wutka
What if you just put the information in the application object instead? You could stick the data in an object and store it in the application object using the session ID as the key. For best results, create an object that implements HttpSessionBindingLIstener so it can remove itself from the

Re: Is possible to access an HttpSession with its ID from another session ?

2000-11-29 Thread Duffey, Kevin
Not any more. Servlet 2.1 deprecated that ability. I don't know if Servlet 2.2 removed it..but due to security risks, they removed the ability (deprecated it) so that one session couldn't gain access to another. Its too bad because it would be nice to have the ability to search through all active

Re: StringBuffer

2000-11-29 Thread Antonio W. Lagnada
Is this style acceptable fro a StringBuffer class? StringBuffer sb = new StringBuffer(); sb.append("one" + "two" + "three"); .. .. sb.append("four" + "five"); -- Antonio W. Lagnada Ecommerce Consultant [EMAIL PROTECTED] This email address is specifically for JSP-Interest email list. Remove

Re: how do extract the zip file in Java

2000-11-29 Thread Antonio W. Lagnada
You might want to look at the deflater() method. I believe you should read the file in and then extract it using this method. Look at the API documentation: http://java.sun.com/j2se/1.3/docs/api/index.html http://java.sun.com/j2se/1.3/docs/api/java/util/zip/package-frame.html -- Antonio W.

Re: Secure Web Site and Netscape 6 problem

2000-11-29 Thread Antonio W. Lagnada
FYI: I don't know if this is a related problem: I am also having the same problem with a website I am working on (http://ww.butuan.ws). The redirection doesn't work everytime with Netscape 6. I have to keep refreshing until it actually redirects. It works fine with all other browsers. Could

question. anyone know this one.

2000-11-29 Thread Dean Sacramone
1. What class should you inherit from to create a servlet that handles the HTTP protocol? Thanks, ~~~ Dean Sacramone [EMAIL PROTECTED] ~~~ "If there was any logic in this world, it would be men who ride side-saddle, not women." -- - Original Message

Re: StringBuffer

2000-11-29 Thread Geert Van Damme
Well, it is acceptable, but it more or less defeats the reasons of using a StringBuffer in the first place. "One"+"two"+"three" creates 3 String objects and to concatenate them, in the background, another StringBuffer is created. So what you're doing is equivalent to sb.append(new

Re: How to call EJBean from JSP?

2000-11-29 Thread Mircea Moisei
This is working when both are on the same machine what about when the jsp is running on a web tier and the ejb itself is deployed on different machine. How do I connect my jsp with the ejb. I've try using j2ee server but is not working. Regards, Mircea - Original Message - From: "Zaki

Re: a little offtopic

2000-11-29 Thread Dean Sacramone
have you received any responses from this or an answer. I know perl and will supply you with the answers you need. just let me know. Thanks, ~~~ Dean Sacramone [EMAIL PROTECTED] Lead Programmer--310-815-5091 ~~~ "If there was any logic in this world, it

Re: Is possible to access an HttpSession with its ID from anothersession ?

2000-11-29 Thread Craig R. McClanahan
"Duffey, Kevin" wrote: Not any more. Servlet 2.1 deprecated that ability. I don't know if Servlet 2.2 removed it..but due to security risks, they removed the ability (deprecated it) so that one session couldn't gain access to another. It is still deprecated, but not removed so that binary

Re: question. anyone know this one.

2000-11-29 Thread Craig R. McClanahan
Dean Sacramone wrote: 1. What class should you inherit from to create a servlet that handles the HTTP protocol? Technically, it is the servlet container that actually "handles" the HTTP protocol. However, your servlets will normally extend the "javax.servlet.http.HttpServlet" base class.

Re: Is possible to access an HttpSession with its ID from another session ?

2000-11-29 Thread Duffey, Kevin
Your right..that is how I did it. More so..most application servers should provide some sort of window in to the sessions that are in existence. I know Orion does this..not sure about others. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: How to identify the different instance of the same browser?

2000-11-29 Thread Thang Nguyen
Hi, using javax.servlet.http.HttpSession, it has method call getLastAccessedTime : Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT, so I think if you could keep track on this detail, you could know

Re: How to identify the different instance of the same browser?

2000-11-29 Thread Mark Wutka
Someone mentioned this same problem earlier this year. I posted a small servlet that lets you do "sub-sessions" for a browser. It's a hack, but the idea is that you embed a session ID in the path and have a servlet filter the ID back out of the path and store it in the request. Here's a link to

encrypt mulitpart/formdata problem.

2000-11-29 Thread Shuja Nawaz
Hi all. Currently I'm facing the problem of passing the request parameters to the next form. When I use encrypt multipart/formdata in the form tag the images are properly uploaded but the request parameters are not passed to the next page by submitting the data. Thank you in anticipation for

Send a file back for saving and give it a name??

2000-11-29 Thread Duffey, Kevin
Hi there, We have on our site the ability for users to select a document id and it will return a file for them to save (and later reuse). The document is created dynamically in memory on the server, and we set the contentType to application which DOES pop up the "Save As" dialog box on the

Re: Send a file back for saving and give it a name??

2000-11-29 Thread Lance Lavandowska
If memory serves (its been awhile since I've seen this one come up) make sure that the desired filename is the very last thing in the url. The browser will assume this is the filename to use for saving the file. example: brainopolis.com/download.do/dynamicFile.txt The save-as window should

USe Bean Tag not working in Iplanet4.1

2000-11-29 Thread Nivedita
Hello, I face a problem while using a bean in Iplanet4.1. The exception i get is as following: [29/Nov/2000:19:15:02] info ( 273): Internal Info: loading servlet /testbean.jsp [29/Nov/2000:19:15:08] failure ( 273): Internal error: exception thrown from the servlet service function

downloading files over HTTPS

2000-11-29 Thread Mr. chen
Hi ,every one: how can I download files over HTTP? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs

Re: encrypt mulitpart/formdata problem.

2000-11-29 Thread Arun Prakash
Yup i think u cannot get request.getParameter using multipart/formdata. regards arun -Original Message- From: Shuja Nawaz [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 30, 2000 1:13 PM To: [EMAIL PROTECTED] Subject: encrypt mulitpart/formdata problem. Hi all. Currently I'm facing the

Re: How to identify the different instance of the same browser?

2000-11-29 Thread Micha³ Trojanowski
Hi! Thanks for all, who answered my question. Mark - sorry, that I missed your earlier letter - your servlet is a very interesting piece of code. Thanks and regards! Michal === To unsubscribe: mailto [EMAIL PROTECTED] with

Re: encrypt mulitpart/formdata problem.

2000-11-29 Thread Nitin Tomer
Hi, you can will have to use MutipartRequest in it. Oreilly provides a customized class for it. If you want I can send you the class and doc for implementing it. - Original Message - From: "Arun Prakash" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 30, 2000 12:25 PM

problem of passing the request parameters

2000-11-29 Thread Muhammad Asim Ajmal
Hi all. Currently I'm facing the problem of passing the request parameters to the next form. When I use encrypt multipart/formdata in the form tag the images are properly uploaded but the request parameters are not passed to the next page by submitting the data. Thank you in anticipation for