Re: Login to Secure Webpages using JSP

2000-01-17 Thread Arni Raghu
Read the JSP faq at esperanto..It is well explained there.. A > Hi, > > How do I make use of JSP to write an application to control access to the > website? Comments and ideas or examples anyone? > > Thanks in advance. > > Cheers, > Jo > > > __ >

Login to Secure Webpages using JSP

2000-01-17 Thread Joseph Seah
Hi, How do I make use of JSP to write an application to control access to the website? Comments and ideas or examples anyone? Thanks in advance. Cheers, Jo __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com

Re: Providing application resources to action classes insingle-se rvlet delegation model

2000-01-17 Thread Drew Cox
Currently I attempt to catch all exceptions as close to the source as possible and write a detailed error message to the error log, including the class and method name and enough details that I might figure out what actually stuffed up. I then re-throw a ServletException, containing a fairly gene

Re: Providing application resources to action classes in single-servl et delegation model

2000-01-17 Thread Robert Quinn
I was previously using servletContext for storing resources, but I've switched to JNDI. I populate the tree using an initialization servlet and then each functional servlet gets the resources it needs. The thing I like is that JNDI isn't a servlet only concept so some of my helper classes c

Re: How to encode relative URIs in JSP after forward from servlet (not for sessions)

2000-01-17 Thread Drew Cox
Hi Damian, I must say, until now I was a little dismayed at the lack of response to my query. I thought I must have not explained the problem sufficiently, or I was missing something so simple I was being ignored. Thanks for at confirming this is a problem for others out there. In the meantime

Re: Include files dynamically???

2000-01-17 Thread Praveen Kumar S .
Hi, If you check up on the specs, It will clarify you the usage of request time inclusion, @include is a translation time inclusion. If you want to dynamically include pages use jsp:include instead If That Helps Amit SYNTAX__ <%

jsp dev tools

2000-01-17 Thread John Holland
-BEGIN PGP SIGNED MESSAGE- What do people like for tools for development? I saw some mention of emacs with html-helper-mode. I've been pretty pleased with HomeSite for HTML but I don't think it's any good for Java. Anyone use IDEs, etc? other editors? John Holland - ---

Re: Providing application resources to action classes insingle-servlet delegation model

2000-01-17 Thread Damian Fauth
On the subject of Exceptions in the Model II (MVC) JSP architecture - is there some recommended way to handle Exceptions thrown within the controller servlet from the presentation point of view? it seems that the errorPage attribute of the <%@ page> tag in the page that the request is forwarded to

Re: How to encode relative URIs in JSP after forward from servlet (not for sessions)

2000-01-17 Thread Damian Fauth
I have been wondering about this one too. We have just started looking at Model II (MVC) JSP architecture as a solution to the increasing complexity of our JSP templates and I like the content/logic/model separation it provides - potentially it will make it easier for our HTML guys - but the rela

I am getting two of every posting can someone check for duplicates in the maillist and delete one?

2000-01-17 Thread Mike Oliver
=== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html

Re: ERROR 404

2000-01-17 Thread Hans Bergsten
> "Balakrishnan, Ajan" wrote: > > Hi, > > I'm getting ERROR 404 while forwarding to a different page. I don't if > i'm doing anything stupid here. The > response.sendRedirect works fine if the page gets an database error message. When > i get no messges it gives ERROR > 404.Please help me

Re: Problem using bean with scope="session"

2000-01-17 Thread Hans Bergsten
Arun Thomas wrote: > > Hi Darcie, > > Note that in line 6 (counting down in the Initial Page example below), you > use the JSP usebean > tag to create a Person. That tag is transformed (in the generated servlet) > into something like this > > com.silknet.ebiz.silkmodels.BusinessObject

Re: JSP Mode for Emacs ?

2000-01-17 Thread John Wiseman
For JSP the best I have been able to do is use multimode.el to switch to Java mode when inside <% %> and use HTML mode otherwise. Here's the relevant bit from my .emacs: ;;jsp/html multi-mode (autoload 'multi-mode "multi-mode" "Allowing multiple major modes in a buffer."

Re: UTF-8 error message when compiling jsp

2000-01-17 Thread John Wiseman
> -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Carlos Vicente > Sent: Tuesday, January 11, 2000 2:15 AM > To: [EMAIL PROTECTED] > Subject: Re: UTF-8 error message when compiling jsp > > > Sometimes i

Session tracking?

2000-01-17 Thread Duffey Kevin
Hi all, I am stuck on one thing. I know JSP turns into servlets and all, and session tracking is easy with HttpSession. What I am confused about is, can I keep each individual client in a session throughout the site without using cookies OR url rewriting? Will the HttpSession do this for me? Or M

Can anyone see why this won't work?

