DocumentType to OutputStream -- DocumentType is Lost

782 byte By markcoth at 2007-9-26 3:50:56
I am trying to do the following...DocumentBuilder builder = DocumentBuilderFactory().newDocumentBuilder();DOMImplementation domImpl = builder.getDOMImplementation();DocumentType type = domImpl.createDocumentType("XXX", null, "My.DTD");Document doc = domImpl.createDocument(null, "XXX", type);I ...

EJB Server

244 byte By akhalil100 at 2007-9-26 3:51:03
I'am new to EJB and wondering where I can get a free EJB Server without any trial version etc.Does Sun provide one? If so, could you please provide information where I could downloada EJB Server?Thanks

Applets in html in servelts

667 byte By darkling235 at 2007-9-26 3:51:04
I have a problem with a servlet i'm writing.i'm trying to use the servlet to construct a html page with a java applet GUI inside of it. I'm using the information collected by this GUI to create a new html page that utilizes the collected information. My porblem is that as I understand it to ...

jsp tree using taglibs

382 byte By greatchivi at 2007-9-26 3:51:06
hi,i'm trying to implement a tree structure using jsp for which i have a taglib.tld which has different tags and attributes.My jsp page has the taglib uri:<%@ taglib uri="taglib.tld" prefix="tree" %>but i get the foll errorNo such tag folder in the tag library imported with prefix ...

useBean ClassCastException

678 byte By gentyt at 2007-9-26 3:51:15
Hi,Anyone was able to solve my last problem ( http://forums.java.sun.com/thread.jsp?forum=45&thread=158695) so I'm trying another way...I create a TextProperties class wich is a Properties class but only accepts String and return only String (just to don't have to cast each object returned ...

How can I POST data within the same page if I have a <A HREF>-tag as input?

194 byte By eeenrico at 2007-9-26 3:51:22
How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

Printing from jsp

705 byte By JEBsilenus at 2007-9-26 3:51:23
I have a web site consisting of jsp's and servlets running on apache/tomcat. The site will be run on a standalone computer in kiosk mode. So, the webserver and browser will be on the same machine. The customer would like a button that will print the current jsp but we don't want the print ...

Sun's view towards JDOM

328 byte By Brunky at 2007-9-26 3:51:29
Does anyone know what Sun's policy concerning JDOM is?I hear DOM4J is supposed to be better, does anyone agree or not.Currently, I'm using DOM and am sick of dealing with nodes. JDOM would be much better but I don't want to walk down a path that will lead nowhere.Thoughts anyone?dvb ...

File Upload doubt!

306 byte By geetuR at 2007-9-26 3:51:39
Hi I have a problem with File upload. Although, I have got it to work, I would like to customise it further. I want the user to be able to specify the directory where he would like to upload the directory to. How do I achieve doing this ?Please, any help is greatly appreciated. ...

Session Manager

1194 byte By rgorrie1 at 2007-9-26 3:51:45
Hey all,I've created a Session manager which records all of the Sessions that are created when somebody logs into my system so I can track and monitor server activity. It catalogs all the info about the session in a servlet that is instantiated when the server starts up (sort of like a JDBC ...

displaying a picture or image in a java server page

122 byte By sjsda at 2007-9-26 3:52:03
I am using tomcat to load my java server pages. I need to display a picture in the page. Can somebody help?

Using "LIKE" in J2EE SQL Query Window

401 byte By huertas77 at 2007-9-26 3:52:16
Whats the syntax to define a finder method using the SQL "LIKE" clause in J2EE in the deployment settings of an CMP entity bean...for example lets say I have an entity bean with a primary ket called "PK" and a String data member called "Titile", I've tried: SELECT "PK" FROM "EntityBeanTable" ...

How can I run EJB Client in other computer ?

654 byte By SangHPark at 2007-9-26 3:52:17
Hello,I'm trying to run converter examples.if ejb client pgm resides on a same machine with j2ee server , it works fine.But when I put client pgm on a different machingbelow message show.**********************************No application client descriptors defined for: ...

Show progress in long running proceedure

407 byte By tmoore1 at 2007-9-26 3:52:25
Hello,I have a problem and I hope someone has some suggestions.I have a jsp that will post to a sevlet wich starts a very long proceedure. I want to be able to show some kind of status while this is going on.I have tried to start this proceedure (servlet side) with in a thread but it does not ...

Possible to redirect JSP output?

692 byte By Greg_B at 2007-9-26 3:52:28
Is it possible to redirect the output of a JSP either directly to a printer or directly to a File object? I would like to write a report template using JSP and be able to display it via a browser (so far so good, that's what JSP does) but I'd also like to take the same output that the JSP ...

help with JSP Forward !!!

598 byte By gnanesh2 at 2007-9-26 3:52:46
I have 3 pages ...1) index.jsp 2) Forward.jsp 3) welcome.jspI have 2 fields in the index.jsp once upon filling & hit submit it has to to go Forward.jsp page...in the Forward.jsp..i have coded only one tag with<jsp:forward page="welcome.jsp" />I have one question...once the page comes ...

Bean resultset too big to pass to JSP variable

