3,760 Topics
| |
| |
hi, im doing a project on jsp..which is a file uploading program i have a file chooser and i want the file choosed by the user to be stored on my server. how should i do that.. please help me my code is given below--addphoto.jsp [CODE=JSP] <html> <head> <meta http-equiv="Content-Type" … | |
Hi, I was a beginner in java.I was trying to connect to database(oracle) with the deatails user:scott pass:tiger host string: PC0128166 with code as [CODE] Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); connection =DriverManager.getConnection("jdbc:odbc:abhi","scott","tiger");[/CODE] But i was getting the error as [CODE] Exception is ;java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-12560: TNS:protocol adapter error[/CODE] problem is the same … | |
I m having a typically prob...i know how to upload image/file using <input type="file"> to this i set enctye="mulitpart" while using this when i need to add some text field to take data and image form user i can not retrieve text value on next page to save it in … | |
Any one got hints how to do this? I got 3 drop down list initally all 3 contains 4 option A,B,C,D. After selecting A from 1stdrop down list,the 2nd and 3rd drop down list are left with B,C,D. After selecting C form 2nd drop down list,the 3rd drop down list … | |
I'm new to jsp and am writing some pages to be used internally (ie on our intranet) only. The problem is, I need to know the username of whoever uses the page without them having to go through a login page/popup. I don't require passwords, just the username. Does anyone … | |
[CODE] <html> <head> <script> function goSubmit() { document.frm.submit(); } </script> </head> <body> <form action ="view1.jsp" method="post" name="frm"> <table> <tr> <td> <input type="radio" name="rg" value="faculty" onClick="goSubmit()"/> </td> <td> <input type="radio" name="rg" value="date" onClick="goSubmit()"/> </td> <td> <input type="radio" name="rg" value="content" onClick="goSubmit()"> </td> </tr> </table> </form> </body> </html> <html> <head> <script> function goSubmit() … | |
can anyone help me? i'm getting the following error: java.lang.IllegalArgumentException: Null property value for 'revision' at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:693) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:741) at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:716) at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:192) at org.apache.struts.taglib.html.HiddenTag.doStartTag(HiddenTag.java:123) at org.apache.struts.taglib.nested.html.NestedHiddenTag.doStartTag(NestedHiddenTag.java:95) [COLOR="Red"]at /proposal/propAndRev.jsp._jspService(/proposal/propAndRev.jsp.java:1143) (JSP page line 667)[/COLOR] at com.orionserver[Oracle9iAS (1.0.2.2) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5458) at com.evermind[Oracle9iAS (1.0.2.2) Containers for … | |
I am an extreme newbie when it comes to JSP and I am really stuck. This is my code: [CODE]while (rst.next()) { id=rst.getString("ID"); nme=rst.getString("Name"); twn=rst.getString("Town"); cny=rst.getString("Country"); out.println("<tr>"); out.println(" <td width='10%'>"+id+"</td>"); out.println(" <td width='20%'>"+nme+"</td>"); out.println("<td width='10%'>"+twn+"</td>"); out.println("<td width='10%'>"+cny+"</td>"); out.println("<td width='10%'>Edit</td>"); out.println("<td width='10%'>Delete</td>"); out.println(" </tr>"); } out.println("</table>"); out.println("</center>");[/CODE] Where it says "edit" … | |
How Do i execute a jsp file placed on another machine on LAN.I have written my code in netBeans using Glassfish server..It will be helpful if i get a reply | |
i want to create a timer for my php page i created the page that only 20 second i want that the time should be as 00:00:20 (hh:mm:ss) plz help my scipt are.......................................................................................................... <tr> <!-- countdown script --> <td style="text-align:left;font-size:10pt;font-family:Verdana, Arial;">Time Left: <input type="text" name="seconds" size="3"> <script language="javascript" type="text/javascript"> var … | |
i have a jsp page with some fields ...i.e textfields n below that i have some 4 buttons named first,next,prev,last when i click on the button named 'first' i should get the first record from the database n if i click on the button named 'next' i should get the … | |
hi guys, im developing a search engine using servlet and jsp.how can we display the search results in the same webpage below the search bar.i dont want to use ajax and all. i want it in simple way....if anybody know please help me.... thank you | |
I search a lot of solution but neither is working. Can anyone help me with this storing the textarea from JSP into MySQL and retrieve it? Thanks a lot! [code]<html> <head> <% String ta1 = request.getParameter("ta1"); %> </head> <body> <form action="testing.jsp" name="form" id="form" class="form"> <textarea cols="10" rows="10" id="ta1" name="ta1"></textarea> <input … | |
I tired of solving this problem but believe I'm missing something. I'm not receiving values from request.getParameterValues of "mmsTitleAdded" Here is the process I'm using: This <tr> contains the MMSCategory list and onChange a javascript function is called which gets the the list of all the mmsTitles of that category: … | |
Hi how can I replace "null" from being displayed with an empty string in a textbox on the JSPs ..depending on textbox data availability.. I tried the code [CODE]<% String phone=userInfoObj..getPhoneno(); if(phone==null||phone.equalsIgnoreCase("null")) phone=" "; %> <td > <input type="text" name="phoneno" class="txtBox" value="<%=phone %>"></td> [/CODE] but still it displays null can … | |
| I am doing a servlet program that connects to a MSACCESS database,retrieves data and redirects the user to another page. I find the following error java.sql.SQLException: General error Login.java accesses esql.java which retrieves data from MSACCESS server. PLease help!!! My Servlet code: Login.java [CODE=java] import java.io.*; import java.sql.*; import java.io.*; … |
Hi guys! am new to this forum and this is my first thread :) am not sure if am posting at the correct forum, but its regarding servlets am doing a web application for 'online exam' using jsp, servlets and java bean. i've three serialized files holding my questions(questions.ser), options(options.ser) … | |
Hi, I have a web application using JBoss, Java and struts. I've managed to upload the file using struts, but is it possible to view the data from the uploaded file BEFORE inserting the data into database? or do I need to store them into a temp database first, then … | |
Difference Between dopost() and doGet()? | |
[CODE] <html> <head> <title> User Registration</title> <body bgcolor="000000"text=ffffff> </head> <table width="20%"height="50%"border="2"> <div align="center"> <table> <h1>User Registration<h1> <form> Username: <input type="text"style="color: #ffffff; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72a4d2;name="username"size="30" /><br><br> Password: <input type="text"style="color: #ffffff; font-family: Verdana; font-weight: bold; font-size: … | |
[code=jsp] st.executeUpdate("update submittable set status='yes' WHERE compid='"+<%=request.getParameter("id")%>+"'"); [/code] can u rectify it ..i am having problem to solve it its urgent | |
I have a jsp page which is showing data in that page from DB.there is also a facility to show data in excel file.So there is a link to import the data in excel file. I have noted down that url by pointing the cursor to that link that is … | |
I am passing a message using text area in html file. In the message file, let say there are three lines. when I pass it to jsp page. All three lines appear as a single line. How can I separate this single line into original three lines please? thanks in … | |
hi am new to jsp i hav a situation i hav a listbox it contains 4 values [s,a,r,d] the moment s value is selected from the list 4 fields will be unlocked what i want is i want the listbox to display only one value[s] if the 4 fields which … | |
Hello there, I have a JSP page that has a couple of images in, when I type the address of the JSP directly in my browser the page loads, with images and all. But when I go the page, through my servlet [RequestDispatcher.forward()] the page loads but the images are … | |
I am trying to pass multiple values to a crystal report using java and jsp pages. I can get it working using single values but I need to pass multiple values that are comma delimited or something along that line. I pass a toDate a fromDate and userName. I need … | |
hi frds in my proj, a jsp file has prod type (either prod or non prod) if we select prod it will display prod related items, if not it will display non production item. but i want both to be displayed at a time. action class: [CODE] [B] ArrayList [U]prodNonprod … | |
Hello everyone i looking forward to learn j2ee using Oracle 10g platform ... anyone have Tutorials for this. i'd be very thankful for this help. hint..> i use jdeveloper thanks in advance |
The End.