Re: Recompile class not picked up in TOMCAT

2001-06-28 Thread Mattias Jiderhamn
> At least to the current release builds of tomcat you > have to reboot the server, it's the only way, only if > you want to replace a class. I do not experience this problem at all. We use (Apache + ) Tomcat 3.2.1 and let ANT compile our classes into WEB-INF/classes. No jars or wars in the dev

Re: placing data in Application level from servlets

2001-06-28 Thread Sachin S. Khanna
Not quite right ! application is an implicit object available within jsp's and not servlets. In case of servlets you could get a handle to the ServletContext object with the following line of code : ServletContext context = getServletConfig().getServletContext(); Then use the repective methods men

Re: Replacing the URL in a browser

2001-06-28 Thread Mattias Jiderhamn
> Hi JSPers, > > Does anybody know if there's any JSP tag that can replace the URL in the > browser? I need this to prevent the user to press the back button and > re-login to my application without having to enter any password since the > browser cached the password sent with the form. > > Thank

Re: Can't write cookie

2001-06-28 Thread Charan Kishore Singla
You must set time-limit for the cookie. Thanks - Original Message - From: "Lester June Cabrera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 29, 2001 9:57 AM Subject: Can't write cookie > Hi, > > I'm new to JSP. I wrote a sample JSP app that writes/reads cookie. But

signoff JSP-INTEREST

2001-06-28 Thread Agbinya, Johnson
** This correspondence is for the named person's use only. It may contain confidential or legally privileged information or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this corr

Re: Cookie problem

2001-06-28 Thread Shuja Nawaz
Hi Chris. Your tip is quite helpful. Thanks & Regards Shuwaz Abbasi. Software Developer. Ph # 5584677-8. www.visualsoft-inc.com. - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 28, 2001 8:27 PM Subject: Re: Cookie problem

Can't write cookie

2001-06-28 Thread Lester June Cabrera
Hi, I'm new to JSP. I wrote a sample JSP app that writes/reads cookie. But everytime I access the page, it seems that the cookie is not saved because when I try to read all the cookies again, I don't see the values I just entered. The following is my code. The form calls the same file to submit t

Re: How to pass variables between an HTML/JSP contained in web-broswer on a VB form and the form itself ??

2001-06-28 Thread Duc Nguyen
Try to use and parse the variable out in JSP. good luck Duc >From: Amar Deep Singh <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: How to pass variables between an HTML/JSP contained in web-bro

How to pass variables between an HTML/JSP contained in web-broswer on a VB form and the form itself ??

2001-06-28 Thread Amar Deep Singh
Hi How to pass variables between an HTML/JSP contained in web-broswer on a VB form and the form itself ?? If anyone is aware then do let me know regards amar ==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff

Replacing the URL in a browser

2001-06-28 Thread Mimpin Halim [Lucas]
Hi JSPers, Does anybody know if there's any JSP tag that can replace the URL in the browser? I need this to prevent the user to press the back button and re-login to my application without having to enter any password since the browser cached the password sent with the form. Thank you, Lucas =

Book Bundle for newbies

2001-06-28 Thread M. Simms
Professional JSP, Wrox Press plus Java Servlets, Karl Moss Both for $40 plus shipping. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-

FW: call from JSP Page to Java Bean is repeating itself?

2001-06-28 Thread Jann VanOver
This should have been sent to the list, not to me. Forwarded for [EMAIL PROTECTED] The original question was: ... it looks like my JSP is calling the method in Java Bean two times ? I cannot think of why this will happen. Any help will be appreciated. -Original Message- From: D

Re: sign-off

