1455 byte By
cruk at 2007-9-26 3:28:54
Hi friends, I want to share bean object with session scope between my JSP and Servlet and vice versa. 1. from my JSP, I use <useBean> tag to instantiate a bean with session scope, then invoke a servlet. 2. within the servlet, I want to retrieve the bean that is created in step(1), do ...
58 byte By
subbumca at 2007-9-26 3:28:56
in which site i can find some example on ejb
1549 byte By
verdi96 at 2007-9-26 3:29:05
I'm new to EJB, I've read about dynamic loading in EJB to improve performance. Is it safe to store a reference to object returned by InitialContext, because I assume that InitialContext returns an object representing the "class", not the "instance"?For example:public class SomeBean extends ...
I'm using,response.sendRedirect(encodedUrl);to redirect to another JSP but it trashes my session. I'm using a bean with a scope of session but after the redirect the session is always lost.Anybody got any ideas?Many ThanksJ-P
483 byte By
arsiva at 2007-9-26 3:29:31
hi everyone,I am curently using a EJB arct. on a Weblogic server.I have a swing client contacting the server. I have a Oracle database. My problem is , When ever I set a date in the client, it goes one day less (exactly 5.30hrs less)to the server and get updated in the database.When it goes ...
495 byte By
paichow at 2007-9-26 3:29:34
Im a newbie in java,So Im a student, my project need a specification of installing TOMCAT and APACHE in the same machine or separate but later on I have to manage the work of servlet is done by Tomcat and the Apache will handle the html stuff.So I do not know how I gonna a start....By the way I ...
622 byte By
gentyt at 2007-9-26 3:29:49
Hi,I want to use parameter in web.xml config file but I've a problem : there's many web.xml files in tomcat directories and modify all of them but I can't still get them, is the following syntax ok/sufficient or should I put the web.xml in a special dir?<web-app>... ...
Hello,Now, at the very beginning I'm asking what are the advantages of using beans instead on working directly with java classes (using import for example). I have an application which will use a lot of forms to access an Oracle database and I have to choose between using or not Beans. Any ...
447 byte By
joycetu at 2007-9-26 3:30:04
Hi! EveryoneI'm a new JSP programer,and have some questions.there is a string like "a,b,b,c,f,g"how can you split that by "," ?and how can you check if there are any characters repeated?and how can you print as follow?"a" appear one time"b" appear two times"c" appear one time"f" appear one ...
I am developing a website using JSP, beans and servlets.The thing I need to know is can you access the variables stored in a session wide bean (those stored using set/get methods) from within a servlet? Many ThanksJ-P
878 byte By
davidod at 2007-9-26 3:30:26
Hi all,I have a problem when trying to load servlets when tomcat is going up.The problem is that the load on startup is working. But the init is again called when the first client is connection to the servlet ?My web.xml is the ...
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?
642 byte By
shony at 2007-9-26 3:30:30
when i run a prograam to fetch mail from pop3 i get a exception asException in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStreamat com.sun.mail.pop3.Protocol.multilineCommand(Protocol.java:284)at com.sun.mail.pop3.Protocol.top(Protocol.java:179)at ...
251 byte By
sabufeb at 2007-9-26 3:30:33
HiI have a servlet that uses session.I want to check whether the browser supports cookie.Please help me how can i detect this using servlet.could you please include a sample code thanks sabu
361 byte By
ermahen at 2007-9-26 3:30:46
Hi!I have a problem with MIMEtypes.If one have a MSWord document and changes the extension from word.doc to word.jpg. Is there a anyone who know how to recognize the "true" MIME type. It is a word document but MIMEBasicPart.getContentSubType() don't recognize the word document.Any one who can ...
Hi all.which installation is good. either rpm install or binary installation.please can any one tell me the procedures for installing and configuring tomcat in linux box.ThanksSenthil.
One thing I haven't seen much mention of is the possibility of using a Java Bean todo some output for a JSP. I'm porting a page I wrote a while back that uses aJHTML page to call a servlet which is just a thin wrapper around a bean whichactually writes the HTML output (the bean is actually a ...
1499 byte By
CHEERS at 2007-9-26 3:30:54
I have a JSP where the user enters a string that is then placed within a column of a table of a database using a JDBC connection. I have found that the user can enter a string with quotes around it and it enters the table fine. I can then query that column fine and place all the values of the ...
361 byte By
Steven W at 2007-9-26 3:31:05
Hi,I need to convert a runtime Object into an XML representation. Does anyone know the best way to do this? I have looked at implementing XMLReader and generating SAX events, but this assumes a stream based input. Is it possible to describe an Object as XML using the Java API's or should I ...
i have a problem in uploading a file from a browser to a servercan u please help me in thisthanks
1271 byte By
sukuc at 2007-9-26 3:31:21
Hi JAVA gurus,I am facing a problem with a download servlet. The servlet is working fine with Netscape but with IE the behaviour is funny, although the file is getting properly downloaded in proper location, but the cursor remains in hourglass mode and icon keeps on rotating unless I stop it. ...
My JSP program works in this way:1. It is runing in Server A and will import a text file from Server B.--I make this part work by using java.net.URL. I import the file and save it on the hard drive of Server A.2. After obtaining the file from server B, my JSP program should be able to create a ...
897 byte By
ChrNil41 at 2007-9-26 3:31:28
I'm stuck with a problem. When I try to use the .writeTo() function to get a mail in "raw format" into a String the OutputBuffer reaches a NullPointerException.But when I pass it to a file everything works ok!Anyone having some ideas of how to have the text into a String variable instead of ...
I have a function name in my jsp which isconcatenation of a stringString sBody=sName+Body();the function name should be sName+Bodyfor egif sName="pprops";then function name isppropsBody() the first part of the functionname can vary ...i.e. sName valueCan anybody help me out from this..if I ...
393 byte By
rgunder3 at 2007-9-26 3:31:43
HiI have written & deployed a JSP in WebSphere 4 but if I try to reference another file, it always uses the <install-dir>\bin directory as the root. This is crazy, because in any other app server, it would be relative to the J2EE app root.Does anyone know what is causing this? It has ...
Hi AllI know my questions may be simple/stupid for some but they have been playing up in my mind for awhile. My questions are what is an app server and what is a web server? For example, why do I always hear people installing Tomcat and Apache together for development? Isn't it enough just to ...
Hi Java'sI have downloaded the latest version of BEA Weblogic server 6.1,they have changed the build.cmd to build.xml for compiling and building the ejb applications.they are telling that we have use $ant to run the build.xml but i couldn't able to do that.i'm getting "command not found ...
I have a custom TextBox .I want to embed that into my JSP, and want the JSP to be able to read the value / set the value of this text box as and when manipulated.How do I go about it?Should I usr <jsp:useBean> for viaula components or <jsp:plugin>Thank you. ...
3456 byte By
PAULSC at 2007-9-26 3:32:30
My PC is currently running W2K with IIS. This is because most of the consultancy work I do is with NT and Visual Studio.Anyway for reasons too complicated to go into I need to implement a website using JSP and HTML. Now I've downloaded Tomcat got that working with IIS and I've downloaded the ...
7914 byte By
ddavidda at 2007-9-26 3:32:37
hello everybody iam having the problem in my application, i can't able to farward the messgae iam developing this code for my project.... i am suffering seriousely with this prolem can any one help me out. Here is my code:<html><HEAD><META http-equiv="expires" ...
196 byte By
nalani at 2007-9-26 3:32:41
When I recompile a class giving ClassCastExceptionused by my JSP or Servlet,(beans) the JVM continues to use the old class that has already been loaded. so how to control this
HI Everyone,I am facing a problem in decripting the attachment and also the body message from a text file(ie mail) which i am getting from a unix system. I am expecting the problem in using steams. I really appreciate if anybody helps me and aso my advance Thanks.--CODE, unix mail message and ...
Hi,I was wondering if anyone has had any experience getting Tomcat to start when a computer is rebooted. I would really really like this so I don't have to turn on tomcat every time I turn on my computer.I'm running Linux (Red Hat) and I have httpd and postgre starting when I start the ...
In JSP how to call a Store Procedure and how to pass the parameters to the Stored Procedure.
180 byte By
kyleb at 2007-9-26 3:33:05
Why cant anyone answer it?Can someone tell me what a callback method is or what situations they are used in? I can't seem to find a real definition anywhere.
8257 byte By
tadi at 2007-9-26 3:33:12
design of the background and text colors forHTML pages. Provides an easy interface for selecting the colors andto In my HTML document . so i can't able to getting text colors...please help me import java.awt.*;class Selector extends Panel{ColorChooser app; Label laCol = new Label();Scrollbar ...
How do I keep the code completion feature updated in forte with the codes in VisualAge. That is the current methods and fields in VisualAge should show up in forte when I pause for the pop up screen to provide me with the methods and fields available.Thank you
438 byte By
sjsda at 2007-9-26 3:33:19
I have 200 records to load in a java server page. I felt loading all these records will affect performance. So I wanted to load 15 records on each pass. However, on the second pass I obtained a nullpointerException(ResultSet -JDBC). Any suggestion on how to do it? my other option is to dump ...
613 byte By
joepriv1 at 2007-9-26 3:33:20
I was wondering if there is a way to first determine if the page exists in a response.sendRedirect(strURL);first. If the page does not exist then display another page stating why the page does not exist.Example. Page not found, please try again when processing has completed. I tried using this ...
Hi,I have the following problem.In my HTML form, I need to display a text file as an attachment. Users should be able to copy and paste this text file as a whole. One of the fields in my form is this text file. THe user can click on this and it opens its content in a separate window. But this ...
741 byte By
mhartman at 2007-9-26 3:33:58
I may have missed something in my research and training in J2EE and EJB but is it possible to physically separate the tiers of the application. That is, the JSP's and servlets within a web container run on a physically different machine than the EJB's in the EJB container. And usually, the ...
311 byte By
SSingh73 at 2007-9-26 3:34:05
I am new to XML/XSL world. Finding it really difficult to XSL processes the XML tree. I am getting unexpected nodes to be selected using XPATH expressions. Can any one suggest any good books on XSL for starter or any web site for learing XSL. Any other tips will be greatThanks,Sunil ...
Hi,I'm somewhat new to SAX processing. I have a simple program that uses the SAX parser. In testing this code, I've noticed some behavior that I find strange. Can anyone veryify if what I describe is expected behavior?1) Parsing an element with no data, like <element></element>. ...
Okay here'm my problemNumber one I've only seen a few functioning servlets and am feeling totally out of my depth here trying to write one. This is what I need to do:I am creating a web site that has the following basic structure:html codehtml codehtml codejava GUIhtml codehtml codejava GUII ...
904 byte By
6tr6tr at 2007-9-26 3:34:16
I want someone to start an initial context and then when they try accessing a bean, I have my loginmodule send them a callbackhandler. What would the code need to be for them to handle something like that? Would they call my loginmodule and then do "while()" or "wait"?Or can they do it with ...
263 byte By
mamtta at 2007-9-26 3:34:22
Hi,I m new to jsp tag library, When I m compiling the handler class, I m getting Javax.servlet.jsp.* package not found. Where can I get this package and how do I setup this into classpath.Thanks in advance.Regards,
How to call a stored procedure from JSP page. How to pass the parameters to a stored procedures from a JSP page.
1124 byte By
mantenbr at 2007-9-26 3:34:34
I'm using the oracle.xml.parser.v2 parser to combine agenerated xml document from a database with a staticxsl file to produce html. Within the xml document, thereare fairly large CDATA sections (500 lines) which happento contain javaScript.Occasionally, I'm getting xml tags in the final ...
188 byte By
sundance at 2007-9-26 3:34:39
How come I don't see any parser.jar file in latest version of JAXP 1.1? My application is expecting a parser.jar file.Where do I get the previous versions?TIA.
267 byte By
jerkyboy at 2007-9-26 3:34:40
I need to make a servlet that allows the user to click a button on my site and it starts printing a bunch of documents on my server on his printer. Is this possible? The documents could be images, pdf, etc. My boss wants one click to print all the docs.