Home Answers Viewqa JSP-Servlet I have doubt in jsp file.

 
 


mohd areef
I have doubt in jsp file.
2 Answer(s)      a year and 8 months ago
Posted in : JSP-Servlet

I have doubt in jsp file.

In a jsp file, there should be two buttons. One is start and other is stop.

When we click on start then only stop should be enabled. Other wise it should be disabled.

When we click on start button, stop should be enabled and start should be disabled.

When we click on stop button, start should be enabled and stop should be disabled. Please can you help me with the code.

View Answers

September 23, 2011 at 3:02 PM


<html>
<script>

function check1()
{
document.form.b1.disabled=true;
document.form.b2.disabled=false;
}
function check2()
{
document.form.b2.disabled=true;
document.form.b1.disabled=false;
}

</script>
<form name="form">
<pre>
Name:     <input type="text" >
Address:  <input type="text">

<input type="button" name="b1" value="Start" onclick="check1();">    <input type="button" name="b2" value="stop" onclick="check2();">
</pre>
</form>
</html>

September 23, 2011 at 3:21 PM


thankq for giving the answer









Related Pages:
I have doubt in jsp file.
I have doubt in jsp file.  I have doubt in jsp file. In a jsp file, there should be two buttons. One is start and other is stop. When we click on start then only stop should be enabled. Other wise it should be disabled. When
I have a doubt regarding action - Struts
I have a doubt regarding action   hi, I have doubt regarding struts,I got response through jsp and once again it redirecting to action..., Please check Action Mapping in the struts-config.xml. If you have any problem
JSP Doubt - JSP-Servlet
JSP Doubt  Hello Sir, Sir Actually I have created my DraftAd in Html and I want that any thing i type in draft ad should be converted into digits i.e integers and should get displayed in another text box ie count text box
Doubt regarding charts and jsp
Doubt regarding charts and jsp  Hi in the http://www.roseindia.net...()); final File file1 = new File("../webapps/jspchart/web/barchart.png...) { Where can I get the barchart.png? and what is the exact meaning of the line
Doubt in servlets - JSP-Servlet
Doubt in servlets  Good Evening sir/madam, I want to add data dynamically for that which methods i have to use to retrieve...","root","root"); Statement st=con.createStatement(); int i=st.executeUpdate("insert
I have one small doubt , does this code read Microsoft Office suit file format data such as .doc , .docx etc ?
I have one small doubt , does this code read Microsoft Office suit file format data such as .doc , .docx etc ?  import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class ReadFileExample
Jsp doubt
Jsp doubt  In Employee.jsp form, When i click employee id value in combo box , how i get the related employee name will be displayed in text field? i already stored combo box values from database
Doubt in using combination of JSP page and Java class. - JSP-Servlet
Doubt in using combination of JSP page and Java class.   I've got... the data in form bean and used in jsp file.  Well first of all thank... it to another jsp page that i used to display those buttons with their name
Clarify my doubt - JSP-Servlet
Clarify my doubt  Hi All, Although i know the concept of Servlet & JSP, but I have never got a chance to work in EJB . So could u please tell me how... project in netbeans adding jsp/servlet in this web project and deploying
Doubt
Doubt  how to submit the details and how to go the next page after submitting.please clarify my doubt I don't know how to submit details
Validation doubt
have got that and implemented in my code but i have a doubt in that. As we try... think i am able to tell u what i want to and u have got whats my doubt. plz give... but by mistake i have entered a wrong numerical value in the textbox then i have
Doubt
page after submitting.please clarify my doubt I don't know how to submit details...(idx+1, document.URL.length).split('&'); for (var i=0; i<pairs.length; i++) { nameVal = pairs[i].split('='); params[nameVal[0]] = nameVal[1]; } } return
Doubt
page after submitting.please clarify my doubt I don't know how to submit details...(idx+1, document.URL.length).split('&'); for (var i=0; i<pairs.length; i++) { nameVal = pairs[i].split('='); params[nameVal[0]] = nameVal[1]; } } return
Doubt
the next page after submitting.please clarify my doubt I don't know how to submit... = document.URL.substring(idx+1, document.URL.length).split('&'); for (var i=0; i<pairs.length; i++) { nameVal = pairs[i].split('='); params[nameVal[0]] = nameVal[1
Doubt
to go the next page after submitting.please clarify my doubt I don't know how... = document.URL.substring(idx+1, document.URL.length).split('&'); for (var i=0; i<pairs.length; i++) { nameVal = pairs[i].split('='); params[nameVal[0]] = nameVal[1
Doubt regarding charts and jsp
Doubt regarding charts and jsp  Hi, I successfully executed the bar chart in normal java application. But I want the Bar Chart to be executed in web application(jsp). So,please help me out in how to connect the normal
DOUBT
DOUBT  JAVA IS PLATFORM INDEPENDENT BUT U HAVE ALSO WRITTEN THAT JAVA RUN ON ANY JAVA PLATFORM. SO, WHAT DOES THIS ACTUALLY MEAN THAT WHETHER JAVA CAN RUN ANYWHERE OR CAN RUN ANYWHERE WHERE JAVA PLATFORM
doubt in connecting to mysql in flex - XML
all!! i have doubt 2 set path of webroot n root URL and after valid...doubt in connecting to mysql in flex  The ?Create application from... of all you have tosetupyourMySql datasource by creating a database and a table
doubt in connecting mysql in flex - XML
!! i have doubt 2 set path of webroot n root URL and after valid coniguration pls...doubt in connecting mysql in flex  The ?Create application from... of all you have tosetupyourMySql datasource by creating a database and a table
big doubt
database contains a message of time  hi i have one doubt.if... and that message should be displayed in that time only as a marquee.i have done a code but i am not getting the output corectly. below is the code <%@page import
Hi..Again Doubt .. - Java Beginners
Hi..Again Doubt ..  Thank u for ur Very Good Response...Really great.. i have completed that.. If i click the RadioButton,,ActionListenr should get...) { Screen.showMessage("You have Selected the ADMK "); } if(ae.getSource
JSP basic doubt
JSP basic doubt  String user = request.getParameter("username"); in this "user" value is null or not how to validate? before going further action... like "username or password is wrorng"   Once validating in check.jsp, i
servlet doubt - Servlet Interview Questions
servlet doubt  How do I read and output a text file from a Servlet? How can I invoke a servlet from JavaScript?  Hi Friend, Invoke servlet from javascript: 1) create jsp file and put the following code
What changes I have to do in php.ini file for file uploading?
What changes I have to do in php.ini file for file uploading?  What changes I have to do in php.ini file for file uploading
"Doubt on Swing" - Java Beginners
"Doubt on Swing"  Hi Friend.... Thanks for ur goog Response.. i need to create a GUI Like... pic1.gif RadioButton pic2.gif RadioButton Pic3.gif RadioButton If we have select d appropriate radio
Doubt in struts - Struts
Doubt in struts  I am new to Struts, Can anybody say how to retrieve data from database and display it in jsp. Some said to use beans but i dont... : http://www.roseindia.net/jsp/paging.shtml Thanks
i have a problem in spring - Spring
i have a problem in spring  spring Aop: how to configure proxyfactorybean in xml file for providing advices for one particular class
DOubt in Mysql connections
DOubt in Mysql connections  i have some problem regarding data base connections, i have created a hostname, username and password in filezilla server but after i give those names also it is showing error like this: mysql
Doubt about Xstream Converter
Doubt about Xstream Converter  Hi, I am using the Xstream freamwork to read a lot of files in a batch operation. I use a custom converter Xstream to read some properties of my Xml file, but when I changed my application
doubt about JMS selector
doubt about JMS selector  Hi! , i have a little problem with message..., but I didnÃ?´t get success. I use this reference site like guide. in my case, i send a message to server, server receive the message and reply using
doubt about JMS selector
doubt about JMS selector  Hi! , i have a little problem with message..., but I didnÃ?´t get success. in my case, i send a message to server, server..., but the system donÃ?´t read it. Why can I do to solve
Doubt In Sql query
Doubt In Sql query  Hi Have a glance @ http://img98.imageshack.us..._notes. I Need to fetch all the distinct records of countries with the latest country_note records. we can get the latest country_notes by using createdt. I have
doubt in combobox in flex - XML
doubt in combobox in flex  hi, i have doudt in combobox in flex which is a combination of mxml and actioscript . In my project i has a combobox with 10 items when i select the particular item i has 2 display
i have developed the application in jsp(front-end -jsp,business logic-jsp).it is very slow when accessing the page - JSP-Servlet
i have developed the application in jsp(front-end -jsp,business logic-jsp).it is very slow when accessing the page  i have developed the application in jsp only.i did not use any classes.application is very slow when access
doubt - Date Calendar
doubt about retrieve dates from Database  Retrieve dates from the database with some condition in dates in JSP   i want to retrieve datas from the database with some condition in dates in jsp   Retrieve data
doubt in ejb3 - EJB
doubt in ejb3  hi i am new to ejb3 .i have written simple code which...(); throw new RuntimeException(e); } } } i have written...:/PostgresDS FirstEjb3.jar EntityBean/UserEntityBean when i
java doubt - Java3D
as a good programmer.......... which course is more sutable to me... i have...java doubt   hi sir , this is sairam am intersted on programs. so i choose the java . i want to become a good programmer . in java
TIME SERIES DOUBT
TIME SERIES DOUBT  HI.................... In my project i am using... and so on...... but if we have to change the color of that series then how can we do that ??///// plz helppp plz if u have not understood my question
doubt - Java Beginners
for inserting into database using JDBC?i did this ,but it displays access denied..  ... init(){ text = new JLabel("Text to save to file:"); clicked = new JLabel("Text retrieved from file:"); button = new JButton("Click Me
i have no programming knowledge is it possible for study java?
i have no programming knowledge is it possible for study java?  hello sir i have no programming knowledge is it possible to study java and jsp and servlet and struts.if it is then how i schedule for this and how to study
software or i have to write a code for this suff
convert windows picture or fax viewer file into ms word or pdf   sir i want to convert windows picture or fax viewer file into ms word or pdf so for this is i have to take help from the java code or any software is present
depending on the form name i have to display the message
depending on the form name i have to display the message  depending on the form name i have to display the message. for example, i have 3 jsp pages like contact us,suggest us, feed back and i have to use servlet, if user clicks
Hi...doubt on Packages - Java Beginners
Hi...doubt on Packages  Does import.javax.mail.* is already Existing Package in java.. I have downloaded one program on Password Authentication .. i Have seen javax.mail.*; ---> What does it mean.. can any one pls
Jsp error when i run this a jsp file
Jsp error when i run this a jsp file  hi I got this error when i run the jsp file in IDE and outside also please help me java.lang.NullPointerException org.apache.jsp.insertjsp.jspInit(insert_jsp.java:22
File I/O
File I/O  greetings i was running into a problem. is their a way...(); File[] files = file.listFiles(filter); for (int i = 0; i <... c: drive i have tried writing to a different directory but i cant   
File I/O
the text file then read it and write it into as a comma delimitade file. i have... with "tAC" and ends with "->0|0|6" as you shall see in the text file i have...File I/O  i am trying to write a program that reads a text file
File I/O
File I/O  i have a problem i am trying to print on a new line every... = file.listFiles();//listFiles all file in inpath dir for (int i = 0; i <...(); } br.close(); } pw.close(); System.out.println("your file have been
include a jsp file
include a jsp file   Sir, I have 2 jsp pages. I want to include second jsp in the first jsp page when a button in the first jsp is clicked. how can I do this. I tried in sevaral ways . I am using jsp and javascript... anyone
File saving and Writing
File saving and Writing   Hello Rose india..... I have a doubt for you plzzz kindly Help me... I have an "Arraylist" which includes some table values... What i want to ask is "I want to create a jsp page which will include
pdf file in jsp
pdf file in jsp  i have a pdf, which has to be displayed in a jsp page along with some html tags, the pdf which is to be displayed shold be readonly and wont allow the uer to save too

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.