capturing incoming web pages

471 byte By CMooney at 2007-9-26 4:23:54
I need to write a bean/jsp combo, running on the client (but it's the java I'm interested in) that can determine when a user has viewed a web page for, let's say, 2 minutes. It can then read the HTML/text associated with that page and then process it (writing some of it to database). The ...

New to XML

181 byte By sandeep_saluja at 2007-9-26 4:24:08
hi can u help me please.i am new to XML but got to learn it very urgently. pl any soft copy tut .or any material on XML for beginners.sandy

This might sound stupid but how do you do this. if(Float1 >= Float2){.....

224 byte By adamrau at 2007-9-26 4:24:33
I get the follwing error:method java.lang.float,java.lang.float not found.All i want to do is compare my two float values.THanks and sorry if this sounds stupidb but I cant figure this out.

Calling EJBs from other EJBs in other J2EE Server?

149 byte By DTUMANOV at 2007-9-26 4:24:44
How can I call one EJB on one J2EE Server from otherEJB on other J2EE Server?Help me, please.Dmitry Tumanov

Master Data - Are they EJB's ?

404 byte By puneet_kathuria at 2007-9-26 4:24:48
Hi,In my application, I have an "Account" Entity that holds the account data. There is also a field called "account status", which comes from "parameter" table. The account table stores the PK of parameter table.Now Do I make this parameters table an entity EJB as it is not a business entity as ...

Java API for XML Processing Version 1.1 - Tomcat 3.2.3 and parser.jar

622 byte By shankeyp at 2007-9-26 4:25:06
Hi:The README for tomcat says make sure jaxp.jar and parser.jar are in the classpath. The readme strongly infers parser.jar should be with the XML Processor. However it is not. Do you think this may be an error with Tomcat's Readme, or has parser.jar been incorporated into something else? ...

Frameset, MVC & Links

542 byte By mabaumga at 2007-9-26 4:25:09
I have got a JSP working as controller/dispatcher, a frameset with 3 frames (Header,Nav,Text). Now i have some links in the Text - Frame with a code for a page. I want these links send to the controller jsp which has to rebuild the frameset and inserts dynamic the location of the page got by ...

A CMT Session Bean Does Not Maintain the Transaction Correctly

7686 byte By tarek.youssef at 2007-9-26 4:25:12
Hi All,I need an urgent help with this strange problem with Container Managed Transactions.A session bean CartEJB which is set to be container managed transaction(CMT) is calling two different instances of an entity bean (CMT too),for example Account1, Account2. In the session bean I credit ...

When to use EJBs

365 byte By shaheen_75 at 2007-9-26 4:25:19
1) Does any one know where can I find documents that describe when EJBs should be used in an application? If I use a J2EE server like WebLogic, should I always try to use EJBS an my applications?2)Once I have decided to use EJBs in an application, should there be an entity bean corresponding ...

ASCII convertion

254 byte By des_xu at 2007-9-26 4:25:22
Hi, i have a problem and i hope someone here will help me out =)I have a string, example, abcde, which i convert to its ASCII values using javascript, how do i get the ASCII values back to its original string using JSP?thanks!

JSP

339 byte By dnoyeB at 2007-9-26 4:25:27
I know jsp makes webpages, but do I have to make the JSP by hand? are there any web page tools out there like there are for ASP that will automatically make my JSP?Or am I confused about how to use JSP? I dont want to be developing a nice looking web page in essentially the equavalent of ...

How to Compile Servlet Java Files

1062 byte By moazzamsaleem at 2007-9-26 4:25:37
hello ...i am a beginner at JSPs and java servlets ... i have been searchin' hopelessly for the past couple of days. Could someone please guide me on how to compile source files for servlets ... namely how can i include the packages javax.servlet.* since the compiler gives me an error that ...

EMERGENCY!!!-launching client server application-

