Can't find Class for XLAN or XERCES in Servlet

558 byte By stricch at 2007-9-26 1:32:11
When starting Tomcat I've modified the .bat file to put both the xlan.jar and xerces.jar files in the path. But when I try to access the servlet from the browser I get a classdef not found error.I've extracted the xlan.jar to my classes path, and it solves that problem for the xlan classes, ...

How to get referring URL

292 byte By wmacey at 2007-9-26 1:32:13
I was hoping to find a function like request.getReferrer(), but according to my books there is no such thing(****)Is there any way to get the URL of the page you just came from, I need it in case I need to send you away, back from whence you came kind of thing...?

problem In Refresh!

2804 byte By greatchivi at 2007-9-26 1:32:30
i'm trying to update records and when i edit a particular value and click update it gets updated in the database but the changes are not visible in the current screen.instead if i click the update button again i can see the change.can anybody help me in this such that i'll be able to see the ...

invoking sevlet and javascript from html form not working

592 byte By sasbab1 at 2007-9-26 1:32:41
hiwhen I call the servlet alone from a html form, it works fine.when I call the servlet and javascript, control directly goes to servlet.If I remove the javascript, then the control goes to servlet that invoked this jsp.html code is as follows,<FORM METHOD="POST" action="/servlet/StoreInfo" ...

PLEASE HELP

