3,760 Topics

Member Avatar for
Member Avatar for sharma.raj411

hi every1 i m able to print the first record of the database on the page. but i m not able to go to next record which i want to show on click of a button. i dont want to use while(rs.next) as i dont want to show all the …

0
71
Member Avatar for nitin_gyan

Hi all, I saved my connector/j jar file into this location C:\ ... \Java\jre6\lib\ext as well as in $CATALINA_HOME/common/lib and i am using this code in the JSP : Class.forName("com.mysql.jdbc.Driver").newInstance(); I am getting below driver error message. Somebody please help me out. javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver My jar file name is …

Member Avatar for peter_budo
0
137
Member Avatar for nitin_gyan

Hi all, I saved my connector/j rar file into this location C:\ ... \Java\jre6\lib\ext and i am using this code in the JSP : Class.forName("com.mysql.jdbc.Driver").newInstance(); I am getting below driver error message. Somebody please help me out. javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Member Avatar for nitin_gyan
0
186
Member Avatar for tactfulsaint

this error was displayed after i package and deployed my jsp file. i dont know any help? [CODE] HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP …

Member Avatar for ranu26
0
141
Member Avatar for Dean_Grobler

Hi guys, I have this assignment to do: Synchronize access to the instance variable, accBalance. Because accBalance is a double and not an object, it cannot be used as the monitor. Use synchronized methods or synchronized blocks of code, as appropriate. Simultaniously test two threads. Because the threads can complete …

Member Avatar for Dean_Grobler
0
146
Member Avatar for nikita.chandra

hi all ! In my web application for bus ticket booking i want to use session. Here i m describing the flow of my application briefly------------ (1) My first jsp page is index.jsp and after submiting this page it will go to servlet SenndBusInfo.java for processing. Here i am creating …

Member Avatar for nikita.chandra
0
158
Member Avatar for nikita.chandra
Member Avatar for javaAddict
0
77
Member Avatar for patilsunil47
Member Avatar for himmat.m4

Hi, I m working in jsp project in which I have problem is, Whenever click on different images then some values entered in input text and here I want to when I clicked again any some image that particular value removed from input text. Thank's in advance

Member Avatar for peter_budo
0
101
Member Avatar for nikita.chandra

hi.. Is it ok to add more than 10 attributed on session object or it will slow down my application?

0
40
Member Avatar for rabihkahaleh

hello team, i have a problem with accessing previous url in jsp. let suppose i am at page1,and a link in pagr1 will redirect to page2, i have to access the previous url which is in that case page1. any help thanks in advance.

Member Avatar for rabihkahaleh
0
25
Member Avatar for ambikanair

HI, I am currently working on a project to develop a webpage using jsp. I need to include some css properties in the jsp file. But it doesnt work even though I am not getting any errors. My jsp code is [CODE] <% String captcha = (String) session.getAttribute("captcha"); String code …

Member Avatar for peter_budo
0
150
Member Avatar for alex.antony.a

