You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by U K Laxmi <la...@yahoo.com> on 2005/02/23 06:30:32 UTC
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 <mk...@camden.rutgers.edu> 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
> > /jsp-examples/*.jsp=ajp13w
> > /*.jsp=ajp13w
> > /JSP/*.jsp=ajp13w
> >
> > # Now filter out all .jpeg files inside that
> context
> > # For no mapping the url has to start with
> exclamation (!)
> >
> > !/servlets-examples/*.jpeg=ajp13w
> >
> > So, I'm still trying to get BOTH to work right,
> but making some progress!
> > -Matt
> >
> >
> > On Tue, 22 Feb 2005 Wendy.Olson@ubs.com wrote:
> >
> > > Hi Matt,
> > >
> > > I'm not sure if this would solve your problem,
> but I have my server.xml set up with the following
> configuration:
> > >
> > >
>
------------------------------------------------------------------------------------
> > > <Host name="localhost" debug="0"
> appBase="webapps/myApp"
> > > unpackWARs="false" autoDeploy="true"
> > > xmlValidation="true"
> xmlNamespaceAware="true">
> > >
> > > <Context path="" docBase="" debug="0"
> reloadable="true" crossContext="true" />
> > >
> > > <!-- context path for external ini directory
> -->
> > > <Context path="/ini"
> docBase="c:\\myApp\c\releases\ini" debug="0"
> > > reloadable="true"
> crossContext="false" />
> > >
> > > <!-- context path for external lib directory
> -->
> > > <Context path="/lib"
> docBase="c:\\myApp\c\releases\lib" debug="0"
> > > reloadable="true"
> crossContext="false" />
> > >
> > > </Host>
> > >
>
------------------------------------------------------------------------------------
> > >
> > > This means my root webapp for http://localhost
> resolves to webapps/myApp, and the
> http://localhost/ini url goes to
> c:\\koba\c\releases\ini, etc.
> > >
> > > When we first set this up Tomcat had problems
> starting up because it was reading in old web.xml
> files under the Tomcat/conf/Catalina... dir(s) but
> it couldn't find that path under
> Tomcat/webapps/myApp/. So we had to remove those
> old xml files (since the localhost root no longer
> went to Tomcat/webapps/).
> > >
> > >
> > > As a test, I just tried directing my Host's
> appBase to an external directory, and it worked for
> me. For that test I configured server.xml per the
> following:
> > >
> > > <Host name="localhost" debug="0"
> appBase="c:\\myApp\c\releases\ini"
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How to send hidden variables to next page
Posted by BV Karthik <ka...@gmail.com>.
laxmi,
For the table issue you need to use DHTML along with Javascript.
there will be some sample code available in the net.
else hit about.javascript.com
BVK
On Thu, 24 Feb 2005 22:44:15 -0800 (PST), U K Laxmi <la...@yahoo.com> wrote:
> Thanks David for the info. Sure to do some reading. I
> could able to pass the hidden variables to next page.
> It's just i'm using one hidden variable named
> 'package' which was doing all the problem. I just
> changed it to something else and now it's working.
>
> Still table issue not solved. I'm gooling ... for the
> solution.
>
> --- David Smith <dn...@cornell.edu> wrote:
>
> > This is getting into territory where you'd be better
> > off doing some
> > googling or buying a good javascript cookbook. I
> > havn't bought any of
> > those books recently although I've had good
> > experience with subjects
> > from Wrox Publishing and O'Reilly Associates in the
> > past. Visit
> > Amazon. They even support a rating scheme where
> > people can voice their
> > opinion.
> >
> > On the Delete issue, you could do a server-side
> > rewrite of a link that
> > invokes an action to delete a row as in:
> > <a
> >
> href="http://localhost:8080/mywebapp/deleteRow.do?recordNum=10">Delete
> >
> > Me</a>
> >
> > That's just a basic GET form request.
> >
> > Again, find a good book, do some reading.
> >
> > --David
> >
> > U K Laxmi wrote:
> >
> > >Thanks David for the solution. To be frank, i
> > really
> > >don't know how to code it. Will you give a sample
> > code
> > >snippet? I'm using apache2, tomcat 5.5.7 on Win 2K
> > >machine.
> > >
> > >One more problem. I've a form and also submit
> > button.
> > >I've number of text fields in it. On entering some
> > >data and focus losts from that field, i call a
> > >javascript function, i set number of hidden values
> > and
> > >call a JSP using location.href of Javascript. But
> > >hidden values are not getting passed to jsp.I'm
> > >getting null. Why? How to overcome this? Pls help.
> > >
> > >One more requirement what i've is:
> > >i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD'
> > >BUTTON. After filling theform, if the user clicks
> > on
> > >'Add' button, the contents gets added aas row into
> > a
> > >HTML table located below that form. That way user
> > can
> > >add n number of rows to the bottom table. In the
> > >table, i need a 'Delete' button. After selecting
> > any
> > >row, if the user clicks on 'Delete' button, it
> > should
> > >get deleted from the table. I guess it can be
> > >possible. But it's a big challenge to me as i know
> > >only ABCD of HTML & Javascript.
> > >
> > >If anybody can direct me to a good HTML/Javascritp
> > >forum also fine. If i get a solution directly, it's
> > >wonderful.
> > >
> > >Thanks a lot. Sorry again if it's not the right
> > place
> > >to post this.
> > >
> > >
> > >--- David Smith <dn...@cornell.edu> wrote:
> > >
> > >
> > >
> > >>The best advice I can offer -- have a javascript
> > >>that does the submit
> > >>for you on the event the drop-down changes state.
> > >>Then let a servlet
> > >>handle storing your form data in the session and
> > >>passing updated data to
> > >>the next page. Outside of something like that, I
> > >>think you'll need to
> > >>incorporate a submit button.
> > >>
> > >>--David
> > >>
> > >>U K Laxmi wrote:
> > >>
> > >>
> > >>
> > >>>Thanks for the answers Shakeel.
> > >>>
> > >>>My problem is, i've a page that doesn't have
> > submit
> > >>>button. I need to send the hidden variables in
> > that
> > >>>HTML page to next HTML page. Here the hidden
> > value
> > >>>
> > >>>
> > >>is
> > >>
> > >>
> > >>>set based on the type of option selected from
> > >>>
> > >>>
> > >>'select'
> > >>
> > >>
> > >>>drpo down box in HTML. To put it in session, i
> > need
> > >>>
> > >>>
> > >>to
> > >>
> > >>
> > >>>identify the selected option and assign it to
> > java
> > >>>varialbe. I don't think it's possible to assign a
> > >>>javascript variable to java variable. Pls help to
> > >>>solve this problem.
> > >>>
> > >>>
> > >>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
> > >>>
> > >>>
> > >>wrote:
> > >>
> > >>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>>Wel this might help...
> > >>>>
> > >>>>// You write following two lines in first JSP
> > >>>>
> > >>>>
> > >>page.
> > >>
> > >>
> > >>>>String name = "Java";// This might be your
> > hidden
> > >>>>field.
> > >>>>session.setAttribute("HiddenName", name);
> > >>>>
> > >>>>
> > >>>>//Then you get the name on next page as follows.
> > >>>>
> > >>>>String userName =
> > >>>>(String)session.getAttribute("HiddenName");
> > >>>>
> > >>>>
> > >>>>The "name" attribute will be available throught
> > >>>>
> > >>>>
> > >>the
> > >>
> > >>
> > >>>>session life, unless we
> > >>>>remove it explicitly or restart Tomcat.
> > >>>>We can use it on any page once it is placed
> > >>>>properly.
> > >>>>
> > >>>>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:laxmiuk@yahoo.com]
> > >>>>Sent: 23 February, 2005 10:37 AM
> > >>>>To: Tomcat Users List
> > >>>>Subject: RE: How to send hidden variables to
> > next
> > >>>>page
> > >>>>
> > >>>>
> > >>>>Yes. I'm using JSP. Can you pls tell me the
> > syntax
> > >>>>or
> > >>>>guidelines as how to do it.
> > >>>>
> > >>>>Thank you.
> > >>>>
> > >>>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
> > >>>>wrote:
> > >>>>
> > >>>>
> > >>>>
> >
> === message truncated ===
>
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> 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: How to send hidden variables to next page
Posted by U K Laxmi <la...@yahoo.com>.
Thanks to everyone for the response. My problem
solved. I could able to find help by googling and my
table issue has been solved.
Thanks again.
--- U K Laxmi <la...@yahoo.com> wrote:
> Thanks David for the reply. Yes .... i could able to
> submit using javascript. Usually i use submit
> button.
> If submit button not available, i'm using javascript
> submit as mentioned by the syntax.
>
> Table problem, still finding ways to do it. Going
> thro' tutorials on HTML.
>
>
> --- David da Guia Carvalho <dg...@animus-ti.com.br>
> wrote:
>
> > I dont know but looks like you are doing
> somethings
> > wrong... hidden
> > fildes are a great choice... better them use GET
> > method...
> > About the table think... use Iframe and do a
> submit
> > to it...
> > Whem you submit you use normal submit button or
> > javascript???
> > If you are submiting with normal button try to use
> > Javascript is much
> > better! Example:
> >
> > <!-- AT HEADER -->
> > <script language="javascript">
> > function submitform()
> > {
> > // FOR LOCAL FORM... where the form name is
> "myform"
> > document.myform.submit();
> >
> > //OR FOR IFRAME FORM... where the IFRAME name is
> > myframe and the FORM
> > name is "myform1"
> > window.frames.myframe.document.myform1.submit();
> >
> > }
> > </script>
> > <!-- AT BODY
> > The link to submit:
> > -->
> > <A HREF="javascript: submitform()">SUBMIT
> > HERE!!!</A>
> >
> > You can also make MANY variations on it... like
> pass
> > values in the
> > function from the external frame to a filed on
> > iframe.
> > Example:
> >
> > <!-- AT HEADER -->
> > <script language="javascript">
> > function submitform(val1)
> > {
> > //CHANGE THE VALUE OF A FIELD ON IFRAME... where
> > myfield is the name of
> > the filed...
> >
>
window.frames.myframe.document.myform1.myfield.value=val1;
> > //FOR IFRAME FORM... where the IFRAME name is
> > myframe and the FORM name
> > is "myform1"
> > window.frames.myframe.document.myform1.submit();
> > }
> > </script>
> >
> > <!-- AT BODY -->
> > <A HREF="javascript: submitform(VALUEOFF1)">SUBMIT
> > HERE</A>
> >
> > I make some dynamic tables based on users choies!
> > Works very well.
> >
> > Best Regards,
> >
> > --
> > ------------------------------------------------
> > David da Guia Carvalho
> > Animus Tecnologia da Informa��o
> > Tel.: (21) 3525-8800
> > Fax: (21) 3525-8801
> > http://www.animus-ti.com.br
> > ------------------------------------------------
> >
> > On Feb 25, 2005 03:44 AM, U K Laxmi
> > <la...@yahoo.com> wrote:
> >
> > >Thanks David for the info. Sure to do some
> reading.
> > I
> > >could able to pass the hidden variables to next
> > page.
> > >It's just i'm using one hidden variable named
> > >'package' which was doing all the problem. I just
> > >changed it to something else and now it's
> working.
> > >
> > >Still table issue not solved. I'm gooling ... for
> > the
> > >solution.
> > >
> > >--- David Smith <dn...@cornell.edu> wrote:
> > >
> > >>This is getting into territory where you'd be
> > better
> > >>off doing some
> > >>googling or buying a good javascript cookbook. I
> > >>havn't bought any of
> > >>those books recently although I've had good
> > >>experience with subjects
> > >>from Wrox Publishing and O'Reilly Associates in
> > the
> > >>past. Visit
> > >>Amazon. They even support a rating scheme where
> > >>people can voice their
> > >>opinion.
> > >>
> > >>On the Delete issue, you could do a server-side
> > >>rewrite of a link that
> > >>invokes an action to delete a row as in:
> > >><a
> > >>
> >
>
>href="http://localhost:8080/mywebapp/deleteRow.do?recordNum=10">Delete
> > >>
> > >>Me</a>
> > >>
> > >>That's just a basic GET form request.
> > >>
> > >>Again, find a good book, do some reading.
> > >>
> > >>--David
> > >>
> > >>U K Laxmi wrote:
> > >>
> > >>>Thanks David for the solution. To be frank, i
> > >>really
> > >>>don't know how to code it. Will you give a
> sample
> > >>code
> > >>>snippet? I'm using apache2, tomcat 5.5.7 on Win
> > 2K
> > >>>machine.
> > >>>
> > >>>One more problem. I've a form and also submit
> > >>button.
> > >>>I've number of text fields in it. On entering
> > some
> > >>>data and focus losts from that field, i call a
> > >>>javascript function, i set number of hidden
> > values
> > >>and
> > >>>call a JSP using location.href of Javascript.
> But
> > >>>hidden values are not getting passed to jsp.I'm
> > >>>getting null. Why? How to overcome this? Pls
> > help.
> > >>>
> > >>>One more requirement what i've is:
> > >>>i'VE A FORM WITH FORM ELEMENTS IN IT AND A
> 'aDD'
> > >>>BUTTON. After filling theform, if the user
> clicks
> > >>on
> > >>>'Add' button, the contents gets added aas row
> > into
> > >>a
> > >>>HTML table located below that form. That way
> user
> > >>can
> > >>>add n number of rows to the bottom table. In
> the
> > >>>table, i need a 'Delete' button. After
> selecting
> > >>any
> > >>>row, if the user clicks on 'Delete' button, it
> > >>should
> > >>>get deleted from the table. I guess it can be
> > >>>possible. But it's a big challenge to me as i
> > know
> > >>>only ABCD of HTML & Javascript.
> > >>>
> > >>>If anybody can direct me to a good
> > HTML/Javascritp
> > >>>forum also fine. If i get a solution directly,
> > it's
> > >>>wonderful.
> > >>>
> > >>>Thanks a lot. Sorry again if it's not the right
> > >>place
> > >>>to post this.
> > >>>
> > >>>
> > >>>--- David Smith <dn...@cornell.edu> wrote:
> > >>>
> > >>>
>
=== message truncated ===
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re:[OT] How to access web site from other computers
Posted by Parsons Technical Services <pa...@earthlink.net>.
First: Do you have any firewall software running on your machine?
Second: Can other machines on the network see your machine? Such as in
Network Neighborhood.
Third: Use your IP in the URL. http://172.16.1.37/web/JSP/login.html Of
course substituting in your IP.
Doug
----- Original Message -----
From: "U K Laxmi" <la...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Tuesday, March 08, 2005 11:12 AM
Subject: How to access web site from other computers
> I've a web application developed using apache and
> tomcat on windows 2000 machine. I can access the
> application locally. ie. using
> http://localhost/web/JSP/login.html and also using
> machine name ie. http://dummy/web/JSP/login.html. My
> computer is in network. But i'm unable access my web
> application from other computers. What should i do to
> make my web application available on other machines as
> well? Any other s/w i need? Pls suggest.
>
>
>
>
> __________________________________
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
>
> ---------------------------------------------------------------------
> 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: How to access web site from other computers
Posted by Mark Leone <mi...@cox.net>.
It sounds like you may have a firewall issue. Make sure that all
software or hardware firewalls in the path are configured to allow the
IP address and port you're sending from. Also make sure your router is
configured to rout IP packets from the WAN interface to the IP address
on your LAN that the Tomcat host is using.
As far as static IPs, I use cox cable as my ISP and I'm paying for
service that only provides dynamic IP, but they actually implement it as
static (mostly). Their DHCP server reserves IP addresses for each MAC
address, so as long as I expose the same network hardware to the ISP I
get the same IP address. Don't know if other ISPs do this, but thought
I'd mention it.
U K Laxmi wrote:
>I've a web application developed using apache and
>tomcat on windows 2000 machine. I can access the
>application locally. ie. using
>http://localhost/web/JSP/login.html and also using
>machine name ie. http://dummy/web/JSP/login.html. My
>computer is in network. But i'm unable access my web
>application from other computers. What should i do to
>make my web application available on other machines as
>well? Any other s/w i need? Pls suggest.
>
>
>
>
>__________________________________
>Celebrate Yahoo!'s 10th Birthday!
>Yahoo! Netrospective: 100 Moments of the Web
>http://birthday.yahoo.com/netrospective/
>
>---------------------------------------------------------------------
>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
How to access web site from other computers
Posted by U K Laxmi <la...@yahoo.com>.
I've a web application developed using apache and
tomcat on windows 2000 machine. I can access the
application locally. ie. using
http://localhost/web/JSP/login.html and also using
machine name ie. http://dummy/web/JSP/login.html. My
computer is in network. But i'm unable access my web
application from other computers. What should i do to
make my web application available on other machines as
well? Any other s/w i need? Pls suggest.
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How to send hidden variables to next page
Posted by U K Laxmi <la...@yahoo.com>.
Thanks David for the reply. Yes .... i could able to
submit using javascript. Usually i use submit button.
If submit button not available, i'm using javascript
submit as mentioned by the syntax.
Table problem, still finding ways to do it. Going
thro' tutorials on HTML.
--- David da Guia Carvalho <dg...@animus-ti.com.br>
wrote:
> I dont know but looks like you are doing somethings
> wrong... hidden
> fildes are a great choice... better them use GET
> method...
> About the table think... use Iframe and do a submit
> to it...
> Whem you submit you use normal submit button or
> javascript???
> If you are submiting with normal button try to use
> Javascript is much
> better! Example:
>
> <!-- AT HEADER -->
> <script language="javascript">
> function submitform()
> {
> // FOR LOCAL FORM... where the form name is "myform"
> document.myform.submit();
>
> //OR FOR IFRAME FORM... where the IFRAME name is
> myframe and the FORM
> name is "myform1"
> window.frames.myframe.document.myform1.submit();
>
> }
> </script>
> <!-- AT BODY
> The link to submit:
> -->
> <A HREF="javascript: submitform()">SUBMIT
> HERE!!!</A>
>
> You can also make MANY variations on it... like pass
> values in the
> function from the external frame to a filed on
> iframe.
> Example:
>
> <!-- AT HEADER -->
> <script language="javascript">
> function submitform(val1)
> {
> //CHANGE THE VALUE OF A FIELD ON IFRAME... where
> myfield is the name of
> the filed...
>
window.frames.myframe.document.myform1.myfield.value=val1;
> //FOR IFRAME FORM... where the IFRAME name is
> myframe and the FORM name
> is "myform1"
> window.frames.myframe.document.myform1.submit();
> }
> </script>
>
> <!-- AT BODY -->
> <A HREF="javascript: submitform(VALUEOFF1)">SUBMIT
> HERE</A>
>
> I make some dynamic tables based on users choies!
> Works very well.
>
> Best Regards,
>
> --
> ------------------------------------------------
> David da Guia Carvalho
> Animus Tecnologia da Informa��o
> Tel.: (21) 3525-8800
> Fax: (21) 3525-8801
> http://www.animus-ti.com.br
> ------------------------------------------------
>
> On Feb 25, 2005 03:44 AM, U K Laxmi
> <la...@yahoo.com> wrote:
>
> >Thanks David for the info. Sure to do some reading.
> I
> >could able to pass the hidden variables to next
> page.
> >It's just i'm using one hidden variable named
> >'package' which was doing all the problem. I just
> >changed it to something else and now it's working.
> >
> >Still table issue not solved. I'm gooling ... for
> the
> >solution.
> >
> >--- David Smith <dn...@cornell.edu> wrote:
> >
> >>This is getting into territory where you'd be
> better
> >>off doing some
> >>googling or buying a good javascript cookbook. I
> >>havn't bought any of
> >>those books recently although I've had good
> >>experience with subjects
> >>from Wrox Publishing and O'Reilly Associates in
> the
> >>past. Visit
> >>Amazon. They even support a rating scheme where
> >>people can voice their
> >>opinion.
> >>
> >>On the Delete issue, you could do a server-side
> >>rewrite of a link that
> >>invokes an action to delete a row as in:
> >><a
> >>
>
>href="http://localhost:8080/mywebapp/deleteRow.do?recordNum=10">Delete
> >>
> >>Me</a>
> >>
> >>That's just a basic GET form request.
> >>
> >>Again, find a good book, do some reading.
> >>
> >>--David
> >>
> >>U K Laxmi wrote:
> >>
> >>>Thanks David for the solution. To be frank, i
> >>really
> >>>don't know how to code it. Will you give a sample
> >>code
> >>>snippet? I'm using apache2, tomcat 5.5.7 on Win
> 2K
> >>>machine.
> >>>
> >>>One more problem. I've a form and also submit
> >>button.
> >>>I've number of text fields in it. On entering
> some
> >>>data and focus losts from that field, i call a
> >>>javascript function, i set number of hidden
> values
> >>and
> >>>call a JSP using location.href of Javascript. But
> >>>hidden values are not getting passed to jsp.I'm
> >>>getting null. Why? How to overcome this? Pls
> help.
> >>>
> >>>One more requirement what i've is:
> >>>i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD'
> >>>BUTTON. After filling theform, if the user clicks
> >>on
> >>>'Add' button, the contents gets added aas row
> into
> >>a
> >>>HTML table located below that form. That way user
> >>can
> >>>add n number of rows to the bottom table. In the
> >>>table, i need a 'Delete' button. After selecting
> >>any
> >>>row, if the user clicks on 'Delete' button, it
> >>should
> >>>get deleted from the table. I guess it can be
> >>>possible. But it's a big challenge to me as i
> know
> >>>only ABCD of HTML & Javascript.
> >>>
> >>>If anybody can direct me to a good
> HTML/Javascritp
> >>>forum also fine. If i get a solution directly,
> it's
> >>>wonderful.
> >>>
> >>>Thanks a lot. Sorry again if it's not the right
> >>place
> >>>to post this.
> >>>
> >>>
> >>>--- David Smith <dn...@cornell.edu> wrote:
> >>>
> >>>
> >>>
> >>>>The best advice I can offer -- have a javascript
> >>>>that does the submit
> >>>>for you on the event the drop-down changes
> state.
> >>>>Then let a servlet
> >>>>handle storing your form data in the session and
> >>>>passing updated data to
> >>>>the next page. Outside of something like that, I
> >>>>think you'll need to
> >>>>incorporate a submit button.
> >>>>
> >>>>--David
> >>>>
> >>>>U K Laxmi wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Thanks for the answers Shakeel.
> >>>>>
> >>>>>My problem is, i've a page that doesn't have
> >>submit
> >>>>>button. I need to send the hidden variables in
> >>that
> >>>>>HTML page to next HTML page. Here the hidden
> >>value
> >>>>>
> >>>>>
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How to send hidden variables to next page
Posted by David da Guia Carvalho <dg...@animus-ti.com.br>.
I dont know but looks like you are doing somethings wrong... hidden
fildes are a great choice... better them use GET method...
About the table think... use Iframe and do a submit to it...
Whem you submit you use normal submit button or javascript???
If you are submiting with normal button try to use Javascript is much
better! Example:
<!-- AT HEADER -->
<script language="javascript">
function submitform()
{
// FOR LOCAL FORM... where the form name is "myform"
document.myform.submit();
//OR FOR IFRAME FORM... where the IFRAME name is myframe and the FORM
name is "myform1"
window.frames.myframe.document.myform1.submit();
}
</script>
<!-- AT BODY
The link to submit:
-->
<A HREF="javascript: submitform()">SUBMIT HERE!!!</A>
You can also make MANY variations on it... like pass values in the
function from the external frame to a filed on iframe.
Example:
<!-- AT HEADER -->
<script language="javascript">
function submitform(val1)
{
//CHANGE THE VALUE OF A FIELD ON IFRAME... where myfield is the name of
the filed...
window.frames.myframe.document.myform1.myfield.value=val1;
//FOR IFRAME FORM... where the IFRAME name is myframe and the FORM name
is "myform1"
window.frames.myframe.document.myform1.submit();
}
</script>
<!-- AT BODY -->
<A HREF="javascript: submitform(VALUEOFF1)">SUBMIT HERE</A>
I make some dynamic tables based on users choies! Works very well.
Best Regards,
--
------------------------------------------------
David da Guia Carvalho
Animus Tecnologia da Informação
Tel.: (21) 3525-8800
Fax: (21) 3525-8801
http://www.animus-ti.com.br
------------------------------------------------
On Feb 25, 2005 03:44 AM, U K Laxmi <la...@yahoo.com> wrote:
>Thanks David for the info. Sure to do some reading. I
>could able to pass the hidden variables to next page.
>It's just i'm using one hidden variable named
>'package' which was doing all the problem. I just
>changed it to something else and now it's working.
>
>Still table issue not solved. I'm gooling ... for the
>solution.
>
>--- David Smith <dn...@cornell.edu> wrote:
>
>>This is getting into territory where you'd be better
>>off doing some
>>googling or buying a good javascript cookbook. I
>>havn't bought any of
>>those books recently although I've had good
>>experience with subjects
>>from Wrox Publishing and O'Reilly Associates in the
>>past. Visit
>>Amazon. They even support a rating scheme where
>>people can voice their
>>opinion.
>>
>>On the Delete issue, you could do a server-side
>>rewrite of a link that
>>invokes an action to delete a row as in:
>><a
>>
>href="http://localhost:8080/mywebapp/deleteRow.do?recordNum=10">Delete
>>
>>Me</a>
>>
>>That's just a basic GET form request.
>>
>>Again, find a good book, do some reading.
>>
>>--David
>>
>>U K Laxmi wrote:
>>
>>>Thanks David for the solution. To be frank, i
>>really
>>>don't know how to code it. Will you give a sample
>>code
>>>snippet? I'm using apache2, tomcat 5.5.7 on Win 2K
>>>machine.
>>>
>>>One more problem. I've a form and also submit
>>button.
>>>I've number of text fields in it. On entering some
>>>data and focus losts from that field, i call a
>>>javascript function, i set number of hidden values
>>and
>>>call a JSP using location.href of Javascript. But
>>>hidden values are not getting passed to jsp.I'm
>>>getting null. Why? How to overcome this? Pls help.
>>>
>>>One more requirement what i've is:
>>>i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD'
>>>BUTTON. After filling theform, if the user clicks
>>on
>>>'Add' button, the contents gets added aas row into
>>a
>>>HTML table located below that form. That way user
>>can
>>>add n number of rows to the bottom table. In the
>>>table, i need a 'Delete' button. After selecting
>>any
>>>row, if the user clicks on 'Delete' button, it
>>should
>>>get deleted from the table. I guess it can be
>>>possible. But it's a big challenge to me as i know
>>>only ABCD of HTML & Javascript.
>>>
>>>If anybody can direct me to a good HTML/Javascritp
>>>forum also fine. If i get a solution directly, it's
>>>wonderful.
>>>
>>>Thanks a lot. Sorry again if it's not the right
>>place
>>>to post this.
>>>
>>>
>>>--- David Smith <dn...@cornell.edu> wrote:
>>>
>>>
>>>
>>>>The best advice I can offer -- have a javascript
>>>>that does the submit
>>>>for you on the event the drop-down changes state.
>>>>Then let a servlet
>>>>handle storing your form data in the session and
>>>>passing updated data to
>>>>the next page. Outside of something like that, I
>>>>think you'll need to
>>>>incorporate a submit button.
>>>>
>>>>--David
>>>>
>>>>U K Laxmi wrote:
>>>>
>>>>
>>>>
>>>>>Thanks for the answers Shakeel.
>>>>>
>>>>>My problem is, i've a page that doesn't have
>>submit
>>>>>button. I need to send the hidden variables in
>>that
>>>>>HTML page to next HTML page. Here the hidden
>>value
>>>>>
>>>>>
>>>>is
>>>>
>>>>
>>>>>set based on the type of option selected from
>>>>>
>>>>>
>>>>'select'
>>>>
>>>>
>>>>>drpo down box in HTML. To put it in session, i
>>need
>>>>>
>>>>>
>>>>to
>>>>
>>>>
>>>>>identify the selected option and assign it to
>>java
>>>>>varialbe. I don't think it's possible to assign a
>>>>>javascript variable to java variable. Pls help to
>>>>>solve this problem.
>>>>>
>>>>>
>>>>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
>>>>>
>>>>>
>>>>wrote:
>>>>
>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Wel this might help...
>>>>>>
>>>>>>// You write following two lines in first JSP
>>>>>>
>>>>>>
>>>>page.
>>>>
>>>>
>>>>>>String name = "Java";// This might be your
>>hidden
>>>>>>field.
>>>>>>session.setAttribute("HiddenName", name);
>>>>>>
>>>>>>
>>>>>>//Then you get the name on next page as follows.
>>>>>>
>>>>>>String userName =
>>>>>>(String)session.getAttribute("HiddenName");
>>>>>>
>>>>>>
>>>>>>The "name" attribute will be available throught
>>>>>>
>>>>>>
>>>>the
>>>>
>>>>
>>>>>>session life, unless we
>>>>>>remove it explicitly or restart Tomcat.
>>>>>>We can use it on any page once it is placed
>>>>>>properly.
>>>>>>
>>>>>>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:laxmiuk@yahoo.com]
>>>>>>Sent: 23 February, 2005 10:37 AM
>>>>>>To: Tomcat Users List
>>>>>>Subject: RE: How to send hidden variables to
>>next
>>>>>>page
>>>>>>
>>>>>>
>>>>>>Yes. I'm using JSP. Can you pls tell me the
>>syntax
>>>>>>or
>>>>>>guidelines as how to do it.
>>>>>>
>>>>>>Thank you.
>>>>>>
>>>>>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
>>>>>>wrote:
>>>>>>
>>>>>>
>>>>>>
>>
>=== message truncated ===
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Read only the mail you want - Yahoo! Mail SpamGuard.
>http://promotions.yahoo.com/new_mail
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
Re: How to send hidden variables to next page
Posted by U K Laxmi <la...@yahoo.com>.
Thanks David for the info. Sure to do some reading. I
could able to pass the hidden variables to next page.
It's just i'm using one hidden variable named
'package' which was doing all the problem. I just
changed it to something else and now it's working.
Still table issue not solved. I'm gooling ... for the
solution.
--- David Smith <dn...@cornell.edu> wrote:
> This is getting into territory where you'd be better
> off doing some
> googling or buying a good javascript cookbook. I
> havn't bought any of
> those books recently although I've had good
> experience with subjects
> from Wrox Publishing and O'Reilly Associates in the
> past. Visit
> Amazon. They even support a rating scheme where
> people can voice their
> opinion.
>
> On the Delete issue, you could do a server-side
> rewrite of a link that
> invokes an action to delete a row as in:
> <a
>
href="http://localhost:8080/mywebapp/deleteRow.do?recordNum=10">Delete
>
> Me</a>
>
> That's just a basic GET form request.
>
> Again, find a good book, do some reading.
>
> --David
>
> U K Laxmi wrote:
>
> >Thanks David for the solution. To be frank, i
> really
> >don't know how to code it. Will you give a sample
> code
> >snippet? I'm using apache2, tomcat 5.5.7 on Win 2K
> >machine.
> >
> >One more problem. I've a form and also submit
> button.
> >I've number of text fields in it. On entering some
> >data and focus losts from that field, i call a
> >javascript function, i set number of hidden values
> and
> >call a JSP using location.href of Javascript. But
> >hidden values are not getting passed to jsp.I'm
> >getting null. Why? How to overcome this? Pls help.
> >
> >One more requirement what i've is:
> >i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD'
> >BUTTON. After filling theform, if the user clicks
> on
> >'Add' button, the contents gets added aas row into
> a
> >HTML table located below that form. That way user
> can
> >add n number of rows to the bottom table. In the
> >table, i need a 'Delete' button. After selecting
> any
> >row, if the user clicks on 'Delete' button, it
> should
> >get deleted from the table. I guess it can be
> >possible. But it's a big challenge to me as i know
> >only ABCD of HTML & Javascript.
> >
> >If anybody can direct me to a good HTML/Javascritp
> >forum also fine. If i get a solution directly, it's
> >wonderful.
> >
> >Thanks a lot. Sorry again if it's not the right
> place
> >to post this.
> >
> >
> >--- David Smith <dn...@cornell.edu> wrote:
> >
> >
> >
> >>The best advice I can offer -- have a javascript
> >>that does the submit
> >>for you on the event the drop-down changes state.
> >>Then let a servlet
> >>handle storing your form data in the session and
> >>passing updated data to
> >>the next page. Outside of something like that, I
> >>think you'll need to
> >>incorporate a submit button.
> >>
> >>--David
> >>
> >>U K Laxmi wrote:
> >>
> >>
> >>
> >>>Thanks for the answers Shakeel.
> >>>
> >>>My problem is, i've a page that doesn't have
> submit
> >>>button. I need to send the hidden variables in
> that
> >>>HTML page to next HTML page. Here the hidden
> value
> >>>
> >>>
> >>is
> >>
> >>
> >>>set based on the type of option selected from
> >>>
> >>>
> >>'select'
> >>
> >>
> >>>drpo down box in HTML. To put it in session, i
> need
> >>>
> >>>
> >>to
> >>
> >>
> >>>identify the selected option and assign it to
> java
> >>>varialbe. I don't think it's possible to assign a
> >>>javascript variable to java variable. Pls help to
> >>>solve this problem.
> >>>
> >>>
> >>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
> >>>
> >>>
> >>wrote:
> >>
> >>
> >>>
> >>>
> >>>
> >>>
> >>>>Wel this might help...
> >>>>
> >>>>// You write following two lines in first JSP
> >>>>
> >>>>
> >>page.
> >>
> >>
> >>>>String name = "Java";// This might be your
> hidden
> >>>>field.
> >>>>session.setAttribute("HiddenName", name);
> >>>>
> >>>>
> >>>>//Then you get the name on next page as follows.
> >>>>
> >>>>String userName =
> >>>>(String)session.getAttribute("HiddenName");
> >>>>
> >>>>
> >>>>The "name" attribute will be available throught
> >>>>
> >>>>
> >>the
> >>
> >>
> >>>>session life, unless we
> >>>>remove it explicitly or restart Tomcat.
> >>>>We can use it on any page once it is placed
> >>>>properly.
> >>>>
> >>>>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:laxmiuk@yahoo.com]
> >>>>Sent: 23 February, 2005 10:37 AM
> >>>>To: Tomcat Users List
> >>>>Subject: RE: How to send hidden variables to
> next
> >>>>page
> >>>>
> >>>>
> >>>>Yes. I'm using JSP. Can you pls tell me the
> syntax
> >>>>or
> >>>>guidelines as how to do it.
> >>>>
> >>>>Thank you.
> >>>>
> >>>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
> >>>>wrote:
> >>>>
> >>>>
> >>>>
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How to send hidden variables to next page
Posted by David Smith <dn...@cornell.edu>.
This is getting into territory where you'd be better off doing some
googling or buying a good javascript cookbook. I havn't bought any of
those books recently although I've had good experience with subjects
from Wrox Publishing and O'Reilly Associates in the past. Visit
Amazon. They even support a rating scheme where people can voice their
opinion.
On the Delete issue, you could do a server-side rewrite of a link that
invokes an action to delete a row as in:
<a
href="http://localhost:8080/mywebapp/deleteRow.do?recordNum=10">Delete
Me</a>
That's just a basic GET form request.
Again, find a good book, do some reading.
--David
U K Laxmi wrote:
>Thanks David for the solution. To be frank, i really
>don't know how to code it. Will you give a sample code
>snippet? I'm using apache2, tomcat 5.5.7 on Win 2K
>machine.
>
>One more problem. I've a form and also submit button.
>I've number of text fields in it. On entering some
>data and focus losts from that field, i call a
>javascript function, i set number of hidden values and
>call a JSP using location.href of Javascript. But
>hidden values are not getting passed to jsp.I'm
>getting null. Why? How to overcome this? Pls help.
>
>One more requirement what i've is:
>i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD'
>BUTTON. After filling theform, if the user clicks on
>'Add' button, the contents gets added aas row into a
>HTML table located below that form. That way user can
>add n number of rows to the bottom table. In the
>table, i need a 'Delete' button. After selecting any
>row, if the user clicks on 'Delete' button, it should
>get deleted from the table. I guess it can be
>possible. But it's a big challenge to me as i know
>only ABCD of HTML & Javascript.
>
>If anybody can direct me to a good HTML/Javascritp
>forum also fine. If i get a solution directly, it's
>wonderful.
>
>Thanks a lot. Sorry again if it's not the right place
>to post this.
>
>
>--- David Smith <dn...@cornell.edu> wrote:
>
>
>
>>The best advice I can offer -- have a javascript
>>that does the submit
>>for you on the event the drop-down changes state.
>>Then let a servlet
>>handle storing your form data in the session and
>>passing updated data to
>>the next page. Outside of something like that, I
>>think you'll need to
>>incorporate a submit button.
>>
>>--David
>>
>>U K Laxmi wrote:
>>
>>
>>
>>>Thanks for the answers Shakeel.
>>>
>>>My problem is, i've a page that doesn't have submit
>>>button. I need to send the hidden variables in that
>>>HTML page to next HTML page. Here the hidden value
>>>
>>>
>>is
>>
>>
>>>set based on the type of option selected from
>>>
>>>
>>'select'
>>
>>
>>>drpo down box in HTML. To put it in session, i need
>>>
>>>
>>to
>>
>>
>>>identify the selected option and assign it to java
>>>varialbe. I don't think it's possible to assign a
>>>javascript variable to java variable. Pls help to
>>>solve this problem.
>>>
>>>
>>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
>>>
>>>
>>wrote:
>>
>>
>>>
>>>
>>>
>>>
>>>>Wel this might help...
>>>>
>>>>// You write following two lines in first JSP
>>>>
>>>>
>>page.
>>
>>
>>>>String name = "Java";// This might be your hidden
>>>>field.
>>>>session.setAttribute("HiddenName", name);
>>>>
>>>>
>>>>//Then you get the name on next page as follows.
>>>>
>>>>String userName =
>>>>(String)session.getAttribute("HiddenName");
>>>>
>>>>
>>>>The "name" attribute will be available throught
>>>>
>>>>
>>the
>>
>>
>>>>session life, unless we
>>>>remove it explicitly or restart Tomcat.
>>>>We can use it on any page once it is placed
>>>>properly.
>>>>
>>>>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:laxmiuk@yahoo.com]
>>>>Sent: 23 February, 2005 10:37 AM
>>>>To: Tomcat Users List
>>>>Subject: RE: How to send hidden variables to next
>>>>page
>>>>
>>>>
>>>>Yes. I'm using JSP. Can you pls tell me the syntax
>>>>or
>>>>guidelines as how to do it.
>>>>
>>>>Thank you.
>>>>
>>>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
>>>>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:laxmiuk@yahoo.com]
>>>>>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 <mk...@camden.rutgers.edu> 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
>>>>>>
>>>>>>
>=== message truncated ===
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - now with 250MB free storage. Learn more.
>http://info.mail.yahoo.com/mail_250
>
>---------------------------------------------------------------------
>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: How to send hidden variables to next page
Posted by U K Laxmi <la...@yahoo.com>.
Thanks David for the solution. To be frank, i really
don't know how to code it. Will you give a sample code
snippet? I'm using apache2, tomcat 5.5.7 on Win 2K
machine.
One more problem. I've a form and also submit button.
I've number of text fields in it. On entering some
data and focus losts from that field, i call a
javascript function, i set number of hidden values and
call a JSP using location.href of Javascript. But
hidden values are not getting passed to jsp.I'm
getting null. Why? How to overcome this? Pls help.
One more requirement what i've is:
i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD'
BUTTON. After filling theform, if the user clicks on
'Add' button, the contents gets added aas row into a
HTML table located below that form. That way user can
add n number of rows to the bottom table. In the
table, i need a 'Delete' button. After selecting any
row, if the user clicks on 'Delete' button, it should
get deleted from the table. I guess it can be
possible. But it's a big challenge to me as i know
only ABCD of HTML & Javascript.
If anybody can direct me to a good HTML/Javascritp
forum also fine. If i get a solution directly, it's
wonderful.
Thanks a lot. Sorry again if it's not the right place
to post this.
--- David Smith <dn...@cornell.edu> wrote:
> The best advice I can offer -- have a javascript
> that does the submit
> for you on the event the drop-down changes state.
> Then let a servlet
> handle storing your form data in the session and
> passing updated data to
> the next page. Outside of something like that, I
> think you'll need to
> incorporate a submit button.
>
> --David
>
> U K Laxmi wrote:
>
> >Thanks for the answers Shakeel.
> >
> >My problem is, i've a page that doesn't have submit
> >button. I need to send the hidden variables in that
> >HTML page to next HTML page. Here the hidden value
> is
> >set based on the type of option selected from
> 'select'
> >drpo down box in HTML. To put it in session, i need
> to
> >identify the selected option and assign it to java
> >varialbe. I don't think it's possible to assign a
> >javascript variable to java variable. Pls help to
> >solve this problem.
> >
> >
> >--- Shakeel Ahmad <sh...@globalnorthstar.com>
> wrote:
> >
> >
> >
> >>Wel this might help...
> >>
> >>// You write following two lines in first JSP
> page.
> >>String name = "Java";// This might be your hidden
> >>field.
> >>session.setAttribute("HiddenName", name);
> >>
> >>
> >>//Then you get the name on next page as follows.
> >>
> >>String userName =
> >>(String)session.getAttribute("HiddenName");
> >>
> >>
> >>The "name" attribute will be available throught
> the
> >>session life, unless we
> >>remove it explicitly or restart Tomcat.
> >>We can use it on any page once it is placed
> >>properly.
> >>
> >>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:laxmiuk@yahoo.com]
> >>Sent: 23 February, 2005 10:37 AM
> >>To: Tomcat Users List
> >>Subject: RE: How to send hidden variables to next
> >>page
> >>
> >>
> >>Yes. I'm using JSP. Can you pls tell me the syntax
> >>or
> >>guidelines as how to do it.
> >>
> >>Thank you.
> >>
> >>--- Shakeel Ahmad <sh...@globalnorthstar.com>
> >>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:laxmiuk@yahoo.com]
> >>>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 <mk...@camden.rutgers.edu> 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
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: How to send hidden variables to next page
Posted by David Smith <dn...@cornell.edu>.
The best advice I can offer -- have a javascript that does the submit
for you on the event the drop-down changes state. Then let a servlet
handle storing your form data in the session and passing updated data to
the next page. Outside of something like that, I think you'll need to
incorporate a submit button.
--David
U K Laxmi wrote:
>Thanks for the answers Shakeel.
>
>My problem is, i've a page that doesn't have submit
>button. I need to send the hidden variables in that
>HTML page to next HTML page. Here the hidden value is
>set based on the type of option selected from 'select'
>drpo down box in HTML. To put it in session, i need to
>identify the selected option and assign it to java
>varialbe. I don't think it's possible to assign a
>javascript variable to java variable. Pls help to
>solve this problem.
>
>
>--- Shakeel Ahmad <sh...@globalnorthstar.com> wrote:
>
>
>
>>Wel this might help...
>>
>>// You write following two lines in first JSP page.
>>String name = "Java";// This might be your hidden
>>field.
>>session.setAttribute("HiddenName", name);
>>
>>
>>//Then you get the name on next page as follows.
>>
>>String userName =
>>(String)session.getAttribute("HiddenName");
>>
>>
>>The "name" attribute will be available throught the
>>session life, unless we
>>remove it explicitly or restart Tomcat.
>>We can use it on any page once it is placed
>>properly.
>>
>>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:laxmiuk@yahoo.com]
>>Sent: 23 February, 2005 10:37 AM
>>To: Tomcat Users List
>>Subject: RE: How to send hidden variables to next
>>page
>>
>>
>>Yes. I'm using JSP. Can you pls tell me the syntax
>>or
>>guidelines as how to do it.
>>
>>Thank you.
>>
>>--- Shakeel Ahmad <sh...@globalnorthstar.com>
>>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:laxmiuk@yahoo.com]
>>>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 <mk...@camden.rutgers.edu> 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):
>>>>>
>>>>>
>=== message truncated ===
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Take Yahoo! Mail with you! Get it on your mobile phone.
>http://mobile.yahoo.com/maildemo
>
>---------------------------------------------------------------------
>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: How to send hidden variables to next page
Posted by Shakeel Ahmad <sh...@globalnorthstar.com>.
Then you must use the window.returnValue of Java Script.
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:laxmiuk@yahoo.com]
Sent: 23 February, 2005 12:30 PM
To: Tomcat Users List
Subject: RE: How to send hidden variables to next page
Thanks for the answers Shakeel.
My problem is, i've a page that doesn't have submit
button. I need to send the hidden variables in that
HTML page to next HTML page. Here the hidden value is
set based on the type of option selected from 'select'
drpo down box in HTML. To put it in session, i need to
identify the selected option and assign it to java
varialbe. I don't think it's possible to assign a
javascript variable to java variable. Pls help to
solve this problem.
--- Shakeel Ahmad <sh...@globalnorthstar.com> wrote:
> Wel this might help...
>
> // You write following two lines in first JSP page.
> String name = "Java";// This might be your hidden
> field.
> session.setAttribute("HiddenName", name);
>
>
> //Then you get the name on next page as follows.
>
> String userName =
> (String)session.getAttribute("HiddenName");
>
>
> The "name" attribute will be available throught the
> session life, unless we
> remove it explicitly or restart Tomcat.
> We can use it on any page once it is placed
> properly.
>
> 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:laxmiuk@yahoo.com]
> Sent: 23 February, 2005 10:37 AM
> To: Tomcat Users List
> Subject: RE: How to send hidden variables to next
> page
>
>
> Yes. I'm using JSP. Can you pls tell me the syntax
> or
> guidelines as how to do it.
>
> Thank you.
>
> --- Shakeel Ahmad <sh...@globalnorthstar.com>
> 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:laxmiuk@yahoo.com]
> > 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 <mk...@camden.rutgers.edu> 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):
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
---------------------------------------------------------------------
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: How to send hidden variables to next page
Posted by U K Laxmi <la...@yahoo.com>.
Thanks for the answers Shakeel.
My problem is, i've a page that doesn't have submit
button. I need to send the hidden variables in that
HTML page to next HTML page. Here the hidden value is
set based on the type of option selected from 'select'
drpo down box in HTML. To put it in session, i need to
identify the selected option and assign it to java
varialbe. I don't think it's possible to assign a
javascript variable to java variable. Pls help to
solve this problem.
--- Shakeel Ahmad <sh...@globalnorthstar.com> wrote:
> Wel this might help...
>
> // You write following two lines in first JSP page.
> String name = "Java";// This might be your hidden
> field.
> session.setAttribute("HiddenName", name);
>
>
> //Then you get the name on next page as follows.
>
> String userName =
> (String)session.getAttribute("HiddenName");
>
>
> The "name" attribute will be available throught the
> session life, unless we
> remove it explicitly or restart Tomcat.
> We can use it on any page once it is placed
> properly.
>
> 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:laxmiuk@yahoo.com]
> Sent: 23 February, 2005 10:37 AM
> To: Tomcat Users List
> Subject: RE: How to send hidden variables to next
> page
>
>
> Yes. I'm using JSP. Can you pls tell me the syntax
> or
> guidelines as how to do it.
>
> Thank you.
>
> --- Shakeel Ahmad <sh...@globalnorthstar.com>
> 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:laxmiuk@yahoo.com]
> > 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 <mk...@camden.rutgers.edu> 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):
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: How to send hidden variables to next page
Posted by Shakeel Ahmad <sh...@globalnorthstar.com>.
Wel this might help...
// You write following two lines in first JSP page.
String name = "Java";// This might be your hidden field.
session.setAttribute("HiddenName", name);
//Then you get the name on next page as follows.
String userName = (String)session.getAttribute("HiddenName");
The "name" attribute will be available throught the session life, unless we
remove it explicitly or restart Tomcat.
We can use it on any page once it is placed properly.
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:laxmiuk@yahoo.com]
Sent: 23 February, 2005 10:37 AM
To: Tomcat Users List
Subject: RE: How to send hidden variables to next page
Yes. I'm using JSP. Can you pls tell me the syntax or
guidelines as how to do it.
Thank you.
--- Shakeel Ahmad <sh...@globalnorthstar.com> 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:laxmiuk@yahoo.com]
> 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 <mk...@camden.rutgers.edu> 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
> > > /jsp-examples/*.jsp=ajp13w
> > > /*.jsp=ajp13w
> > > /JSP/*.jsp=ajp13w
> > >
> > > # Now filter out all .jpeg files inside that
> > context
> > > # For no mapping the url has to start with
> > exclamation (!)
> > >
> > > !/servlets-examples/*.jpeg=ajp13w
> > >
> > > So, I'm still trying to get BOTH to work right,
> > but making some progress!
> > > -Matt
> > >
> > >
> > > On Tue, 22 Feb 2005 Wendy.Olson@ubs.com wrote:
> > >
> > > > Hi Matt,
> > > >
> > > > I'm not sure if this would solve your problem,
> > but I have my server.xml set up with the following
> > configuration:
> > > >
> > > >
> >
>
----------------------------------------------------------------------------
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
---------------------------------------------------------------------
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: How to send hidden variables to next page
Posted by U K Laxmi <la...@yahoo.com>.
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 <la...@yahoo.com> wrote:
> Yes. I'm using JSP. Can you pls tell me the syntax
> or
> guidelines as how to do it.
>
> Thank you.
>
> --- Shakeel Ahmad <sh...@globalnorthstar.com>
> 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:laxmiuk@yahoo.com]
> > 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 <mk...@camden.rutgers.edu> 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: How to send hidden variables to next page
Posted by U K Laxmi <la...@yahoo.com>.
Yes. I'm using JSP. Can you pls tell me the syntax or
guidelines as how to do it.
Thank you.
--- Shakeel Ahmad <sh...@globalnorthstar.com> 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:laxmiuk@yahoo.com]
> 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 <mk...@camden.rutgers.edu> 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
> > > /jsp-examples/*.jsp=ajp13w
> > > /*.jsp=ajp13w
> > > /JSP/*.jsp=ajp13w
> > >
> > > # Now filter out all .jpeg files inside that
> > context
> > > # For no mapping the url has to start with
> > exclamation (!)
> > >
> > > !/servlets-examples/*.jpeg=ajp13w
> > >
> > > So, I'm still trying to get BOTH to work right,
> > but making some progress!
> > > -Matt
> > >
> > >
> > > On Tue, 22 Feb 2005 Wendy.Olson@ubs.com wrote:
> > >
> > > > Hi Matt,
> > > >
> > > > I'm not sure if this would solve your problem,
> > but I have my server.xml set up with the following
> > configuration:
> > > >
> > > >
> >
>
----------------------------------------------------------------------------
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: How to send hidden variables to next page
Posted by Shakeel Ahmad <sh...@globalnorthstar.com>.
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:laxmiuk@yahoo.com]
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 <mk...@camden.rutgers.edu> 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
> > /jsp-examples/*.jsp=ajp13w
> > /*.jsp=ajp13w
> > /JSP/*.jsp=ajp13w
> >
> > # Now filter out all .jpeg files inside that
> context
> > # For no mapping the url has to start with
> exclamation (!)
> >
> > !/servlets-examples/*.jpeg=ajp13w
> >
> > So, I'm still trying to get BOTH to work right,
> but making some progress!
> > -Matt
> >
> >
> > On Tue, 22 Feb 2005 Wendy.Olson@ubs.com wrote:
> >
> > > Hi Matt,
> > >
> > > I'm not sure if this would solve your problem,
> but I have my server.xml set up with the following
> configuration:
> > >
> > >
>
----------------------------------------------------------------------------
--------
> > > <Host name="localhost" debug="0"
> appBase="webapps/myApp"
> > > unpackWARs="false" autoDeploy="true"
> > > xmlValidation="true"
> xmlNamespaceAware="true">
> > >
> > > <Context path="" docBase="" debug="0"
> reloadable="true" crossContext="true" />
> > >
> > > <!-- context path for external ini directory
> -->
> > > <Context path="/ini"
> docBase="c:\\myApp\c\releases\ini" debug="0"
> > > reloadable="true"
> crossContext="false" />
> > >
> > > <!-- context path for external lib directory
> -->
> > > <Context path="/lib"
> docBase="c:\\myApp\c\releases\lib" debug="0"
> > > reloadable="true"
> crossContext="false" />
> > >
> > > </Host>
> > >
>
----------------------------------------------------------------------------
--------
> > >
> > > This means my root webapp for http://localhost
> resolves to webapps/myApp, and the
> http://localhost/ini url goes to
> c:\\koba\c\releases\ini, etc.
> > >
> > > When we first set this up Tomcat had problems
> starting up because it was reading in old web.xml
> files under the Tomcat/conf/Catalina... dir(s) but
> it couldn't find that path under
> Tomcat/webapps/myApp/. So we had to remove those
> old xml files (since the localhost root no longer
> went to Tomcat/webapps/).
> > >
> > >
> > > As a test, I just tried directing my Host's
> appBase to an external directory, and it worked for
> me. For that test I configured server.xml per the
> following:
> > >
> > > <Host name="localhost" debug="0"
> appBase="c:\\myApp\c\releases\ini"
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
---------------------------------------------------------------------
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