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 ...
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 ...
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 ...
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. ...
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 ...
2029 byte By
jdqo at 2007-9-26 2:40:55
could anyone, please, explain to me why the code below doesn't work?<%@ page import="java.sql.*, java.util.*, java.util.Date, java.text.*, java.lang.*" %><%boolean erro_f=false;boolean erro_q=false;boolean achou=true;String codigo_estabelecimento="";int ...
7502 byte By
mpburke at 2007-9-26 2:41:50
I modified the numguess example that comes with tomcat but I get a "can't create bean" error message when I call my jsp file. If anyone can see what I'm doing wrong or suggest ways to discover the problem I'd appreciate it.My modified jsp:<!-- Copyright (c) 1999 The Apache Software ...
3011 byte By
gcallagh at 2007-9-26 2:41:57
Hi,It would be very useful to have a checklist or guidelines to ensure a JSP/tomcat web site one develops is secure, in particular for the scenario where the web application is not huge/complex &/or is developed by part-time developers.That is I guess I'm generally asking for the easiest ...
223 byte By
des_xu at 2007-9-26 2:42:13
Hi, does anyone know how to save a html page from a JSP page?For example, I have written html in a textarea then i have a button which on click will pop up the box "Save As", does anyone have any idea?
601 byte By
Heather0 at 2007-9-26 2:42:19
Hello everyone:I uploaded some files from browser and stored the files in bytes in the database, but later on I could not display the files in browser without saving them to a local storage first. Is there any way I can send the bytes to the browser in the right format using JSP?I tried the ...
1588 byte By
minhhoa at 2007-9-26 2:43:01
It seems that when two users (two sessions) request concurrently the same JSP, variables in JSP will change depend on the session that sets the variable later.Ex: I have a JSP named Login.jsp with two parameters: username and password. Two user will submit with different username and password. ...
I would like to have a tag handler create a hashtable (after doing a lookup in some databases) and export the hashtable as a scripting variable to the jsp page that uses the tag. The idea is that the JSP author, who knows the field names used as keys for the hash, would be able to do things ...
304 byte By
jhlijun at 2007-9-26 2:43:28
Hi,allI want to builder a service that provide service like hotmail,customer can send mail and receive mail use my service,the mail save in my DB server.I must use java language,servlet or JSP.I want to know which softwares needed and what tech i must to learn?Thanks! ...
Is it possible to do javadocumentation for the JSP (and how do I do that?) or is it only possible to do comments in the code?/Patrik
293 byte By
gonellas at 2007-9-26 2:44:22
I want to insert an image on a HTML page which will be generated by a servlet.For that I have written the <IMG SRC>tag.But my doubt is where to store the image(i.e in which directory of the web server) I should store the Image.I am using JavaWebServer2.0.please help
1400 byte By
slho7 at 2007-9-26 2:44:41
I'm curious about how does a request interacts with a servlet. Here's my understanding, pls correct me if I'm wrong.A Java Request object consists of a http header as well as parameters that are passed. These parameters maybe textual input fields or even a whole file, etc. Once the web ...
310 byte By
LuoTing at 2007-9-26 2:44:45
Hi,allString sGB2312 = ""; // a GB2312 Chinese characterString sBig5 = "WB";//a Big5 Chinese characterhow can convert sGB2312 To sBig5 ?i want some code like below:String GB2BIG5(String sGB2312){ }Thanks for any idea.- LuoTing ...
I was obtaining the actual path of my JSP pages using request.getPathTranslated() . Now , I have packed the whole thing in a war . This method is returning null now causing the app to crash , while the non-war version is working fine .... Where am I going wrong ? Shubhrajit................ ...
221 byte By
seeteshh at 2007-9-26 2:45:14
Hi all,In which folder do I keep my java bean class files so that my jsp can use jsp:useBean tag while my jsp's are stored in /webapps/examples/jsp/seet folder.Thanks in advance.Seetesh
506 byte By
jhicks24 at 2007-9-26 2:45:35
I hava an application that uses both a servlet and a JSP and I need to use connection pooling. I have a connectionPool class that works fine in the servlet. I create the pool in my init() method and access it when needed in doGet(). I would like to do the same thing in my JSP, but since the ...
Hi,While developing the web application, I want to remove all the menu bars / toolbars from the IE browser.Understand It can be achieved using window.open()while opening new windowbut is there any other way jusing javascript /JSP for performing the action for same window.regards ...
602 byte By
RichaM at 2007-9-26 2:45:46
Hi, We have developed several Japanese Web Pages which are getting displayed correctly and also the data input in Japanese gets stored and displayed correctly when the page is re invokedThe problem I am encountering is that when I try to extract Japanese data from a given table in SQL and ...
602 byte By
RichaM at 2007-9-26 2:45:48
Hi, We have developed several Japanese Web Pages which are getting displayed correctly and also the data input in Japanese gets stored and displayed correctly when the page is re invokedThe problem I am encountering is that when I try to extract Japanese data from a given table in SQL and ...
Hi I have a servlet which processes the request initiated at a client.While the servlet is waiting for the response,if the user presses the back button,forward button,refresh button or simply closes the browser window,How does the servlet come to know of this.In this case what is the action to ...
230 byte By
hyrum14 at 2007-9-26 2:45:56
I'd like to capture the referrer and then from there would like to add it to a session variable. This will be used to display a certain header.How can I check to see if the referrer contains a certain domain?
363 byte By
micksta at 2007-9-26 2:45:58
I have a jsp page that contains a number of images which are returned dynamiically. I want a user to be able to click an image which opens an SMTP client (eg. Outlook Express) . When they open the client the image will already be attached to the email and they will only have to add the ...
382 byte By
atti1614 at 2007-9-26 2:46:15
Hello. I m trying to upload images by JSP. I recieve the data from ServletInputStream and Pick up the file from the Stream. But when i check on the server...the image view changes after reaching tomcat server. I mean i get spoiled/corrupt image uploaded. Please guide me where i m misssing ...
Can anyone let me know how to download a file in an web based application without prompting for a file download dialog box using java(servlet or JSP) or How do i raise a file download dialog box for downloading a file to the clients machine using java(servlet or JSP).thankschandru ...
261 byte By
robito at 2007-9-26 2:47:01
This is an easy question!Where can I find JSP-tutorials for beginners in PDF-format. Surprisingly yahoo.com and other search engines do not deliver useable results.If you know some good tutorials on pdf, tell meThanks, Robito.
1545 byte By
wagj707 at 2007-9-26 2:47:04
Now i created a popup windows with HTML based on the main page, there is an input text area and a search button in the popup window, after i click the search button, i need to execute some jsp code to take data from backend and display the result on the same popup windows, is there somebody can ...
1720 byte By
iroggero at 2007-9-26 2:47:08
please, can anyone suggest me a reason why I view this error everytime I call a sessionbean method through a jsp page?java.rmi.NoSuchObjectException: CORBA OBJECT_NOT_EXIST 0[]at java.lang.reflect.Constructor.newInstance(Native Method)at ...
442 byte By
siv-viv at 2007-9-26 2:47:36
could someone give me a sample code or idea how to construct a bean which gets the login and pass word from a jsp page(or html page) and then it should set those values in a XML page.im pretty confused how to transfer the the values to the xml page. for now i have 2 methods which getLogin() and ...
315 byte By
Pal1 at 2007-9-26 2:47:40
Hi When i used sendRedirect(response.encodeURL("Test.jsp")) , I am getting the following error :- JspServlet: unable to dispatch to requested page: Exception:java.lang.IllegalStateExceptionBut it has gone to Test.jsp.Does any one know the reason?ThxPal ...
73 byte By
cserold at 2007-9-26 2:47:41
Does anyone know a good jsp/servlet listserve?Thanks
I have been trying to get the following code to work:<%holder = request.getParameter("personnel");ssn = holder.substring(0, holder.indexOf("."));name = holder.substring(holder.indexOf(".") +1, holder.length());balance = request.getParameter("txfBalance");type = ...
Does anyone know a good (preferrably free) tool to convert a JSP file to valid XML format?I've tried Tidy, but this tool can convert HTML to XML or XHTML but not JSP to XML. It will check first if my JSP file is valid HTML, which it is not (because there are a lot of JSP tags included, which ...
310 byte By
iazurita at 2007-9-26 2:48:10
I just downloaded the jsdk1.4 for win. When compiling any file with the import javax line on it i get the following error:hola.java:1: packagimport javax.*;^1 errorI already have added the jdk1.4\bin path and still doesnt workCan any body help me? ...
http://www.mydotcom.com:8080/examples/.....jspHow can I hide the port 8080, cause this is what shows on the URL.thanks