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, ...
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...?
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 ...
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" ...
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 ...
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...
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?
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 ...
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
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 = ...
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 ...
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 ...
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, ...
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
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?
hii found many free discussion forums in asp, php.can anyone tell me a free discussion forum in jsp available for free download.senthil.
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 ...
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
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 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> ...
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 ...
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 ...
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.
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 ...
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
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: ...
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 ...
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 ...
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 ...
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
Welcome to http://www.javajia.com
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 ...
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
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 ...
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 ...
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 ...
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?
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
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
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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
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
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.
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 ...
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 ...