help me out about servlets

541 byte By gnanesh2 at 2007-9-26 3:12:46
hii am developing one web based application which consists of Html & Servlets...as i have already downloaded JSDK2.1 and its working fine...my question is once u compile a servlet.java file..where u will place in JSDK2.1 directory...and where to place a Html file in the JSDK2.1 directory ...

find and send solution urgent

1299 byte By dumpala at 2007-9-26 3:13:06
I have encountered the following exception when I run thefollowing program using runtime.exec() in solaris. If you havesome idea about it, please let me know.Thanks.========= Exception Information ======java.io.IOException: Too many open filesat java.lang.UNIXProcess.forkAndExec(Native ...

Is application developed by servlet more secure than jsp?

148 byte By green_grass123 at 2007-9-26 3:13:32
jsp has appeared, but someone still use servlet.Those reason is that servlet can make application higher security. Is it true?

how to read web.xml like servlet by a console application?

1529 byte By calvinchoi at 2007-9-26 3:14:11
I want to make a console application which can parse my web.xml in servletthen use something like this to get data,String clarent_init_dir;clarent_init_dir = config.getInitParameter("clarent_init_dir"); what should I do?my web.xml is like this--<?xml version="1.0" ...

Having Problem with JSP In Netscape!HELP!!!

9806 byte By al3xii at 2007-9-26 3:14:29
HI to all! Im having problem with the jsp that i have :( If i use the Internet explorer it works but at Netscape... it doesn t work :( The value of "PTE" is null... I need help !!!Please! I think the HTML IS NOT HELPING ... the code is : <html> <head> ...

Server/client application

226 byte By jii3 at 2007-9-26 3:14:43
Hi all, I hope I find some one who understands Java Web Start. I have downloaded Java Web Start and editted MIME.Type file. Please tel me what else I need and how to do. I thank you for your helpJii

Use bean in jsp, please help me out

613 byte By jshamann at 2007-9-26 3:14:44
Hi all,As a beginner in jsp I want to use a bean into my jsp page. But this bean is sourcing from a old applet (i've converted the code applet into beans code), and should return a chart (grpahics). Here is the heart of my problem : how can i replace, call , or set up the paint method from the ...

upload file AND parameters to outputstream servlet

250 byte By robinammerlaan at 2007-9-26 3:14:50
Forum,I have a HTML page with a multipart form for upload of a file and several parameters.How do I upload this multipart form data to a servlet and send it to the servlets outputstream?Greetings,Robin

Javascript variable in JSP

322 byte By anithi78 at 2007-9-26 3:14:55
HiI want to assign a Javascript variable value to a JSP variable. can anybody help me out in this?ex:<script language="javascript">var x=document.f1.t1.value;</script><%/// String s= x(?)// how is this possible?%> ...

Servlet + JNI

571 byte By cofensen at 2007-9-26 3:15:23
hi, everybody ~ HELP! HELP!Does Someone have the example for "Servlet + JNI"?I have a problem:JAVA -> JNI -> C -> DLL (Control Hardware)JAVA -> JNI -> C -> DLL : the programing is OKthen I wrote the "Server + JNI"and the DLL is loaded OKbut when Servlet calling the Native ...

JSP programming with Tag Libraries like Struts.

641 byte By sanjiv_pillai_sun at 2007-9-26 3:15:29
Hi friends,I've been programming in JSP, JavaBeans for the last 1 year. However, with the current popularity of Tag Libraries & concepts like MVC, Struts am thinking of using these in JSPs. Even though I am not totally convinced about the real advantages like "No Java code" in JSP pages ...

storing images in mysql

680 byte By pumpindave at 2007-9-26 3:15:38
hi,please help me out - here are the facts:i have a html form with two fields. one textfield named "picturename" and one filefield named "picturdata". on submitting this form a new entry in my mysql db should be done. "picturename" should be sibmitted as text an "picturedata" as binary file. it ...

TOMCAT

523 byte By jdqo at 2007-9-26 3:16:02
hi alloh yeah, i got a trouble with tomcat... i'm running tomcat 3.2.1 (running with mod_jdk) with apache 1.3 at a linux server (sorry, i don't know its kernel's version) and the problem occurs when the traffic increases to our site... tomcat just freezes (or the cat goes to sleep, as i'm ...

Self-Running Object Inst. by Servlet. Interfering with Servlet Reloading

1002 byte By TheBarren at 2007-9-26 3:16:35
Hi everyone.I have a Servlet that instantiates an instance of another class that I defined. It is a self-running data-structure, using Threads to continuously update it based on DB information... very neat.My problem is, when I make a modification to my servlet, I have to restart Tomcat in ...

tomcat + jsp + reload = problem

384 byte By knickooi at 2007-9-26 3:16:38
Hi,I have a simple calendar in JSP and running on tomcat. when I load the page for the first time, everything works fine. But if I click on reload (refresh) button, the dynamic part (jsp output) disapears from the screen. Also if there is a code change, the browser (IE or netscape) reloads the ...

Problem sending bean from servlet to jsp

1364 byte By OmahaLancer at 2007-9-26 3:16:49
I have a html page that submits imformation from a form to a servlet. The servlet then creates a bean and uses the sendRedirect to send it to a jsp page. I read somewhere that tomcat sometimes loses the session so I added the following code: <% if(session.isNew()) { %>Session is new<% ...

Java Plug-in 1.3.1/JSP

445 byte By tapodaca at 2007-9-26 3:17:06
I am trying to do a check on a client machine to see what version of plug-in they have on their machine. They need to have 1.3.1 or better to run the program we are writing. Does anyone know how to write a check or some type of validation to see if and what version they have on their machine? I ...

getParameter() null value

2012 byte By esid at 2007-9-26 3:17:10
Hi all,We are having a problem using the request.getParameter(String) method. We are using the method to define an argument for a Java Webstart (jnlp mime type) file we are creating with jsp. Other arguments have been successfully created using the request.getServerName() and ...

Weblogic 5.1 failing to compile JSP

2906 byte By sambin at 2007-9-26 3:17:12
Hi to everybody.I'm experiencing a problem with JSP's and Bea Weblogic 5.1 SP8. Weblogic fails to compile every JSP, throwing the following exception: Servlet failed with Exception java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, ...

Accessing Servlet's static data

4680 byte By Galia at 2007-9-26 3:17:16
Hi all, I have a class that maintains the connections with the host system and allows using connection pooling. I need to create only one instance of this class and hold a reference to this instance, so the GC will not unload it. The solution I found is to use a servlet, which creates this ...

SQL join clauses in JSP

709 byte By EVA_02 at 2007-9-26 3:17:19
We want to make an edit in which users will be able to write SQL queries and show them the result in a table. The problem is that, when doing joins, the fields with the same name in both database tables are misinterpreted, for example:if we have x.name and y.name as columns of two tables (x and ...

Helppppppp, can't refresh jsp pages

196 byte By knickooi at 2007-9-26 3:17:32
I have a jsp file that runs fine the first time it's loaded to a browser but if I refresh the page, most of the dynamic part disappears from the browser.Please help,KN

How can do sorting things like that?

942 byte By aidshiv98 at 2007-9-26 3:17:56
I am not sure where I should post it, but I am doing it with JSP now.Let's say:I use the getResult.jsp to retrieve some personal info stored in the database. It includes: Name, Money_he_have, date_of_birth, Address.A, 1000,5-10-1997, NYB, 500,3-4-1994, NJD,1500,5-4-1999, CTI wantthe user can ...

servlet to return jar

784 byte By pardee1 at 2007-9-26 3:18:19
Is it possible to create a servlet which will return a jar when referenced from an applet tag. I did some experimentation with a wildcard servlet-mapping and didn't get the results I expected from the applet tag, but did when I just called the link directly. My basic problem is that I create a ...

When to synchronize JSP?

729 byte By notusdata at 2007-9-26 3:18:22
Is there a simple rule for when I should use the synchronized keyword in JSP and Java? Should I always use it when many threads change an instance variable, for example when I declare variables with <%! %> and many users look at the page? In that case how come so many books forget about ...

javascript not recognizable in jsp/forte

287 byte By sasbab1 at 2007-9-26 3:18:34
when I run the jsp file in browser with apache/tomcat, javascript is recognized.But, with Forte, during dev, it does not seem to recognize the existance of javascript code.Is there anything I need to downlaod ? thanks in advancebabu

how to find out the path of current jsp

361 byte By Jamine at 2007-9-26 3:18:50
Hi all.I was wondering if someone could help me figure this out: how can I programmatically find out what path a given jsp is in from within the jsp?if I use currentPath = new File("./"), it defaults to the /config folder (Iplanet WS).Any advice is appreciated. ...

XML parsing error

1198 byte By theIndeed at 2007-9-26 3:18:58
i'm using Tomcat 4.0 to test JSPs, and i have tried one with a tag library, but when i try to run the jsp, it says:org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/jsp/test-taglib.tld: (line 10, col -1): Element "taglib" does not allow "tlibversion" here.my XML taglib ...

Arrays in setAttribute/getAttribute

661 byte By stormzeus7 at 2007-9-26 3:19:04
I am using JDK 1.3 and writing a JSP application. I want to put an Array in a session variable, but can't quite figure out how to put it in and then get it out.If I have an array...String firstname[] = new String[100];...and want to put it in session attribute...how do I do it using ...

Please help me fast!

442 byte By MMJ84 at 2007-9-26 3:19:11
I have the great password protection on a sektion at my homepage ( Download Central ). Suddently I get the error "Unable to find user database" when I try to log on.... I have checked everything and can seem to find any mistakes... It happened after Ive got a new member wich I made a username ...

servlet mapping with Apache + Tomcat

596 byte By elaine_peng at 2007-9-26 3:19:18
I'm trying to set up my servlet with apache + Tomcat(3.2.3), and i'm using mod_jk as the Tomcat-Apache plug-in.The HelloWorld servlet that comes with the examples app worked fine at: http://localhost/examples/servlet/HelloWorldExample,but how do I change the configurations, so that it can be ...

Reposting Question about WAR files because...

2175 byte By ZaitchikA at 2007-9-26 3:19:28
... because I am truly at my wits end and almost out of time for this project. My apologies. Can someone please help? Thanks.+=====================I know this should be trivial but it is just not working for me...I have a (Tomcat 3.2.3) application consisting of various html and jsp and tld ...

Help!!!!

134 byte By caiyun01 at 2007-9-26 3:19:43
Hi,I want to display a Msgbox like in visual basic. How can i do it using jsp? Thanx in advance....

free webspace support servlet/jsp?

88 byte By bpchia at 2007-9-26 3:19:44
any free webspace support servlet/jsp available?thank you very much

ResultSet closed error!

774 byte By hikiran at 2007-9-26 3:19:46
hi,I'm using normal jdbc:odbc driver for oracle and when i'm running the jsp page few times,i'm getting the error "ResultSet closed", only 50 processes.I've opened the initorcl.ora file and the no. of processes is set to 50,So it is firing that error, but in every page in the method ...

startserver.bat not working?

322 byte By jinkk at 2007-9-26 3:19:47
I wrote a couple of servlets and I want to test them on my Windows98 . I try to start the local server i.e;startserver.bat but the DOS prompt flashes on and then off as soon as it opens.It was working for the first time I installed the jsdk last week, but now it is not working.Any suggestions? ...

IIS-Tomcat Post Data reading problem?

1055 byte By sujoydc at 2007-9-26 3:20:09
Hi All , I have a web-application which works fine with IIS-JRun . Now when I run it on IIS-Tomcat it gives an error. It seems that Tomcat is unable to read the Post Data. My code is : InputStream raw = req.getInputStream() ;byte[] data = new byte[m_ContentLength];int current_bytes_read = 0;int ...

cannot create bean of class...using TOMCAT 3.1

2980 byte By hubertn at 2007-9-26 3:20:18
my root is: "notwww.ucsd.edu/somesub/"my beans are in .../WEB-INF/classes/aseBeans/the error msg:Error: 500Location: /studentaffairs/aseAppValidate.jspInternal Servlet Error: javax.servlet.ServletException: Cannot create bean of class aseBeans.AseApplicationBeanat ...

Creating Directory and Files on the Network Computer

505 byte By chomal_pankaj at 2007-9-26 3:20:20
Hi,I want to create Directory and Files on a Computer in my Network Domain through my Java application. I have Proper rights for creating files on that computer. When I map the drive of that computer on my computer then I m able to do that, but I don't want to do the hard coding but rather ...

How to use applet in jsp with tomcat ? Help me please

870 byte By jshamann at 2007-9-26 3:20:55
Hi all, I've read lot of thread about JSP using Applet and it seems to be difficult to do.My problem is that I'm using an applet into a jsp page, my jsp create the applet parameter.The source returned by the jsp page seems to be good but the applet (which shall display a Pie Chart) display ...

Java Server Page Translation Error

752 byte By sgaye at 2007-9-26 3:21:02
Hello !I'm new in JSP pages and i try to launch Hello.jsp on Java Web Server(2.0)I get the following error :java Server Page Transalation ErrorError during compilationCan't load class : pagecompile.jsp._HelloWith Hello.jsp :<html><head><title>My first JSP ...

UrgentPl help

607 byte By smitaunni at 2007-9-26 3:21:14
In my jsp file I need to call a function that is written in another Jsp file...I did include the other file but no idea how to call the function...Biggest problem is I am calling this function within another function mu main jsp page has <%! String process(){sName=Do()}%>the function ...

name of the servlet class

148 byte By smallsun at 2007-9-26 3:21:28
what is the name of the servlet class file which is complied from a jsp file? Is the name the same as the jsp file name?

jsp contents to MS Word

135 byte By deepak_gaikwad at 2007-9-26 3:21:49
How to post contents displayed on a JSP (Say data in table form) to Microsoft Word Document, on click of a button on JSP.

good jsp-editor

71 byte By rda2 at 2007-9-26 3:21:57
im searching for a good and free jsp-editorthank s

JSP init

569 byte By gentyt at 2007-9-26 3:22:15
Hi, I'd like to use init() method like in servlets but problem...First I guess I have to put that method in a <%!%> section.If I use a public void init() method there's no problem but I'd like to use jakarta-tomcat config file with the public void init(ServletConfig config) method but ...

How to compile a several files .java in JDK?

308 byte By paichow at 2007-9-26 3:22:50
Hello, Im a beginner in servlet. So my question is how to compile a several .java files, one of them is servlet meansthat with import javax.servlet.httpthe rest files .java I need coz in the servlet I import this files as instances process.regards,raj aryan maholtra ...

Forwarding with utf-8 encoding

1779 byte By mattbunch at 2007-9-26 3:22:52
Hi all, I've been having a problem with UTF8 encoding with jdk1.3. Here's three simple JSPs that illustrate it: MattTest3.jsp <%@ page contentType="text/html; charset=utf-8" %> <form action=MattTest5.jsp> <input type=text name=xxx> <input type=submit> </form> ...

Date,Calendar,Timestamp

415 byte By greatchivi at 2007-9-26 3:22:59
hi,I have a jsp page which displays date from an oracle databasei have a getMethod which returns a java.util.calendar and a setMethod which also takes the value of type calendarhow do i display the date in my jsp page which is of type calendar and allow the user to change it and then pass it as ...

How to retain leading zeros while exporting Excel?

274 byte By patil_db at 2007-9-26 3:23:31
HiI am able to export data written in JSP to Excel.I am facing the small problem.While exporting excel , it is deleting the leading zero's.How can I retain these zeros.Ex: 00250027 it writes to excel as 250027regardsPatil DB