631 byte By sam021a at 2007-9-26 4:25:52
the emergency is a deadline. I have a client server application which works perfectly but my problem is how to publish it for use on my website. Consider I have a web domain and Ii want to publish the client applet and server application. How do I specify that the server APPLICATION is to run ...

taglib- connected to internet but still getting the message

427 byte By gvkk at 2007-9-26 4:26:12
i tried connecting to sun site and also tried moving it to my local machine.still getting the error.what am i missing?org.apache.jasper.compiler.CompileException: C:\tomcat\jakarta-tomcat-3.2.3\webapps\examples\jsp\trytags\name.jsp(0,0) Unable to open taglibrary mytaglib : Parse Error in the ...

how do you get Oracle 8i to work with j2sdkee 1.3 B

1239 byte By ptulachan at 2007-9-26 4:26:13
I had the j2sdkee1.2.1 working with Oracle 8i and I had the following line in the ~conifg/default.properties filesHere's what ...

page import ?!

2699 byte By 2muchjava4me2 at 2007-9-26 4:26:24
When I download the hellouser.war example from the JavaServer Pages QuickStart Guide into tomcat-4.0-b5 and call it from the browser it works fine. Also, when I put a stripped down version of the jsp file (called shortbeans) into the hellouser directory it runs: <html> <body> ...

IterateTag ..

1977 byte By SangHPark at 2007-9-26 4:26:28
Hi, everybody I'm trying to make iterate-tag class based on Sample code in JSP 2nd edition (Wrox). But somehow wheneve I compile my program (It'll be listed bottoem) , I got error message like this. -- cannot resolve symbol : EVAL_BODY_AGAIN. - My tag class extend from TagSupport . Do I have ...

do you handle illegal characters in form entry?

429 byte By stephensutherland at 2007-9-26 4:26:32
Hi everyone I have an application with lot's of forms. The users are entering single and double quotes causing database errors. I would like to treat the single and double quote problem.My questions are 1. How do you guys treat the single and double quote problem ?2. are there any other ...

URLConnection

834 byte By musicboi at 2007-9-26 4:26:45
Hi,I need to connect to an external URL to retrieve some information from other websites. Let's say http://www.yahoo.com. So my codes will look like this..String targetURL = " http://www.yahoo.com";URL u = new URL(targetURL);HttpURLConnection newconn=(HttpURLConnection) ...

When to Use Servlet only, EJB only and, both Servlet And EJB?

352 byte By ballclock at 2007-9-26 4:26:50
I have a question, If I want to build a Web application. Sometime i found that there is no need to use EJB as Servlet already provide that functionality. Can anyone tell me when do I use Pure Servlet? When do I use Pure EJB and, When do I use Both EJB and Servlet?I am very interesting in ...

Which App Server

263 byte By RearCog at 2007-9-26 4:27:22
We are trying to decide which app server to buy at work. We have been looking at Weblogic, Oracle, jRun, WebSphere, ect. I am new to j2ee programming and am wondering which server you like best. We plan on using ejbs, servlets, and jms.Thanks

problem in uploading file

2079 byte By myneni_r at 2007-9-26 4:27:25
i am having problem while upoading file. can anybody help me out? i am putting my code what i have done. in this i can upload only the text file, apart from that all other files are getting corrupted while uploading. the size of files are same but i could not open the uploaded file. it says ...

Reading TEXT from a URL

125 byte By windz at 2007-9-26 4:27:30
I hope to read all content from a URL with JSP,but deleting all HTML TAG.any ideas?thank u

Which one to use JBOSS or J2EE for EJB?

183 byte By jii3 at 2007-9-26 4:27:44
Hi all,I would like to develope an application using EJB with an open source. So please advise me which open source is the best.Thanks in advanceJii

How server will know abt the modified jsp file?