2000-01-17 Thread Leon Andrews
Any help would be most appreciated - I have converted a 0.92 JSP page, but cannot get the bean to work. I get a 500 Internal Server error... Is the problem with the way I am calling the Bean, or is it with the Bean itself? The JSP... <%@ page import="db.DataBaseSelect" %> Select everythin

Re: Problem using bean with scope="session"

2000-01-17 Thread Hans Bergsten
Darcie Huntress wrote: > > On my starting page, I have instantiated a bean with scope="session" and > called it "Person". On this initial page, I can call its method > "getPropertyValue" and see valid data. When I create another page (which > gets loaded after this initial page, so no race condi

Spec Question on the Page Directive

2000-01-17 Thread Rus Duderstadt
Consider the following from section 2.7.1 in the JSP 1.1 Specification: "A translation unit (JSP source file and any files included via the include directive) can contain more than one instance of the page directive, all the attributes will apply to the complete translation unit (i.e. page direct

Re: Is Global Session Possible?

2000-01-17 Thread Phil Groschwitz
Thanks for the help, Meg. My problem comes up when the second request comes in (before the first has completed). For example, Browser A completes an HTML form (which is in a JSP, called by the main servlet with callPage) and presses SUBMIT. That causes the service method to be called in the ser

Re: Problem using bean with scope="session"

2000-01-17 Thread Arun Thomas
Hi Darcie, Note that in line 6 (counting down in the Initial Page example below), you use the JSP usebean tag to create a Person. That tag is transformed (in the generated servlet) into something like this com.silknet.ebiz.silkmodels.BusinessObject Person = new com.silknet.ebiz.silk

HTML FORMAT

2000-01-17 Thread Paul Beer
Does anyone have a suggestion for displaying xml as html formatted text. In ASP this is server.htmlencode(MyPacket) and in cf it is htmleditformat ... I cant seem to find the equivalent for JSP . is there a class somewhere that does this I can download ? ___

ERROR 404

2000-01-17 Thread Balakrishnan, Ajan
Title: ERROR 404 Hi,     I'm getting ERROR 404 while forwarding to a different page. I don't if i'm doing anything stupid here. The response.sendRedirect works fine if the page gets an database error message. When i get no messges it gives ERROR 404.Please help me out. The code is below

Re: Tomcat vs. JSWDK

2000-01-17 Thread Wampler Dean
> > > among all the things that are not working properly: > > > > > > - response.setHeader("Content-Type", "foo/bar"); does not set the > > > content-type > > > > Are you by chance calling it at the wrong time (i.e. after the response is > > committed to the output stream)? > > I don't think I'm d

Re: JSP Mode for Emacs ?

2000-01-17 Thread Jason Dillon
You can use mmm to integrate java-mode into html-mode. I am not sure if mmm comes with the latest xemacs dist, but there is a link on www.xemacs.org where you can get it from (http://members.tripod.com/gchen2/xemacs/). I have been using it for months and it works modestly well... though indentat

Question

2000-01-17 Thread Price Kevin
Hello. I was wondering if there are any good reference books specifically for JSP pages? learning syntax and so on. I'm new to the whole thing and wanted to start getting some background information and start getting my feet wet. Thanks. Kevin. ===

Re: How to delete bean with session scope?

2000-01-17 Thread Joseph B. Ottinger
On Mon, 17 Jan 2000, Craig R. McClanahan wrote: > "Joseph B. Ottinger" wrote: > > > Given the code > id="myBean" class="myClass" session="scope" />, > > is there a way for the session to remove the bean, in the case that it > > preserves data across many pages but should preserve it across ALL p

Re: JSP Mode for Emacs ?

2000-01-17 Thread Jens Andersen
Hi Erez, If you find a JSP mode I'm very interested because I do all my (ok almost all) Java/JSP development using Emacs and JDE!!! Regards, Jens Andersen -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of

Re: Is Global Session Possible?

2000-01-17 Thread Phil Groschwitz
Eric, I hope you can shed some light here! I understand how to use the HttpSession object to maintain state. What I haven't been able to figure out is how to maintain integrity. For example, in a http intranet application using Java, Java Servlets, and JSP's, (and DB2/400), how do you maintain

Re: How to delete bean with session scope?

2000-01-17 Thread Craig R. McClanahan
"Joseph B. Ottinger" wrote: > Given the code id="myBean" class="myClass" session="scope" />, > is there a way for the session to remove the bean, in the case that it > preserves data across many pages but should preserve it across ALL pages? > In a JSP page, you can remove session beans with a

Re: Tomcat vs. JSWDK

2000-01-17 Thread O'Meara AnnMarie
I think I would have to agree with Jean-Michel Leon says the expected behavior is. Since "text/html" is merely the default setting, any attempt to change it, be it via setHeader or setContentType, should work. setContentType should just call setHeader with the proper arguments, since it's just a

Problem using bean with scope="session"

2000-01-17 Thread Darcie Huntress
On my starting page, I have instantiated a bean with scope="session" and called it "Person". On this initial page, I can call its method "getPropertyValue" and see valid data. When I create another page (which gets loaded after this initial page, so no race condition should be created) I am havi

How to measure the performance of different JSP engines

2000-01-17 Thread Vimal Kansal
Hi, Can somebody guide me as to how should I go about measuring the performance of different JSP engines available. TIA VIMAL KANSAL === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on J

version

2000-01-17 Thread Guilherme - PerConsult
Is there a tag so I can discover the version of jsp that I`m using??? Thanks -- Guilherme dos Santos Tsubota _ Perrotti Informatica - PerConsult Sao Paulo - SP - Brazil === To uns

Re: Robust JSP Implementations

2000-01-17 Thread KBMail Servlet Support
Try www.ebpcs.net Steve -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Girish Haran Sent: Monday, January 17, 2000 10:46 PM To: [EMAIL PROTECTED] Subject: Robust JSP Implementations I'm looking to explo

Re: JSP Mode for Emacs ?

2000-01-17 Thread Arni Raghu
I had asked this before, no luck..the one response I got was that u can bind the html/sgml mode of emacs to .jsp...not too great but something is better than nothing.. I really wish I had played with elisp in school :) hth, A - Original Message - From: Erez Bashan <[EMAIL PROTECTED]> To

How to delete bean with session scope?

2000-01-17 Thread Joseph B. Ottinger
Given the code , is there a way for the session to remove the bean, in the case that it preserves data across many pages but should preserve it across ALL pages? --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet

waiting for Godot.xml

2000-01-17 Thread Robert Young
i haven't found any [useful] guidance on how to approach a problem (consulted the archives and "Java Threads" Oaks/Wong, and most of the o'reilly texts). the problem: how to efficiently wait for an xml file to appear in a known [server] directory. this would occur after login to the site. th

Re: Servlet Bean JSP

2000-01-17 Thread Duffey Kevin
At 05:27 PM 1/17/00 +0100, Dominique Chaniat wrote: >Hello > >I am working under Win98, with Jswdk 1.0 > >I want try the followed communication > >servlet > | | >V V > bean <-JSP > >My servlet calls the bean, and the Jsp file >I want initialize from my servlet a val

Embedded Tomcat?

2000-01-17 Thread David J. Willkomm
I am building a JSP 1.1 container for a cross-platform, web-enabled application server and was hoping to use Tomcat's JSP compiler (Jasper?) 1) in the runtime context of my container to generate classes from JSP source, and 2) at build time via a command line interface to generate Java source from

Re: Problems with Tomcat

2000-01-17 Thread David J. Willkomm
I'm not sure if you are in the same situation, but this happened to me because I was using an old version of WinZip (6.x). Once I upgraded to 7.0 SR-1, all was ok. I hope this helps! - Original Message - From: "Stephen M. Bush" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, J

Re: Error Page : Which page did I come from?

2000-01-17 Thread Arun Thomas
Casey, Since the error pages do have access to your request implicit object, you could, as the first action on every non-error page, simply set an attribute of your request with a label identifying the page as the value of the attribute. If an error occurs, this value can be extracted by the err

Re: How to access a JAVASCRIPT method within JSP

2000-01-17 Thread Stephen Summerfield
-Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Veena >can i access a javascript method within jsp... Simple answer is no. JSP is server-side only, the ... tags are client-side (browser) only.

Error Page : Which page did I come from?

2000-01-17 Thread Bragg, Casey
Hello all! Consider that page X.jsp contains a <%@ page errorPage="Y.jsp"%> An exception occurs during processing of X.jsp. Thus Y.jsp handles the exception. Is there a way of determining in Y.jsp which page caused the exception (X.jsp)? I tried the following to no avail <%@ page

Servlet Bean JSP

2000-01-17 Thread Dominique Chaniat
Hello I am working under Win98, with Jswdk 1.0 I want try the followed communication servlet | | V V bean <-JSP My servlet calls the bean, and the Jsp file I want initialize from my servlet a value into my bean, then read this value from my Jsp. When I try to

Robust JSP Implementations

2000-01-17 Thread Girish Haran
I'm looking to explore other technology options for running my JSP site on ie in terms of web servers, JSP/Servlet engines etc. Is there someplace I can go, to get educated on this subject. We are a 7x24 e-Commerce site (currently on NT ) and looking for robusteness and speed! Thanks Girish Haran

Re: Tomcat vs. JSWDK

2000-01-17 Thread Jean-Michel Leon
"Craig R. McClanahan" wrote: > > Jean-Michel Leon wrote: > > > > > this deliberate behavior in tomcat is wrong (i.e. it's a bug), because > > the servlet spec does not specify that servlets should override the > > programmer's contnet-type wth its own defaults. > > > > In other words, you would

Re: Is Global Session Possible?

2000-01-17 Thread Eric M. Andersen
Nikolas, I don't believe that what you are asking is possible. In particular, there is no way to keep the same session across two different browsers without requiring log-in, since cookies for both browsers are stored separately and IP addresses are not unique. In terms of spawning a new browser

Re: How to access a JAVASCRIPT method within JSP

2000-01-17 Thread Cory L Hubert
    No you can't just access a Javascript method from JSP.  JSP knows nothing about Javascript.   But you can use JSP to print out Javascript methods on the fly.     By the way.  To print to the webpage it is out.println.  Not System.out.println -Original Message-From: A mailing

Re: How to access a JAVASCRIPT method within JSP

2000-01-17 Thread Huynh, Mai
some errors I found, I am not sure this is the problem <% System.out.println("the sum is :"+z); %> This sentence must be within the body of html function addnos(var a,var b) { } function addnos(a,b) -Original Message- From: Veena [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 17, 1

Tag question (rookie)

2000-01-17 Thread Bailey, Jeff A
Hi all, this is a fairly elementary question but I cant seem to dig up an answer or tutorial that covers this clearly. I want to have something like output "The value is Something" to the page I have seen a number of examples (and even wrote a few of my own tags) which extend BodyTagSupport an

How to access a JAVASCRIPT method within JSP

2000-01-17 Thread Veena
Hi all   can i access a javascript method within jsp...   what i mean to say is can i do something like this.. the code below is not workingSo is there any alternative to do this..   code is as follows...   <%! int x=10; %><%! int y=20; %><%! int z; %><% z=ad

Re: Ques : Result set paging in JSP

2000-01-17 Thread Geert Van Damme
Well, I guess there has already been a post on this issue. I gave several possibilities, but in most cases there's only 1 real solution. 1) Keep the connection in the session and retrieve only the first 100 records, with a following call, the statement and connection are still open and you can ret

Ques : Result set paging in JSP

2000-01-17 Thread Neelesh
HI all, Does any one know how to do resultset paging in jsp. (i.e say retrieving 500 records from the database and displaying only 100 records at a time with links for the other records) I am using jdbc, jsp.091 and servlet2.0 for my development Neelesh = My home page http://www.geocities.com

Tag libraries in JAR file

2000-01-17 Thread Dave Peckham
The JSP 1.1 spec says that you can package a tag library in JAR file, so long as you put the corresponding tag library descriptor in META-INF/taglib.tld file. Once you've done this, how do you point to the TLD in your WEB-INF/web.xml? I do not see how you specify a for a TLD inside a jar. ==

JSP Mode for Emacs ?

2000-01-17 Thread Erez Bashan
I am working with Xemacs on JSP pages. Currently I am working either with HTML mode or JDE mode, depending whether the page has more Java or HTML in it ... Anyone already hacked up an JSP mode for Emacs ? Erez __ Do You Yahoo!? Talk to your friends

Re: Any JSP sites I can use as a reference?

2000-01-17 Thread David Poon
Correct me if I've mistaken, but I think Walmart's using BroadVision and not jsp, point yout cursor to the login button and see the url. Yes, it's confusing and makes no sense, but BroadVision uses the .jsp extension for their scripts. The following site I think uses jsp... http://www.jguru.com

Re: Any JSP sites I can use as a reference?

2000-01-17 Thread Jari Worsley
Walmart.com seems to make use of jsp quite extensively. Not sure what the back end is (I don't work for walmart). Seems a fairly major site to use jsp... (i.e. it's big). Anyone at Walmart read this group and feel like commenting?? Jari Duffey Kevin wrote: > Hi, > > I was wondering if anyone h

Re: Providing application resources to action classes in single-servlet delegation model

2000-01-17 Thread Daniel Lopez
Hi Drew, I'm also benefiting from this discussion. Even though I already implemented my own solution, which looks suspiciously like everybody's ;), it's good to hear other people's opinions to see why they chose other options. So I'll add my 2c: Well, I'm using the servlet context approach and I'

Wanted example of a bean using jdbc...

2000-01-17 Thread Leon Andrews
Hi, I've been hunting for an example bean used with a jsp page which uses jdbc to perform a simple database select. The only examples I could find were for jsp 0.92. I tried to convert them to the new syntax but to no avail. Can anyone point me to a more current example? Many thanks, Leon. ==