444 byte By Smartie_ys at 2007-9-26 1:32:43
function Codes(){codeid=document.topics2.sublevels.value;alert(codeid);//this alerts the value e.g 3code ="<%=codeHash.get("%>codeid<%")%>";alert(code);document.topics2.code.value=code;}This gives nullCan anyone see the problem with the above. When I put in a value code ...

Problems starting tomcat

169 byte By alexaa99 at 2007-9-26 1:32:44
how can i solve the error under win9x OS."no enviroment sopace" or "sin espacio en entorno"when i try start my tomcat server...

Changing nl to ?

207 byte By hyrum14 at 2007-9-26 1:33:03
I am taking in a textarea and adding it to a blob but I want to keep the spacing. I also need to escape some characters before it goes to the database. Are thee any built in functions for this?

Pass Multiple Selections Values wihin a list box

8885 byte By tonymace at 2007-9-26 1:33:39
I have a JSP form with a list/menu object on the page. It allows multiple section of values within the box.The form field name is: TESTI use an IDE Macromedia Dreamweaver Ultra Dev to write my JSP code and I am new to JSP. I understand I need to collect the values within an array using ...

search within the site

251 byte By jprizm at 2007-9-26 1:33:42
I have site having 40 pages and 400 links. You can say its a link information providing site. I want to know how can I serach a speicfic link within a my site of 40 pages by using JAVA Server Pages.thanks for helpZAK

cookies ............correction

1056 byte By manohar2 at 2007-9-26 1:34:03
Friends I am using cookies in my jsp pages.Below is how I create my cookies :--Cookie cookie;cookie = new Cookie("MyCookieName","MyCookieValue");// setting the age to 1 hourcookie.setMaxAge(3600);response.addCookie(cookie);...-and retrieve my cookies :-...Cookie[] Cookies = ...

javascript Help

648 byte By Priyam at 2007-9-26 1:34:09
Hi, I have one Array in javascript. Suppose my Array contains 20 elements . I want to display 5 elements at a time & I have one 'Next' button to display all remaining elements pagewise.For this I have written two functions. One is printArray() & other is nextElements()I want to ...

Session Help

660 byte By wmacey at 2007-9-26 1:34:16
I would like to know why....why...why? I have an app, with a login and password verification entry that I am working on. The rest of the app should be secure.Upon login verification, I set the session attribute login to hold some pertinent information. Then on each page, I check for the session ...

Using setAttribute(), getAttribute() in servlets

338 byte By sigrney at 2007-9-26 1:34:50
I need to take a Java String or other Object and pass it from one servlet to another. I have been trying to use the setAttribute and getAttribute methods. I also tried servletContext().set/getAttribute(). Everything I have tried passes a null value. This seems to me to be a fairly simple, ...

servlet - when would you use it ?

283 byte By stephensutherland at 2007-9-26 1:34:55
hi everyone It may sound very simple. But could some of you java experts please list the reasons you would use a Servlet instead of a JSP with Bean interaction.This will be extremely helpful.Sincerely Yours,Stephen Sutherland

How can I keep a user from entering " character within a JSP input text box

97 byte By CHEERS at 2007-9-26 1:36:02
How can I prevent a user from entering the character " within a text box of my JSP?

Discussion Forum in JSP

178 byte By v_senthilraja at 2007-9-26 1:37:11
hii found many free discussion forums in asp, php.can anyone tell me a free discussion forum in jsp available for free download.senthil.

jsp

373 byte By ponugoti_p at 2007-9-26 1:37:18
hai alli am facing problem while requesting a jspfile.i am requesting this jsp file from URL.it is giving error on server as below.....java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '4096' bytes instead of stated: '4421' bytes. if have any solution mail me ...

Generate own session ID?

247 byte By lfwu at 2007-9-26 1:37:27
Does anybody know how to generate our own uniquesession ID when creating session?When we use request.getSession(true), it generate the session Id by the system, how can I generate my own sessID?ThanksBryan

How java will support the doc files

395 byte By manasa_m at 2007-9-26 1:37:32
I am doing a project where the back up word files are to be displayed on the browser . If it is a text file we can give it as a input stream and if it is a image , it will take it as a .jpg . Then how the .doc can be inputed(I want the MS-word files to be inputed) .I have to do it in jsp.If u ...

request.getParameter(String name) do not be used in one form

1688 byte By zjfsamuel000 at 2007-9-26 1:38:04
request.getParameter(String name) do not be used in one formwith ENCTYPE="multipart/form-data", this may be a bug? please look the followed file html file <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>Upload</title> ...

Unable to view javax.sql.*

333 byte By pleonardi at 2007-9-26 1:38:05
can someone explain what i may have done wrongi'm unable to view javax.sql.*,i have downloaded the jdbc driver jdbc2_0_1-stdext.jar into <dir>:\jdk1.3.1\lib and included this file into the classpath...i someone could give me futher direction would be extremely helpful...thanks ...

How to run JAXP in servlet using JSWDK?

408 byte By tom8131 at 2007-9-26 1:38:08
Hi, I am trying to parse xml to html using JAXP API within a servlet. But an error message showing ' java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException ' is displayed in the web brower. But when I parse the xml to html and output the html text to the standard ...

Page Break

140 byte By vansm at 2007-9-26 1:38:09
Hi! I'm new to JSP. how can I implement page break for printing. I would appreciate if you could send me sample code. Thanks.

Tomcat little problem

879 byte By axeld at 2007-9-26 1:38:15
Hi,I developped a web application with JSP.I use Apache and Tomcat.I want to reduce the URL...I explain...Under the directory webapps of tomcat i have myown directory myDirectory which containsmy jsp (under tomcat/webapps/mydirectory/myjsp)and all my jar (under tomcat/webapps/mydirectory). In ...

connectionpooling

141 byte By mtndeva at 2007-9-26 1:38:32
can we improve performance of servlet using connection pooling .. if it is corect iam looking for with example and explanation

If the the page returned by the JSP too large what will happen.

480 byte By ponugoti_p at 2007-9-26 1:38:43
hay guyshere i am facing a bug problem.I am requesting for a JSP page which will return an HTML page. that returned html file is too large(containig images). because of this i am getting an exception on server side saying...java.net.ProtocolException: Didn't meet stated Content-Length, wrote: ...

JSP in javascript

408 byte By preetith at 2007-9-26 1:39:07
Hi,I would like to know how to pass javascript variable to jsp .the code wud look like this :function myfunc(name,value){<%session.setAttribute(name,value);%>}this gives a javascript error.We would like to do this without posting on the same form or using request.getParameter().Thanx in ...

accessing a client side variable on the server side in the same JSP

300 byte By abhis1 at 2007-9-26 1:39:08
I don't want to use a request.getParameter() because I don't want to do a post a hidden field onto the same form, is there any other way apart from posting the same form onto itself for accessing the client side variable on the server side in the same JSP, if anybody knows pls answer ...

scripting variables and custom tags

595 byte By iion_tichy at 2007-9-26 1:39:18
Hello,I wonder how I could use a scripting variable in a custom tag? I have written a tag that formats number and dates, and would like to be able to do somethin like<% double x = 12,345; %><x:write name="x" format="xyz" />Also I wonder how best to implement tags with parameters? I ...

How can i Call Method from COM

228 byte By mahendrudewakar at 2007-9-26 1:39:22
Dear thereI am Creating some applictaions by using JAVA. In which i need some Mehod from DLL Files(COM). How can I access these methods. If you know please Send me at this eMail ID: mahendrudewakar@yahoo.com

Go to http://www.javajia.com

47 byte By yukinglie at 2007-9-26 1:39:23
Welcome to http://www.javajia.com

Get a parameter in a TextField

1242 byte By stoneJ at 2007-9-26 1:40:03
Hello everyone,I have a JSP file from where a calling another JSP...first thing i do in calling the other JSP is sending the parameter from a hyperlink like this:-out.println("<tr><td><a href =DataInput.jsp?para=" + pers +">"+ pers ...

How to add 3 days to a date to get a newdate

198 byte By adamrau at 2007-9-26 1:40:28
Hi all,I have a date in this formatJUL 28, 2001I want to add 3 days and get the new date.Does anyone know how to do this.Thanks in advanceAdam

HttpSession::getMaxInactiveInterval method not found

1299 byte By neevem at 2007-9-26 1:40:40
Hi,I am trying to run a servlet on iPlanet Web Server 4.1 SP7. The servlet uses the getSession methods to access the session data. However, when I make the getSession call, an exception is thrown from NSHttpServletRequest indicating that the method HttpSession::getMaxInactiveInterval() cannot ...

Connection pool class not found

1256 byte By harpreet_hira at 2007-9-26 1:40:53
I have made a connection pool class for servlets and placed in JavaWebserver2.0\classes. This connection pool class is accessing one db.properties file which I have placed in the same directory. I am writting a servlet which accesses this class at runtime and uses takes the connection from this ...

Having a servlet as the main home page..

371 byte By pramod_vvs at 2007-9-26 1:41:05
Hi,How can I have a servlet as the main homepage of my application instead of the index.html ?When my user types www.mycompany.com instead of the index.html being invoked I would like a LogOn servlet to get invoked .How can I do this ?Iam using JRUN with IIS ?Any ideas/help would be of great ...

Bean Communication

240 byte By wmacey at 2007-9-26 1:41:39
If I have two beans in use on the same JSP page, can I have them communicate?What I mean is, can a method in one bean call a method from the other bean to do some work, or does it have to be done through the jsp?

Can you pass an array to a bean

265 byte By JavaDen at 2007-9-26 1:42:24
Hi, Can you pass an array to a bean?I need to pass 5 values to a bean if i convert the Bean setMethod to an array then I get an error thet the return type has to be an stringDoes anyone have an Idea how to do this ?TIADenis

displaying StringBuffer in textArea field of a jsp file

299 byte By sasbab1 at 2007-9-26 1:42:35
hiI am trying to display a StringBuffer field in a textArea.It does not display anything.If I do system.out.println, I can see the values corectly,it is a multiline string.Any suggestions will be very helpful for me, thanks so much.babu

more rows than I cna handle

555 byte By peterbarry2002 at 2007-9-26 1:42:37
I have written a small JSP application.It accesses an oracle DB and returns may rows.If the no of rows is too large the the buttons used to navigate the app dissapear off the bottom of the screen.(I know I should have considered but I ma new to developing)Does anyone have code that uses ...

UploadPicture problem

3074 byte By pricef at 2007-9-26 1:42:41
hi "JAVA PANDITS" iam having problem in application i can,t able to upload picture <html> <HEAD> <META http-equiv="expires" content="0"> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <TITLE>upload_own_picture</TITLE> <LINK ...

Using a Variable in the Get PRoperty Tag?

3032 byte By wmacey at 2007-9-26 1:42:43
This is what I tried:<% String colname="code02"; %><jsp:getProperty name='Input' property='<%=colname%>' /> --Produced this:Internal Servlet Error:org.apache.jasper.JasperException: Cannot find any information on property '' in a bean of type 'com.infomed.InputBean'at ...

Tomcat problems

248 byte By Jehuty at 2007-9-26 1:43:45
Im trying to run Tomcat. When I run "startup" it opens a new window but then it has the error:"java.net.SocketException: Descriptor not a socket: listen failed" and the new window closes.Can anyone help me?Thanks.

Writing data to Oracle using setAsciiStream

1406 byte By parkerdv at 2007-9-26 1:44:37
Hello,I'm trying to copy data from one Oracle table to another. Everything works except for the field with data type Long. I tried doing a Preparestatement, and writing it with an InputStream with the following code. The idea is that we know the length of the date is 4463 bytes, and we can ...

problem in using ' \n'

649 byte By koel78 at 2007-9-26 1:45:54
String content=request.getParameter("content");/* i'm retreving the contents of a textarea in a string named content. What happens is if i type a line in the textarea and press enter and keep typing by giving 2 to 3 enter key.I'm adding these contents in to the database. The problem is ,only ...

stylesheet problem

229 byte By xyzabcxxx at 2007-9-26 1:45:55
How did we accepts get and post requests and forwards them to doGetPost() a method that the Servlet must overwrite. It will again then applies a style sheet to convert the document to HTML.any one can help me

java bean

122 byte By plotinc at 2007-9-26 1:46:06
how Java bean allows you to proceed get/post requests to the specified host, can anybody give me the example

session

185 byte By reeta2 at 2007-9-26 1:46:15
hello buddys,In case of session does not keep the object, how JSP tag. Redirects to the given URL .iam seriousely facing this problem for my own site.

dynamic values problem

329 byte By upgradeparimala at 2007-9-26 1:46:22
hi all,my problem is smthing like this.. say i have a textbox in html and based on the value of that textbox i want to invoke an sql that fetches records into select(html) object.. and i want to do this on onblur on that text box.. can u plz help in doing this thanx and regards parimala ...

How To Set Scope Of Bean Through Servlet

679 byte By mohitagarwal at 2007-9-26 1:46:38
My Problem is i am using a bean which stores the information of logged in member .Now when a user enters throgh a jsp page a servlet is called in between now after necessary validations i am setiing this info in a bean .String xxx = req.getParameter("xxx");Bean1 b1 = new ...