4,248 Topics

Member Avatar for
Member Avatar for zyaday

Why is this code not working???? [CODE] <c:if test ="${sessionScope.qCounter == 0}"> <!-- {((Quiz1) (sessionScope.quizVal)).correctAnswer(sessionScope.boxval)) == 'true'}">!--> <br><font size='3' color = 'red'>Your last answer was not correct! Please try again!!</font><br> </c:if>[/CODE] qCounter and quizVal are a session scope attributes I declared like . [CODE] HttpSession s = request.getSession(); s.setAttribute("quiz", new …

Member Avatar for Stefano Mtangoo
0
83
Member Avatar for Santho786

how to avoid validation summary when required field validator is disabled..i am disabling required filed validator from java script...eventhough i disabled it ...error message is shown in validation summary. I am facing the error... Explain how to go ahead ... i need to go ahead with jsp, javascript, not with …

0
213
Member Avatar for schender

Hello, i tried too long so i describe my problem here. im really desprate. I want to link from JSP1.jsp to JSP2.jsp with a simple <a href=...> statement This link should also have an identification number. this is my JSP1.jsp: [CODE] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC …

Member Avatar for javaAddict
0
227
Member Avatar for sam.wonghk

Hi All, I am writing jsp to export data in excel format to user. An excel could be recieved on the cient side. However, since there's large amount of data, and I don't want to keep it in the server memory and write them at the end. I try to …

Member Avatar for sam.wonghk
0
106
Member Avatar for pradeepktg

Hi All, I have developed a web application using jps. I have a user pages, which can be accessed after entering login credentials. If a user tries to go the a certain page directly without logging in, it directs to login page, this works perfectly in all browsers except mozilla. …

Member Avatar for pradeepktg
0
106
Member Avatar for damith.igv

I want to add a chat room for my web site,I have used jsp/servlet technology to develop my site, I have heard that like "jaxter" or something, I don't know how to spell it. Appreciate if someone can help me for this.

Member Avatar for peter_budo
0
41
Member Avatar for javanewbee

[code] Statement statement = connection.createStatement(); String frmdate = request.getParameter("date1"); String todate = request.getParameter("date2"); SimpleDateFormat df = new SimpleDateFormat("DD/MM/YYYY"); //Date frmdate = df.parse("strdate1"); //Date todate = df.parse("strdate2"); try { // java.util.Date date3 = df.parse(frmdate); // java.util.Date date4 = df.parse(todate); java.util.Date ufdate1 = df.parse(frmdate); java.util.Date utdate2 = df.parse(todate); java.sql.Date fs1 = new …

Member Avatar for javaAddict
0
173
Member Avatar for pradeepktg

Hi All, How to store the resultset value in a array? I have a field "prodvalue" in DB Table, now i want to store this "prodvalue" in array. Am able to print the values of "prodvale" in jsp, but not able to store in array. Pl. find below the code, …

Member Avatar for pradeepktg
0
7K
Member Avatar for helpmepassclass

I'm doing a web application for one of my projects in my computer class. I have been using Apache 6.0 as my server and SQL for my database. I'm am having trouble with getting my create form which is in the view form to save with is controlled by my …

Member Avatar for ddempsey96
0
225
Member Avatar for patel_amul

Hi there? Can anyone plz tell me that how to connect html forms/pages to m.soft acess database?

Member Avatar for peter_budo
0
90
Member Avatar for sau_shilpa

Hi, When I try to connect a jsp page with MS Access database, it gives an error "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified " What does that means?

Member Avatar for patel_amul
0
241
Member Avatar for StaticX

Hi, Like the title says I am having a little difficulty connecting a JSP page to database.Here is my code containing the setDataSource, I am pretty sure that this is whats causing the problem. [CODE] <%@ taglib prefix="sql" uri="htpp:/java.sn.com/jsp/jstl/sql" %> <sql:setDataSource var = "labdb" scope = "session" driver = "sun.jdbc.odbc.JdbcOdbcDriver" …

Member Avatar for peter_budo
0
195
Member Avatar for sharathk60

i am calling applet jar file like this [code] out.println("<APPLET code = com.Sample.class " + "codebase = /WebContent/WEB-INF/" + "archive = SamplePassword_signed.jar " + "WIDTH = 200" + "HEIGHT = 350>" + "</APPLET>");[/code] but it gives me a error that class path : class com.Sample.class not found. i have stored …

Member Avatar for sharathk60
0
273
Member Avatar for asadfx

