Re: HttpServletRequest.getSession(...) algorithm?

1999-03-31 Thread Arthur Alexander
Chad, The mechanics of managing the session (state) in a non-session oriented protocol (such as http) is pretty much the same in most products. I cannot speak to the particulars of the JSP feature (pretty sure they are compiling to be an extension to the HTTPServlet base class, which you could l

Re: HttpServletRequest.getSession(...) algorithm?

1999-03-31 Thread Craig R. McClanahan
Chad Darby wrote: > Hi, > > Does any know how the HttpServletRequest.getSession() method is > implemented? Basically what is the general algorithm for assigning > unique session ids for multiple users? > > In the past, I've simply accepted the "black magic" that it works. Now > I'm curious on "

HttpServletRequest.getSession(...) algorithm?

1999-03-31 Thread Chad Darby
Hi, Does any know how the HttpServletRequest.getSession() method is implemented? Basically what is the general algorithm for assigning unique session ids for multiple users? In the past, I've simply accepted the "black magic" that it works. Now I'm curious on "how" it works. Any info is appre

Re: getRequestDispatcher()

1999-03-31 Thread Craig R. McClanahan
"Weiner, Sam" wrote: > All, > > I'm not able to use the getRequestDispatcher.forward() method. I'm using the > JSDK 2.0 which, as far as I can tell, doesn't include this method. > > The .92 JSP spec says, > > com.sun.server.http.HttpServiceResponse.callPage(String uri, > HttpServletRequest reques

Re: application object

1999-03-31 Thread Craig R. McClanahan
Rob Schoening wrote: > > This corresponds to the direction the servlet API is headed (a > > servlet context > > being treated essentially as an application), so the choice of > > "application" as > > the term makes a lot more sense when you understand what it is > > really doing. > > Previous com

Re: How to force user to login

1999-03-31 Thread Drew Cox
Hi Dan, It's not that I'm religously against the "<% %>" tags (most of my experience in this area is from ASP, where there's no choice, ugh...). I realise that for some situations they would be required and should not be seen as "a bad thing"/ BUT, it seems that JSP is attempting to provide a me

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
Gabriel, Are you suggesting that application level = servlet level? An application can be made up of multiple servlets. Dan > -- > From: Gabriel Wong[SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, March 31, 1999 9:07 AM > To: Kirkdorffer, Daniel > Cc: [EMAIL PROTECTED]

Re: application object

1999-03-31 Thread Rob Schoening
> This corresponds to the direction the servlet API is headed (a > servlet context > being treated essentially as an application), so the choice of > "application" as > the term makes a lot more sense when you understand what it is > really doing. > Previous comments from Sun engineers on this top

Re: application object

1999-03-31 Thread Gabriel Wong
Understood and Agreed... "Kirkdorffer, Daniel" wrote: > Well I'm talking about web applications that one has to log into > (userid/password), or otherwise identify oneself to. What we're interested > in then is maintaining objects for the duration of the login to the web > application. Perhaps

Re: getRequestDispatcher()

1999-03-31 Thread Nitin Patil
Hi Sam, You can use the "res.sendRedirect(URLName)" method, where "res" is the "HttpServletResponse" kindof object. It'll be a good practice to encode the URL first using the "res.encodeUrl(URLName)" method and then pass it to "sendRedirect()". Regards, - Nitin -Original Message- From:

Re: use of display tag

1999-03-31 Thread Vijay Eranti
I felt that the whole purpose of JSP is to separate business logic from presentation. The presentation should have minimum programming stuff in it (since html designers are not strong programmers and may not know java). Let the business logic is done in servlet and let it generate the results whic

Re: use of display tag

1999-03-31 Thread Kirkdorffer, Daniel
Why should the usage of <% %> and <%= %> be discouraged? Dan > -- > From: Vijay Eranti[SMTP:[EMAIL PROTECTED]] > Reply To: Vijay Eranti > Sent: Wednesday, March 31, 1999 3:39 PM > To: [EMAIL PROTECTED] > Subject: use of display tag > > Hi guys, > > I was wonde

getRequestDispatcher()

1999-03-31 Thread Weiner, Sam
All, I'm not able to use the getRequestDispatcher.forward() method. I'm using the JSDK 2.0 which, as far as I can tell, doesn't include this method. The .92 JSP spec says, com.sun.server.http.HttpServiceResponse.callPage(String uri, HttpServletRequest request) is now: javax.servlet.ServletConte

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
Well I'm talking about web applications that one has to log into (userid/password), or otherwise identify oneself to. What we're interested in then is maintaining objects for the duration of the login to the web application. Perhaps the user uses a number of JSP systems, then we want to ensure t

use of display tag

1999-03-31 Thread Vijay Eranti
Hi guys, I was wondering is there a way to change the display tag syntax. Normally, html designers use DISPLAY tag most frequently if they are following the standard practice of minimizing the usage of java snippets in the JSP pages which I think they wont be knowing . The syntax for display ta

Re: FW: Automatic Reply/Reponse automatique

1999-03-31 Thread Jim Tsang
I've seen it twice. On Wed, 31 Mar 1999, Abhishek Chauhan wrote: > Interestingly, I have never seen this autoreply. But we > are looking into it. > > -abhishek > --- > Abhishek Chauhan, [EMAIL PROTECTED] > > "Kirkdorffer, Daniel" wrote: > > Can someone managing this mailing list get rid of thi

Re: application object

1999-03-31 Thread Gabriel Wong
"Kirkdorffer, Daniel" wrote: > An application session has to be separately managed. Where a session object > lasts the life of the browser (or until invalidated), an application object > lasts the life of a login and logout of the application. In this case using > a scope of "application" is NO

Suggest the best way to include formatting info in displaying presentation data using display tag

1999-03-31 Thread Vijay Eranti
The display tag of JSP seems doesnt have any means of including formatting information for data. for instance Is there any way that I can specify the format of my value in the display tag like The only way it seems for me for the time being is to create special properties in the customer b

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
There is also the perspective of the application user. In that context an "application session" is really a subset of the browser session. This contrasts with what we've been discussing as "application", or lifespan of the servlets. An need for an application session is what I believe got us ta

Re: application object

1999-03-31 Thread Gabriel Wong
Craig - Thank you for keeping me honest. After further thoughts on this subject I agree you are absolutely correct. Gabriel Wong http://www.ezwebtools.com "Craig R. McClanahan" wrote: > "Kirkdorffer, Daniel" wrote: > > > >> Finally, Yes "application" refers to the s

Re: application object

1999-03-31 Thread Craig R. McClanahan
"Kirkdorffer, Daniel" wrote: > >> Finally, Yes "application" refers to the specific JSP that is being > called NOT > >> The Application... > > Right, so it is just like a "global" variable that exists for the lifetime > of the pagecompiled JSP (which is a servlet). Application is a poor choice >

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
>> Finally, Yes "application" refers to the specific JSP that is being called NOT >> The Application... Right, so it is just like a "global" variable that exists for the lifetime of the pagecompiled JSP (which is a servlet). Application is a poor choice of words here. Thanks, Dan > --

Re: application object

1999-03-31 Thread Gabriel Wong
Its just a matter of wording lets assume you wrap this application object in a bean class MyBean { private Object m_staticobject; public Object getStaticObject() { return m_staticobject; } } Now using JSP beans in myjspfile.jsp: 1)if we create a "page" instance of MyBean then the ne

Re: 1.0 Spec First Quarter?

1999-03-31 Thread Bill Woods
If I can put my 2c in on this, You should also be worried about the future of MS and ASP. They look like support for Java will be dropped, They are re-organizing lines of business not to mention that they seem to be making XML a big part of their new Web Paradigm. This makes you wonder about the f

Re: FW: Automatic Reply/Reponse automatique

1999-03-31 Thread Abhishek Chauhan
Interestingly, I have never seen this autoreply. But we are looking into it. -abhishek --- Abhishek Chauhan, [EMAIL PROTECTED] "Kirkdorffer, Daniel" wrote: > Can someone managing this mailing list get rid of this email address > recipient? I'm sure I'm not the only one getting tired of seeing

JSP and XML

1999-03-31 Thread Shah, Mayank (RSCH)
With the announcement that Sun is "embracing" XML, can we expect built in support within JSP. Since it's still not release, there is enough time to add the support. Thanks, Mayank Shah Research Technology Merrill Lynch 212.449.0463 ==

Re: application object

1999-03-31 Thread Gabriel Wong
Dan, lifespan=application means that the object won't be created the next time you call that JSP page. If you want to share the same (static) instance of an object across different servlets or JSP then you can do either of 2 things: 1)wrap that object in a bean 2)<% TheStaticObject.method(); %>

Re: How to force user to login

1999-03-31 Thread Jim Tsang
I think it's better to use standard XML tags like the following rather than special <% %> tags. On Wed, 31 Mar 1999, Kirkdorffer, Daniel wrote: > Why is everyone wishing for us to create new specialized tags? What is > wrong with writing Java code in <% %> tags? These are *Java*Server Pages >

Re: application object

1999-03-31 Thread Gabriel Wong
It was not clearly spelled out in the spec but thats how I have implemented my JSP engine. You have to remember that the JSP code is compiled into a servlet. So if you want to store the object through the life of the application (global or member variable) then the natural way for the JSP engine

Exceptions in JSP-aware beans

1999-03-31 Thread Tuyen Tran
If the processRequest method of a JSP-aware bean throws an exception (say NullPointerException), shoudn't the JSP runtime detect the exception and redirect to an error page? I've tried this with both JRun 2.3 and the Sun 0.92 reference implementation, and they both swallow the exception. The

Re: How to force user to login

1999-03-31 Thread h wulfson
I disagree with both camps to some extent. 1. Introducing new tags is not the right way to go about it. There should be very few tags (Loops, conditionals and properties are about all you need in HTML). Look at how Apple WebObjects is structured: There is but one special HTML tag: . That's it. It

Re: application object

1999-03-31 Thread Gabriel Wong
page - NO storage session - servletrequest.getSession(true).putValue("myobjectname",myobject); application - getServletConfig().getServletContext().setAttribute("myobjectname",myobject); Gabriel Wong http://www.ezwebtools.com "Kirkdorffer, Daniel" wrote: > It is uncl

Re: How to force user to login

1999-03-31 Thread Gabriel Wong
"Kirkdorffer, Daniel" wrote: > Why is everyone wishing for us to create new specialized tags? What is > wrong with writing Java code in <% %> tags? These are *Java*Server Pages > after all. Come on people, you have all the flexibility in the world with > the <% %> tags. Thats one solution. T

Re: Dynamic loading of beans

1999-03-31 Thread Kirkdorffer, Daniel
Does anyone know how to apply this "fix" to WebSphere. Probably the two most annoying things about JSP IMO are: 1) New beans (i.e. non servlet classes) added to WebSphere's ncf.jvm.classpath (in jvm.properties) require a web server restart to be detected, and 2) New JSP files that are invoked vi

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
It is unclear to me how the application scope works. In 0.91 we've had to create our own application session object that extends Hashtable. When and how does the 0.92 "application" get created and destroyed? Dan > -- > From: Roberto Torresani[SMTP:[EMAIL PROTECTED]] > Reply To:

FW: Automatic Reply/Reponse automatique

1999-03-31 Thread Kirkdorffer, Daniel
Can someone managing this mailing list get rid of this email address recipient? I'm sure I'm not the only one getting tired of seeing this auto response every time I post a message here. Thank you! Dan > -- > From: Nobody[SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, March

Re: How to force user to login

1999-03-31 Thread Kirkdorffer, Daniel
Why is everyone wishing for us to create new specialized tags? What is wrong with writing Java code in <% %> tags? These are *Java*Server Pages after all. Come on people, you have all the flexibility in the world with the <% %> tags. Dan > -- > From: Drew Cox[SMTP:[EMAIL PROTE

Re: Dynamic loading of beans

1999-03-31 Thread Weiner, Sam
BTW - I couldn't figure a way to get JSP to automatically recompile changed beans. I would guess this would be rather difficult, but if anyone knows a way Sam -- From: S. N. Prasanna[SMTP:[EMAIL PROTECTED]] Reply To: S. N. Prasanna Sent: Wed

Re: Dynamic loading of beans

1999-03-31 Thread Weiner, Sam
I had the same problem using GNUJSP - I presume the solution will be applicable to your situation as well. The problem is, from what I can tell, that JSP uses different sources for it's CLASSPATH information between run-time and compile time. It's documented that the effect of including your bea

Re: JSP vs. ASP

1999-03-31 Thread Jim Ancona
--- Michael Dinsmore <[EMAIL PROTECTED]> wrote: > ASP allows the use of > ActiveX COM objects (C++, VB, Java, etc.) which are > _definitely_ compiled. One note, Java COM objects are NOT compiled (at least if you're using J++ to create them). AFAIK, MS hasn't released a native code Java compi

Dynamic loading of beans

1999-03-31 Thread S. N. Prasanna
Hi, I am developing an application using JSP. My environment is NT4.0 Service pack 4, IIS-4.0, Jrun 2.3. I am putting all the classes created by me including JSP beans in a package named "myClasses" under C:\jrun\classes directory, which is in the class path. The problem is these classes ar

Re: JDBC+JSP+Apache Jserv

1999-03-31 Thread Vincent Partington
Hi Nicolas, Nicolas Pujol wrote: > I am using Apache as a Server, Apache Jserv as the servlet engine and GNUJSP > as the JSP engine. > > Either the server, the servlet engine is not letting me connect to my > database. I am sure this is a simple setting in jserv.properties or in > httpd.conf. Can

Re: application object

1999-03-31 Thread Roberto Torresani
You can create a bean with scope "Application"... Daniel Wieselberg wrote: > > Hi, > > How do I store information for a whole application? In ASP there is an > application object. Does JSP has anything similar? > > // Daniel > >

application object

1999-03-31 Thread Daniel Wieselberg
Hi, How do I store information for a whole application? In ASP there is an application object. Does JSP has anything similar? // Daniel === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the mess

Re: JRun and 0.92 demos

1999-03-31 Thread Roberto Torresani
Could be an error of scope of the class? The Counter bean is include in a "counter" package (pay attention to the case) When I tried the JSP demos with the serveletexec I had the same problem.. bye Christopher Cobb wrote: > > To give myself warm and fuzzies, I would like to get the 0.92 demos ru

Re: CallableStatement using SQL SERVER 6.0

1999-03-31 Thread Roberto Torresani
I think the only way to do this is to write a bean that uses a CallableStatement object to call the stored proc... > William Reinoso Milian wrote: > > Excuse me my english. > Some body could tell me about how to call a stored procedure from a > jsp page and pass some parameter to him. > That proc