4,248 Topics

Member Avatar for
Member Avatar for parthi04
0
33
Member Avatar for ajijacobm

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" …

Member Avatar for peter_budo
0
119
Member Avatar for koduruabhinav

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 …

Member Avatar for jwenting
0
135
Member Avatar for coervivekmca

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 …

Member Avatar for javaAddict
0
70
Member Avatar for dreamer14

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 …

Member Avatar for javaAddict
0
232
Member Avatar for Sybre

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 …

Member Avatar for masijade
0
87
Member Avatar for sasi_88

[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() …

Member Avatar for sasi_88
0
112
Member Avatar for scranton

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 …

Member Avatar for scranton
0
442
Member Avatar for Chrissie1185

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" …

Member Avatar for javaAddict
0
145
Member Avatar for roshanchugh

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

Member Avatar for peter_budo
0
112
Member Avatar for gazzy1

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 …

Member Avatar for peter_budo
0
162
Member Avatar for samuelhenry

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 …

Member Avatar for peter_budo
0
365
Member Avatar for ajuv_001

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

Member Avatar for ajuv_001
0
118
Member Avatar for Haclon

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 …

0
78
Member Avatar for raul8

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: …

Member Avatar for ~s.o.s~
0
168
Member Avatar for maria_megha

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 …

Member Avatar for maria_megha
0
184
Member Avatar for vijiraghs

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.*; …

Member Avatar for vijiraghs
0
722
Member Avatar for Seshakumar

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) …

0
81
Member Avatar for demented_gurl

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 …

0
146
Member Avatar for mani2
Member Avatar for churva_churva