1241 byte By cyy2001 at 2007-9-26 3:52:48
Hi,Friend: I created a Java Bean to process database data and from my jsp page I call the bean method to get the resultset value and assign to the Array variables. The Java code compiled and run properly, I can get the right result. but when I used the bean method from jsp, MBArray array ...

Output Parameters - Urgent

242 byte By vasvoruganti at 2007-9-26 3:52:50
In my JSP page i am using Callable Statements for storing the data. The stored procedure returns a value after inserting the data. I want to know, how to access the output parameter passed by the stored procudure in the JSP page

Creating a .zip file from within JSP

793 byte By mestine at 2007-9-26 3:52:51
I am developing a web-based data retrieval utility whereby researchers can download multiple data files pertaining to work they have had done in our labs. These files are zipped on the fly and then delivered to the end user via JSP. My zip files are created using a utility class, and the ...

How do I make Apache DocumentRoot == webapp root?

603 byte By rdare at 2007-9-26 3:53:05
My platform is Linux (Redhat 7.2) with Apache and Tomcat 3.3-b1, using mod_jk.so to talk to Apache.How do I set it so that the webserver DocumentRoot getshandled by Tomcat. I want to put .jsp pages in the webDocmuentRoot, and I haven't been able to figure this outwith mod_jk.so. For example if ...

Has anyone used JAAS with WebLogic?

6289 byte By 6tr6tr at 2007-9-26 3:53:18
Has anyone used JAAS with Weblogic? I was looking at their example, and I have a bunch of questions about it. Here goes:Basically the problem is this: the plug-in LoginModule model of JAAS used in WebLogic (with EJB Servers) seems to allow clients to falsely authenticate.Let me give you a ...

J2EE forum : J2EE SDK download, FAQ, interest lists

716 byte By CameronBraid at 2007-9-26 3:53:22
Hello All,Here's a Java forum specifically for the J2EE SDK!Please post all your J2EE SDK related queries and experiences that will be helpful to fellow J2EE developers.The downloadable bundle for J2EE SDK 1.3 beta 2 is now available at http://java.sun.com/j2ee/download.html#sdkPlease take a ...

Recursive JSP Custom Tags

389 byte By paul_m_payne at 2007-9-26 3:53:31
I am wanting to create a JSP custom tag (not with a body) that accesses content from a database and then displays it to the user. Within the contet being displayed, there are additional JSP custom tags that need to be handled by the JSP container. Is their a way to have JSP custom tags that ...

Checking existence of a gif in jsp.

87 byte By danwallace at 2007-9-26 3:53:50
How can I check for the existence of a gif (in a war) from within a jsp?

How to display attachments like gif in web based mail?

189 byte By MLomongo at 2007-9-26 3:53:56
Good day everyone.My problem is displaying attachments of known types(like jpeg,gif, etc.) into a web based mail? If you can provide code snippets the better, thanks...

Tomcat and the servlet of java mail demo

827 byte By metalcure at 2007-9-26 3:54:12
Hi all~~I compiled the demo servlet and run it on Tomcat.When I login to the servlet,I can see a table which says there are 2 messages in the INBOX folder(I just sent 2 mails to my mail box to test the servlet).It seemed that nothing was wrong.But when I clicked the hyperlink of the ...

Inserting null values in the backend using entity beans

421 byte By savitharr1 at 2007-9-26 3:54:24
How to insert null values in the backend using entity beans? Since the PK class has all backend fields as datamembers whether is it not possible to insert null values in the backend? I tried overloading ejbCreate() that also did not work because of the above reason. Can anyone help me out in ...

ejb compile error, please help

1956 byte By liberticide at 2007-9-26 3:54:31
Does anybody knows why i got following error, I copy from word to word from book but I am keep getting same error message over an over please help thx in advance DiceEJB.java [17:1] class DiceEJB must be declared abstract. It does not define public abstract void ejbPassivate() throws ...

reading from html by servlets

199 byte By vinod1280 at 2007-9-26 3:54:33
well i am a beginer and i need to take the information from the html form and send it to the database for different users. if u can suggest any site with this information.

getMaxInactiveInterval() method not found

247 byte By aparna_chitragar at 2007-9-26 3:54:38
Whenever I run my servlets I get Following errorjava.lang.NoSuchMethodError: javax.servlet.http.HttpSession: method getMaxInactiveInterval()I not foundcan any body tell me the reason of above error and how to remove it?

Writing data into an XML file on Unix/Tomcat platform - URGENT!!!!

2212 byte By jcshroff at 2007-9-26 3:54:39
Hi,Thanks for the solution about using a protocol prefix before accessing the XML file from the Unix file system. I used the http protocol before the file path and the servlet is able to read the XML file. But however, now while writing into the XML file, a SecurityException is thrown by ...

About Jsp Model

309 byte By dragon_east at 2007-9-26 3:54:44
I want to add some Jsp Model into my project , if so I can do my job faster. For example: I want to create a model to display the record of the database table.But I don't know how to begin.Where has the example and the document about it? Who can help me?Thanks in advance! ...

Controlling the loading of servlets

