I need help in redirecting to next page based on some
condition without using location.href in java script.
Is it possible in Jsp or tomcat or apache? If so, how.
I'm bit new. 

--- U K Laxmi <[EMAIL PROTECTED]> wrote:

> Yes. I'm using JSP. Can you pls tell me the syntax
> or
> guidelines as how to do it.
> 
> Thank you.
> 
> --- Shakeel Ahmad <[EMAIL PROTECTED]>
> wrote:
> 
> > If you are developing a JSP/Servlet then you can
> do
> > this by keeping those
> > variables in session.
> > 
> > Best Regards,
> > S H A K E E L   A H M A D
> >
> http://members.fortunecity.com/javaclub/shakeel.htm
> > Voice: 00923002723316
> > Senior Software Engineer.
> > NorthStar Technologies. www.globalnorthstar.com
> > 
> > EE(Computer Engineering), UET Lahore, Pakistan.
> > SCJP,SCWCD & SCBCD Sun Microsystems, Inc.
> > Brain Bench Certified Java Programmer.
> > 
> > -----Original Message-----
> > From: U K Laxmi [mailto:[EMAIL PROTECTED]
> > Sent: 23 February, 2005 10:31 AM
> > To: Tomcat Users List
> > Subject: How to send hidden variables to next page
> > 
> > 
> > Sorry if it's not the right place to post this
> > question. Excuse me.
> > 
> > I've some hidden variables in a web page. I want
> to
> > send them to next page without using submit
> button.
> > I
> > don't know how to do it. More over i don't know
> how
> > to
> > access those variables in the next page. Is there
> > any
> > option available to do this html or tomcat or
> > apache?
> > 
> > Thanks!!
> > 
> > --- Matt <[EMAIL PROTECTED]> wrote:
> > 
> > > Ah-ha, somehow I changed a line in the
> > > uriworkermap.properties file from
> > > this (some pointless experiment out of past
> > > frustrated delirium):
> > > /jsp-examples/*=ajp13w
> > > ...to this:
> > > /jsp-examples/*.jsp
> > > ...so changing it back (which is how it was
> > > out-of-the-box after
> > > jk_1.2.8.exe was run) to:
> > > /jsp-examples/*=ajp13w
> > > ...fixes it, and I can now access both
> directories
> > > fine (inside and
> > > outside of $CATALINA_HOME/webapps)!!!  YAY!!!
> > >
> > > I now get the expected results for:
> > > http://localhost/jsp-examples/ (the webapps/
> > > examples page)
> > > ...and for:
> > > http://localhost:8080/jsp-examples/ (the
> webapps/
> > > examples page)
> > > ...and for:
> > > http://localhost:8080 (Tomcat home page)
> > > ...and for:
> > > http://localhost (IIS home page)
> > > ...and for:
> > > http://localhost/JSP/MYwebapps/MYjsp-examples
> > > (the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples
> > > page)
> > > ...and the .JSP pages work as expected in both
> > > places!
> > > Now I can add docabses to my heart's content -
> > > *relieved sigh*
> > >
> > > SO...the easy answer is a simple, single CONTEXT
> > > addition, but making sure
> > > to overlap the end of the "docbase" path with
> the
> > > "path":
> > > <Context path="/JSP"
> > > docbase="C:/Inetpub/wwwroot/JSP" debug="0"
> > >   reloadable="true" crossContext="false" />
> > >
> > > As an aside, I got rid of the <...path=""
> > > docbase=""...> CONTEXT, so I
> > > have no idea why you're using that line in your
> > > server.xml file, Wendy?
> > >
> > > THANKS, Wendy!!!
> > > -Matt
> > >
> > >
> > > On Tue, 22 Feb 2005, Matt wrote:
> > >
> > > > OK, we've at least gotten to the point where I
> > can
> > > now run the examples
> > > > from my own directory outside of
> > > $CATALINA_HOME/webapps, and by ONLY
> > > > editing server.xml and uriworkermap.properties
> > > slightly, and NOTHING
> > > > ELSE, which is not only nice, but also what I
> > > expected all along!
> > > > (THANK YOU!THANK YOU!THANK YOU!)*
> > > >
> > > > *HOWEVER, now that I made the changes you
> > > recommended, the webapps area
> > > > now is NOT FOUND when using plain URL's.  I
> get
> > a
> > > (Tomcat-based) directory
> > > > listing when using the following URL (instead
> of
> > > the Tomcat welcome page):
> > > > http://localhost:8080
> > > > ...which includes my outside folder and then
> all
> > > of the folders in
> > > > $CATALINA_HOME/webapps, AND if I go deeper
> into
> > > any of these listed
> > > > directories with the explicit port :8080 set
> it
> > > works, BUT if I try the
> > > > following URL:
> > > > http://localhost/jsp-examples
> > > > ...then I get a 404 page not found error (not
> a
> > > Tomcat page - standard
> > > > IE stuff).
> > > > With or without the :8080 port in my URL, my
> > > outside directory can be
> > > > found just fine:
> > > >
> > >
> >
>
http://localhost/JSP/MYwebapps/MYjsp-examples/index.html
> > > (and so on)
> > > > ...so I have the inverse problem.
> > > > Good grief!  Can't we have both?
> > > >
> > > > Here's the beginning of my HOST tag through
> the
> > > CONTEXT (everything else
> > > > in server.xml is out-of-the-box, unless
> > > jk_1.2.8.exe does anything here as
> > > > well):
> > > >       <Host name="localhost" appBase="webapps"
> > > >        unpackWARs="true" autoDeploy="true"
> > > >        xmlValidation="false"
> > > xmlNamespaceAware="false">
> > > >
> > > >        <Context path="" docBase="" debug="0"
> > > reloadable="true"
> > > > crossContext="true" />
> > > >
> > > >        <Context path="/JSP"
> > > docbase="C:/Inetpub/wwwroot/JSP" debug="0"
> > > > reloadable="true" crossContext="false" />
> > > >
> > > > ...the trick seems to be in the overlapping
> > ending
> > > directory in path and
> > > > docbase, which is kinda annoying since EVERY
> > > example I found showed path
> > > > set to "" or "/" - hence my frustration up to
> > this
> > > point.  I have tried
> > > > removing the first CONTEXT (seems weird with
> > path
> > > and docbase both set to
> > > > "").  When I remove that, I get the same
> results
> > -
> > > so what is this CONTEXT
> > > > for, if anything?
> > > >
> > > > My uriworkermap.properties file is as follows:
> > > > # uriworker.properties -
> > > > #
> > > > # This file provides sample mappings for
> example
> > > > # ajp13w worker defined in
> > > workermap.properties.minimal
> > > >
> > > > /servlets-examples/*=ajp13w
> 
=== message truncated ===



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to