Re: Error in Loading a bean

2000-04-17 Thread Arnab Acharya
Dear Prasun, R u using Impl bean? I've worked in an autoportal. There we used the impl in beanid, like bean id="testBeanImpl". If not, just check if u've set the classpath properly. Rgds, Arnab -Original Message- From: Prasun Kumar Sarangi [SMTP:[EMAIL PROTECTED]] Sent: Monday,

unsubscribe

2000-04-17 Thread LUX,ANDREAS (Non-A-Germany,ex1)
-Original Message- From: Automatic digest processor [mailto:[EMAIL PROTECTED]] Sent: Monday, April 17, 2000 9:00 AM To: Recipients of JSP-INTEREST digests Subject: JSP-INTEREST Digest - 15 Apr 2000 to 16 Apr 2000 (#2000-35)

Re: Model 2 and multi-page techniques

2000-04-17 Thread Daniel Lopez
Hi again Kevin, Cubed comments intermixed ;). Kevin Duffey wrote: Hi, I'll add comments to comments to my comments. ;) snip, snip, ... Eummm, actually I always recommend and implement doing it the other way round (I'm sorry Kevin ;) ). If your browser doesn't execute Javascript

A Live Fully Functional Database Application in JSP

2000-04-17 Thread kishore
Hi Everyone, If you are looking for a live web application written completely in Java JSP, then you should be going to www.redladder.com This is developed completely in JSP by Synapta Inc, a web application development company in Palo Alto, California (www.synapta.com) RedLadder.com is a

FW: Saving ServletRequest's...

2000-04-17 Thread Scott Evans
I'm forwarding a question that started on the tomcat-user list server: As in the situation when the user submits a request that requires a session and they don't have one or it has expired, so you want to save the request parameters, forward to a login page, and then get them back when the user

Dynamo/JSP/JRun (Newbie Questions)

2000-04-17 Thread Jon Baer
Hi, just joined the list, have a few questions. Ive recently left a job but was using Dynamo App Server from ATG and I wanted to find out if it was possible to perform inline requests like their DROPLETS were performed and if I could use the same technique in JSP. I was under the assumption

Re: AW: Model 2 and multi-page techniques

2000-04-17 Thread Daniel Lopez
Hi, Kevin Duffey wrote: I will do the same..snip where needed for bevity. but just forward to the appropriate JSP and let this page get the "previous" results from the session. But the are all pretty much a matter of taste so use what you like, just be sure that you have your own

Re: retaining data between multiple clicks

2000-04-17 Thread Joe Wolf
The way I've done it is either to put the values on to the session object on the onload page e.g. String Mystring=request.getParameter(name of input type from previous page); session.putValue("Myname", MyString); or the other way was using some form of javascript:history.back(). The other part

No Subject

2000-04-17 Thread Purushothaman Kaliyaperum
hi, iam unable to startup the tomcat server.It was not showing any error at the startup, but when i tried to connect , the connection to the server fails.And while shutting down the server, it tell SAXParseException at line number 5. that line contains the file:./etc/server.dtd. Can anybody

Re: JSP query with cookies setting

2000-04-17 Thread Jerry Denman
Without seeing your code I can only make a guess - all cookie operations typically must take place within the HEAD/HEAD tags. Most often the cookie will not set if done in any other portion of the HTML code. Hope that helps Jerry M Denman Management Information Consulting -Original

Problem with JSWDK 1.0.1

2000-04-17 Thread Norman Hall
All, I am experiencing a problem running Mr. Govind Seshadri's Java Server Page outlined in his March, 2000 article in Java World magazine entitled, "Advanced form processing using JSP". The error log from the JSWDK indicates: Unhandled error! You might want to consider having an error page to

Re: Java whios DB query

2000-04-17 Thread tkumar
Hi, I use a fine example (Example 7/12) from the book Java Network Programming by Elliotte Rusty Harold - OReilly publication for this InterNIC querying . Ofcource there are some deprecated methods present and also a standalone programme - which I am sure you will able handle yourself.

Deploying packaged tag libraries

2000-04-17 Thread Petr Jiricka
Hello, I'd like to ask a question about using packaged tag libraries at development and deployment time. Section 5.2.1 of the JSP specification says that "JSP page authoring tools are required to accept a tag library that is packaged as a jar file." This half implies that servers are not

