use XPath to select one of the node?

3384 byte By calvinchoi at 2007-9-26 3:13:38
Can I use xpath to draw <param-value>/mnt/VISL/stats/stats/clarent2</param-value>only?I have tried to use ApplyXPath sample, but I don't know what xpath value I should use?I tried /doc/servlet/init-param/param-valuebut it certainly draw other tag with the same namePls ...

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" ...

Releasing handle on XML file

1588 byte By jcshroff at 2007-9-26 3:14:20
Hi,I need to know how do you release a handle on an XML file after parsing it. I am using the JAXP API for XML processing, in a Java servlet running on Java Web Server. I am creating the XML document object through the DocumentBuilderFactory, DocumentBuilder and Document interfaces. After ...

Developed Complete Mail System

369 byte By webchella at 2007-9-26 3:14:26
Hi All I have completed the whole Email System by using the Java Mail API's. It has the features like, Send, Recieve, Multiple Folders, HTML Composing, Block Sender, Sorting, Filters, Address Book, etc. If any java programmer wants help on Javamail then mail me at. webchella@hotmail.com ...

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> ...

problem withgetParentNode()

472 byte By amin_rashid at 2007-9-26 3:14:33
while retreiving data from xml filei wrote the codeNode desc3ValueNode = currentDesc3Node.getParentNode();where currentDesc3Node is a child nodeNow when i sayif (desc3ValueNode!=null){Node desc3NameValueNode = desc3ValueNode.getParentNode();}the value of desc3NameValueNode is coming as null ...

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 ...

Problems publishing Object Messages

615 byte By sathyaS at 2007-9-26 3:16:40
Hi,I create an object message to publish to a topic.But that object's class was loaded by a custom classloader (The Application which tries to publish the message was loaded by the system's default primordial classloaders).When I try to do this.javax.jms.MessageFormatException Exception is ...

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 ...

How to stop parsing XML in SAX

311 byte By Nik_Java at 2007-9-26 3:17:08
Hi,I'm using "standard" XML library by Sun.The parsing model is SAX (extending DefaultHandler).How do I signal the XML parser to stop parsing?(the reason is for example a data error is encountered and there is a need to cancel parsing any further)Thanks. ...

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 ...

ADVANTAGES OF IMAP OVER POP3 IN JAVAMAIL

201 byte By mchaganti at 2007-9-26 3:17:22
Hi Everyone,Can any one explain me about the advantages of using IMAP over POP3 in JavaMail. I'll be greatly appreciate if anyone help me out.Thanks in advance,Chags

EJB using JCE

807 byte By gmiller999 at 2007-9-26 3:17:25
Hello everyone....Recently I've been trying to use JCE 1.2 in order to decrypta username. This is supposed to be done through a jsp invoking a bussiness method through the bean's remote interface. However, when dynamically creating a provider through :SunJCE newProvider=new SunJCE();the ...

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 ...

XML Problem

181 byte By tnr009 at 2007-9-26 3:18:08
I need to have elements created whenever theuser selects an xml tag from tree or element panel. Does anybody have ideas on how can I achieve this?

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 ...

XML and XSL(T)

182 byte By jbetanco at 2007-9-26 3:18:28
Hi, I need to transform a XML Dom using a xsl file to show html.Ive read that I need the packagesjavax.xml.*;Where could I find them.?thanks

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

xml and ![CDATA]

483 byte By ksella at 2007-9-26 3:18:38
HiI have an xml file with the following element : <paragraphSummary><![CDATA[><p>Today is Tuesday.</p>]]></paragraphSummary>If I am using DOM how is it possible to obtain the data within <![CDATA... (that is ><p>Today is Tuesday.</p>). As I ...

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? ...

urgent please help

123 byte By ga11 at 2007-9-26 3:19:56
hi,Will anyone kindly let me know if it is possible to run j2sdkee in win 98?Thanks.G.P.

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 ...

Entity Beans store and update rows. Urgent!!

495 byte By BayoD at 2007-9-26 3:20:21
Good morning:I use a CMP for each row in a table.I have a CMP, with ejbCreate, ejbRemove and ejbStore methods. In the home I have the create method, but not the remove and store. With VisualCafee I can promote de ejbCreate methods to the home interface, but not the store and remove. The ...

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 ...