<BASE> tag can make Tomcat create new HttpSession?

2000 byte By idan at 2007-9-26 5:01:13
Hi!I am building a web application where a set of existing HTML pages are displayed in a sequence using arrows to go to the next, previous, first, last. Imagine a servlet or JSP that must display all HTMLs from a folder. In Tomcat all HTMLs are stored in /myapp/docs. All <IMG> tags in the ...

jsp --> servlet: what about constructors?

713 byte By aNdy at 2007-9-26 5:01:15
ok guys,i have to forward to a servlet from a jsp.how can i handle different constructors of that servlet?i mean that servlet defines its state via the constructorsbeing passed some variable data, but what is my impacton that from a jsp forward statement?jsp:<jsp:forward ...

Problem: Bean Managed Persistence with Container Managed Transactions

1052 byte By ei96041 at 2007-9-26 5:01:26
Hi,I'm integrated in a team that's developing a J2EE aplication using JRun 3.0.We detected a problem with transactions and created a test case to study the problem. The test case consists of a BMP entity bean with Container Managed Transactions (transaction attribute set to "required" to all ...

A pdf file content type from JSP...HELP!?

247 byte By tszalew at 2007-9-26 5:01:31
I changed the content type from HTML to PDF in JSP.PDF tried to launch and then an error message of dataformat error occurred. What type of conversion do I need to make to have Acrobat launch successfully? Tom Szalewski

SAXParserFactory

1793 byte By ras1292 at 2007-9-26 5:01:46
import java.io.*;import org.xml.sax.*;import org.xml.sax.helpers.DefaultHandler;import javax.xml.parsers.SAXParserFactory; import javax.xml.parsers.ParserConfigurationException;import javax.xml.parsers.SAXParser;public class XMLTest{I am attemping to compile and run a simple program to open ...

Generating XML document

348 byte By jerch at 2007-9-26 5:01:51
Hi...What's the best way to generate an XML document? DOM? simple string manipulation - using StringBuffer? or other ways you know to generate XML document? Note that the XML document is not going to be written to a file. The XML document generated will be send to another program for ...

Disabling browser stuff/....

296 byte By wmacey at 2007-9-26 5:01:54
Is there a way to disable browser specific function key actions? Basically, I want to run a JSP / HTML / Javascript in a browser, but I do not want F1(IE) to bring up IE Help.....I can capture the keyCodes no problem, but how do I swallow the default action, or can I?

Session, Application, Static Persistence

560 byte By wmacey at 2007-9-26 5:02:04
Here is what I want to do, can someone tell me if it can be done? When I install/deploy my application and it is set up, I wish for something to run and store some resources, DB connections, arrays of users, etc that will be used by all users that may log in to my application.Also, if one user ...

Deceptively simple mysql question

456 byte By mikesab at 2007-9-26 5:02:06
I've set up a database with mysql and have created a primitive database explorer. Each row is a client record. I can access each row individually with displayRow.jsp, which simply spits out the contents of that row onto a webpage. Now, I'd like to access the next or the previous record (row) ...

JSP compiler error when invoking a JSP file?

741 byte By zhangha at 2007-9-26 5:02:08
I have a jsp file using java bean. The java bean class file is uploaded into the server and also the directory to this java bean .class file is included in the Unix environment CLASSPATH. This .jsp file is registered and should be compiled and excecuted automatically. WHen I try to invoke this ...

java server page compiler can not find a class defined in a java bean file

754 byte By zhangha at 2007-9-26 5:02:10
I have a jsp file using java bean. The java bean class file is uploaded into the server and also the directory to this java bean .class file is included in the Unix environment CLASSPATH. This .jsp file is registered and should be compiled and excecuted automatically.WHen I try to invoke this ...

OutOfMemory on return from EJB

969 byte By wookiee at 2007-9-26 5:02:17
I'm returning a ~3200 element HashMap from an EJB call, on the server side, if I check the amount of memory the HashMap is using, it's only about 500K, but on the client side, as it is receiving the HashMap, the Win2K task manager shows the Java process goes from 13 megs to 290 megs and then ...

Problem with odbc sqlserver 2000

1058 byte By condorator14 at 2007-9-26 5:02:24
hi everybody, actually i develop an aplication that must connect to a sql server db, i was using the jnetdirect driver and all works fine, but i need a free one in my application, i use preparedStatement, and the problem rise in the ODBC driver when i assign a boolean value to the prepared ...

Frames and where HTML/JSP's open

865 byte By CMooney at 2007-9-26 5:02:29
I've written a little 'intelligent agent' to parse web pages viewed by a user and extract keywords for improved searching. The set up is a two row frame in the browser, with my application's features running in the top row and the user's prefered search engine running under this. For ...

when execute the jsp file, the code in which section get executed first?

294 byte By zhangha at 2007-9-26 5:02:31
when execute the jsp file, the code in which section get executed first?I saw a jsp file. There are some java code in HTML header section , some in the section after the header, some code in the HTML body section. What is the order as far as which code get executed first?

problem with j2eeadmin -addJmsDestination

519 byte By minwu2000 at 2007-9-26 5:02:52
I have downloaded and installed the j2ee 1.3 beta version in my linux machine with mandrake 8.0.When I use j2eeadmin to add a JMS destination, for example:j2eeadmin -addJmsDestination MyQueue queue(the same as the command in the JMS tutorial)I got the following ...

Passin values from drop down list into session

757 byte By arnoldfire at 2007-9-26 5:02:59
Hi I amtrying to pass value that has been selected from a dynamic drop down list , to a servlet.When I submit the form and do a session.getValue(invoicenum) or request.getParameter in the servlet , i dont get the value that has been selected.How do i put the value from the drop down list into ...

JMS scalability

834 byte By erikweber at 2007-9-26 5:03:00
I have posted to the JBoss list with this, but as usual, it's like beating a dead horse, so I figured I would try here.The problem is that if I hit a JBoss topic with a bunch of large messages at once (let's say one connection, 10 sessions, each session trying to publish a 4MB message to the ...

JSP - File Attachment

530 byte By ramankoduri at 2007-9-26 5:03:10
Hi Friends,My name is Raman. I am from Hyderabad. I have a question about File Attachment. If any body having solution please mail to me. my mail id is ramankoduri@indya.com or ramankoduri@yahoo.comMy question is:When some body registered in my site. I have to send his details to his mail id ...

jsp deploy

214 byte By plnr at 2007-9-26 5:03:38
hello , i have developed a jsp application, i have finished all type of work in the project. now i want to give it to client, how can i present that project to them,please help me

How to send email with SMTP server authentication

194 byte By sabufeb at 2007-9-26 5:03:43
HiMy SMTP server needs authentication and I want to send email with SMTP server Authentication.Could you pls help me with a sample code thankssabu

Urgent!!!!

94 byte By bapi2 at 2007-9-26 5:03:44
HayI just want my jsp web page should not be allowed to save in hard disk

update mutliple records from resultset

294 byte By arnoldfire at 2007-9-26 5:04:21
HiI execute a query which results in multiple records .I update a few checkboxes which come out with the records. I need to update these records into tables for which I call a servlet.How will I pass the record sets into the servlet to update ThanksArn

can someone tell me how I can make my XML look different?

1549 byte By auwy29 at 2007-9-26 5:04:45
Dear All,I am a beginner for XML, and I wrote the following XML. but on Internet Explorer, it just output the following all on one line. How will I be able to make it so that it appears one line below another?I would appreciate any hints, or if someone can point me to an example will be ...

JSP security, and html templates - related questions

708 byte By davis51T at 2007-9-26 5:04:49
Hi,My web hosting company allows me to create and use servlets, but not JSPs. They say that there are security issues related to JSP. First question: Is it true? I've heard that there are such issues on Windows implementations, but not on Solaris (which is what my server's running.)Regardless ...

question on post form authentication

292 byte By bertra_b at 2007-9-26 5:04:52
Hello,I am using a form authentication (with j_security_check) on, for example, MyServlet.When the user is logged and the program is in the doGet methods, I would like to know the user's name (j_username).Is there a way to know this ?Benoit Bertrand

Problems with indirect extend of EJBObject

810 byte By ericjkaplan at 2007-9-26 5:04:57
HiI'm doing something which I should hope is relatively straightforward. Instead of duplicating lots of code for all my BMP entity beans, I have an abstract base bean class along with a base remote interface which extends EJBObject. Then, I have my actual EJBs bean class extend this abstract ...

How can i post mail that include attchment in jsp?

21 byte By stoneskin at 2007-9-26 5:05:01
thanks!

Where does tomcat store the classes and .java files generated from JSP?

235 byte By thunderBolt at 2007-9-26 5:05:07
Where does tomcat store the classes and .java files generated from JSP?I edited some of the .jsp file, stop and restart the tomcat, but it still loads the old jsp. I am using linux + tomcat3.2 + mysql

Identifying Cookie disabling

144 byte By ssivu at 2007-9-26 5:05:13
Hi ,How do I identify if a client browser has disabled cookies using JSP ? Is there a single command to do so ?Thanx

JWSDK

160 byte By slsl71 at 2007-9-26 5:05:32
I have downloaded Tomcat 2.3but my system is Win98 2th editionCan I run Tomcat on it? If can, how to config it.Thanks.

How do I get the grandchildren of the root in JDOM?

2374 byte By auwy29 at 2007-9-26 5:05:35
Dear All,This is my XML document:<?xml version="1.0"?><?xml-stylesheet type="text/css" href="style.css"?><DisruptionsInfo><Title>Disruptions on the London Underground</Title><noService><between><description>The are no service ...

User Authentication using Servlet and JSp

796 byte By kushM at 2007-9-26 5:05:36
Hi, I am developing a web app where i need to implement user Authentication to allow members to view and upload files on a certain directory say /data For this i am using a servlet as a controller which then forwads request to other jsps/servlets based on user response. I tried using servlet ...

Questions about Shopping Cart

276 byte By gary_lo at 2007-9-26 5:05:41
Let's say I want to implement a shopping cart using a stateful session bean, how do I go about passing the state of the bean from one jsp to another one? What I mean is that I need to be able to access the same bean (with its original state) from different jsp.

j2sdkee1.3 install error

1782 byte By er824 at 2007-9-26 5:06:19
I'm trying to set uo the j2sdkee1.3 beta on Linux. When I start the server using the command 'j2ee - verbose', I get the following SecurityError. Any advice would be greatly appreciatedBinding : < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No propertie ...

JSP, charset problem

1299 byte By phivos at 2007-9-26 5:06:40
I have some JSP pages where I try to dynamically present some drop-down menus for the users to select values. I use a simple bean to manage it. The problem is that those values are in non-iso8859-1 charset and I only get ? rendered in the select box. I define an array (inline in the JSP page ...

Can't Run the WebMail.java file!

1102 byte By Omnigunk at 2007-9-26 5:06:51
http://wrox.com/Books/Book_down.asp?section=11_4&isbn=1861002777&subject=&subject_id=Chapter 13 Source Code I can't seem to compile this WebMail.java file. I have TomCat and servlets.jar is in my classpath too running but to no avail! Do u manage to compile and run it? Can u guys ...

How to run this servlet? Please help!

1095 byte By Omnigunk at 2007-9-26 5:06:52
http://wrox.com/Books/Book_down.asp?section=11_4&isbn=1861002777&subject=&subject_id=Chapter 13 Source Code I can't seem to compile this WebMail.java file. I have TomCat and servlets.jar is in my classpath too running but to no avail! Do u manage to compile and run it? Can u guys ...

Apache virtual hosting: how to delegate *all* requests to Tomcat/servlet?

5430 byte By avbentem at 2007-9-26 5:06:56
Allow me to repeat something I posted in news:alt.apache.configuration, as I do not know where else to ask for help... Hints for better places to ask these questions are appeciated!I want to create a kind of filtering proxy. So, I have set up Apache to work with Tomcat 3.2.3 (mod_jk) and pass ...

How to avoid seeing the absolute path when user plays with the url

500 byte By adamrau at 2007-9-26 5:07:06
i.e.I have a page called login.jspSOmeone plays with the URL and types in login1.jspTHis is what the webpage looks likeRequest URI:/pages/General/AlFeatured.jspException:javax.servlet.ServletException: java.io.FileNotFoundException: /Apache/htdocs/pages/login1.jsp (No such file or directory) ...

Dynamic database content on home page

995 byte By tibbster at 2007-9-26 5:07:11
I'm new to the jsp world and would appreciate some help!! I'm trying to create a site that has dynamic database content on the first page of the site - the home page. For example, i'd like to display a table of the last 5 or so records that have been inserted into a particular database ...

How to display an image on the browser

192 byte By peter_z at 2007-9-26 5:07:22
Hi, every one,I storied an image file in mysql as blob data type.Any one can tell me how to display the data on the browser with jsp?Thanks in advance.Peter.

How to specify a SAX Driver?

446 byte By leon5wu at 2007-9-26 5:07:23
Hello,I got the following error when I run my program.org.xml.sax.SAXException: System property org.xml.sax.driver not specifiedat org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:90)at examples.xml.http.StockClient.main(StockClient.java, Compiled Code)I use JAXP API ...

Need Help with declaration element syntax

1244 byte By javapadma at 2007-9-26 5:07:29
Hi, I am using ultradev 4.0 for developing my JSP pages.I am trying to retrive and format the date from a column. Ultradev automatically adds the code as<pre><%!public String DoDateTime(java.lang.Object aObject,int nNamedFormat,java.util.Locale aLocale) throws Exception{if ((aObject != ...

how to use Callable statements.

436 byte By sentiments at 2007-9-26 5:07:40
Hi.I'm just new in using JSP. I just want to ask how to call stored procedures (ex. from SQL Server) using the Callable statements. A sample code will be very helpful......Ex. I have these parameters for my stored proc:name = "sentiments"; //value will always varyadd= "NJ";//value will always ...

Getting a variable from XML

648 byte By DHgeospatial at 2007-9-26 5:07:43
I have a series of URLs that, when I send via a broswer, return a page of XML code. I then write down specfic variables within certain tags, put these variables into a subsequent URL string, and so on until the server recieving the URL has all the information it needs to send me a map. However, ...

css and RequestDispatcher problem

1167 byte By verdi96 at 2007-9-26 5:07:47
I'm using JBoss + embedded Tomcat (not using apacheyet in development).I have problem with JSP and css. My JSP includes csswith this tag:<link rel="stylesheet" href="style.css" type="text/css"> If I access the JSP directly from web-browser --IE5--to ...

session getting lost

479 byte By payal_sharma at 2007-9-26 5:07:50
Now issue related to session I am using tomcat 3.1In my login page my session value get lost frequently.I am usingsession.setAttribute("logon.isDone", name); in servlets and In every jsp's I am checking as <% ...

session getting lost

479 byte By payal_sharma at 2007-9-26 5:07:51
Now issue related to session I am using tomcat 3.1In my login page my session value get lost frequently.I am usingsession.setAttribute("logon.isDone", name); in servlets and In every jsp's I am checking as <% ...

How to install a servlet package

247 byte By Dragonwui at 2007-9-26 5:07:52
dear all,i have a problem, I cannot compiled my code because javax.servlet package not found, now, i have already load the package but i dont know where and how to put the package.ok thanksregardsDragonwui