3,760 Topics

Member Avatar for
Member Avatar for mrabrar09

Hello friends, I am new to Jsp Here am facing a problem while trying to retrieve the data from ms access db using student no(number) form.jps ========= [CODE]<html><head> <BODY style="background-color:SteelBlue"> <center> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <form method="post" action="search.jsp"><h3> Enter Ur Number: </h3><input type="text" size="3" name="no"><br /> <p><input type="submit" value="Submit"> </form> …

Member Avatar for javaAddict
0
327
Member Avatar for divsok

how can i add values of each registered name to a combo box in a servlet dynamically and get each values from it ? i have an ArrayList of each registered name.

Member Avatar for divsok
0
107
Member Avatar for Chaitanya Dhote

Hi, I want to open jsp page in particular frame from servlet. plz try to help me. i attached my code. [CODE] RequestDispather rd = request.getRequestDispathcher("Adimn.jsp"); rd.forward(request, response); [/CODE] i want to forward Admin.jsp to frame whose name is "frame1"

Member Avatar for harinath_2007
0
207
Member Avatar for Narayanan87

Hi i am new to JSP. I am setting a boolean value for session attribute in the java class. Now i am getting the same in the jsp using session.getAttribute("session attribute") method. Now i want to remove the session value in jsp. How could i achieve this??? Plz Help..

Member Avatar for laxmipriya22
0
93
Member Avatar for ravi_91

friends,, i wanna resize the image with specific dimensions while retrieving from database here is my code help me [CODE]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <% Connection connection = null; ResultSet rs = null; PreparedStatement psmnt = null; InputStream sImage; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); connection = DriverManager.getConnection("jdbc:odbc:ravi", "system", "system"); …

Member Avatar for peter_budo
0
82
Member Avatar for saideepak89

hi .... During the 64 kbps testing some of the pages in my web app ,it is taking so much time and those are need to be optimized.. i already have a jar tool to compress the js files though they did not decrease the loading response time if u …

0
76
Member Avatar for anand01

