Ever seen a GOOD JSP? Not I.

2779 byte By teknologikl at 2007-9-26 4:11:21
Do not get me wrong: I love Java technology, and I think that the web area of it has definitely progressed much over the last decade (so this is NOT a flame-post for those looking to pick a fight).I realize that there is an initiative under way currently to create a standard tag library that ...

unable to connect to the localhost

215 byte By mbethala at 2007-9-26 4:12:21
from the html form when I try submit buuton i am getting tomcat.log error of No apps in webapps/. if anybody can guide in what to do will be greatly appreciated.Thanks in advancembethala

unable to connect to the localhost

215 byte By mbethala at 2007-9-26 4:12:22
from the html form when I try submit buuton i am getting tomcat.log error of No apps in webapps/. if anybody can guide in what to do will be greatly appreciated.Thanks in advancembethala

dynamically generate a tree

319 byte By greatchivi at 2007-9-26 4:12:26
is there anyway that i can generate a tree dynamically.If i have a part no(1) then i want a sub assembly so i select a part no(2) and it should be added as a leaf .if i select another partno(3) it should be added to the partno(2) thus populating the treecan anybody help me out in thisThanks ...

URGENT:parse a data stream

505 byte By bx1 at 2007-9-26 4:12:51
It's very urgent,i want to parse an input stream send by an http post request through a form(with the enctype multipart/form-data),but i don't know how,some people told me to use OOpMime parser but it's not free so i can't, and they talked to me about JSPamart and i don't find it on ...

Display processing data ... page when gettting data

162 byte By r_kalyan_raman at 2007-9-26 4:12:59
I need to display a page which will display processing data please wait .... till i get the data from the database. How do i implement this in jsp ?

Confirmation Dialog box on JSP

608 byte By CHEERS at 2007-9-26 4:13:35
Has anyone had any experience in adding a confirmation dialog to their JSP before doing a submit of information to the database?I would like to create some added functionality to my application where once the user inputs all information in the JSP I have, they can then press the Add to Database ...

Problems with reading information sent from a servlet to an applet

3656 byte By kingfahad786 at 2007-9-26 4:13:38
Ihave just created an applet and servlet. i want the servlet to send some data back to the applet so i can read it and just check to see whether the servlet has done the required job.here is part of the applet and servlet code.applet:url = ...

JAXB -Binding Schema

221 byte By wodefey at 2007-9-26 4:13:39
What entries should you make in the binding schema for:<rate year="2001">7.00</rate>so that it constructs a class rate with a field "content" as a double and a field year as an int?

Does anyone have an example of taking a string and encrypting it and vise v

163 byte By adamrau at 2007-9-26 4:13:40
I want to encrpyt -> save in my databasethenget value from database --> and then unencryptThanks for your timeAdam

Dynamically updating HTML/JSP Display

555 byte By wmacey at 2007-9-26 4:13:45
I have heard of a technique that allows a bean to update the static HTML through something called "pushlets" and am not really sure how they would work.If anybody has some info on this please post ASAP.I require to reload all or part of a page currently to get the desired update, just wondering ...

SessionListener Question

458 byte By wmacey at 2007-9-26 4:13:51
I have a sessionListener than when a session is created, a DB connection is started. When the session is destroyed, the DB connection is closed gracefully.....Works great so far.What happens in between is that other worker beans get the connectionWorker.db = Listener.db;and when the session is ...

Why Folder.getSeparator()

214 byte By tlm at 2007-9-26 4:14:03
Can someone explain why getSeparator() is on the Folder object rather than the Store object?It seems unlikely that the folder path delimiter would vary across folders on a server.Thanks.

Netscape Browser Forcing Download Prompt with .jsp