I have deployed a simple web service using Apache Tomcat 6.0 and Axis 1.4 in Windows XP. Now the server is very simple: [CODE] import java.io.*; import java.util.*; /* HelloWorld.java This is our web service */ public class HelloWorld { public String getHelloWorld(String id) { String retName=""; try { File …

0
74
Member Avatar for Stefano Mtangoo

Hi all, I know many here have been working on big project and can help me on this. We will be having a project to do and we are more than 3 people. We will be working at different times and places(We are not employed developers per se Just hobbyists). …

Member Avatar for Stefano Mtangoo
1
163
Member Avatar for ndiiie

Hi, I am a newbie here, but I want to ask several things: 1. What is the advantage and disadvantage of using JSF than any other frameworks, such as Spring, Struts, GWT, etc? 2. Which java framework would best fit for building an airline reservation system?

Member Avatar for parry_kulk
0
80
Member Avatar for madi-lin

I am a beginner when it comes to jsp, so sorry if the code is really bad. I need to be able to convert images to and from byte[] to store and display images, but I am not sure how to do it. I have a form first for uploading …

Member Avatar for jwenting
0
889
Member Avatar for zerioni

Okay, fairly straightforward mysql insert from a form, the insert works fine but i wanted to have it check for duplicates first and kick out an error if the name already existed in the table. That said, I worked out a few errors in the jsp, and have it down …

Member Avatar for zerioni
0
6K
Member Avatar for nickbeare

Hi, I am a JSP newb. I have been scratching my head over this for a while. My task: to construct a POST and to read the response that comes back. I have been provided with some kits that illistrate how to do the job in ASP, ASP.NET and PHP, …

Member Avatar for ~s.o.s~
0
149
Member Avatar for vijaysdon

How can we pass the variable value from javascript to jsp page at runtime? I am getting this problem when i want to display the second drop down box according to the selected item in the first drop down. For ex: Lets consider we have a drop down field named …

Member Avatar for peter_budo
-2
2K
Member Avatar for skyz09

Let me explain the scenario I'm in. Currently my company has a desktop set up so clients can individually log in and test our data processing software. This is currently in a linux environment for ease of management. What I'm looking to do is possibly set up a web app …

Member Avatar for jwenting
0
139
Member Avatar for sharathk60

Please help to come to from this problem: i had written a sample code to display Hello and imported as jar files then created new dynamic web project and using a hello.jsp page i am calling the applet class but its not display the applect please give me the solutions: …

Member Avatar for sharathk60
0
337
Member Avatar for Stefano Mtangoo

I have done a lot of PHP but never JSP. I have checked tutorial but not gone too far. I see there are Java beans and some servlets which I'm zero brain at. So I have two questions: 1. Where to read a concise tutorial (Not too detailed I mean) …

Member Avatar for Stefano Mtangoo
0
188
Member Avatar for Stefano Mtangoo

I was looking for Jump start tutorial for JSP/MySQL. I found Peter budo's sticky. Since I wanted to learn it even offline I decded to put it in word Doc. I will nice format it if I get time and make PDF out of it. However I know some might …

Member Avatar for Stefano Mtangoo
1
147
Member Avatar for veroniclake

hi, in my registration page i am trying to get the gender of the user through radio button. i know how to use <s:textfield but i am don't know how to use <s:radio in my jsp page. please help me.

0
64
Member Avatar for sandydeb

Hi All, I am supervising a project on JSP. The problem is JSP is not compiling in IE6, the coding environment is running through NetBeans. The version of the browser is as per project requirement. FYI- the DB is PostGreSQL. Please help me

Member Avatar for peter_budo
0
35
Member Avatar for shella

Hi all. I'm new with jsp and i'm just looking for create a login solution. I use a mysql database and what i'm looking for is what follows: Make a query to my sql database and then insert the output of one field in a variable. I need this variable …

Member Avatar for peter_budo
0
426
Member Avatar for aks_1

some days back it was working but i don't why suddenly my java program is not compiling. i have set classpath=".;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet.jar". c:\> javac -classpath HowdyServlet.java it shows error in import java.servlet; statement and likewise in all HttpServlet lines too. or i have tried the other way …

Member Avatar for aks_1
0
61
Member Avatar for adam2009

Hello all, I wrote a jsp page. It has a form with a submit button that sends the data to some algorithm. I would like the submit button to load a "please wait" html. After the algorithm is done - that "please wait" page will be auto redirected to a …

Member Avatar for javaAddict
0
100
Member Avatar for sendilkumar06

Please let me know how to fix this. description The server encountered an internal error () that prevented it from fulfilling this request. 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:141) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause java.lang.ClassNotFoundException: org.apache.jsp.one1_jsp java.net.URLClassLoader$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(Unknown Source) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134) org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597) …

Member Avatar for peter_budo
0
614
Member Avatar for vitroblue

i'm not quite sure this is the right forum to post this... please forgive me... i'm making a servlet it takes info from an html form and uploads it to a data base using jdbc that works just fine each time i run it, i get a console report that …

Member Avatar for javaAddict
0
89
Member Avatar for somilbansal

I am tryin to embed youtube in my webpage. I am a starter so i might be doing something wrong here. can any please help me on this. I have included the swobject. [code=html]<html> <script type="text/javascript" src="swfobject.js"></script> <div id="ytapiplayer"> You need Flash player 8+ and JavaScript enabled to view this …

Member Avatar for peter_budo
0
89
Member Avatar for Ghada Ibrahim

