3,760 Topics
| |
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> </p> <p> </p> <p> </p> <p> </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> … | |
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. | |
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" | |
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.. | |
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"); … | |
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 … | |
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> … | |
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; … | |
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" %> <% … | |
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 … | |
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 … | |
[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 … | |
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"%> … | |
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 … | |
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, … | |
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"); … | |
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 … | |
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 … | |
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 … | |
| 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 ? |
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... | |
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 … | |
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 … | |
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. | |
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 (?)"; … | |
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. | |
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]? | |
| 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 … |
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. | |
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 … |
The End.