1030 byte By stottd at 2007-9-26 4:15:00
My apologies in advance if this topic has already been covered. Here is the behavior I've come across and can't resolve:When a user with an IE browser visits my site (i.e. http://www.mysite.com), the default page is loaded - no problems. With Netscape, the user is prompted to download. ...

JDOM and JAXM

348 byte By Brunky at 2007-9-26 4:15:01
I have been evaluating JDOM and came to the conclusion that we cannot use it because it will not work well with JAXM. Anybody know anything to the contrary?JAXM returns w3c.org objects and JDOM does not let you create a JDOM object from DOM, very easily if at all. I'd love to hear that I'm ...

J2EE API Documentation Download

260 byte By bennettgs at 2007-9-26 4:15:06
i've been looking in vain for a download of the j2ee 1.2.1 api documentation that's available at http://java.sun.com/j2ee/j2sdkee/techdocs/api/index.html.i'd greatly appreciate it if you can show me the way. thanks in advance.Ben

Multi-threading leads to 700% increase in response times on WLS6

1493 byte By reavels at 2007-9-26 4:15:29
Hi,I have found that when I send concurrent requests to my EJB hosted on WLS6.1 the response time goes up by 700% i.e. average response for my single threaded client is 10ms, average response for my multi-threaded client is 70ms. It is not all bad news, because the throughput is actually 300% ...

itnitialization files with servlets

588 byte By keithmathieu at 2007-9-26 4:15:31
I just started reading Core Servlets and JSP. I must have missed something. The author explains the use of init files, but what is the purpose of giving values to variables in a seperate file? In the example in the book he sets a string and an integer in an init file. I can understand that you ...

JSP to VB or Swing

372 byte By janusz_s at 2007-9-26 4:15:32
Hello. I have project where I need to write the VB client that talks to Tomcat on the back. Yes unfortunately my employer does not want the HTML client. I've come accross Spidertop's Bali (www.spidertop.com) that allows Swing interfaces to be delivered via JSP's. Unfortunately they dont have ...

Enterprise Java Beans

412 byte By babaji at 2007-9-26 4:15:33
Hi,I am a java programmer. I have worked with applets,servlets, jdbc, etc., but I have never worked with EJB'sIs there a good tutorial of it? Does it depend on certainAPI's? Where can I find the classes? I would like to learnand to develop some applications with EJB's. I will appreciate a ...

Creating Windows like ListBox with JSP/Java

714 byte By dhatz at 2007-9-26 4:15:35
I know I might be going out on a limb here, but I have a client that would like us to build a HTML Select tag that would act like the ListBox in Windows. For example, if I have a Select list of Last Names + First Names. If the user starts to type in "SMI" the select box will go to the "SMITHS". ...

How to save an existing class as XML?

681 byte By sandratrace at 2007-9-26 4:15:45
Hello there,I have an existing application and we need to write the saving code. We would like to be able to save to XML. I've been looking at the docs for JAXB to see if this will work for me, and it seems that in order to use it you need to write a bunch of definition files, and then use the ...

Multiple executions in init() method.

368 byte By bpatil at 2007-9-26 4:15:52
Why do statements in init() of servlet get executed multiple times. Is there a way to avoid.for ex: If I put System.out.println("hello); this gets executed 4-5 times ( i am testing in Tomcat).How to avoid it.? I want to do socket connection. I don't want this init() to call socket connect 5 ...

How to user HttpSessionBindingEvent and HttpSessionBindingListener?

149 byte By zhongboqing790612 at 2007-9-26 4:15:53
hi,everyoneI am a beginner to session listener.Can you give some samples?Thank you.best regards,zhongboqing

Where do I put config files for a webapp (war file)?

1220 byte By almilli at 2007-9-26 4:15:57
To my understanding a war file is supposed to be dropped in. It's isn't intended to be unzipped by the person installing the webapp. Inside my web app I have some xml files I access to get configuration information for how the servlet works. This xml file is intended to be edited by the ...

J2EE Blueprints .. prev / next page modification

892 byte By rgarton at 2007-9-26 4:15:58
I'd like to do the following w/the Pet Store Reference Implementation :1) Process the resultant <J2EE:ITEMS> so that they are displayed in a grid fashion, instead of 1/row in the resultant .jsp table.2) Further allow the configuration of the <J2EE:ITEMS> in a 'grid' via ...

Show attachments with java mail API

492 byte By metalcure at 2007-9-26 4:16:06
Hi~~I am learning how to propram with java mail API,so I want to run it's demo program first.Now I can run the demo servlet in java mail.It can get all mails,but the attachments appear on the web browser directly not a jpg format pictures but a lot of strange codes.I wish the attachment will ...

Performance of Jsp and Servlet?

432 byte By zhangbinbin at 2007-9-26 4:16:07
I write the same code for jsp and servlet .When I test with Microsoft web application stress,I get better performance of jsp. Why? The result is showing as:servletRequests/Sec2.7TTFB Avg239.08Network Traffic KB/s330.50+0.96Number of threads2*3 jspRequests/Sec2.84TTFB Avg424.88Network Traffic ...

Getting JSP to work on Win2k Server

883 byte By calibis at 2007-9-26 4:16:10
Hi,I've been trying to get a simple JSP page to work on Win2k Server. The JSP uses simple JDBC ODBC-Bridge to query the "pubs" database on SQL Server, setup as a DSN in ODBC control panel. The JSP page has nothing wrong with it since it works on a friends Win2K professional environment.The ...

Scheduler in Application Server

286 byte By msyal at 2007-9-26 4:16:14
I want to use a scheduler , which will invoke a particular task at a particular time. Does Application server provides a scheduler or I have to create my own scheduler. I need to invoke a method in a bean at a particular day and time set

Can any one gimme the exact url

225 byte By govindarajanp at 2007-9-26 4:16:15
Hello Friends!I want JSObject class for my applet to communicate with javascript.Can anyone gimme the exact url to download the package. ThanxGovindarajangovind_rajan@yahoo.com

uploading a file

1026 byte By myneni_r at 2007-9-26 4:16:21
i want to upload file from browser to server.using file object in html i am able to navigate, and also it is working fine when i run server from the same machine and also browse from the same machine.but when i access the page from some other machine, i am getting file not found exception. this ...

JDBC and Oracle!

572 byte By HongX at 2007-9-26 4:16:36
In my Jsp site I make a search database(oracle) page, and I use a connetion bean(include the method of close datasea). When I used the page to search database, I opened Oracle DBA Stadio and found it has set up a session. Then I search database again and again. I found the session build again ...

Urgent...............

169 byte By AbhijitMK at 2007-9-26 4:16:37
Any one can help me understand how to load an xml file with sax1.1 api?And hoew to append unique child nodes to an existing xml file..

Replace a Node

916 byte By usam at 2007-9-26 4:16:43
Hey,I 've tried to replace a Node, but I failed.Here is the code:newNode is the new nodeNodeList nodelist=document.getElementsByTagName("vorname");Node thisNode=nodelist.item(0);NodeList nodelist2=thisNode.getChildNodes();Node node=nodelist2.item(0);if (node.getNodeType()==Node.TEXT_NODE){if ...

How to Connect SQL Server 7.0 with JSP ?

323 byte By jeffkyt79 at 2007-9-26 4:16:46
Recently, I just installed SQL Server 7.0 with the advice from my boss. But, I have encountered a problem as I am not familiar with the SQL Server's connectivity with the JSP and JDBC. Previously, I was using MySQL to connect and it works fine.Anybody can give me any idea or hints ? Thank you ...

Multiple Entity Beans Share Same Remote/Home Interface

347 byte By netbug21 at 2007-9-26 4:16:52
Hi,We are developing several entity beans which have identical business methods but associated with different db tables. (Those tables have same schema but table name). As a result these entity beans have same remote and home interfaces. Could we have them share a set of remote and home ...

Database-Connection with JDBC

563 byte By rda2 at 2007-9-26 4:16:55
Can somebody tell me the difference between loading a Driver by using for example: "Class.forName("oracle.jdbc.driver.OracleDriver())"or typing:"DriverManager.registerDriver(new oacle.jdbc.driver.OracleDriver()); "In the Book "Core Servlets and JavaServerPages" from Marty Hall is written:"To ...

how urgent:how can we know the size of a record from result set

731 byte By tomyramesh at 2007-9-26 4:17:01
hi proffesionals i attend on problum with arrangment,for that what i am doing is i am fetching datas from database and printing in a row vertically.it is not looking good.i want to print it horizontaly likeae00023as3333a6556a457864a6576ae00025as3336a6556 a457866a6578i wrote the coding ...

Question about SessionBeans

382 byte By j_a_v_a at 2007-9-26 4:17:08
I have several RMI connections to an RMI server and I have to store the remote interfaces of the clients for further communication. Is it possible to store a remote interface in a session bean? The client would then have some kind of reference to that bean and the ejb container doesn't kill ...

Passing an Object to XSLT?

555 byte By andyjwilson at 2007-9-26 4:17:16
Anyone know how one can expose an object to an XSL Transformation?Its kind of similar to an 'extension' only that the XSL can't create the 'instance of' or use the 'static instance of' the object, the object needs to be created and populated by a servlet and somehow exposed to the ...

Ability to send to 2 email addresses with sun.net.smtp.SmtpClient?

388 byte By Greebo at 2007-9-26 4:18:04
Is it possible to send an email to 2 addresses when using the import: sun.net.smtp.SmtpClient?I've got a form which sends the input to an email address - no problems there.But I want it to send to 2 addresses - I've searched various sites but not found how to do this.I tried ...

List of users online

519 byte By capr1ce at 2007-9-26 4:18:13
Hello.I'm writing a web application in JSP/servlets.Users can log into my appliction. When they've logged in, their user name is added to a vector in a UsersOnline class. When they log out, their name is removed. The idea is to be able to print out a list of users online.So my question is: If ...

Authentication script please

317 byte By praveensmart at 2007-9-26 4:18:43
Hi all,I'm new to JSP. I need to implement a application in JSP for that I need to have an authentication script. So, If anybody have the script please send me. I'm using MySQL on Linux. No problem with the database it's using. I'll modify.Please mail to me praveensmart@yahoo.comThanx ...

Displaying double quotes from the DB using JSP/HTML

310 byte By geetuR at 2007-9-26 4:18:49
Hi All,When a user enters double quotes in a textfield, it enters it correctly into the database. But, when I try to display the data,again, it messes it up. I think it is because of the way HTML handles double quotes. Is there some way by which this can be handled ?Thanks everyone ...

Hosting Java Servlets

725 byte By 9615415 at 2007-9-26 4:18:53
I am a Final year Computers student and have completed a Project using Java Servlets to connect to Database and dynamically generate HTML response pages I constructed and tested this Using the Develepment environment available on this site However i now have to host the site on the internet I ...

VBA servlet interaction

263 byte By ge_orge at 2007-9-26 4:18:54
Is there a way to access a servlet using VBA. To post data onto the servlet and retrieve data from the servlet.With no access to the servlets' source code.All access to the servlet is from a clients point, through an internet browser.

"Servlet + JNI", anybody making this?

174 byte By cofensen at 2007-9-26 4:18:56
I am trying to combine Servlet + JNIbut the big problem is "DLL is loaded, but server can't find the method of DLL's"so strange... help~~

Accessing a remote machine using JNDI (for MQSeries)

1306 byte By willwright at 2007-9-26 4:18:59
I am trying to use MQ to set up a couple of JNDI objects on the MQ machine ( a QueueConnectionFactory and a Queue object ) and then simply looking these up through configuration and using them to read in and write messages to the queue.My problem is with JNDI. I have created the objects on the ...

HomeClass not Found Error!

448 byte By matrixmc at 2007-9-26 4:19:01
HiAnybody wanna help me out with this problem,I have correctly deployed nearly all the example application and when run the client I always get a Homexxxx class not found error or another errorBinding name:`java:comp/env/ejb/SimpleSavingsAccount`Application threw an ...