2001-06-28 Thread Jann VanOver
Does NOONE read the footer of each email? You have to send your sign off email to [EMAIL PROTECTED] Note that this is NOT the same email address as the list ([EMAIL PROTECTED]) And include in the body of your email: signoff JSP-INTEREST -Original Message- From: Kwong Brian [mailt

Re: Recompile class not picked up in TOMCAT

2001-06-28 Thread Jann VanOver
Someone just reported that there's a bug in tomcat 4, beta 5 that is preventing the reloading. -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 10:59 AM To: [EMAIL PROTECTED] Subject: Re: Recompile class not picked up in TOMCAT If it's a jsp

List administration hints

2001-06-28 Thread horwat
I found this site really helpful: http://archives.java.sun.com/archives/jsp-interest.html You can administer the list through the web site. I've had my e-mail address change several times due to the powers that be. The old e-mail address still worked and was the one I had subscribed with but my

Re: Cookie problem

2001-06-28 Thread horwat
If the server wants to expire a cookie, it sends the cookie to the browser with an expiration date and time. When expiration date and time is reached, the browser will delete the cookie. To immediately remove a cookie from the browser, you could send a cookie with an expiration date in the past.

sign-off

2001-06-28 Thread Kwong Brian
i want to sign off _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "s

Re: Recompile class not picked up in TOMCAT

2001-06-28 Thread Chris Pratt
If it's a jsp file (or a servlet class in the servlet directory) it should be picked up automatically. If it's a support class (in a jar/war file or under the WEB-INF/classes directory it won't. What I usually do is touch the .jsp page associated with the changed class, which causes Tomcat to re

Re: Recompile class not picked up in TOMCAT

2001-06-28 Thread horwat
In Tomcat 4.0 you can use the Manager Application to force a reload of class files. The manager application is a servlet that helps you manage your web applications and get information about their state. By default it is not enabled. Check out the Tomcat 4.0 documentation for more details. Justy

Re: Recompile class not picked up in TOMCAT

2001-06-28 Thread Atilio Ranzuglia
At least to the current release builds of tomcat you have to reboot the server, it's the only way, only if you want to replace a class. This is not the same to the jsp pages, you can replace them, the server detects that change and compile them again. Hope this help Atilio --- JP <[EMAIL PROTE

Recompile class not picked up in TOMCAT

2001-06-28 Thread JP
Does anyone know how to make TOMCAT reload a new class? I made changes that I want picked up, but cannot see until I reboot the server... Probably an age-old problem, but new to me. Thanks! === To unsubscribe: mailto [EMA

Re: Autosetting properties of beans within JSP (list problem)

2001-06-28 Thread Chris Pratt
But it's properly attached as a multipart/alternative not a multipart/mixed (which would constitute a true attachment) The list should allow alternate's, in fact it can generate them. (*Chris*) - Original Message - From: "Jay Burgess" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: Autosetting properties of beans within JSP (list problem)

2001-06-28 Thread Jay Burgess
It's not a list problem. The problem is with Microsoft Outlook/Microsoft Exchange. For some reason, this product pair creates an HTML copy of your outgoing email and appends it to your text-only email, as an attachment. The HTML attachment gets rejected by the list because attachments aren't al

Re: Autosetting properties of beans within JSP

2001-06-28 Thread Chris Pratt
That's not quite true, I had a major problem using the list with Microsoft Outlook. Every post I sent was returned, and it was very obvious that is was not accepted by the list processor. Something about not accepting attachments (which I wasn't including anyway). I switched to Microsoft Outloo

Re: Cookie problem

2001-06-28 Thread Chris Pratt
Immediately is a funny thing in web time. It can mean anything from right now to the next time I close all my browser instances. What I usually do if it's really important to know is put a marker in the user record. Something like PersistentLogin=true. Then when the user logs out, set the Max

Re: Executing a unix commmand in jsp

2001-06-28 Thread Chris Pratt
You can only exec an executable, and batch files aren't executable. Try executing "cmd.exe /c mkdir c:\\kkk" on Windows NT or "command.com /c mkdir c:\\kkk" on Windows 9x. (*Chris*) - Original Message - From: "ZhaoBin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June

Re: placing data in Application level from servlets

2001-06-28 Thread Atilio Ranzuglia
Anyway, application is an implicit object, so you can use without declaration. In this case, you can do the following: application.getAttribute("objectName") or application.getValue("objectName") It depends on the servlet API version you are using. The first one is for servlet's version 2.2 and t

Re: placing data in Application level from servlets

2001-06-28 Thread Mattias Jiderhamn
> wondering if anyone has any ideas on how to access the application level > objects ( i.e similar to ASP application object) using a servlet? Try pageContext.getAttribute("objectName", PageContext.SESSION_SCOPE ); See javax.servlet.jsp.PageContext for documentation Mattias Jiderhamn Expert

Mailing this list (was RE: Autosetting properties of beans within JSP)

2001-06-28 Thread Mattias Jiderhamn
> Robin: > > As long as you write to <[EMAIL PROTECTED]> > all your mails will arrive. You will recieve the one > you wrote and some mailing failures. And remember that your from/reply adress (in you mail program) must be the EXACT one you registered with. /Mattias Jiderhamn ===

placing data in Application level from servlets

2001-06-28 Thread Pasha,Asim
HI Folks: wondering if anyone has any ideas on how to access the application level objects ( i.e similar to ASP application object) using a servlet? any help will be appreciated Asim Pasha IQHealth Cerner Corporation CONFIDENTIALITY NOTICE This message and any included attachments are from

Re: Autosetting properties of beans within JSP

2001-06-28 Thread Atilio Ranzuglia
Robin: As long as you write to <[EMAIL PROTECTED]> all your mails will arrive. You will recieve the one you wrote and some mailing failures. As you can see Mattias answer you, this is a good one. You have to be really 'cautioned' with your case. Follow the directions offered by Mattias. And mo

Re: Autosetting properties of beans within JSP

2001-06-28 Thread Mattias Jiderhamn
> The line I was trying to use is: > > > > Since this hasn't worked I have had to explicitly set the parameters > individually with lines like: > > Book.setUsername(request.getParameter("Username")); I'm not sure in this matter, put sometimes the JSP/Servler API can be a bit poky. Try to use low

Re: Autosetting properties of beans within JSP

2001-06-28 Thread Robin Porter
Hello Atilo, I have just recently joined this list but for some reason my posts keep getting returned to me. Would you please let me know if you could assist me with my problem below and even post it to the list. Thank you, Robin Porter I have been trying to autoset the properties of a bean wi

Re: Set property="*" with an array of fields

2001-06-28 Thread Atilio Ranzuglia
Stephen: The following code works just perfect: JSP page: <...> ON POST: What this code does is take all the parameters named 'same_name', make an array of them and send it to the method on the bean. Then you can get the array from the bean and loop through it. The bean: private

Re: Cookie problem

2001-06-28 Thread Shuja Nawaz
- Original Message - From: "Shuja Nawaz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 28, 2000 12:28 PM Subject: Cookie problem > Hi, > > I have developed a website. The user has an option to set cookies to > remember his username and password > by checking a checkb

Re: Set property="*" with an array of fields

2001-06-28 Thread Mattias Jiderhamn
> Case 2: Let's say the form fields are named "field[0]", "field[1]", ... > What would the declaration be for the set-parameter method in the bean? > "public void setField(int field, String input)" is the closest I could > guess, but it doesn't seem to work. I haven't tried, but one guess is that

Cookie problem

2001-06-28 Thread Shuja Nawaz
Hi, I have developed a website. The user has an option to set cookies to remember his username and password by checking a checkbox (I'm setting the cookie to expire after a month). Now if the user unchecks the checkbox how should I expire the cookies immediately. I've tried setMaxAge(0) but it