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 ...
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
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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. ...
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 ...
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?
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" ...
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: ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
How can I check for the existence of a gif (in a war) from within a jsp?
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...
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 ...
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 ...
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 ...
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.
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?
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 ...
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! ...
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 ...
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 ...
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 ...
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 ...
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
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
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
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 ...
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 ...
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
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?
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.
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
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 ...
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 ...
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 ...
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).
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. ...