477 byte By gpadmaja at 2007-9-26 4:27:54
Hi ,If I make a jsp file a.jsp like <%="Hello"%>and I run it it prints 'Hello' ok. now I change my file to <%"Hello World"%>and run ,it prints 'Hello World' How does server know that the jsp file has been changed.(becoz what I know that if a jsp file called second time it runs ...

How can I display a confirm box using JSP?

563 byte By wingsze_tsui at 2007-9-26 4:28:08
Dear All,I am new to the Java language; please help!What I'd like to do is to prompt the user, within a loop, to click OK to continue the loop or CANCEL to exit the loop. I've tried to use JavaScript in conjunction w/ Form submittion to handle the parameter passing ('true'/'false') of the ...

Shoud I use JSP to generate XML files?

1028 byte By ai030175 at 2007-9-26 4:28:29
Hi:I need to generate XML files from an oracle database on a nightly basis. The data in these XML files needs to keep refreshing on a nightly basis. These XML files will contain some fields from the Database tables but will also contain fields that are computed from the data extracted from the ...

Xml and java under Unix environment

793 byte By LeBigornot at 2007-9-26 4:28:40
hello,I have to perform XSL Transformations on a Unix Web server .So I work with Xalan and Xerces. The SimpleTransform sample works really correctly on WinNT but when on a Unix (Os/390) system the sample doesn't work and display this error code :java.lang.IllegalArgumentException: ...

why has there NoSuchProviderException in JAR file?

298 byte By mrmarkwang at 2007-9-26 4:28:45
My program run well in jbuilder IDE, but after i make the project into JAR file, I meet the exception:javax.mail.NoSuchProviderException: No provider for smtpi set the classpath well, because my other program(.class) sending email well.who knows what should i do?

Sealing exception problems - S.O.S!!!!

635 byte By jcshroff at 2007-9-26 4:28:52
Hi,I am trying to solve this problem of 'sealing exception' that I have been encountering with Unix/Tomcat/JAXP platform. The way I found out is through a thread in this forum itself. It says to unjar the 3 jar files in the JAXP folder (crimson, jaxp and xalan) and change sealed property in ...

Catch Unknown Host

598 byte By maxhugen at 2007-9-26 4:29:16
I've used the JavaMail API examples to successfully create a servlet for sending emails. It catches exceptions, and I have it reporting on Invalid Addresses (etc) back to the user.I'm using the trans = session.getTransport() method, and listeners, so I can report Invalid Addresses if no ...

Can I run an EJB Application in Windows 98?

331 byte By luismahou at 2007-9-26 4:29:36
Hi! I'm new in EJB programming, and I'm trying to deploy an HelloWorld EJB application. I'm using the j2sdkee1.2.1. I can deploy the application but I don't see any result. I think the problem is that I use Windows 98.P.D.: Sorry for my English, I'm Spanish and I've got some problems with ...

StackOverflowError

448 byte By janquetil at 2007-9-26 4:29:44
I'm writing a servlet that authenticates a user and then forwards the request to the relevant page. However, the request always throws a StackOverflowError error. I'm using getServletContext.getRequestDispatcher to forward the request. Could someone also tell me, is this supposed to append ...

Problem with the J2EE example

347 byte By IBeaumont at 2007-9-26 4:29:55
I'm trying to follow through the J2ee 1.3 beta draft 4 example.With the currency converter in the getting started section, after pressing the finish button in the EJB wizard (creating ConverterEJB), I get the following error:"There was an error importing component(s) into this ...

Problems with getting the wanted values form XML

818 byte By Imzadifi at 2007-9-26 4:29:59
Hi!I'm using a XML which structure is following<countries><country><name>France</name><capital>Paris</capital><language>France</language></country><country><name>United ...

Having Problem with IFRAME (JSP) Netscape!HELP!!!

9602 byte By al3xii at 2007-9-26 4:30:07
Hi ppl :) Im having problems working out with netscape. If i use a script with one iframe(and i must use it...) at I.Explorer it works but with netscape, no way, the "box" doesn t appear. :( I need HELP!! tHIS IS THE CODE :) <html> <head> <!--fd002_captura_dados_POR.jsp--> ...

