3,747 Topics

Member Avatar for
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
419
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
60
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
95
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
599
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
84
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
86
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
61
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
97
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
75
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
40
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
255
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
119
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
97
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
181
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
179
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
141
Member Avatar for p_jain
Member Avatar for javaAddict
-1
60
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
73
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
72
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
50
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
100
Member Avatar for ninadg

I am new to JSP and am having trouble comparing string with the value in a form field submitted. The following is the code that I am executing through Tomcat and is not giving me the desired result: [CODE=java]<% String myvar = request.getParameter("var1"); boolean first = false; if (myvar == …

Member Avatar for javaAddict
0
280
Member Avatar for oggiemc

Hi everyone, i want to output the results of the select statement in the code below, to a html table as opposed to just a list of out.println statemants..Can someone tell me how to go about doing this please?? Thanks oggiemc [code=java] import java.io.*; import java.lang.*; import java.sql.*; public void …

Member Avatar for oggiemc
0
101
Member Avatar for pwindsor

Hi Having a problem with iframe resizing when the iframe body is a jsp file which contains a dynmically built ajax table. Users select different options from a drop down. All but 1 is a standard static jsp file. The other is a jsp file with a dynamic ajax table …

Member Avatar for Airshow
0
286
Member Avatar for Ghada Ibrahim

Hello , I really need your help! i created a textbox in a jsp page , but i want its value to change using another JSP page without using a submit button in the second page , i need it automatically if a certain condition applies.. Pleaaaase can anyone tell …

Member Avatar for Ghada Ibrahim
0
2K
Member Avatar for indu_ss4

Hi! i'm a new user of jsf. I'm developing a web application in jsf 2.0 . There is a page in my application for which i have given session scope. In this page i retrieve values in a datatable from mysql database according to the chosen combo box values. I …

Member Avatar for indu_ss4
0
1K
Member Avatar for magic88

Hey guys, In JSP I used to create my sessions in my servlet like this: [CODE]session.setAttribute("user", username);[/CODE] and then call it from a JSP page like this: [CODE]<%= session.getAttribute("user") %>[/CODE] However this does not work in JSPX pages and its driving me crazy. Can any one help me? Any help …

Member Avatar for peter_budo
0
93
Member Avatar for nschessnerd

Hey ppl. I've been working on this forever and cant seem to get it. I am developing a site in jsp using netbeans and i have an applet i want to add to a page.I know i have to use <applet> tags but i dont know what to put to …

Member Avatar for peter_budo
0
124
Member Avatar for vitroblue

hi i want to display the selected values from a "select" object into a new window with jsp but no matter what i do, it always writes "null" can you help me? this is mi code [CODE] <form id="form1" name="form1" method="post" onsubmit="revisar()" action="echo.jsp"> <table width="699" border="0" cellspacing="10" cellpadding="4"> <tr> <th …

Member Avatar for javaAddict
0
156

The End.