473,387 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

HttpServletRequest

How can i make a request from a static page to two different servlets with two buttons namely "submit" and "cancel" i.e. when i press submit i should call servlet1 and cancel to call servlet2 within a single <form></form> container
May 5 '07 #1
1 1604
r035198x
13,262 8TB
How can i make a request from a static page to two different servlets with two buttons namely "submit" and "cancel" i.e. when i press submit i should call servlet1 and cancel to call servlet2 within a single <form></form> container
Use Javascript.

On click of the cancel button, set form.action to servlet2's path and onClick of the submit button, set form.action to servlet1's path
May 5 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Desmond Rivet | last post by:
Hi all, I will do an experiment on this soon, but if anyone knows off the top of their head... Let's say you have a servlet that processes a POST request. A HTTP client sends a POST request...
10
by: Gianni | last post by:
When I compile my class I get this strange message. The message is strange as that class is not abstract !!!! Please help! Gianni
7
by: sookean | last post by:
Hi, I have a jsp with some list box. And when user selects an option in the list box, I would then generate a url to direct the user to the correct page. The url is of the form:...
0
by: Christine Zhou | last post by:
Hi, We have a customized HttpServletRequest object, when we run the application on webshpere 4.0.7,got a ClassCastException on this object, but was Ok on WAS4.0.1, Anyone know why, is this...
3
dmjpro
by: dmjpro | last post by:
I know what the method does??? But me Q. is.... Is this possible to have multiple values for a HTTP Header? It is possible because this method is for that to retrieve all header values for HTTP...
2
by: mfsiddiq | last post by:
Hi Everyone I need help regarding how to get the handle for httpServlet while using webService.Since we are using webservice,i am not able to get handle of httpServletRequest and...
8
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
8
by: ajos | last post by:
hi frnds, the situation is im developing a web application in struts-- my specifications-eclipse3.2.2,struts1.1,tomcat5.5.23 mysql5.0 db. the scenario-i have a jsp page which adds the...
20
by: ajos | last post by:
Hi to all, Ok the situation that i have is im adding things in my database(something similar).The database that i was using was access and i had to change it to MySQL.As i came to know the date...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.