I am designing a portal application. There are only 3 pages: #1 Login page that submits a form to #2. a main jsp page that includes #3. Another jsp which defines a class. The application works fine (you can put your login info in and it will search a database and do other stuff) it even givs ...
I have a drop down menu that represents a field in my database table that is several hunfred characters long. How could I limit the size of the text box on my JSP page so that it doesn't represent the entire length of the string? Either cutting it off at a certain point and not being able to ...
In my JSP page I have a text box where the user enters a string. I want to send the user an alert using javascript if the length of the string is greater than 7 characters.Does anyone know how I could go about doing this? Would something similar to what I have below work?Thank ...
1231 byte By
raghav21 at 2007-9-26 2:33:04
hi,i am trying a small program on interaction with jdbc and servlet , I am having a html page with a button , which when pressed invokes a servlet through post method which prints out a list of book in the database with its author,isbn etc. when i load the html page and click the button , i get ...
384 byte By
manohar2 at 2007-9-26 2:33:09
Friends I am now familiar with JSP pages,and wondering how JAVASCRIPT will be useful for me.I am zero in JAVASCRIPT and I am not sure wether I will ever be needing it.Well I know that JAVASCRIPT can be used to build pages dynamically at the CLIENT site.Right ? Can some one tell me wether it is ...
1427 byte By
reddy94 at 2007-9-26 2:33:21
hai, i am trying this i am getting null pointer exception at Db.insertData(); <jsp:useBean id="Db" scope="session" class="DataBaseConnect"> </jsp:useBean> <% String sql=null; sql="insert into employee(job_desc,emp_name) values ('manager','xxxx')"; Db.openConn(); ...
Hey everyone:I'm having a problem here...I have this database management thing done in pure servlet. There is a list of DB stuff, and then a button u can push to add info/delete an entry. So you add the new line or delete an entry, some DB updates are made, and then you are returned to the ...
We are trying to deploy our application using WAR file approach. All our JSP and servlets are working fine.We have our reports generated based on XSL files. XSl files are put into the war file.In my transformation servlet, I am loading the original xsl file by calling ...
Hi,I have JApplet, it connects to database, reads it and stores some data in my data structure, then it creates tree from the data which it has read.I want that when a user clicks on any JTree node then it should display all the information about that node in particular format,so what should i ...
311 byte By
natanfw at 2007-9-26 2:34:18
I have a form with several submit button that go to the same servlet. To define the next JSP to redirect I need to know which button was pressed. In ASP i'll use button.x as a parameter name. I tried both .x and .X - the servlet doesn't recognize neither one. What is the correct way to do ...
What do I need to run JSP. Is there any extension for running JSP with Apache.I could not find much documentation on set up of JSP except at J2EE tutrial.
718 byte By
thotha3 at 2007-9-26 2:34:46
Hi All, I have a program that takes an XML file(has DTD and XML in the same file) as input. After parsing it, the output is written into a specified file. The output has first few lines of the DTD and the entire XML part, but is not having the ELEMENT and ATTLIST lines of the DTD. My code runs ...
913 byte By
wdewerff at 2007-9-26 2:34:55
I have IIS5 and Jrun and jdk1.3.1. Im trying to compile a basic servlet for the first time.... I get errors regarding the Http....here is the code..... import java.io.*;import javax.servlet.*;import javax.servlet.http.*;public class HelloWorld extends HttpServlet {public void doGet ...
162 byte By
erwinba at 2007-9-26 2:35:08
I know that servlet can set some cookies value by responese.addCookie(myCookie), but how to set orget the cookie value for JSP.Thanks.
String[] numbername ={"1","2","3"}; String numval[] = new String[3]; for(int j=0; j<names.length; j++){ %> <TR><TD BGCOLOR=666699 ALIGN=CENTER><b><%=j+1%>.</b></TD> <TD BGCOLOR=AAAAAA ALIGN=CENTER> <font ...
385 byte By
des_xu at 2007-9-26 2:35:15
Hi, I have got a paragraph of words that i retrieve from my database, I wanted to convert this paragraph to a single sentence, for example, i got ABCD EFGHIJKL from my database into a String call first, then I like to reorganise the paragraph into ABCD EFGH IJKL and put in into String second, ...
Hi! I hope you can help me with this one ... I've got difficulty submitting a set of array from my JSP page to the server. How can I do this? How can I submit those arrays and post it first to my HTTP Request in URL and then submitted to the server? Thanks in advance..
746 byte By
s29763 at 2007-9-26 2:35:33
Can anyone please help to explain why there's such error message? (I copy this code from the textbook.)******Root cause: java.lang.ArrayIndexOutOfBoundsException*****<%Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");Connection con = ...
HI All,I am new to Weblogic.I am trying out an example.Which contains 3 EJB's one session and two entities.It also has JSP's as clients.I need information as how to deploy those JSP's( I mean which folder of weblogic) so that weblogic will run as both app server as well as a webserver.I am ...
204 byte By
sadac at 2007-9-26 2:36:20
hi everybody,i am just starting with JDOM.could somebody tell me what classes i should download,from which site.where can i get the examples.thanks U very much.sadananda
should we use wrapper classes as attributes or use primitive data types as attributes to present the database?
hello,i can't seem to get the build all and build dist commands to wrok so that i can create a WAR file for my application. I try at all levels in the /tomcat/ hierarchy.On the same note.. if i have a .properties file in the WAR, can that properties file be changed, given that it is in some ...
2313 byte By
Abhi325 at 2007-9-26 2:37:35
My jsp files are invoked when I open them in the browserusing both jswdk and JWS. But the links or Submit buttons of the files don't work in JWS only, displaying an error -Error during JSP page processingjava.lang.NoSuchMethodError: java.lang.System: method ...
Hi all, It's going to make me mad : i can't retrieve value from resultset for(int t=0;t<Integer.parseInt(request.getParameter("ResList"));t++){ran=(int)(Math.random()*(maximum-minimum))+(minimum+1);System.out.println("Voici le chiffre randomiser : " + ...
385 byte By
eborisow at 2007-9-26 2:37:53
Hi, I am trying to read data that has embedded HTML in an XML document. For example:<data><a href="/mygif.gif">A picture</a></data>So, I am finding the <data> tags, but when I try to read the text using the characters method, I receive a blank. I am using JDK 1.1.8 ...
707 byte By
ZawarDev at 2007-9-26 2:37:55
hi,I got a simple question about messagedriven beans.My MDB is deployed with container managed transaction, attribute "required". According to the specification, this causes the transaction to be rolled back if an exception is thrown.Will an exception catched within the onMessage method be ...
251 byte By
markrob4 at 2007-9-26 2:38:11
Does anyone know how to parse a float from a string variable? The documentation says there is a method for it, it doesn't say what it is(?).I.e. the equavilent of int this_num.parseint(this_string) only for a float.Thanks.
Although file gets uploaded successfully, I get the following WARNING message in my log file when ran on NT/2000 which is okay.The message says:"One of the getParameter family of methods called after reading from the ServletInputStream, not merging post parameters".But when I run the same code ...
286 byte By
tengj6 at 2007-9-26 2:38:28
Hi,I am preparing a proposal to push J2EE as our enterprise application standard. I don't know what methodology we should use to develop J2EE application, it seems that water-fall is not a good idea here. Could anybody help? Thanks in advance.
Although file gets uploaded successfully, I get the following WARNING message in my log file when ran on NT/2000 which is okay.The message says:"One of the getParameter family of methods called after reading from the ServletInputStream, not merging post parameters".But when I run the same code ...
Hi folks,I've got a JSP in which I want to store the implicit session object into a bean that I create on the same page. I create the bean with this line:<jsp:useBean id="slogin" class="iteu.StudentLoginBean" scope="request" /> and the next line is:<jsp:setProperty name="slogin" ...
4036 byte By
wmacey at 2007-9-26 2:38:47
I was working with an app, and came upon this error and really have no idea what it means.....can some JSP guru please decipher for me so I know where to look for the problem:Internal Servlet Error:org.apache.jasper.JasperExceptionat ...
267 byte By
6tr6tr at 2007-9-26 2:38:49
Microsoft has an ADO Driver for XML, so you can treat it like a database. It has recordsets, paging, etc. (including queries with updates, inserts, deletes...).Does anyone know if such a thing exists in Java? If not, anyone feel like writing one?
i've searched through the forums regarding this error, and i can't pinpoint why i'm getting this error.i'm using a <jsp:useBean> tag with scope=application to declare a database connection pool. when the webserver starts, everything works fine for about 5 min, then i get the following ...
Hi all.I have jsp which generates a webpage with 2 frames. One of these frames has javascript onclicks() which opens a javascript window with a form.I am try to submit the contents of this form to a servlet but it doesn't seem to work.Everytime I run a javascript try it in IE5 I get a "Error ...
Hi all.I have jsp which generates a webpage with 2 frames. One of these frames has javascript onclicks() which opens a javascript window with a form.I am try to submit the contents of this form to a servlet but it doesn't seem to work.Everytime I run a javascript try it in IE5 I get a "Error ...
2966 byte By
g_monk at 2007-9-26 2:39:18
I'm new to Java, JSP, and servlets. I'm using NetBeans as my development platform with Tomcat as the container. I have a simple JSP page that I'm trying to execute my servlet with. Listed below is both the JSP page and the servlet code. The servlet never seems to be executed. I'm not sure ...
625 byte By
CHEERS at 2007-9-26 2:39:22
I have a JSP page that has one text box with name "BOX1" and another one named "BOX2". I already have get/set methods in a bean for BOX1 but do not for BOX2. I want to have it so that if the user types something in BOX2, then that value will replace BOX1's value that is used in the bean. If ...
623 byte By
manohar2 at 2007-9-26 2:39:30
Gusy is there any way that i can sroll while inputting data into many text field.I mean at a time only 5 text input fields should be visible (1 input text field per row ) and the remaining should be hidden.The user should be made to scroll if he want to enter data into more input field.Some ...
451 byte By
yaying at 2007-9-26 2:39:31
Hi, Firends:In my old web page I used a static array to hold a set of values, and now I want to use dynamic value from datbase.I created a bean to process database data and return resultset value to an array string. I convert my html page into jsp page, use "usebean" tag to call specific ...
164 byte By
zdang at 2007-9-26 2:39:32
Hi, I am tring to do file upload and was told to use multipart class. Where can I find this class, com.oreilly.servlet.multipart? Thanks!
Hi,I want to access offset.properties, located in tomat/webapps/MyApp/web-inf/classes from my servlet, also int the same directory, of course.I tried using:Properties offsetProperties = new Properties();offsetProperties.load(new FileInputStream("offset.properties"));but it threw a file not ...
I apologize in advance if this topic has been adressed elsewhere.I am using Forte with the J2EE IDE, and I would like to be able to use a remote bean server to test my client. What options do I need to set to allow the client running through Forte to connect to a remote bean server? ...
550 byte By
marsox at 2007-9-26 2:39:50
I am using a bean and when I use declare a variable as private such as:private m_firstName = "";public String getFirstName() {return m_firstName;} I have this in my JSPvalue="<%= customer.getFirstName() %>"I get a NullPointerException.But if I only change the bean to:protected m_firstName ...
Hi I am having problem with formating columns in excel. I am retrieving data from oracle database and using a servlet I am writing the report to excel. But some of the char fields of Oracle (whose values are numbers like 00011) are being displayed as numbers and not as text (like 11 instead of ...
885 byte By
shimmix at 2007-9-26 2:40:00
Hi,I have installed tomcat after formating my computer(win98-can't help it...).When I try to start the server I'm getting an Errormassage that say: "out of envoirnment space.Unable to set CLASSPATH dynamicallyTo set the CLASSPATH dynamically on Win9x systems!only DOS 8.3 names may be used in ...
215 byte By
rsg8 at 2007-9-26 2:40:08
How do i handle in SAX parser &for example if my xml file look like this<book><title>xyz&abc</title></book>How would i get xyy&abc
594 byte By
pynchon1 at 2007-9-26 2:40:09
Hello, Im trying to solve a problem in a JSP. Ive got a SELECT list, the values of which are built up dynamically. when the user selects and option, i want the value of that selection to appear in a TEXTAREA, at which time the user can then add a suffix onto the value populated in the TEXTAREA. ...
Hi,Does anyone know if there is any tool which can extract database schema information to XML file?Thanks in advance!
586 byte By
zdang at 2007-9-26 2:40:41
Hi, I have a jsp page that pass a file path to servlet and then get all file name under the directory. The servlet uses java.io.File to return the files and folders name based on the file directory that is passed by jsp page. If the directory is C:\\BEA, it is fine. I can get all files and ...