Hi, I am getting ResourceException when opening a new connection without closing the previous connection.I am using WebLogic6.0 as application server.Please tell me whether i have to do any modification in deployment descriptor or anywhere else to get the new instance of a connection.Please ...
116 byte By
kenni81 at 2007-9-26 3:34:55
how to close a normal browser..window.close? (not the pop-up window but a normal window) in javascript
Hi~~I got a problem about method Message.getRecipients().When I setthe parameter to Message.RecipientType.TO,it works fine and I can get thecorrect data.But when I set it to Message.RecipientType.CC, exception occurs:java.lang.NullPointerException.Can you explain?Thanx! ...
255 byte By
lml919 at 2007-9-26 3:35:21
I can pass some data by session between two JSP or between JSP and EJP ,However I don't whether I can use /share some data get from a EJB(stateful Session)in several different JSPs ?Any help would be greatly appreciate!
839 byte By
klaka at 2007-9-26 3:35:23
Everywhere you can read that you cannot write something on PrintWriter or OutputStream if you forward the request to another servlet or jsp but is it the same with InputStream?I mean, can you read from request.getInputStream() if you're forwarding the request to another jsp.I tried this in ...
Hi I am working with tomcat.Mine is an intranet application. In my application if some one puts some query for otheruser i save this to database.Now whenever the second user logs in if some querrires are put for him i can show that but my concern is if that user is already online and during ...
421 byte By
huigao36 at 2007-9-26 3:35:47
I try to deploy converter application in the Tutorial. Always got the following Error:java.io.FileNotFoundException: http://10.1.5.104:9191/converter/ConverterAppClient.jarchecked in examples/src/converter. The jar file is not there. But I found the jar file in ...
If I have an instance var in a stateless session bean and in a certain remote method I change its value then I call the next method keeping the same remote refrence. it got changed values that means instance state is maintained between the method calls. This is the behaviour as mentioned in EJB ...
1248 byte By
joycetu at 2007-9-26 3:35:55
I want ececute twice sql statments in the same program.And sql driver is "mm.mysql-2.0.4-bin.jar".But the error message are as follows"java.sql.SQLException: Before start of result set".here are some parts of my program:sql = "SELECT * FROM Web_Administrator WHERE ...
I want to modify the listenport of the weblogic domain to 80, how to do this?Thanks in advance...
483 byte By
chethanp at 2007-9-26 3:35:58
I am creating an object message and publishing it.Inside the listener(in the onMessage Listener) when I try to access the object, like((ObjectMessage)message).getObject();it gives me a Deserialize error and the linked exception is ClassNotFoundException.I am just creating a simple object ...
I am getting the following error while executing the SimpleQueueSender Application as specified in the tutorial.The error is :JNDI lookup failed : javax.naming.NoInitialContextException:Need to specify class name in environment or system property or as an applet parameter, or in an application ...
9621 byte By
tho88 at 2007-9-26 3:36:26
Hello,I was wondering if someone could help me.I have developed a GUI using AWT and Swing that allows the user to enter their name and address.If the user clicks the submit button, the method in the EJB is invoked to print the name and address on the screen. The program works ok but I am ...
231 byte By
gentyt at 2007-9-26 3:36:28
Hi,I use several servlets/JSPs which are using common init parameter, is there a way to specify that some init parameters are common or must I write all the parameters for all of my servlets/JPSs ?Thanks
1019 byte By
paichow at 2007-9-26 3:36:30
Well Im a newbie in Java,I have a problem in accessing a sample of cart-shopping (by JAVA.SUN) with .war files which can be download in Servlet tutorial. Can any one in the forum explain more detail about this files and how it works... the sentence of this part in the servlet tutorial makes me ...
417 byte By
ccyaa at 2007-9-26 3:36:33
I write a jsp using JDOM .but , i get the following error :javax.servlet.ServletException: Error in building: SAX2 driver class org.apache.xerces.parsers.SAXParser not foundi read some documents that to put "jdom.jar" & "xercer.jar" under WEB-INF\lib . but, i found that WEB-INF also under ...
Hi there,Can anyone give me a code example. A tree on web page which load data from databse, the code should be in JAVA, not Jscript.Thanks a lotAnnie
316 byte By
HongX at 2007-9-26 3:36:36
Hello everyone. I come form China. So my Englich is poor. I'll try my best to express my meaning.Now I want to save a bean(it stored data) when a user close his browser for one hours. If the user come to our page again in an hour. I will get data from the bean. How can I do for it. Thank you. ...
i want to pass values to applet from my jsp. am using <object>tag and am getting the values dynamicaly from database and i want to pass in while loop using <param>tag.i have tried something as below.but its not working.pls help me.<object type="applet" ...
Hi everybody !Here's my problem : working in my project on multiple pages, I'm using inner classes/beans to limitate my '.java' files but I'm stuck when calling that 'inner-bean' in my jsp:usebean tag.First, I tried to declare in the class parameter : ...
Dear all, AS on Microsoft platforms do we have any IDE like Visual Interdev for JSP development.
315 byte By
seralex at 2007-9-26 3:36:52
Hello friends,I'm using Tomcat to run servlets. How can I set a default error page for such errors as 404 and 500? Do I have to configure web.xml for web application, or a global server.xml?Can it be done within the servlet, similar to errorPage property in JSP?Thank you. ...
755 byte By
fagane at 2007-9-26 3:37:01
My form has 2 submit buttons. I am validating it using javascript when a button is pressed as some fields are mandatory. The problem is that if the "reject" button is pressed a reason has to be entered and if the "accept" button is pressed a name from a drop down list has to be choosen.I am ...
716 byte By
jcshroff at 2007-9-26 3:37:34
Hi,I'd like to know if it is possible to parse a XML file using the JAXP API on a Sun Solaris system running the Jakarta Tomcat servlet engine.When trying to execute the servlet that parses the XML document, the following error message comes:java.net.MalformedURLException: no protocol: ...
879 byte By
arcooper at 2007-9-26 3:37:38
Hi thereI have a frameset with the main content on the left, and the table of contents on the right. When the user logs into the main page, a variable "isSearch" is set to true ( session.setAttribute("isSearch", "true") ). However, I want the variable to be set to false whenever the user clicks ...
2213 byte By
verdi96 at 2007-9-26 3:37:39
I've read Sun's jsdk1.2.1 examples (ejb 1.1) aboutmapping 1-n "weak"-relationship, such as Order andLineItems. In the example, LineItems was implementedas ordinary serializable class, while Order wasimplemented as bmp-entity bean.I would like to know how to "convert" that "schema"to cmp, ...
I'm using the iPlanet Web Server 4.1,then where to put the JSP Files,and where to put the Servlet and JavaBean files?3ks!!!
1893 byte By
delattrj at 2007-9-26 3:38:02
Hi,I'm trying to run Apache + Tomcat + JBoss.JBoss/Tomcat embedded is working fine, but I can't run Tomcat standalone, I've got the following error :javax.naming.CommunicationException: Can't find SerialContextProviderat ...
I have set up IIS and Tomcat, and I can get the examples that came with Tomcat 3.2.3 to come up, JSPs and everything, but I can't get anything else to come up. Is there a Tomcat forum, or do any of you know how to configure it?The url I use to access the examples is ...
447 byte By
joepriv1 at 2007-9-26 3:38:13
I am trying to determine if a file exists using a relative path, but can't get it to work. ExampleString strURL= "../../../../../Dir/file.txt"; But when I do this code:File file = new File(strURL); if (file.exists() ) {it never finds it . . Absolute path will work. I guess I am not sure what ...
1595 byte By
gentyt at 2007-9-26 3:38:15
Hi,my problem with init parameters in web.xml is solved for JSP but I have still a problem with servlets... here the config file : <web-app> ...
Am using a session varible to test an if statement, if true then statement is executed, else nothing. The session variable appears to be false but the statement is still being executed, any suggestions. Possibly a browser specific problem? The code in question is as ...
524 byte By
dgrsj at 2007-9-26 3:38:24
Hi,I am trying to understand the working of struts example In the struts example(struts-example.war), the logon.jsp has the action attribute of the form as "/logon". In the struts-config.xml "/logon" is mapped to LogonAction. How does the jsp get submitted to the servlet eventually. What ...
it's web-based.thks
151 byte By
CHEERS at 2007-9-26 3:38:43
Could someone please tell me how to move javascript code that I have in my JSP to a separate js file and then use that js code in my JSP?
615 byte By
arcooper at 2007-9-26 3:38:46
Hi there I tried the following: request.setAttribute("myVar", "myValue"); pageContext.forward("/main"); When it loads the main page, my variables are not being set. I have tried the <jsp:forward> page directive and this works for a simple test example I've used, but not when I try it in ...
I have been using Java technology for quite some time, including many facets of J2EE, but have just very recently begun exploring Enterprise JavaBeans more in depth. Excuse the simplicity of my question please.I have developed a very simple Entity EJB, but am having difficulty deploying it; ...
678 byte By
fredyzh at 2007-9-26 3:38:53
Hello, I trasnform an document to a string by toString method, but I need the string back to the Doucument. here is the code, say I have Document object(already built), doc,System.out.println(doc.toString() ), it print out: org.apache.crimson.tree.XmlDocument@76a746,How can I get the xml ...
Hi all.I've looked through a lot of posts in this forum and still cannot find the solution to this problem, so maybe someone here can help me?The problem is this:I am using a servlet to read in an ordinary XML document, with a normal <!DOCTYPE declaration and validate it. This works great ...
643 byte By
smnaveen at 2007-9-26 3:39:07
In JMS, we can associate a client id to a topicconnectionfactory. I want toknow the significance of this client id.to implement a durable subscriber is it always necessary that the topicconnectionfactory has a client id?also in the createDurableSubscriber() interface, the second argument iswhat ...
1942 byte By
uma_var at 2007-9-26 3:39:17
I have 2 programs, *dealForm.jsp to accept a currency, convert it a*dealLoad.jsp to store the details of the dealForm in my database.In the form, before the dataload part, I convert the entered amount into required currency. The URL to retrieve this information ...
146 byte By
seralex at 2007-9-26 3:39:29
Hello friendsI am uploading file using oreilly MultipartRequest class. How can I get the name of uploaded file?Thanks.
112 byte By
CHEERS at 2007-9-26 3:39:40
How can you prevent someone from book marking your page? I have added the code to prevent caching?
204 byte By
hmugasha at 2007-9-26 3:40:21
HiHow would I access a JMS QUEUE on a Remote Server through JNDI in a client running locally. Is there a way I can map a name to a remote object through JNDI?thankshenry
1900 byte By
tim.liu at 2007-9-26 3:40:34
With JBuilder4, I have built an application with JSP and a few Java Beans (Those JavaBeans are instantiated in those JSP files). There are no EJBs. The package name is called 'onlinetrade'. I have tested the application on JBuilder's web server, it works pretty well.Now I am moving this ...
total =(int)java.lang.Math.ceil(res.getRow()/rowNumber);i got res.getRow = 3 and rowNumber=10and i expect total to be 1 but it return me 0 does anybody knows whythax in advance
230 byte By
manohar2 at 2007-9-26 3:40:59
Friends can some one tell me how to throw a page (can be HTML or JSP) from a JSP.I have this various submit buttons ,and depending upon the choice selected, I want to throw different page.Thanks.
154 byte By
Sonalp at 2007-9-26 3:41:04
Hi,Can anybody tell me how to get the number of days between 2 dates ? Is there any function available for this ?Thanks
Hello all !I'd like to execute pre-compiled JSP's with the bare minimumenvironment required -- without SAX Parser, Java Compiler, andfull Tomcat installation.Is there a way to execute precompile JSP's without a full-blownTomcat installation ?Maybe from the command-line? (eg, similarto the ...
741 byte By
PAULSC at 2007-9-26 3:41:26
OK so I've got the Tomcat examples working from the Tomcat home page.Now I'm trying to write my own website.I've got the website working with an index.htm file to start it. If I create a link to an HTM file it works fine.Trouble is if I now give the HTM file a JSP extension I get a page not ...