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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>


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:[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
wrote:





If you are developing a JSP/Servlet then you can




do




this by keeping those
variables in session.

Best Regards,
S H A K E E L   A H M A D





http://members.fortunecity.com/javaclub/shakeel.htm






Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD & SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-----Original Message-----
From: U K Laxmi [mailto:[EMAIL PROTECTED]
Sent: 23 February, 2005 10:31 AM
To: Tomcat Users List
Subject: How to send hidden variables to next


page


Sorry if it's not the right place to post this
question. Excuse me.

I've some hidden variables in a web page. I want




to




send them to next page without using submit




button.




I
don't know how to do it. More over i don't know




how




to
access those variables in the next page. Is there
any
option available to do this html or tomcat or
apache?

Thanks!!

--- Matt <[EMAIL PROTECTED]> wrote:





Ah-ha, somehow I changed a line in the
uriworkermap.properties file from
this (some pointless experiment out of past
frustrated delirium):
/jsp-examples/*=ajp13w
...to this:
/jsp-examples/*.jsp
...so changing it back (which is how it was
out-of-the-box after
jk_1.2.8.exe was run) to:
/jsp-examples/*=ajp13w
...fixes it, and I can now access both




directories




fine (inside and
outside of $CATALINA_HOME/webapps)!!!  YAY!!!

I now get the expected results for:
http://localhost/jsp-examples/ (the webapps/
examples page)
...and for:
http://localhost:8080/jsp-examples/ (the




webapps/




examples page)
...and for:
http://localhost:8080 (Tomcat home page)
...and for:
http://localhost (IIS home page)
...and for:
http://localhost/JSP/MYwebapps/MYjsp-examples
(the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples
page)
...and the .JSP pages work as expected in both
places!
Now I can add docabses to my heart's content -
*relieved sigh*

SO...the easy answer is a simple, single CONTEXT
addition, but making sure
to overlap the end of the "docbase" path with


=== 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Reply via email to