Hi all , i configured my jdbc drivers and url in Xml but it shows null value my servlet code [CODE]public void init(ServletConfig config) throws ServletException { // TODO Auto-generated method stub super.init(config); System.out.println(config.getInitParameter("dbUrl")); System.out.println(config.getInitParameter("dbUserName")); System.out.println(config.getInitParameter("jdbcDriver"));} [/CODE] [CODE] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>CMS</display-name> …

Member Avatar for anand01
0
128
Member Avatar for fpsasm

Hello, I've been doing some JSP, and I've got a: "The value for the useBean class attribute bns.TestBean is invalid" error, could you help me out? tmp.jsp is : [code] <jsp:useBean id="tb" class="bns.testBean" scope="page" /> <jsp:setProperty name="tb" property="*" /> <html> <body> </body> </html> [/code] Where TestBean.java is: [code=java] package bns; …

0
80
Member Avatar for victabk

am having a problem , trying to upload a photo and this is the error that am getting The value for the useBean class attribute javazoom.upload.UploadBean is invalid; this is the code: JSP Syntax (Toggle Plain Text) [code]<html> <body bgcolor="#333333"> <%@ page language="java" import="javazoom.upload.UploadBean*,java.util.*,java.io.*" %> <%@ page errorPage="ExceptionHandler.jsp" %> <% …

0
71
Member Avatar for Pravinrasal

hi, I developed one web application and I have created div in JavaScript and on that div I have created more than one images and when I click on save button i want to save all images on to the database and when I retrieve that image from database as …

Member Avatar for stultuske
0
193
Member Avatar for psomis

good evening ppl and happy new year! i am developing a hotel booking app with web services on netbeans. i use soap technology jdbc drivers. the booking methods are ready and are coded in hava. now i want this app to make it on a page (jsp) with buttons and …

Member Avatar for stultuske
0
82
Member Avatar for apontutul

[CODE]<html> <head> <title>Pie Chart Demo</title> </head> <jsp:useBean id=[COLOR=red]"myChart"[/COLOR] class=[COLOR=red]"classes.beans.votepie"[/COLOR] scope=[COLOR=red]"session"[/COLOR] /> <body> <h2>Vote Results Pie-chart</h2> <%String chartViewer = myChart.getvoteserve(request, response);%> <img src=[COLOR=red]"<%=chartViewer%>"[/COLOR] border=0 usemap=[COLOR=red]"#imageMap"[/COLOR]> </body> </html> [/CODE] accessing this above viewrst.jsp file shows the following error: [CODE][B]HTTP Status 500 - [/B] [B]type[/B] Exception report [B]message[/B] [B]description[/B] [U]The server encountered an …

Member Avatar for victabk
0
2K
Member Avatar for jeraldmuthu

Hi, i need to retrieve the combo box value to the string parameter in the same page parameter for checking condition is it possible in JSP ? [CODE] <%@ page import="java.io.*"%> <%@ page import="java.sql.*"%> <%@ page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page language="java" session="true"%> …

Member Avatar for peter_budo
0
236
Member Avatar for gourav1

hey!tell me that what is difference between info contained in cookies and session(made in web container) ? let i have opened a website and done something in it and then i opened another site and do something on it. then tell me what is the info cookie is containing and …

0
41
Member Avatar for gourav1

hello! i m reading servlets these days and i want to read about structs and sessions.please give me links here so that i can read about them and so that i can make some application(web) based on concept of these two. i have searched google and also find many things, …

0
47
Member Avatar for SurajThakur

I Cannot Login..Even with the correct ID and Pwd Its not going in the if(rsdoLogin.next()) loop...it comes in this page and just shows blank..PLz help..!! [U]CheckLogin.jsp[/U] [CODE] <%@ page language="java" import="java.sql.*" errorPage="" %> <% Connection conn = null; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:MyDsn"); ResultSet rsdoLogin = null; PreparedStatement psdoLogin=null; String sUserID=request.getParameter("user"); …

0
72
Member Avatar for deepdon

I am getting java.lang.nullpointer exception for this code plzz help me out all database linked programs are creating same error [code]import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.sql.*; public class retser extends HttpServlet { Connection c; Statement st; ResultSet rs; ServletConfig config; public void init() { config = getServletConfig(); try …

Member Avatar for stultuske
0
140
Member Avatar for silu210

Hello, everyone, I am new to this forum. My Jsp usebean tag returns null from javabean which is set by servlet. I followed everything from the forum, but sill getting null, below are the code. Some one please save me.Thank you now and Happy New Year 2012. My servlet(TestServlet.java) [code=Java]protected …

0
39
Member Avatar for SagarSe7en

Hello Guys! Im developing a Quiz System for a game which i LOVE alot. Have done most of the work but still need some help from you guys! Problem faced is when the contestant answers it correctly the counter is not incremented and they are refusing to be passed into …

Member Avatar for SagarSe7en
0
246
Member Avatar for begueradj

Hello people I create a simple Hello World project (servlet) o Netbeans. I configured it so as to run under Tomcat, but when I click on Run to execute the project it says this meassage: [COLOR="Red"] /home/begueradj/NetBeansProjects/projet1/nbproject/build-impl.xml:721: The module has not been deployed.[/COLOR] Why is that ?

Member Avatar for peter_budo
0
158
Member Avatar for vijaykavin10

hello all I need a clarification about this topic...In j2EE application architecture is the key So i need to know about MVC architecture or JWMS architecture which one is suits good Thanks...

0
65
Member Avatar for warlord902

I want to setup Apache http server on my ubuntu machine, but as I am not good with linux, can't understand how to do that. Latest version is 2.2.21 I was trying to install that. There is a binary for window systems, I successfully installed and set it up on …

Member Avatar for peter_budo
0
135
Member Avatar for softDeveloper

Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next …

Member Avatar for softDeveloper
0
197
Member Avatar for swaroopeswara

i am having a table td_user_login. the table consists of user_Id,login_time,session_id.ip_address. so, after creating the login page i want to see the login member login time with concurrent date and want to view a bar chart under jsp. so can any one help me out in solving this.

0
36
Member Avatar for softDeveloper

Hi All! I'm working on a web application, JSP, where a user selects the text with the mouse in html. I want this text to be inserted in a MySQL database as a java string using prepareStatement in Java and executeupdate. Example: String querystring = "INSERT INTO mySelectedTextTable(selectedTextWithMouse) VALUES (?)"; …

Member Avatar for softDeveloper
0
208
Member Avatar for jeraldmuthu

I need in jsp two view in one view combobox, combobox contain one,two,three..etc For the user selection second view want to change not the whole page. I need an Idea.Please Help me out.

Member Avatar for stultuske
0
72
Member Avatar for ramenduguin

i need to retrieve Date/Time column type value from MS-Access Database. what to write here in this case? [as we write rs.getString() to retrieve String type data from Database]?

Member Avatar for stultuske
0
32
Member Avatar for TheQuad

got a problem with a login page, my code doesn't seem to seperate each users details from the database. Here is my code: any suggestions? [CODE]<%@page import="java.sql.*"%> <%@page contentType="text/html"%> <% String loginMessage = ""; String un = ""; String pw = ""; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection cn = DriverManager.getConnection("jdbc:odbc:RentalDB", "", ""); Statement …

Member Avatar for jaikiran_cool
0
288
Member Avatar for riahc3

Hey Is it possible to run a Java Servlet that loads a .html page that has a bunch of JS scripts in it? I know how to load a normal .html page (I believe it is correct) but not sure if it works if it has Javascript as well. Thanks.

Member Avatar for riahc3
0
631
Member Avatar for noirorlatte

i'm building an web application using jsp, and i use the default server: glassfish v3. my application is used for recommending item and give prediction. But when i'm running it, i got this [B]WARNING: Interrupting idle Thread: http-thread-pool-17667[/B]...i've changed the wait_timeout,interactive_time out in mysql to 3...what should i do???i'm using …

Member Avatar for peter_budo
0
133

The End.