Downloading a file help needed - Urgent

366 byte By chandruos at 2007-9-26 4:30:13
Can anyone let me know how do i download a file that resides in database(BLOB format) in different box(server) to the local client's machine without prompting for any of the download dialog box using java. Also after downloading the correct application should be launched to view the downloaded ...

SAX parse a DOM

306 byte By NaveenR at 2007-9-26 4:30:37
Hi I have an applet which receives a DOM from a servlet I need a facility to SAX parse this object for creation of a GUI. Since its an applet I cannot serailize the DOM & store it as a file & then parse it using a SAX Parser. F 1RegardsNaveen ...

How To Comapre 2 XML documents

100 byte By NaveenR at 2007-9-26 4:30:40
Are there any tools available for comapring two XML files ?RegardsNaveen

Get Referrer in JSP

197 byte By XMLGuru at 2007-9-26 4:30:48
I want an jsp only to work if it is called from my owndomain. How do i get the document.referrer (this is javascript) in a jsp?Thanks You all,Tobias

EJB 2.0 CMP: why no relationships for remote interfaces?

555 byte By perisb at 2007-9-26 4:31:01
Been studying the 2.0 spec. regarding CMP, and it looks great, except for one thing: I'd still like to provide remote interfaces that can mutate and navigate relationships with other (remotable) entities, yet have the Container provide the implementation.As I read it now, to do this I would ...

XML-RPC vs SOAP

86 byte By swwong888w at 2007-9-26 4:31:04
Could anyone suggest a comparison between XML-RPC and SOAP.Thanks

Oracle and Java

205 byte By sandeep_saluja at 2007-9-26 4:31:07
HiIs there anyway by which i can store my java class inside the oracle database.If anyone has a iota of idea about this then please share it with me.Thanks Sandeep Saluja

Using transacted sessions in MQ

759 byte By willwright at 2007-9-26 4:31:17
Hi,I am trying to use transacted sessions in MQ. I create my session object like sosession = connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE); I then send an object to the queue... By mistake the first time I did this I didn't use commit() on the session to actually send this ...

Apache Jserv can not connect to host error

1683 byte By stewiestyle at 2007-9-26 4:31:25
I've successfully installed Apache on windows. It serves html. I installed Jserv (I think succesfully). However I cannot run servlets. Every time I try I get the following error in Jserv's mod_jserv.log:[20/08/2001 16:13:02:941] (EMERGENCY) ajp12: can not connect to host ...

lets talk about redirect?

1461 byte By liberticide at 2007-9-26 4:31:28
I found a interest beheavior about response.sendRedirect and I hope someone can help me out if I am actually misunderstand the new interesting thing that I just found. [code] <%@page contentType="text/html"%> <html> <head><title>JSP Page</title></head> ...

Oracle and Java

206 byte By sandeep_saluja at 2007-9-26 4:31:42
HiIs there anyway by which i can store my java class inside the oracle database.If anyone has a iota of idea about this then please share it with me.Thanks Sandeep Saluja

position to first field in a form WITHOUT JAVASCRIPT

254 byte By adamrau at 2007-9-26 4:32:03
DOes anyone know how to position to a field in a form without using javascript OR is there code that can be used in JSP to tell whether the browser is javascript enabled and within that block, use javascript to position to the field.

column not found

213 byte By qasims_1 at 2007-9-26 4:32:06
Hi, Resultset = stm.executeQuery("SELECT MAX(column value) FROM Table ");I am getting an error message that column not found. What is wrong with this ?

Dynamically checking ID's in a dynamically built table problem ?

3561 byte By mklein03 at 2007-9-26 4:32:14
Im creating a table dynamically using JSP and Javascript.... its a basic loop that goes through 5 iterations...as follows what is happening here is it dynamically in the body creates my table and when it hits the the row that has i = 1 or i = 3 it puts out a checkbox on the table....the code ...