Re: How to call a servlet from a JSP page ?

2000-04-17 Thread Zhu Jianga
I think the problem is in your link: a href="http://127.0.0.1:7001/servletclasses/myServlet.class"img border=0 height=14 hspace=8 src="/pics/buttons/submit.gif"/a you do not have end "" in the start "a"; 404 is "file not found error",so the problem is with the name of your servlet. another

Re: How to call a servlet from a JSP page ?

2000-04-17 Thread Scott Evans
But you cannot submit a form with a link unless you use javascript - which is not a good idea if you want to make sure your forms always get submitted. Instead, you need to use the image input tag and then on the server-side check for its "existence" in the query parameters. You have got to do

Re: How to call a servlet from a JSP page ?

2000-04-17 Thread Jim Michael
You can't name these "image buttons", so if you have more than one they are named in the order they appear in the html, so if the user clicked on the I've been using names with image input with syntax: input type=image src=foo.gif name=map and resolve the coordinates with map.x and map.y

Re: help - predefined session variable

2000-04-17 Thread Sachin S. Khanna
What output are you getting for the : System.out.println(test) ; print the value of test on the browser with the following line : %= test % And let us know what does it show on your browser. Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message -

Re: How to call a servlet from a JSP page ?

2000-04-17 Thread Sachin S. Khanna
Also don't forget to remove the .class extension from the url as well for eg. a href="http://127.0.0.1:7001/servletclasses/myServlet"img border=0 height=14 hspace=8 src="/pics/buttons/submit.gif"/a Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message

Model 2 questions basic

2000-04-17 Thread Bailey, Jeff A
This message is rather long, just a warning. . . Hello all, I would like to start this message by thanking those who have contributed to the model 2 discussion that I have been following. After reading (and re-reading) over the threads, I thought it would be a good time to discuss my design

JSP Performance?

2000-04-17 Thread Neil Harrison
Hello. A general point - if I'm returing a lot of results from a database which need only a small amount of formatting for display, am i better off using plain looped out.print statements instead of JSP - ie will the compile time overhead of JSP each time the page is requested be noticably

Re: JSP Performance?

2000-04-17 Thread Filip Zalewski
JSP pages do not compile every time you request them. They compile only on the first request and many application servers (not sure about Websphere) have an option to compile before you deploy. Regards, Fz Neil Harrison wrote: Hello. A general point - if I'm returing a lot of results from

Re: How to call a servlet from a JSP page ?

2000-04-17 Thread Shrisha Radhakrishna
You can submit a form with an image link (no need of any JavaScript). form method="POST" action="servlet/fooServlet" ... ... !-- The following line is the submit button-- input type="image" border="0" src="next.gif" width="100" height="30" /form I have been using these kinds of submit buttons

Re: JSP Performance?

2000-04-17 Thread Shrisha Radhakrishna
JSP files are not compiled prior to each request. They are compiled only @ the first request (or when the source code changes). - Original Message - From: "Neil Harrison" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 17, 2000 7:59 AM Subject: JSP Performance? Hello. A

Re: JSP Performance?

