4,248 Topics
![]() | |
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) <html> <body bgcolor="#333333"> <%@ page language="java" import="javazoom.upload.UploadBean*,java.util.*,java.io.*" %> <%@ page errorPage="ExceptionHandler.jsp" %> <% String … | |
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 ? |
hi i am entirely new to eclipse, db2 and wasce. but for a certain project i need to make a project using the above tools in java. so i did the following 1. Installed db2 v 9.7 with username & password both admin 2. Installed wasce 3. Installed Eclipse my … | |
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 … | |
What are the API's I have to use for making a online radio station through Java/Jsp..? | |
Hello every body>> ^_^ I want your help, I have done code that retrive data from the databse and the user can add data in the database , I want to do validition for student ID, if its in the datase before (if its valid before or not) I need … | |
[CODE]<%-- Document : index Created on : Dec 5, 2011, 10:44:50 PM Author : Orange --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>The Collection</title> </head> <body> <center> <%------------------Search-------------------------%> <form method="post" action="search.jsp">Please select the search parameter you want: <select name="SearchDB"> <option>Please select one</option> <option>Collectable</option> <option>Item Owned</option> … | |
I'm looking for a good book about Servlets and JSP for beginners. So far, the only book I know and have read is Head First Servlets & JSP, but it's focused more on the SCWCD exam rather than the specifics on building stuff. I'm looking for a book that has … | |
[CODE] <form name="myForm" method="post"> <textarea id="commentarea"></textarea> <input type="text" name="locate" value="<%=rs.getString("location")%>"> <input type="button" value="View Comment" onclick="getComment()"> </form> function getComment(){ <% String locate=request.getParameter("locate"); %> var location = "<%= locate%>"; document.getElementById('commentarea').value = location; } [/CODE] I know this is the worst way to access it, but i need to access it in this … | |
Hi all , I am learning j2ee with the help of this forum, I learned jsp and servlet , what should be my next learning process because lot frameworks/ technologies there to learn. Structs , Hibernate, Springs,Ajax all are strange for me. what should I learn next pls suggest me. … | |
hello all, after tried so much now posting here. i have two programs sql.php and form.jsp. i want to do insert values into mssql database from user input form. sql.php is able to insert the values into database. i have connected database using ODBC.form.jsp is able to give user input … | |
Hi All, Hope your all well Im really new to the world of JSP & AJAX, my question is, I need to retrive names from a database and present them to a user on a JSP form, but I shouldnt show any database interaction on the client end, So as … | |
I was hoping that someone could point me in the right direction to find a commodities stock ticker that I can show: Natural Gas, Crude Oil, etc. | |
im trying to display 10 rows in a table. it workd fine upto displaying 10 records but im not sure how to add logic to go to next page to view next 10 records. below is my code; [CODE] <p><h1 class="TextHeading1" align="center">Search<a name=<%=outerKey%>><%=outerKey%></a>Result:</h1></p> <table class="TableBackgroundDB"> <% int limit = 10; … | |
[B][U]1.User.jsp[/U][/B] [CODE]<form action="register" method="post"> First Name : <input type="text" name="firstName" /> <br /> Last Name : <input type="text" name="lastName" /> <br /> Email : <input type="text" name="email" /> <br /> Username : <input type="text" name="uName" /> <br /> Password : <input type="password" name="password" /> <br /> <input type="submit" value="Register" /> … | |
Hi, I am working on client authentication(in a sample JSP application) using certificates. I have written a code to extract the client information from the client certificate. Now I wanted to use certificate's serial number to identify the particular use from the database. I extract the serial number using [CODE]<%= … | |
hello all, after tried so much now posting here. i have two programs sql.php and form.jsp. i want to do insert values into mssql database from user input form. sql.php is able to insert the values into database. i have connected database using ODBC.form.jsp is able to give user input … | |
[CODE]<%@page import="mantenimiento.MantenimientoClientes"%> <%@page import="persistencia.Empresas"%> <%@page import="java.util.Iterator"%> <%@page import="java.util.List"%> <%@page import="mantenimiento.MantenimientoEmpresas"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <script> function validateForm() { if(document.formulario.clienteid.value=="") { alert("clienteid no puede estar vacio"); document.frm.clienteid.focus(); return false; } if(document.formulario.password.value!=document.formulario.repitapassword.value) { alert("Password es diferente"); document.frm.password.focus(); return false; } if(document.formulario.nombre.value=="") { alert("nombre … | |
Hi All, I am using Struts framework, and finding that my url is showing parameters values. Actually after calling action I am redirecting to some other page on SUCCESS . (through Struts.xml config). Now in jsp I am redirecting with " method = post ". still when showing success page … | |
Please Any help me , I need Free JSP hosting with MS SQL (Data base) for one month as a trail basis to check my Project Work ! Please Help me out! | |
(More JNI woes...) When I try to comply this code [code] import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class HacerOperacionesConJNI */ public class HacerOperacionesConJNI extends HttpServlet { private static final long serialVersionUID = 1L; private native double operaciones(double a,double b,String op); … | |
Hello everybody. I have a question/problem. I have a select tag with several options. Sometimes the text of the option becomes very large. So I tried something like this for example: [CODE] <select> <option>A Very Big <br/> sentence</option> </select> [/CODE] But it didn't work. What I was trying is to … | |
Hi thr, I'm trying to host a web application from netbeans. I've added app engine server. but i could not start it. can any one give me an idea for it. it is giving me some class path error what should i do now? | |
I just want to create a file where I can test code idea's in. Basically I want to save a test.jsp file to my file system then open that up with a browser and have it execute the jsp code contained. Is that possible? Here's a simple test that I'm … | |
Hi, I am new to JSP, I have to store images from the clients on to the server, via client input, what will be the best practice to store the images on the server keeping the performance issues in mind as thousands of images will be stored... 1. should i … | |
I am developing an application for a college website .where i hava take the data from registration form and save it database. i need to use jsp , servlets and entity beans to interact with data base. My approach is .. I created a table in derby database n created … | |
Hi, Kindly help me to resolve this issue... Appreciate your help.. [CODE] <logic:notEmpty name="strataList" property="rangeList"> <logic:iterate name="strataList" property="rangeList" id="rangeList"> <td align="center"> <bean:write name="rangeList" property="min" /> </td> <td align="center"> <bean:write name="rangeList" property="max" /> </td> </logic:iterate> </logic:notEmpty> [/CODE] Could you please let me know is there any option to prevent duplicate value … | |
Hello folk's I`m new to JSP and to this forum so apologies for any mistakes. I'm struggling with a drop down menu selection, I have a database with 6 locations and if I want to select any of them and I can (so far so good)but I can't get it … | |
Hello guys, I am using Hibernate + Spring with netbeans to make a web application. I have it working correctly and displaying data from the DB. My problem is I only know how to do one hibernate query which is shown below. How can I do insert/delete queries. For instance … |
The End.