3,760 Topics

Member Avatar for
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
87
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
53
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
31
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
171
Member Avatar for shruti_lively24
Member Avatar for masijade
0
58
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
250
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
83
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
52
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
288
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
115
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
102
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
177
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
69
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
60
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
183
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
93
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
128
Member Avatar for Alex_

How can this be... Another odd thing is that the error appears on the page but no trace in console This is my code [code=java] package actions; import com.opensymphony.xwork2.ActionSupport; import logic.*; import logic.organizations.Project; public class CreateProjectAction extends ActionSupport{ private Project project =null; private String message = "NULL"; public void setProject(Project …

Member Avatar for peter_budo
0
645
Member Avatar for annttiigs

Hi, I have a jsp page running under jboss 4.2.2 server. The structure for the page is like : include head ( head is written on another page, like masterpage in aspx. ) <body> ( codded in main page ) include foot ( foot is also written in another page. …

Member Avatar for javaAddict
0
407
Member Avatar for yohoprashant

I was trying to build an autocomplete text box in jsp page using Jquery plugin. But i am facing problem. Whenever i was trying to display the list, it is not displaying. When i was requesting for the jsp list page from JQuery Autocomplete, System.out is working, it is giving …

Member Avatar for MIENORCO
0
674
Member Avatar for stephy1

This is my code. [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Registration Page</title> </head> <body background= "bg8.jpg" width="1000" height="1000" alt="work1"> <form action="clientlogin.jsp"><table> <tr> <td> Company Name</td><td> <input type="text" name="cname" value="" /></td> </tr> <tr> <td> Password </td><td><input type="password" name="pwd" value="" /></td> </tr> <tr> <td>Location of company </td><td><input type="text" name="location" value="" /></td></tr> …

Member Avatar for ~s.o.s~
0
143
Member Avatar for samuelhenry

This is a database dictionary page which has two drop-down boxes. [COLOR="Red"]first [/COLOR]- for the tables in the database(it displays all the table names in the dropdown. Second - for the columns of the table selected in the previous dropdown n then on selecting the column name it should display …

Member Avatar for samuelhenry
-1
1K
Member Avatar for Hakoo

Hello all, I have created Servelets which are used by midlets and having Database in MySQL. I have deployed servelets in Apache Folder. but now question is how to setup Database? Thanking You, Hakoo S Desai.

Member Avatar for peter_budo
0
177
Member Avatar for coervivekmca

i am having error in following code else condition not working(insert other user) plz fix it and reply it [code="jsp"] <% String dcolpoid = "null"; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); //182.50.131.83 182.50.131.34 String sURL = "jdbc:mysql://localhost:3306/maxcaredb2011"; String sUserName = "root"; String sPwd = "password"; Connection con1 = DriverManager.getConnection(sURL, sUserName, sPwd); out.print("connection" + …

Member Avatar for masijade
0
134
Member Avatar for coervivekmca

Does anyone know how to use "relay-hosting.secureserver.net" to send mail using jsp code .....for godaddy............ I m having access denied error on port 25...so they suggest me to use relay-hosting.secureserver.net .........i dont know how to use it to send mail..plz tell me any thing about it and send me code …

Member Avatar for masijade
0
87
Member Avatar for brynFlew

Hello, i have been stuck on this for a while and is costing me alot of time. Can somebody please help me understand why in the eclipse ide under the project properties options, J2EE Module Dependencies, when i try and work with jar files placed under the file path [COLOR="Red"]\WebContent\WEB-INF\lib[/COLOR] …

Member Avatar for ~s.o.s~
0
76
Member Avatar for Dean_Grobler

Hello there, I am trying to access Array elements in another class within my JSP and then parsing them into <select> tags. I'm getting 2 errors though stating that it cannot find the class "PopulateMainScr". Here is my PopulateMainScr class: [CODE] package ContactKeeper; import java.io.*; import java.sql.*; import java.util.*; public …

0
59
Member Avatar for Zak84

Hi Friends, I have a web app developed using JSP and running under Tomcat Apache. The application works fine but when a big load of users is logged in at the same time, some users will get other user's session (the user is also currently logged in). What can be …

Member Avatar for masijade
0
41

The End.