2000-04-17 Thread Karl Avedal
Hello Neil, I cannot speak specifically for Websphere but using JSP for the output will generally be alot faster than using a Servlet with out.print statements (partially due to the fact that the output from the JSP can be outputted as one byte[] with only the dynamic part of your information

sorting a hashtable array

2000-04-17 Thread Rick Reumann
I created a hashtable array.. Hashtable Scores[] = new Hashtable[Max]; for ( int i=0; i Max; i++ ) { Scores[i] = new Hashtable(); } and then each Scores[i] is populated with while loop start through database { if ( rs.getInt( "og_id" ) != null ) { Scores[counter].put( "og_id",

Re: JSP Performance?

2000-04-17 Thread Geert Van Damme
No it will be exactly the same. There is no 'compile time overhead' at each request. Only at the very first request ever!!! Geert 'Darling' Van Damme -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of

Re: Model 2 questions basic

2000-04-17 Thread Kevin Duffey
Hi, Craig gave some pseudocode for an action class that had the perform method: public interface Action { public void perform(HttpServlet servlet, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException; } // ends

Re: help - predefined session variable

2000-04-17 Thread Joe Wolf
I tested out System.out.println and got no value at all, just a blank. I would use %=test% as Sachin says or if you want to keep javaish use out.println(test); without the system bit. Thats what I use. Joe - Original Message - From: Sachin S. Khanna [EMAIL PROTECTED] To: [EMAIL

Re: JSP Performance?

2000-04-17 Thread Neil Harrison
My servlet builds up a large array, which i pass into a session object and read into a page using JSP. When different data is being returned each time to the page, won't there be some overhead with modifying the session each time? (using out.prinln's wont use the session). I'm just trying to get

Re: Model 2 questions basic

2000-04-17 Thread Mike LaBudde
Jeff: I'll try to give you some pointers, based on *my* implementation of model 2 architecture snip Craig gave some pseudocode for an action class that had the perform method: public interface Action { public void perform(HttpServlet servlet, HttpServletRequest

Re: JSP Performance?

2000-04-17 Thread Joe Wolf
just in case you don't get the other mail, you can use "out.println" in scriptlets just without the System prefix. good luck Joe - Original Message - From: Neil Harrison [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 17, 2000 3:59 PM Subject: JSP Performance? Hello. A

JSP root with JRun

2000-04-17 Thread Mohan Radhakrishnan
Hi, I am able to call my jsp pages from the IIS root with JRUN. I am using the directory IISSAMPLES/DEFAULT/JSP which contains my JSP pages. I have my own directory structure for my project and a specific place for my jsp pages. How do I configure IIS or JRun to recognize my own

How to setup JSP/Jbeans development/testing env. for Visual Age f or Java IDE and Websphere AS

2000-04-17 Thread Antoniuk, Jacek
Hi everyone! I need to import somehow my old JSP/java beans project into my Visual Age for JAva IDE environment v.3.0. The old project was developed with VAJ 1.0 and was powered with Websphere 2.0 application server. The old JSP/JavaBean project is located in two separate directories loacated

Re: help - predefined session variable

2000-04-17 Thread Alan Boldock
with VAJ 3.0 try going into the "JSP Page Compile Generated Code" project, find your JSP compiled code in there and put a break point in. Now when you run the JSP page the debugger will come up and within it you will be able to see the session object. first if there is no session in variables

session.invalidate() causes internal servlet error

2000-04-17 Thread Mike LaBudde
I'm trying to invalidate the session object (to effect a logout). When I do it causes the following error: snip java.lang.IllegalStateException: removeAttribute: Session already invalidated at org.apache.tomcat.session.StandardSession.removeAttribute(StandardSession.ja va, Compiled

Re: Saving ServletRequest's...

2000-04-17 Thread Craig R. McClanahan
[EMAIL PROTECTED] wrote: Folks, A general servlet programming question, rather than one directed specifically at Tomcat (are such questions considered wildly offtopic for this list?). Would anyone consider it unwise to write a web application that saved the last HttpServletRequest object

A Live Fully Functional Database Application in JSP

2000-04-17 Thread Kishore Raghavan
Hi Everyone, If you are looking for a live web application written completely in Java JSP, then you should be going to www.redladder.com This is developed completely in JSP by Synapta Inc, a web application development company in Palo Alto, California (www.synapta.com) RedLadder.com is a

Re: Model 2 questions basic

2000-04-17 Thread Craig R. McClanahan
"Bailey, Jeff A" wrote: [snip] Craig gave some pseudocode for an action class that had the perform method: public interface Action { public void perform(HttpServlet servlet, HttpServletRequest request, HttpServletResponse response) throws IOException,

Problems with JDeveloper

2000-04-17 Thread Aureliano Calvo
Hi, i´m trying to use JDeveloper under Windows 2000 to develop and debug JSPs. But i have a problem, when i "run" inside the JDeveloper enviroment the .jsp for second time. The browser (i tried both IE 5.0 and Netscape 4.5) tels me that cannot find the web browser (that is supposed to be running

Simple jsp:useBean question

2000-04-17 Thread Robert Christie
I have a series of JSPs, and servlets which refer to beans. Ideally I would like to refer to these beans with constant names - both in the Java code of the servlets and in the JSPs. So I have an Interface with several constants defined e.g public static final string BEAN_NAME = "myBean"; In

Re: Model 2 questions basic

2000-04-17 Thread Bailey, Jeff A
SNIP Dynamic class loading (without fleshing out the error handling) looks like this: String actionClassName = ...;// Whatever action class you need Class actionClass = Class.forName(actionClassName); Action action = (Action) actionClass.newInstance(); How do I make this

ResultSet first() does not work

2000-04-17 Thread Kowaleski, Michael
i am trying to access the ResultSet first() method, using the default jdbc driver shipped with java 2 sdk v1.3 (JdbcOdbc.dll version 2.1) and the sun javaWebServer 2.0. i keep getting the following error: java.sql.SQLException: Result set type is TYPE_FORWARD_ONLY this is an example of what i

sessions

2000-04-17 Thread krishna srinivasan
Hi, I'm using the session object to store user id and at the beginning of every JSP i check the validity of the session.I have a case where restarting the JRUN [web server -apache]does not kill the sessions. ie : i'm able to call a JSP without properly login in... What could be the possible

Re: ResultSet first() does not work

2000-04-17 Thread Ron Chan
Hi, good explanation in pages 589 of White's book "jdbc api tutorial and reference, 2nd edition". basically, you need to: Connection con = Driver... Statement stmt = con.createStatement( ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); stmt.setFetchSize... ResultSet rs =

Re: ResultSet first() does not work

2000-04-17 Thread Nathan Hoover
Because you can't navigate ordinally through a forward-only recordset. Find a JDBC tutorial. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Kowaleski, Michael Sent: Monday, April 17, 2000 3:22 PM To:

Re: Model 2 questions basic

2000-04-17 Thread Sam Heisz
You can check on-the-fly for null in your hash map, that way you don't need to specify the names of all possible action classes in init(): // check the requestURI actionName mappings String actionName = (String) mapping.get(request.getRequestURI()); Action action = (Action)

Re: Session Tracking between Servlet and JSP

2000-04-17 Thread Hans Bergsten
"G. Goerke" wrote: [...] Tomcat 3.1 RC1 supports URL rewriting. http://jakarta.apache.org/builds/tomcat/release/v3.1_rc1/ I can't say I've done any extensive testing, but based on a few simple tests (using only JSP pages) it seems to work. Nevertheless, URL-Rewriting didn't work

Re: Model 2 questions basic

2000-04-17 Thread Craig R. McClanahan
"Bailey, Jeff A" wrote: SNIP Dynamic class loading (without fleshing out the error handling) looks like this: String actionClassName = ...;// Whatever action class you need Class actionClass = Class.forName(actionClassName); Action action = (Action)

Session b/w 2 jsp

2000-04-17 Thread Chetana A L
Hi , I am using the httpsession to store some data between the jsp's. Let's say jsp1 jsp2 , I have no problem sending the data from jsp1 to jsp2 but when jsp2 is sending data to jsp1 the page is not refreshed. When i reload the page the jsp1 would have got the data back. I am using

Loosing applicationcontrol with the browsernavigationbuttons

2000-04-17 Thread Pierre Lor
Hello, I'm using Tomcat 3.0 on NT with IE 5.0. All go fine when I submit with the post method my jsp pages. All the scriplets encoutered are executed. But when I browsed back with the navigation button in the toolbar of the IE 5.0 to the previously created pages he wan't execute the scriplets

Security problems with beans?

2000-04-17 Thread Donald E. Vandenbeld
I came across an article about JSP on lantimes.com. I think it's an older article but it mentions a security problem with beans that I've not heard of before. I was wondering if this 'flaw' is indeed present and what can be done to guard against it. I am including a copy of the paragraph in

Re: Model 2 questions basic

2000-04-17 Thread Kevin Duffey
Hi, How do I make this work with the HashTable/Map/Set so that I can ensure only a single instance of any action class? I assume I can load all the action classes into a HashSomething on the servlets init() and get the appropriate action and call perform()? Is this correct? Yeah..how do we do

Re: Model 2 questions basic

2000-04-17 Thread Kevin Duffey
Hi, This is why I use *two* Hashtables, not one. Again..why a Hashtable instead of Hashset? Seems to me since after the Hashtable is loaded its only "read" from (ok..assuming we pre-load all the instance classes during init..which is what I feel is best since I know all the action classes will

thread handler problem

2000-04-17 Thread Matt Brown
hi, I have a series of jsp pages that use both servlets and beans. I have developed them on a PC running NT and they work fine. When I moved them over to the linux box that hosts them, I get constant warnings of the type: HANDLER THREAD PROBLEM: java.lang.ArrayIndexOutOfBoundsException: 4096

Websphere session tracking options

2000-04-17 Thread Marc Krisjanous
Hi all, I am using Websphere 2.x and would like to know what happens when both "Enable URL Rewriting" and "Enable Cookies" are both turned on for session tracking. If the web browser allows cookies then will Websphere use a cookie to store the session object and if the web browser does not allow

Re: Websphere session tracking options - additional

2000-04-17 Thread Marc Krisjanous
Hi all, I would like to add on my last message: I have a Shopping Cart Servlet and is called by my Shopping Cart JSP. The process is as follows: 1.The user selects the items he/she would like to add to the shopping cart and clicks the "Add To Shopping Cart" button. 2.The Shopping Cart Servlet

Re: Java VM max heap size

2000-04-17 Thread Scott Stirling
Good question. In a 1.1 JVM from Sun, 16 MB is the default max heap size. They got a little more realistic with 1.2 and made it 64 MB. But for enterprise apps, you're likely to want it in the 100s of MBs or more, depending on your needs and resources. IBM, on the other hand, sets their JVMs

Re: Security problems with beans?

2000-04-17 Thread Scott Stirling
Oh my God, it's Y2K all over again! Why didn't we think of this?! Just kidding. Hey, how is Joe Cracker gonna know what the names of my JavaBeans' methods are? He's not, unless he can get access to my machine and deploy a Java application that does some reflection on my JavaBeans to get their

JSP-INTEREST: JSP IDE

2000-04-17 Thread Robert Allen
Anyone out there recommend a genuine IDE for JSP? I don't mean like HomeSite which I already use. I need more than keyword coloring, I want the edit/compile/run-in-debug loop. While developing beans in Cafe, J++, or JBuilder all provide symbolic debugging, breakpoints, etc. The JSP translation

Re: Security problems with beans?

2000-04-17 Thread Glenn Nielsen
The JSP page resides on your own server. Your vulnerability to someone being able to inspect java beans installed on your server and 'exploit' them is not a problem if you configure your web server security to prevent someone from "PUT"ing a JSP page in your web space who is not authorized to

Voice on portals

2000-04-17 Thread Puri Aman
Hello If anyone could help me on the following issue. we are trying to do something where a user clicks on a link and telephone of other person(whose hyperlink is clicked) rings in US or anywhere. Is there any software existing? can anyone help? Thanking in anticipation. Aman Visit

Re: Model 2 questions basic

2000-04-17 Thread Craig R. McClanahan
Kevin Duffey wrote: Hi, This is why I use *two* Hashtables, not one. Again..why a Hashtable instead of Hashset? And again the answer: believe it or not, there are still people in the world running JDK 1.1 -- which includes nearly everyone that is not on one of the "popular" OS platforms.

Re: Model 2 questions basic

2000-04-17 Thread Kevin Duffey
Hi, Again..why a Hashtable instead of Hashset? And again the answer: believe it or not, there are still people in the world running JDK 1.1 -- which includes nearly everyone that is not on one of the "popular" OS platforms. Even on one of the arguably most popular platforms (Linux),

Re: JSP root with JRun

2000-04-17 Thread Lani Hardage-Vergeer
You don't need to tell JRun or IIS that your own directory is the root for JSP pages. You do have to set up a website alias in IIS that points to your directory containing JSP pages-- using the IIS manager, right-click your website and choose New -- Virtual directory. Point it at your directory.

Re: sessions

2000-04-17 Thread Scott Stirling
If you have the "Use Session Persistence Engine" option checked on the Session Tracking tab of the JRun Admin Application (under JSE--Service Config), then JRun is going to serialize active sessions when you shutdown the servlet engine. It's a feature. Please visit www.allaire.com/support for