Hello .. i need ur help i have this problem .. i have this in a jsp page : [code]<jsp:useBean id="rdf" class="test_rdfa.NewClass"> </jsp:useBean> String id=(String)session.getAttribute("id"); String url= request.getParameter("wburl"); rdf.readGrddl(url,id); [/code] and this is the NewClass.java: [code] import com.hp.hpl.jena.grddl.GRDDLReader; import com.hp.hpl.jena.rdf.model.*; import java.io.*; public class NewClass { Model model = null; …

0
64
Member Avatar for p_jain

i want to connect jsp with mysql , plz send me the connectivity code or any connectivity program...............

Member Avatar for jwenting
0
99
Member Avatar for sbhavan

Hi everyone, I have a task to generate reports in my project. I am using JasperReports for the reporting purpose and generating the reports using servlets. The reports should be generated and displayed as pdf file in the client's browser window. Now every thing is working fine except the no …

Member Avatar for jwenting
0
78
Member Avatar for debest24

My project is digital attendance register for teachers. I wanted to display attendance onto the table datas of my jsp page. It will be fetched from a database and displayed. The requirement is to save them in a bean and pass that bean through hashmaps. And then display the attendance …

0
43
Member Avatar for lak123

How do I use hour glass in java script? I have a jsp page, I'm calling in the javascript when I click the submit button like below. [CODE]function show(table) { document.forms["form1"].action ="employee.do?"; document.forms["form1"].submit(); document.forms.style.cursor = 'wait'; }[/CODE] [CODE]jsp Page: <html:form action ="/doemployee" method ="post"> <table> <tr> <td> <input type="button" name="emp" …

Member Avatar for fxm
0
207
Member Avatar for singju

Hello Everybody, I have stored images in ms access. The field name is "image" and the data type is OLE Object. I have stored an image with ".bmp" extension. In the database in the record it is showing "Bitmap Image". Now I am using JSP to retrieve this image and …

Member Avatar for parry_kulk
0
259
Member Avatar for aks_1

i am trying to deploy a .war file on my local server using sun microsystem's application server. the problem i am having is when i try to launch it in the address bar as: [url]http://localhost:8080/HelloServlet/[/url] it shows the [B]directory listing for/[/B] text on the screen. but when i insert /hello …

Member Avatar for jwenting
0
123
Member Avatar for tyson.crouch

G'day, I have the following java code to get all of my data from the DB, and is being passed into a vector in my jsp page. My question is, how do i iterate through the vector in jsp? [CODE] Vector roomDetails; Vector hotel; ... public Vector getHotelRooms(int hotelID){ int …

Member Avatar for javaAddict
0
99
Member Avatar for SUNNY26

I am getting one error in compilesation of servlet progrm.the error is package import javax.servlet.*; does not exist.how to rectify my problem

Member Avatar for thabotharshan
0
211
Member Avatar for Robot1199

i need a little help here, what i need to do is create a ticket purchasing page where once the user has made a selection he/she is prompted for amount .And to pay that amount buttons are used .every time a button is clicked the amount reduces. I also need …

0
25
Member Avatar for vishalsnc

Cn anybody pls help me.. i have develoed application which is using JSP and servlet bt i want to make it acc to MVC2..

Member Avatar for chauhan_vipul87
0
189
Member Avatar for SwapnilDD

Hi.. I am trying to connect to my database (MySQL) within a JSP page. The is compiling without any error, but still I am not getting any output. Can anybody help?? The code is as follows: [CODE] <%@page contentType="text/html" pageEncoding="windows-1252"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><title>Enter …

Member Avatar for SwapnilDD
0
2K
Member Avatar for aks_1

i want to compile .jsp file. i have downloaded tomcat 6.0. and set environmental variables e.g. set PATH="C:\Program Files\Java\jdk1.6.0_10\bin";%PATH% set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10 set CLASSPATH=.;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\jsp-api.jar;C:\Program Files\Apache Software Foundation\Tomcat\common\lib\el-api.jar;C:\Servlets+JSP;..;..\.. i hava searched pages related to configuring web.xml, context.xml etc but i am still unable to load …

Member Avatar for aks_1
0
145
Member Avatar for p_jain
Member Avatar for javaAddict
-1
62
Member Avatar for puk

Hi, I have written the following code to download a file from a MySql database using a Servlet.The problem i have is that i havnt done it right. Can someone please point me in the right direction. Any help will be greatly appreciated. Thank you for your help. [code=java] import …

0
75
Member Avatar for indu_ss4

Hi! i'm developing a web application in jsf. There are files that gets opened from the server when the user click the name of the file. It works perfect when many users access the same file at different time. But if more than one user access the same file or …

0
74
Member Avatar for rajkumarsrini

Hi All, I am new to JSP. From my JSP application i will be uploading some images these images should be encrpted when they are uploaded. If any one opens the image which was uploded through my JSP application, they should not be able to view the image. The images …

0
52
Member Avatar for oggiemc

Hi people, I want to have an if statement in my servlet that if no results are found from database i print out an error to a html page. Im not to sure how to do this though..See my attempt in code below, can someone tell me what im doing …

Member Avatar for javaAddict
0
106

The End.