[CODE] FileInputStream fs = new FileInputStream("/opt/Abhishek/software/tomcat/webapps/AMS/listpass"); DataInputStream in1 = new DataInputStream(fs); while (in1.available() !=0) { String str1=in1.readLine(); StringTokenizer st1 = new StringTokenizer(str1); String node=st1.nextToken(); if (node.equals(sports[i])) { String pass=st1.nextToken(); out.println ("<b>"+sports[i]+" <b>"); out.println("**Your Required Password**"); out.println(pass); out.println("<br></br>"); [/CODE] Hi , I have a text file (named listpass in the above …

Member Avatar for peter_budo
0
168
Member Avatar for tuse

Hi, I just installed Tomcat 5.5 and could see the default index page (with images missing) Upon running the sample JSPs, I get the following- HTTP Status 404 - Servlet default is not available In the logs, I can see a Root Cause saying something like- "java.lang.NoClassDefFoundError: org/apache/naming/resources/Resource" Basically, I …

Member Avatar for peter_budo
0
149
Member Avatar for gopal krishna

my friend:my name is gopal krishan..me and my friend doing project on j2ee.here we are using netbeans as a frontend,mysql as a backend and tomcat server.tell me from scratch how to use netbeans and mysql.

Member Avatar for svilla
-1
57
Member Avatar for nmakkena

Hi I am very new to jsp. i have an XML file stored in a txt file. I am reading that XML file using Java and placing XML content into text area in a jsp page. my requirement is, when i read the XML file into jsp page text area, …

0
65
Member Avatar for martin5211

Hello everybody, I worked long hours this evening trying to unthread the whole thing and still not working... I don't know why. The page display the results using normal code in JSP (no jstl tags). When using jstl tags the page results in blank screen, no posts. Here is the …

Member Avatar for martin5211
0
2K
Member Avatar for josiefrut

Hi, guys. badly need your help. still a newbie in programming. seems like i cannot display some data on the browser from the database. i was able to create a login page. but when i tried adding another servlet and tried calling its jsp, error message appears: HTTP STATUS 500 …

Member Avatar for nohup
0
135
Member Avatar for Vinnijin
Member Avatar for Dean_Grobler

Hi there guys, I got this assignment where I need to set a session attribute. Although I'm having problems since I cant set attribute that is of type double? I got these hints but since I've worked with doubleValue() or downcasting, the hints didn't help me much.. Hints: -Recall that …

Member Avatar for Dean_Grobler
0
233
Member Avatar for moon207

hello everybody, I'm new to jsp.I have to develope web portal for my company but i had problem with my login page. I hope that you can help this problem. Here is the code: <%@ page contentType="text/html" import="java.sql.*, java.util.Date, java.io.*" %> <%! String CheckLogin(String Login, String Password) throws Exception { …

0
32
Member Avatar for stha2

[code=text]Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the …

Member Avatar for peter_budo
0
113
Member Avatar for Preethi Siva

Hi, I'm having a jsp where I'm comparing two customer beans and display diffs in red color and similarities in green. I'm trying to achieve it like this: ------------------------------------ [code]<% color = "green"; %> <tr> [COLOR="Red"]<logic:notEqual[/COLOR] name="customer1Customer" property="status" [COLOR="Red"]value="<bean:write name='customer2Customer' property='status' />"[/COLOR]> <% color = "red"; %> [COLOR="Red"]</logic:notEqual>[/COLOR] <td height="22" …

0
40
Member Avatar for himmat.m4

Please tell me, how to remove value from input box at the click event in jsp. suppose input box contain A,B,C values and whenever user click button then B should have to removed. Thank's in advance.

Member Avatar for javaAddict
0
73
Member Avatar for boyz

Suppose we have function foo() in Servlet A. From Servlet B how can we call this foo() function of servlet A? both servlet are from same application and in same context....

Member Avatar for himanijain
0
99
Member Avatar for newtoajax

HI I am trying to pass a value from dropdown list on onchange event fo the dropdown in a jsp page through AJAX to servlet. The servlet then returns the value back to the jsp page and displays it in dropdown list. the problem I am facing is that the …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for Stefano Mtangoo

Hi, I have a page where I include another page passed via url Url is something like [B][url]http://www.daniweb.com/newthread.jsp?page=24[/url][/B] and I get the variable as [CODE=JAVA]String thePage = request.getParameter("page") ;[/CODE] Now I want to include it in my page and the code below doesn't work. I have googled and I cannot …

Member Avatar for Stefano Mtangoo
0
195
Member Avatar for himmat.m4

Plz tell me, how to display number of value get form javascript function at every call on the jsp page. suppose in following code I m displaying IdNo var on jsp page in input text at call changeImage(IdNo) and here when next time call this fun then aganin overlaps value …

0
67
Member Avatar for anandhikrishnan

I have a jsp file a.jsp which has b.js now i want to pass a value from a.jsp which is come from a java function like <% patientmodel.getpatient()%> I need to pass the value of this function to a function in b.js any one suggest me plz

Member Avatar for javaAddict
0
94
Member Avatar for Dean_Grobler

I'm struggling with a servlet that's suppose to represent an "online banking service". Once you run the servlet you'll see it's an extremely simple example... You enter an amount in the textfield provided, then click on the apropriate button depeding what action you want to perform e.g. "deposit","withdraw" and "balance". …

Member Avatar for martin5211
0
94

The End.