Hello ,
I have 3 textboxes(username,password, dept) of the jsp page and 2
buttons(call,submit).
Onclick of call btn Department.jsp opens and onclick of radiobutton
the deptcode
is displayed in dept textbox(third textbox). I have disabled dept
textbox so that user cannot enter any value.
In this textbox by default null is displayed.
<TD>DEPARTMENT</td>
<td>
<INPUT TYPE="TEXT" NAME="department" value=<%=s %> disabled >
<input type="button" value="call" name="deptusermasteradd"
onclick="userdept();">
</TD>
Onclick of submit button the values from 3 textboxes are inserted
into database
2 problems are arising one during inserting and other while filling
the textboxes.
1> when I click submit for insertion in database
I get the following error ( related to dept textbox)
DEPT : null Errorjava.lang.NullPointerException
(if dept textbox property is not disabled value can be inserted into
database)
2> I have entered value in username and password textbox and then
click call btn and select the appropriate radio btn and
the dept code is displayed in third textbox, but at the same time the
value from the other 2 textboxes vanishes.
I have search but couldn't get the solution,Your help is required, if
any one could send code will be helpful.
Thanks
Savy
|
|
0
|
|
|
|
Reply
|
savita.raskar (11)
|
4/25/2007 11:32:27 AM |
|
savy wrote:>Hello ,>> I have 3 textboxes...*Yes*. We heard you the first time..<http://www.javakb.com/Uwe/Forum.aspx/java-programmer/35420/jsp-textbox-and-Errorjava-lang-NullPointerException>-- Andrew Thompsonhttp://www.athompson.info/andrew/Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200704/1
|
|
0
|
|
|
|
Reply
|
Andrew
|
4/25/2007 11:59:29 AM
|
|
savy wrote:>> Hello ,>>>> I have 3 textboxes...> Andrew Thompson wrote:> *Yes*. We heard you the first time..> <http://www.javakb.com/Uwe/Forum.aspx/java-programmer/35420/jsp-textbox-and-Errorjava-lang-NullPointerExceptionAnd multiposted both message to comp.lang.java.databases!C'mon, "savy" or "savita", a little netiquette, please.
|
|
0
|
|
|
|
Reply
|
Lew
|
4/25/2007 12:57:03 PM
|
|
Why, they have a homework assignment do do and he can't be bother to learn it themselves <grin>Lew wrote:> savy wrote:>>> Hello ,>>>>>> I have 3 textboxes...>>> Andrew Thompson wrote:>> *Yes*. We heard you the first time..>> <http://www.javakb.com/Uwe/Forum.aspx/java-programmer/35420/jsp-textbox-and-Errorjava-lang-NullPointerException >>> > And multiposted both message to comp.lang.java.databases!> > C'mon, "savy" or "savita", a little netiquette, please.
|
|
0
|
|
|
|
Reply
|
Roy
|
4/26/2007 5:20:06 AM
|
|
Lew wrote:> savy wrote:>>> Hello ,>>>>>> I have 3 textboxes...>>> Andrew Thompson wrote:>> *Yes*. We heard you the first time..>> <http://www.javakb.com/Uwe/Forum.aspx/java-programmer/35420/jsp-textbox-and-Errorjava-lang-NullPointerException >>> > And multiposted both message to comp.lang.java.databases!> > C'mon, "savy" or "savita", a little netiquette, please.Perhaps someone should propose a new newsgroup for people like Savita and his/her annoying friends.Ladies and gentlemen, I give you: comp.lang.java.homeworkThen the rest of us can killfile it.David HarperCambridge, England
|
|
0
|
|
|
|
Reply
|
David
|
4/26/2007 6:29:27 AM
|
|
|
4 Replies
115 Views
(page loaded in 0.089 seconds)
Similiar Articles: I want to display output from 10 SQL queries in JSP page - what is ...I want to query SQL database tables to gather data on lab system and services on an on-going basis, etc. I want to display all my gathered data on sin... get static variable from class into JSP tag scope - comp.lang.java ...Hi All,I have a static variable in a class that I wish to share with some ofmy JSP code. Can I use the (or any tag?) to get that mapinto the scope of... Generating excel sheets through JSP - comp.lang.java.programmer ...Hi, I have previously created excel sheets in JSP in weblogic, and i get the result accurately. I had used; at the top of the page and, in the head ... Problem in Loading JSP - comp.lang.java.programmerhi friends, my jsp never had any problem for small amount of data, butwhen the amount of data increases the jsp fails to load complete dataonly a spec... Export HTML table inside JSP to Excel using Java - comp.lang.java ...When I generate this table inside this JSP page, it will offer abutton for user to click if he/she decides to export the HTML tableinto an Excel sheet... Identifier Expected Error in JSP page - comp.lang.java.programmer ...Unique computer identifier in Java? - comp.lang.java.security ... printing unique values in 4th field - comp.lang.awk Unique computer identifier in Java? - comp.lang ... Passing checkbox values from one JSP page to another - comp.lang ...Hi, I'm trying to get user selections (using checkboxes) on one JSP page(A.jsp) and pass them on to another page. So I have one page with a list of... Programming using JSP and Tomcat: cannot be resolved to a type ...I'm aware that this is a popular error: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 19 in the... How to un-escape HTML tags in JSP/Struts - comp.lang.java ...Hi, I receive from the database HTML formatted Strings like that: Currently results Using the struts tag, I expect to display it on the generated J... window.document.execCommand("SaveAs" - comp.lang.javascript ...OK here is my quandry .... I have a jsp generated page that if i go in and do a file "save as" it will save the html, complete just fine. First probl... JavaServer Pages - Wikipedia, the free encyclopediaJavaServer Pages (JSP) is a technology that helps software developers create dynamically generated web pages based on HTML, XML, or other document types. Released in ... JavaServer Pages TechnologyJavaServer Pages (JSP) technology provides a simplified, fast way to create dynamic web content. 7/30/2012 5:09:39 AM
|