501 byte By preethamk at 2007-9-26 3:54:54
Hi, I use Jrun to run my servlets. I have two servlets A and B. Both of them are to be auto loaded. A depends on API's of B for some operation. However, the first few API calls made by A do not go thru, since apparently servlet B is not loaded inspite of B being specified to be loaded before ...

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

871 byte By sameera_cmca at 2007-9-26 3:54:58
is the following code valid . if not can anyone help me out ..... examples or links ...........................import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.sql.*;import java.net.*;public class Service extends HttpServlet{public void doGet(HttpServletRequest ...

How to create two PrimaryKeys in J2EE

1691 byte By killC at 2007-9-26 3:54:59
Hi all!I've tried to use the "ejb-jar.xml" file for creating two PrimaryKeys, one as String, second as Integer. There is a tag in "ejb-jar.xml" for ...

finder method in container-managed entity bean

552 byte By sriva123 at 2007-9-26 3:55:02
Finder method of a container entity bean is taking the primary key class object of another entity bean. How to map this in the xml descriptor file weblogic-cmp-rdbms.xml for this type of beans.I am trying to deploy the jasmine computer store of Mastering EJB by EdRoman.I couldn't write the ...

Output of a servlet inside another page

201 byte By ajalali at 2007-9-26 3:55:03
I like to include the result of a servlets output on a diffrent server inside an static html page. is this possible? I know that you can do this with cgi but how is it done with a servlet

Prob with automated reply

156 byte By bonjava at 2007-9-26 3:55:10
Hi I have a problem in automating replies to people who send mails to me.Can any one help me pls.thanks in advancebonjava

Making checkbox read only

184 byte By anu_code at 2007-9-26 3:55:11
HI I want to read information from the database and check the box on/off but the user shudnt be allowed to change it. What is the way to do it?Thanks

send xml data over http to servlet

482 byte By tcsguna at 2007-9-26 3:55:23
Hi, I need to save data from an xml file into database. I have tried weblogic's xml-over-http ejb example. But, the example constructs xml dynamically based on the user input.I don't want to do that. I'm presenting an editable xml file to the use and when the user presses submit i want to ...

get multiple values from a html <select>

1051 byte By obersong at 2007-9-26 3:55:35
I have a <select> object on my html page, with ~50 <option> values.My user must be able to select many options (with the ctrl key).How can I get more than one value with request.getParameter("...") ?currently, when I select more than 1 options, and I submit the form, I can only get ...

Calling PDF File from JSP

220 byte By anu_code at 2007-9-26 3:55:40
HII want to call a PDF file from JSP. From the documentation it appears that I can call only the Applet plugins?How should I call the PDF Plugin or is ther any other way to do it?Thanks

In Tomcat's example, how can it find HelloWorldExample servlet?

215 byte By xallan at 2007-9-26 3:55:43
I looked up the examples/web-inf/web.xml, but I cann't find the mapping info for HelloWorldExample servlet. When I browse the servlets/index.html and click Execute HelloWorld, how can Tomcat find it?

Null pointer exception?

245 byte By aninu at 2007-9-26 3:55:49
Hi all,String [] paramvalues = req.getParameterValues("p");out.println(paramvalues.length);the first line throws NullPointer Exception why is it so?What should I do to avoid this error?Nin.

Is there a solution?

236 byte By BRoberto at 2007-9-26 3:55:55
From various days I am searching for one solution...I have to create an application in JSP on a Linux server. Details at the address: http://www.ileda.it/question.asp Thanks!!email: caaib@tin.it

SecurityException: sealing violation, URGENT!!!!

4134 byte By jcshroff at 2007-9-26 3:56:10
Hi,While writing data into an XML file from a servlet running on Unix/Tomcat platform, a SecurityException: Sealing Violation is thrown. This is the exact error that comes up:Error: 500Location: /servlet/TestOrderAddInternal Servlet Error:java.lang.SecurityException: sealing violationat ...

populating drop down lists dynamically?

380 byte By fagane at 2007-9-26 3:56:21
I have a date field on my jsp form. I want to ensure that the date is entered correctly. To do this I have 3 drop down lists....year, month, date.How can I populate the date list when the user selects a month?e.g. user enters "Feb". Date list should only display numbers 1 to 28 or 1 to 29 if it ...

Servlet communication

355 byte By dbaonix at 2007-9-26 3:56:28
Is there a way for one sevlet to call another and use the output of the second?e.g. ServletA calls ServletB, ServletB replies with some HTML, which ServletA processes and informs the user?I've looked into request dispatchers and these only forward or include content. Any input would be greatly ...

How can I find out what link that was clicked on on a page?

170 byte By eeenrico at 2007-9-26 3:56:29
Is it possible to find out what link that was clicked on a page (and if this is done with javascript - how can I "translate" that information to java code).

Where to find a Discussion Forum JSP application?

307 byte By Alfredo.Ramos at 2007-9-26 3:56:38
Hi!I am just wondering if there is, somewhere an application for a discussion forum made in JSP. It is a so common application that I don't want to bother to start one from the scratch.It is aimed for an Intranet, does any one knows where can I find one?Thank you. ...