JMS pub/sub with MQ server

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

Runnig J2EE on Windows 98..(Urgent)

185 byte By shinevijayan at 2007-9-26 3:42:04
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

keep track of particular nodes...

310 byte By r_subhashini at 2007-9-26 3:42:21
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 ...

File Uploding through JSP

116 byte By elusiveak at 2007-9-26 3:42:22
hiis there a way for clients to send me files through my JSP ?thanks beforeAlbert

creating socket connection error

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

How to call an HTML page from a JSP

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 )

cookies

149 byte By jayanthin at 2007-9-26 3:43:07
i want to know how to use cookies in my jsp coding - as in mailing concept.pls explain me with a coding thank you

How to call a html page

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

Files and Servlets

466 byte By SPasmofiT at 2007-9-26 3:43:33
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 ...

JSP scope=application causes class cast exception

514 byte By rayb_chillin at 2007-9-26 3:43:47
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 ...

BIG problem with servlet cookies

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

about jsp and html

537 byte By justforfree at 2007-9-26 3:43:55
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 ...

config.getInitParameter dosn't work on Tomcat 3.2

222 byte By nickredshaw99 at 2007-9-26 3:43:57
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

send an email for an Applet....please help ..

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

Method setMaxInactiveInterval(int) not found in interface javax.servlet.htt

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);

SERVLETS AND JSP

103 byte By prash317160 at 2007-9-26 3:44:23
can any one tell me in which place we can use SERVLETS and which place to use JSP.

Error 500

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 ?

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

Help - Invalid Class File Format

856 byte By ken0624700 at 2007-9-26 3:45:35
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: ...

Problem with custom tag attribute types

592 byte By patrick_ch at 2007-9-26 3:45:46
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", ...

How to get Bean to Reload

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

Tomcat

410 byte By metalcure at 2007-9-26 3:46:10
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 ...

How to use JSP error page if I have already written some data to the output

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

Reading File

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

A stand-alone java client can't talk to remote EJBs

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

EJB pls urgent

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

Methods calling in session bean

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

help-simple-stupid-problem

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

applet-servlet communication

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

how can i access beans from subdirectories

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

Exception in thread "main" java.lang.NoClassDefFoundError: PerformTransform

1407 byte By seymour19s at 2007-9-26 3:47:22
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 ...

What is the Singleton patten?

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

Special characters in <a href>

341 byte By sudhakar_barua at 2007-9-26 3:47:53
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 ...

bean to bean communication

208 byte By janquetil at 2007-9-26 3:48:11
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

Servlet Question!!

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?

URGENT-Accessing properties file from EJB

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.

problem with deploying CMP bean

403 byte By prasad_pn at 2007-9-26 3:48:31
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 ...

Delpoy EJB using command prompt, with Weblgoic 6.0

157 byte By chandankalra at 2007-9-26 3:48:37
Hi, I would like to know , how to deploy an EJB , from command prompt on BEA's Weblogic server 6.0. Thanks & Regards

Resolving DTD URI when XML doc is transformed?

1989 byte By andymoose at 2007-9-26 3:48:40
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 ...

complete email application available

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 should Entity Bean field validation logic be maintained?

745 byte By colinward at 2007-9-26 3:48:45
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 ...

Does anyone know where I can download tools.jar ?

25 byte By Zigi at 2007-9-26 3:49:10
tools.jar ?

Performance Issues while Loading a Huge JSP

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

ServletContext

459 byte By pinjopaul at 2007-9-26 3:49:53
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(); ...

JSPs and tree displays

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

Parsing XML from String!

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

Exit a function in JSP

393 byte By smitaunni at 2007-9-26 3:50:02
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 ...

Multiple webapp timeout

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

submit form from drop-down list

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?

Excel output from JSP

1489 byte By MaxPower1 at 2007-9-26 3:50:43
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" ...