[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: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text"style="color: #ffffff; font-family: Verdana; font-weight: bold; font-size: …

Member Avatar for javaAddict
0
178
Member Avatar for coervivekmca

[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

Member Avatar for masijade
-1
64
Member Avatar for lorettah
Member Avatar for manish250

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 …

Member Avatar for ~s.o.s~
0
229
Member Avatar for myauk

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 …

Member Avatar for myauk
0
70
Member Avatar for pramod lekkala

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 …

Member Avatar for javaAddict
0
74
Member Avatar for Dean_Grobler

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 …

Member Avatar for javaAddict
0
1K
Member Avatar for brynFlew

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 …

Member Avatar for brynFlew
1
149
Member Avatar for gold2011

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 …

Member Avatar for masijade
0
203
Member Avatar for ahmed_fawzy

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

Member Avatar for Ezzaral
0
73
Member Avatar for boifang

[CODE] <% String userName = request.getParameter("username"); String password = request.getParameter("password"); String rm_me = request.getParameter("rm_me"); String rm_uname = request.getParameter("rm_uname"); if (userName != null && password != null) { if (rm_me != null) { Cookie ckU = new Cookie("username", userName); Cookie ckP = new Cookie("password", password); response.addCookie(ckP); } else { if (rm_uname …

Member Avatar for boifang
0
88
Member Avatar for stephy1

hi, I have a browse button for sending single image with other text inputs in jsp type I have chosen Multipart-Form data . I got 'parameter not set error' for blob field. I am using MySql database. I am using DefaultFileItemFactory clss [CODE] FileItemFactory factry= new DefaultFileItemFactoy(); FileUpload upload= new …

0
55
Member Avatar for Scots123

I am building a new jsp template and have been asked to make sure that the header elements eg two images at the right and left hand side are content manageable from our cmc so that users can put different images in there and reuse the template. I have set …

0
32
Member Avatar for venkatnams

[code] <%! public String haversine(String lat1,String lon1,String lat2,String lon2) { int r = 6371; String val=null; double dlat=((Double.parseDouble(lat2))-(Double.parseDouble(lat1))); double dlon=((Double.parseDouble(lon2))-(Double.parseDouble(lon1))); double a = (Math.sin(dlat/2)*Math.sin(dlat/2))+(Math.cos(Double.parseDouble(lat1))*(Math.PI/180))*(Math.cos(Double.parseDouble(lat2))*(Math.PI/180))*(Math.sin(dlon/2)*Math.sin(dlon/2)); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); double d = r * c; if(d>1) val= ((d)) +"km"; else if(d < =1) val = ((d*1000)) +"m"; return …

Member Avatar for javaAddict
0
174
Member Avatar for shruti_lively24
Member Avatar for masijade
0
61
Member Avatar for haresh2906

I am getting an Error that Glassfish server starts fails.....I dont knw why? Here is my server file.. Mar 4, 2011 5:57:08 PM com.sun.enterprise.glassfish.bootstrap.ASMain main Welcome to Felix ================ INFO: Launching GlassFish on Felix platform INFO: Perform lazy SSL initialization for the listener 'http-listener-2' INFO: Starting Grizzly Framework 1.9.18-o - …

Member Avatar for ~s.o.s~
0
253
Member Avatar for haresh2906

I am getting Error: Jasper Exception for "com.microsoft.jdbc.sqlserver.SQLServerDriver" I have included sqljdbc4.jar in lib folder of tomcat serve bt still getting an error I dont know where to place sqljdbc4.jar...i am getting an error..so plz help me

Member Avatar for haresh2906
0
87
Member Avatar for javaProgramer

Hi all, I have simple web application which use Form base authentication, it is running well on the local server however when I upload it to my space on remote server there is a mistake appears when I try to access to protected area. message of error: [CODE] Not Found …

0
53
Member Avatar for yapkm01

I'm newbie to JSF and i am confused on this portion written by Cay Horstmann in the Core Java server faces: ======================================================================================= The code: [CODE]public class QuizFormBean { private UIOutput scoreComponent; private UIInput answerComponent; // PROPERTY: scoreComponent public UIOutput getScoreComponent() { return scoreComponent; } public void setScoreComponent(UIOutput newValue) { scoreComponent …

0
142
Member Avatar for Dean_Grobler

Hello there, This is just a quick question. You know that servlets respond by printing out dynamic HTML code? Well, is it possible that instead of doing that, the servlet just redirects back to the HTML form that send the servlet the Form data in the first place? myHtml(sends form …

Member Avatar for Dean_Grobler
0
290
Member Avatar for ruchi18

hi.. I just want to know is there any way to use flash image in java i mean i f i have java servlet web form and i want to design this form on flash image then how can be it possile please help...

Member Avatar for ruchi18
0
119
Member Avatar for cyiu1110

My aim is getting client's AD login ID for authentication. I tried to use <%String remoteUser=request.getRemoteUser();%> but it returned null value. Actually, I have found a way to solve it from the internet. And it is about doing something on tomcat's file "\conf\server.xml". However, there is no clear step describing …

0
105
Member Avatar for samuelhenry

hi!!! i have got a small problem wid an sql query that i m writting in jsp the query is real simple... but i dont know y m not gettin it... [CODE] q="select '" +col+ "' from '" +ta+ "'"; Class.forName(sq.getName()); cn=DriverManager.getConnection(sq.getConnstr(),sq.getUser(),sq.getPwd()); st=cn.prepareStatement(q); out.println("before query1"); rst=st.executeQuery(); [/CODE] [CODE] q="select ? …

Member Avatar for rockersmith
0
180
Member Avatar for purnendu1719

description The server encountered an internal error () that prevented it from fulfilling this request. [code=text]exception org.apache.jasper.JasperException: Unable to load class for JSP org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:599) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) com.ochre.ewash.core.web.filters.EwashReportFilter.doFilter(EwashReportFilter.java:70) com.ochre.ewash.core.web.filters.EwashAuthenticationFilter.doFilter(EwashAuthenticationFilter.java:54) root cause java.lang.ClassNotFoundException: org.apache.jsp.FileUpload_jsp java.net.URLClassLoader$1.run(URLClassLoader.java:200) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63) org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) com.ochre.ewash.core.web.filters.EwashReportFilter.doFilter(EwashReportFilter.java:70) …

0
77
Member Avatar for goyalastha

hi i am running a program using jdom. It compiles successfully but doesnot run. It gives an error "C:\ProgramFiles\Tomcat\tomcat-5.5.9\webapps\jsp-examples>java KmlSample Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/Content Caused by: java.lang.ClassNotFoundException: org.jdom.Content at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not …

Member Avatar for peter_budo
0
122
Member Avatar for josiefrut

Hi guys, I need your help. I was trying to update a certain data in my database using jsp and servlet. However i can't figure out why it wouldn't update the data. :( I'd greatly appreciate it if you could check my codes below. THANKS MUCH! Here's my jsp [CODE] …

Member Avatar for josiefrut
0
2K
Member Avatar for sasi_88

i have the table with 100 records at the first time the page loading i want to display only 10 records and the more link if the link is clicked display 10 more records the records are populated from the oracle database i don't know how to use the oracle …

Member Avatar for masijade
0
63
Member Avatar for varia

Hi, everyone, First of all, I wasn't sure where to put this tread so I apologize if it is in the wrong place... I am developing a web application using jsp, java and Tomcat, so I figured this is as good place as any... I am in need of help. …

Member Avatar for varia
0
188
Member Avatar for coervivekmca

i need to manage post query with images attachment for different-2 users ....so how can i manage it..... while upload any file i am having access denied error..plz tell me and send me specific link...

-1
96
Member Avatar for samuelhenry

jsf page: [CODE] <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <f:view> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>JSP Page</title> </head> <body> <h:form> <center> <br><br><br> <h:dataTable id="dt1" value="#{tableBean.perInfoAll}" var="item" bgcolor="#F1F1F1" border="10" cellpadding="5" cellspacing="3" rows="4" width="50%" dir="LTR" frame="hsides" rules="all" summary="This is a …

0
133

The End.