3,760 Topics
| |
[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 … | |
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 … | |
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 … | |
[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 … | |
| |
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 - … | |
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 | |
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 … | |
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 … | |
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 … | |
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... | |
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 … | |
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 ? … | |
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) … | |
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] … | |
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 … | |
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. … | |
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... | |
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 … | |
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 … | |
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. … | |
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 … | |
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> … | |
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 … | |
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. | |
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" + … | |
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 … | |
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] … | |
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 … | |
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 … |
The End.