You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark Thias <Ma...@bnpi.com> on 2004/06/25 01:00:57 UTC
Getting url which submitted form
Using Tomcat 5.0.26.
I'm trying to find out the name of the JSP page which submitted a form.
For example, I have a form in MyFirstPage.JSP.
<form id="MyFirstPage" method="post" action="MyNextPage.jsp">
<input class="actionButton" type="submit" name="Submit"
value="Continue" />
</form>
Upon clicking submit, a post is submitted to MyNextForm.jsp. Is there a way
to retrieve the name of the submitting JSP page (MyFirstPage.JSP) while
processing the HttpServletRequest parameters inside MyNextForm.jsp.
Thank you,
Mark Thias
This email may contain confidential and privileged material for the sole use
of the intended recipient. Any review or distribution by others is strictly
prohibited. If you are not the intended recipient please contact the sender
and delete all copies.
Re: Getting url which submitted form
Posted by Bill Barker <wb...@wilshire.com>.
"Mark Thias" <Ma...@bnpi.com> wrote in message
news:F3D2D09E4F0D5C4EAC02A3C1734D67DB157259@bnpisrv2.bnpi.com...
>
> Using Tomcat 5.0.26.
>
> I'm trying to find out the name of the JSP page which submitted a form.
>
> For example, I have a form in MyFirstPage.JSP.
>
> <form id="MyFirstPage" method="post" action="MyNextPage.jsp">
> <input class="actionButton" type="submit" name="Submit"
> value="Continue" />
> </form>
>
> Upon clicking submit, a post is submitted to MyNextForm.jsp. Is there a
way
> to retrieve the name of the submitting JSP page (MyFirstPage.JSP) while
> processing the HttpServletRequest parameters inside MyNextForm.jsp.
>
String lastPage = request.getHeader("referer");
>
> Thank you,
> Mark Thias
>
>
>
> This email may contain confidential and privileged material for the sole
use
> of the intended recipient. Any review or distribution by others is
strictly
> prohibited. If you are not the intended recipient please contact the
sender
> and delete all copies.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat exits without any known reason
Posted by Peter Lin <wo...@gmail.com>.
I'm not aware of any new JVM patch for solaris 9 this year, so you
should be up to date. it's unlikley the JVM instability is caused by
solaris patch.
are you using database drivers that are native? I know both Oracle and
DB2 native drivers have been known to cause the VM to quick due to
driver segfaults. search the mailing list for references.
peter
On Fri, 25 Jun 2004 12:01:33 -0400, Guy <bu...@watkins-home.com> wrote:
>
> I installed the system about 2 months ago. I installed the "current" patch
> set. Do you know the patch name/number?
>
> Thanks,
> Guy
>
>
>
> -----Original Message-----
> From: Peter Lin [mailto:woolfel@gmail.com]
> Sent: Friday, June 25, 2004 11:58 AM
> To: Tomcat Users List
> Subject: Re: Tomcat exits without any known reason
>
> just in case. you did install the solaris patch for the JVM right?
>
> if not, it will cause odd behavior
>
> peter
>
> On Fri, 25 Jun 2004 11:53:33 -0400, Guy <bu...@watkins-home.com> wrote:
> >
> > Please! Any ideas?
> >
> > Thanks,
> > Guy
> >
> > -----Original Message-----
> >
> > I have a Sun box with Solaris 9.
> > Tomcat 11.9.0,REV=2002.03.02.00.35
> > Apache and Tomcat were installed as part of the OS.
> >
> > Tomcat seems to work fine, but about once per day it stops. Just exits as
> > far as I can tell. No errors in the logs. It has only stopped when it
> was
> > not being used. Each time I noticed that it was not running, it was the
> > first attempt to use it that day. Maybe some sort of idle timeout.
> >
> > Any ideas?
> >
> > I am new to Tomcat. I upgraded a test system from jserv to tomcat. The
> OS
> > and Oracle were also upgraded. This is 1 of 2 outstanding issues.
> >
> > Thanks,
> > Guy
> >
> > NAME: Tomcat Servlet/JSP Container (root)
> > CATEGORY: system
> > ARCH: sparc
> > VERSION: 11.9.0,REV=2002.03.02.00.35
> > BASEDIR: /
> > VENDOR: Sun Microsystems, Inc.
> > DESC: Tomcat Servlet/JSP Container (root)
> > PSTAMP: sfw8120020302003834
> > INSTDATE: Apr 09 2004 12:44
> > HOTLINE: Please contact your local service provider
> > STATUS: completely installed
> > FILES: 1009 installed pathnames
> > 4 shared pathnames
> > 119 directories
> > 27315 blocks used (approx)
> >
> > PKGINST: SUNWtcatu
> > NAME: Tomcat Servlet/JSP Container
> > CATEGORY: system
> > ARCH: sparc
> > VERSION: 11.9.0,REV=2002.03.02.00.35
> > BASEDIR: /
> > VENDOR: Sun Microsystems, Inc.
> > DESC: Tomcat Servlet/JSP Container
> > PSTAMP: sfw8120020302003915
> > INSTDATE: Apr 09 2004 12:44
> > HOTLINE: Please contact your local service provider
> > STATUS: completely installed
> > FILES: 51 installed pathnames
> > 3 shared pathnames
> > 12 directories
> > 10 executables
> > 8280 blocks used (approx)
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Tomcat exits without any known reason
Posted by Guy <bu...@watkins-home.com>.
I installed the system about 2 months ago. I installed the "current" patch
set. Do you know the patch name/number?
Thanks,
Guy
-----Original Message-----
From: Peter Lin [mailto:woolfel@gmail.com]
Sent: Friday, June 25, 2004 11:58 AM
To: Tomcat Users List
Subject: Re: Tomcat exits without any known reason
just in case. you did install the solaris patch for the JVM right?
if not, it will cause odd behavior
peter
On Fri, 25 Jun 2004 11:53:33 -0400, Guy <bu...@watkins-home.com> wrote:
>
> Please! Any ideas?
>
> Thanks,
> Guy
>
> -----Original Message-----
>
> I have a Sun box with Solaris 9.
> Tomcat 11.9.0,REV=2002.03.02.00.35
> Apache and Tomcat were installed as part of the OS.
>
> Tomcat seems to work fine, but about once per day it stops. Just exits as
> far as I can tell. No errors in the logs. It has only stopped when it
was
> not being used. Each time I noticed that it was not running, it was the
> first attempt to use it that day. Maybe some sort of idle timeout.
>
> Any ideas?
>
> I am new to Tomcat. I upgraded a test system from jserv to tomcat. The
OS
> and Oracle were also upgraded. This is 1 of 2 outstanding issues.
>
> Thanks,
> Guy
>
> NAME: Tomcat Servlet/JSP Container (root)
> CATEGORY: system
> ARCH: sparc
> VERSION: 11.9.0,REV=2002.03.02.00.35
> BASEDIR: /
> VENDOR: Sun Microsystems, Inc.
> DESC: Tomcat Servlet/JSP Container (root)
> PSTAMP: sfw8120020302003834
> INSTDATE: Apr 09 2004 12:44
> HOTLINE: Please contact your local service provider
> STATUS: completely installed
> FILES: 1009 installed pathnames
> 4 shared pathnames
> 119 directories
> 27315 blocks used (approx)
>
> PKGINST: SUNWtcatu
> NAME: Tomcat Servlet/JSP Container
> CATEGORY: system
> ARCH: sparc
> VERSION: 11.9.0,REV=2002.03.02.00.35
> BASEDIR: /
> VENDOR: Sun Microsystems, Inc.
> DESC: Tomcat Servlet/JSP Container
> PSTAMP: sfw8120020302003915
> INSTDATE: Apr 09 2004 12:44
> HOTLINE: Please contact your local service provider
> STATUS: completely installed
> FILES: 51 installed pathnames
> 3 shared pathnames
> 12 directories
> 10 executables
> 8280 blocks used (approx)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat exits without any known reason
Posted by Peter Lin <wo...@gmail.com>.
just in case. you did install the solaris patch for the JVM right?
if not, it will cause odd behavior
peter
On Fri, 25 Jun 2004 11:53:33 -0400, Guy <bu...@watkins-home.com> wrote:
>
> Please! Any ideas?
>
> Thanks,
> Guy
>
> -----Original Message-----
>
> I have a Sun box with Solaris 9.
> Tomcat 11.9.0,REV=2002.03.02.00.35
> Apache and Tomcat were installed as part of the OS.
>
> Tomcat seems to work fine, but about once per day it stops. Just exits as
> far as I can tell. No errors in the logs. It has only stopped when it was
> not being used. Each time I noticed that it was not running, it was the
> first attempt to use it that day. Maybe some sort of idle timeout.
>
> Any ideas?
>
> I am new to Tomcat. I upgraded a test system from jserv to tomcat. The OS
> and Oracle were also upgraded. This is 1 of 2 outstanding issues.
>
> Thanks,
> Guy
>
> NAME: Tomcat Servlet/JSP Container (root)
> CATEGORY: system
> ARCH: sparc
> VERSION: 11.9.0,REV=2002.03.02.00.35
> BASEDIR: /
> VENDOR: Sun Microsystems, Inc.
> DESC: Tomcat Servlet/JSP Container (root)
> PSTAMP: sfw8120020302003834
> INSTDATE: Apr 09 2004 12:44
> HOTLINE: Please contact your local service provider
> STATUS: completely installed
> FILES: 1009 installed pathnames
> 4 shared pathnames
> 119 directories
> 27315 blocks used (approx)
>
> PKGINST: SUNWtcatu
> NAME: Tomcat Servlet/JSP Container
> CATEGORY: system
> ARCH: sparc
> VERSION: 11.9.0,REV=2002.03.02.00.35
> BASEDIR: /
> VENDOR: Sun Microsystems, Inc.
> DESC: Tomcat Servlet/JSP Container
> PSTAMP: sfw8120020302003915
> INSTDATE: Apr 09 2004 12:44
> HOTLINE: Please contact your local service provider
> STATUS: completely installed
> FILES: 51 installed pathnames
> 3 shared pathnames
> 12 directories
> 10 executables
> 8280 blocks used (approx)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Tomcat exits without any known reason
Posted by Guy <bu...@watkins-home.com>.
Please! Any ideas?
Thanks,
Guy
-----Original Message-----
I have a Sun box with Solaris 9.
Tomcat 11.9.0,REV=2002.03.02.00.35
Apache and Tomcat were installed as part of the OS.
Tomcat seems to work fine, but about once per day it stops. Just exits as
far as I can tell. No errors in the logs. It has only stopped when it was
not being used. Each time I noticed that it was not running, it was the
first attempt to use it that day. Maybe some sort of idle timeout.
Any ideas?
I am new to Tomcat. I upgraded a test system from jserv to tomcat. The OS
and Oracle were also upgraded. This is 1 of 2 outstanding issues.
Thanks,
Guy
NAME: Tomcat Servlet/JSP Container (root)
CATEGORY: system
ARCH: sparc
VERSION: 11.9.0,REV=2002.03.02.00.35
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Tomcat Servlet/JSP Container (root)
PSTAMP: sfw8120020302003834
INSTDATE: Apr 09 2004 12:44
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 1009 installed pathnames
4 shared pathnames
119 directories
27315 blocks used (approx)
PKGINST: SUNWtcatu
NAME: Tomcat Servlet/JSP Container
CATEGORY: system
ARCH: sparc
VERSION: 11.9.0,REV=2002.03.02.00.35
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Tomcat Servlet/JSP Container
PSTAMP: sfw8120020302003915
INSTDATE: Apr 09 2004 12:44
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 51 installed pathnames
3 shared pathnames
12 directories
10 executables
8280 blocks used (approx)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Tomcat exist without any known reason
Posted by Guy <bu...@watkins-home.com>.
I have a Sun box with Solaris 9.
Tomcat 11.9.0,REV=2002.03.02.00.35
Apache and Tomcat were installed as part of the OS.
Tomcat seems to work fine, but about once per day it stops. Just exits as
far as I can tell. No errors in the logs. It has only stopped when it was
not being used. Each time I noticed that it was not running, it was the
first attempt to use it that day. Maybe some sort of idle timeout.
Any ideas?
I am new to Tomcat. I upgraded a test system from jserv to tomcat. The OS
and Oracle were also upgraded. This is 1 of 2 outstanding issues.
Thanks,
Guy
NAME: Tomcat Servlet/JSP Container (root)
CATEGORY: system
ARCH: sparc
VERSION: 11.9.0,REV=2002.03.02.00.35
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Tomcat Servlet/JSP Container (root)
PSTAMP: sfw8120020302003834
INSTDATE: Apr 09 2004 12:44
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 1009 installed pathnames
4 shared pathnames
119 directories
27315 blocks used (approx)
PKGINST: SUNWtcatu
NAME: Tomcat Servlet/JSP Container
CATEGORY: system
ARCH: sparc
VERSION: 11.9.0,REV=2002.03.02.00.35
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Tomcat Servlet/JSP Container
PSTAMP: sfw8120020302003915
INSTDATE: Apr 09 2004 12:44
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 51 installed pathnames
3 shared pathnames
12 directories
10 executables
8280 blocks used (approx)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Getting url which submitted form
Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
Mike Jackson wrote:
> Put a hidden field in the form with and identifier that you can use to
> determine which form it was that submitted it. I'd also suggest another
> hidden field to store a "transaction" id field so you can detect if it's a
> re-submittal of previously submitted information.
[SNIP]
> -----Original Message-----
> From: Mark Thias [mailto:Mark.Thias@bnpi.com]
> Sent: Thursday, June 24, 2004 4:01 PM
> To: Tomcat User Group (E-mail)
> Subject: Getting url which submitted form
>
> Using Tomcat 5.0.26.
>
> I'm trying to find out the name of the JSP page which submitted a form.
That might be impractical. I believe every decent HTTP client will place
a HTTP header "Referer: ", which holds the page that refered to the
current one. If that wasn't so, tracking broken links on a web site
would be a nightmare :-)
Nix.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Getting url which submitted form
Posted by Mike Jackson <mj...@cdi-hq.com>.
Put a hidden field in the form with and identifier that you can use to
determine which form it was that submitted it. I'd also suggest another
hidden field to store a "transaction" id field so you can detect if it's a
re-submittal of previously submitted information.
--mikej
-=-----
mike jackson
mjackson@cdi-hq.com
-----Original Message-----
From: Mark Thias [mailto:Mark.Thias@bnpi.com]
Sent: Thursday, June 24, 2004 4:01 PM
To: Tomcat User Group (E-mail)
Subject: Getting url which submitted form
Using Tomcat 5.0.26.
I'm trying to find out the name of the JSP page which submitted a form.
For example, I have a form in MyFirstPage.JSP.
<form id="MyFirstPage" method="post" action="MyNextPage.jsp">
<input class="actionButton" type="submit" name="Submit"
value="Continue" /> </form>
Upon clicking submit, a post is submitted to MyNextForm.jsp. Is there a way
to retrieve the name of the submitting JSP page (MyFirstPage.JSP) while
processing the HttpServletRequest parameters inside MyNextForm.jsp.
Thank you,
Mark Thias
This email may contain confidential and privileged material for the sole use
of the intended recipient. Any review or distribution by others is strictly
prohibited. If you are not the intended recipient please contact the sender
and delete all copies.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org