931 byte By
m_ansram at 2007-9-26 3:41:40
Hi Friends,I have an MQ server setup on win2000 machine and is working fine with both point-point and pub/sub with programs running on the local machine. I am not using JNDI. My problem is I have publisher running on the same machine as the MQ server. I am trying to subscribe from a remote ...
Hi Everybody,Can anybody give me step - by - step instruction on how to install and run the j2ee platform on Windows 98.Thanx in advance,Shine Vijayan
Hi.I want to refer particular nodes in the DOM tree.Is there any way to refere the required nodes in DOM tree without parsing it again and again..I guess that we can do that using NodeList class.But I didn't get the logic for it. Thanks in Advance,Subha ...
hiis there a way for clients to send me files through my JSP ?thanks beforeAlbert
692 byte By
megajava at 2007-9-26 3:42:36
My problem is when I have router in local host, my client works fine, but when I move router to an other computer, then creating topic connection gives me error like: error creating socket connection to 127.0.0.1:14001, message: Connection refused: no further information(I use port 14001, in ...
141 byte By
qasims_1 at 2007-9-26 3:43:01
Hi,I am getting problem in calling an html page from a jspusing forward tag or with any other ( if exist )
i want to know how to use cookies in my jsp coding - as in mailing concept.pls explain me with a coding thank you
351 byte By
qasims_1 at 2007-9-26 3:43:27
I am getting problem of calling an html page from jspThe sample code isint rowsAffected = stm.executeQuery("Select * From Table");if (rowsAffected == 1){ %><jsp:forward page="xyz.html" /><%} it is only working for xyz.jsp file but not for xyz.html ...
I need to store database setting in a file on the server so the database can be configured by the client, like in Jive.I decided to store these setting in a serialized object and place it's result in a file, but I can't seem to find any good file-handling tutorials... Got any?Is there a safe ...
I have a JSP that uses a bean called UserCredentials with session scope and a bean called SessionManager with application scope.The problem is that my JSP causes a class cast exception unless I change the scope of the SessionManager to _session_ as well - then I don't get any errors, but this ...
497 byte By
shekhow at 2007-9-26 3:43:53
I have problem retrieving in PHP or Javacript a cookie set in servlet. This is the code in servlet:Cookie Graph_cookie=new ...
i ' am new to jsp , if i ask any stupid question , i'm soryy.....if jsp code incude html,many book code style like this...<%//do somethingout.println("<html>test</html>")%>i try to code like asp , such like<%// do ...
I've defined parameters in Web.xml of my application which a Servlet can read OK, but a JSP in the same application just gets a null when calling getInitParameter()Any ideas? Nick@redsoft.co.uk
400 byte By
genghiz at 2007-9-26 3:43:58
hello guys...i have an applet that works much like an HTML form... it is a form for products and after having filled that the information has to be updated to the database and the concern people of the company should get an email for the same .... how can i send that mail from this Applet... ...
299 byte By
adamrau at 2007-9-26 3:44:14
Method setMaxInactiveInterval(int) not found in interface javax.servlet.http.HttpSession. session.setMaxInactiveInterval(2400); I am trying to expire a session attribute after 40 minutes using this:session.putValue("UID", uid);session.setMaxInactiveInterval(2400);
can any one tell me in which place we can use SERVLETS and which place to use JSP.
126 byte By
Zigi at 2007-9-26 3:45:11
I get error 500 when trying to view a jsp page on the tomcat.does anyone know how to solve this problem ?
377 byte By
joey829 at 2007-9-26 3:45:19
Dear all,I got a jsp page which do some checking by calling a bean first and then redirect it to another jsp page by using response.setRedirect("xxx.jsp"). but the problem is that after redirecting the page, the old page appear on top of the new page occassionally.Would anyone tell me what's ...
Got the following error when I was trying to load a JSP that imports a servlet class:--2001-08-12 03:17:12 - Ctx( /guestbook ): JasperException: R( /guestbook + /GuestBook.jsp + null) Unable to compile class for JSPerror: Invalid class file format: ...
Hi,I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"? In my case, I should pass an attribute with a type of "java.util.ResourceBundle".My tag looks like this:<tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", ...
328 byte By
brads at 2007-9-26 3:45:48
I'm sure this easy one's Bean asked many times but I'm too burnt out right now to search.I'm learning JSP and am try to get a Bean to work and I can't get the servlet engine or whatever it is to reload the modified Bean.class. What's up with that?Please shed light,TIA,Brad ...
Hi All~~I use Tomcat to run my servlets,and the server works fine.But when I made some modification to a servlet,and I compiled it successfully,but the result did not change.And when I restart the server,the changes appeared.I don't know if the server wasn't be configured correctly.Do you ...
320 byte By
yu_hung at 2007-9-26 3:46:14
Hi thereI have got a jsp page and I want to forward it to error page if there is an exception. But I need to write some data to the output before the exception could occur and this gives the HTTP error code 500. Does anyone know how to solve this problem?Thanks a lot!FromEdmund ...
246 byte By
caiyun01 at 2007-9-26 3:46:35
Hi everyone,I has a text file. I need to read the data inside the text file word by word to store them in my database. Anyone know how to declare a file and read word by word? Please help... Thanx in advance....
1159 byte By
rainbowC at 2007-9-26 3:47:03
Hi there,Please forgive me if you're already bored with this question. But this question hasn't been really answered.Now I'm using j2eesdk1.2.1 with 'doc' folder installed. I try to run the "Converter" example. Everything goes fine when I run the ConverterClient.class on the same machine ...
295 byte By
subbumca at 2007-9-26 3:47:06
I wants to create one ejb component, i am working on windownt , which server should i download, which gives deails where to store the java source file, then how to call the components form server though network(is client) help really appreciated
339 byte By
msyal at 2007-9-26 3:47:10
There are two ways to call a method from session bean . One is client look for each bean and call methods from the beans one after other Other is bean itself looks for the methods in other beans and then client only calls the reqired method.Which of this is the right appraoch and when to use ...
426 byte By
srt_engg at 2007-9-26 3:47:12
I am having jswdk1.0.1 . My servlets are working.Now I want to run my JSP code. My JSP code contains "Hello World" in a loop .The for loop is in a JSP tag. Whatever may be the value of loop(0) , browser shows Hello World only once. In short JSP is not working.The problem maybe in classpath ...
3583 byte By
madhuvr at 2007-9-26 3:47:16
hi, i am doing a applet-servlet communication my applet is sending name and number i am able to sent the data from the applet but in the servlet i am not able to receive it in my servlet i am using the following method public void DoGet((HttpServletRequest req, HttpServletResponse ...
409 byte By
jnarolia at 2007-9-26 3:47:19
Hello Java Practitioners,I am using jsp under tomcat. I am using beans withing the jsp. Now, i have created some subdirectories within the project. I have a bean in root\web-inf\classes directory. now i want to access that bean from jsp pages within subdirectories(like root\mydir) then i am ...
import javax.xml.transform.TransformerFactory;import javax.xml.transform.Transformer;import javax.xml.transform.stream.StreamSource;import javax.xml.transform.stream.StreamResult;import javax.xml.transform.TransformerException;import javax.xml.transform.TransformerConfigurationException;import ...
4160 byte By
HongX at 2007-9-26 3:47:46
I want to make a bean for JDBC connection pool. And the Singleton patten is the best way. But my code is something wrong, who can help me to finish it?import java.util.*;import java.io.*;import java.sql.*;import javax.sql.*;import oracle.jdbc.driver.*;import oracle.jdbc.pool.*;import ...
Hi,I generate a html using JAXPs xslt transformer.One of the <A href="{$pHREF}"> consists of Western european special characters(where pHREF is a xsl variable/param).while text printing, the special characters() are printed as they are, but are distorted when I want to generate a <A ...
I have two beans that are instantiated by a JSP. Is it possible to write code in one of the beans that will access methods in the other bean? If yes, then how? Many ThanksJ-P
250 byte By
sribk at 2007-9-26 3:48:12
say like I have servlets... BO's..Helper classes..I wanted to code a servlet which will execute my DB queries.. can I call this servlet from BO...this servlet should return values to BO's.. Is this possible?
236 byte By
mpbhat at 2007-9-26 3:48:26
EJB Specification places restriction on accessing files. Suppose I access properties file for read- only purpose using ResourceBundle class in EJB, does it mean that I am violating the restriction put by EJB specification.
hi all,i am getting errors in ejbFindPrimarykey() method while deploying CMP bean in weblogic5.1 deploying tool.i get this problem sometimes when i specify primarykey class and field and sometimes when i dont specify primarykey.i am really confused with this.can anybody help me out and tell me ...
Hi, I would like to know , how to deploy an EJB , from command prompt on BEA's Weblogic server 6.0. Thanks & Regards
Hi all.Thanks to your help I have managed to validate and parse an XML file when the external DTD is not referenced with an exact path in the <!DOCTYPE declaration (problem solved using setEntityResolver()).Now I am trying to do the same with a transformation. The XML doc contains a ...
438 byte By
stcampbe at 2007-9-26 3:48:41
HiI have developed a complete mail app (send and receive, folders, signatures etc), developed from the ground up in java, and I am looking for some feedback for it. If anyone would like to download it, test it and give me some feedback that would be great. I don't want to start a spam list so ...
Where is the most suitable place to have data validation?Flavour of the month seems to be placing data validation in the Entity Bean constructor/setter methods. It makes sense for our system to have validation performed by the Entity Bean (as opposed to the ValueObejct), but to have the logic ...
25 byte By
Zigi at 2007-9-26 3:49:10
tools.jar ?
739 byte By
avselvi at 2007-9-26 3:49:33
Hi, I have a huge JSP with more than 100 fields (the user wants it this way) with lot of combos and radio buttons and some portion of the form being dynamically generated. The entire JSP along with clientside & serverside scriptingruns to 53 pages(just to give you an idea how big the form ...
Hi to the forumI have uploaded my project to the server. It is a jsp driven by connection pool components.Now the context after it gets set it wont gets removed until the tomcat is restarted and this is not possible to always restart the server.ServletContext context2 = getServletContext(); ...
301 byte By
npw_wine at 2007-9-26 3:49:57
Has anyone made a tree display (like you can with javascript) using JSPs? If so, can you give me some direction as to how to get it accomplished?I want to grab the items from the backend and use JSPs to display the items in a tree structure similar to an explorer folders display. ...
255 byte By
ruivale at 2007-9-26 3:49:58
Hello!I want to parse a XML doc, if I may call that, that I receive in a String. Can I parse a XML doc this way? Should I first create a File and then parse that XML file? THANKS in advance! RV
How can I exit a function in JSpmy code is<%! String Dothis(int level){if(level==2){//exit the function}else{.....}}%> How can I exit this function .....Break label does not work...as I am not able to declare a label Pl...guide mesmita ...
495 byte By
jnicholz at 2007-9-26 3:50:04
I am working on a website using JSP and Servlets that contains multiple webapps. A user could potentially leave one webapp and spend a large amount of time in another before going back. We would like to find a way to prevent timeout from occurring if this happens. Does anyone have any ideas how ...
106 byte By
fagane at 2007-9-26 3:50:15
How can I get my jsp form to submit when the user chooses an option from the drop down list?
I have a Jsp page that should open Excel in IE. Here is the test page. Currently there is no java code on the page. When I run it, it just displays the table. Any ideas to get this to work?<html><head><meta http-equiv="content-type" ...