Re: DESIGN QUESTION

2003-01-23 Thread David Mossakowski
Does the authentication have to happen on a physically separate web server? If you're the maintainer of both of the initial applications then writing an authentication library for use in both applications is certainly less work than maintaining third application for authentication and the communic

Re: DESIGN QUESTION

2003-01-23 Thread M. E. Zawadzki
NFS, Samba, etc. --- rusty bawa <[EMAIL PROTECTED]> wrote: > Thank you for your reply. > I have thought about it, but how can i call a library > residing on another server? I can replicate [by > pushing] libraries to each server when files get > updated, but that looks like a lot of maintenance > w

Re: DESIGN QUESTION

2003-01-22 Thread rusty bawa
Thank you for your reply. I have thought about it, but how can i call a library residing on another server? I can replicate [by pushing] libraries to each server when files get updated, but that looks like a lot of maintenance work. what do you think? bawa ___

Re: DESIGN QUESTION

2003-01-22 Thread David Mossakowski
Why do you want the two applications to be hitting another web application for this? Wouldn't it be easier (and much faster) to build a module/library for permissions and hook it up to the other two applications? That module would look up users in the same database. Have a class called Gatekeepe

DESIGN QUESTION

2003-01-20 Thread rusty bawa
Greetings, I wonder if anyone can help me by leading me to the right direction. My question is: I have 2 Servlet applications running on 2 separate Tomcat application servers. The apps run on 2 different physical machines and have no need to communicate to each other. Both apps connect to the Orac

web application design question...

2002-10-27 Thread Padhu Vinirs
I am planning on designing a web app. This web app basically has one look and feel ( like an amazon.com ) but where the contents change ( including images, amount of text/links etc ) depending on user choices. I am aware of Struts framework and the Front controller design pattern. I think Struts mi

Re: JSP/SERVLET DESIGN QUESTION

2001-11-14 Thread Antony Stace
SP page. > > --amrinder > > -Original Message- > From: Antony Stace [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 4:23 AM > To: [EMAIL PROTECTED] > Subject: JSP/SERVLET DESIGN QUESTION > > > Hi > > I have a questionI want to know if th

Re: JSP/SERVLET DESIGN QUESTION

2001-11-14 Thread Amrinder, Arora (Meritage)
page. --amrinder -Original Message- From: Antony Stace [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:23 AM To: [EMAIL PROTECTED] Subject: JSP/SERVLET DESIGN QUESTION Hi I have a questionI want to know if the following is bad design. I have a servlet, called

JSP/SERVLET DESIGN QUESTION

2001-11-14 Thread Antony Stace
Hi I have a questionI want to know if the following is bad design. I have a servlet, called Simple, with the following doPost code in it [snip] public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOE

Re: Servlet Design Question-Want to get rid of massive if/else block

2001-07-15 Thread Mike Marchywka
Road Suite 1200 Atlanta GA 30339 770-261-5084(W) 770-434-7510(H) FAX: 770-261-5080 [EMAIL PROTECTED] -Original Message- From: rubisd [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 15, 2001 1:52 PM To: [EMAIL PROTECTED] Subject: Re: Servlet Design Question-Want to get rid of massive if

Re: Servlet Design Question-Want to get rid of massive if/else block

2001-07-15 Thread rubisd
Hey! You might look at the Design Pattern named Factory Method. What you would have is a "Service Factory" that passes back the required service object when passed the service name. Very OO, and powerful technique. I use it exclusively when I implement the Model View Control architecture. Sea

Re: Servlet Design Question-Want to get rid of massive if/else block

2001-07-15 Thread Jerson Chua
Use the Reflection API. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources:

Re: Servlet Design Question-Want to get rid of massive if/else bl ock

2001-07-14 Thread t t
Thanks for the reply. Do you know anywhere on the web where there is an example of this. Either a article/tutorial or a *.java file I can download and have a look at? Cheers Tony --- Duane Morse <[EMAIL PROTECTED]> wrote: > One standard way is to create your own request > handler objects and

Re: Servlet Design Question-Want to get rid of massive if/else bl ock

2001-07-14 Thread Duane Morse
PROTECTED]] Sent: Saturday, July 14, 2001 6:26 AM To: [EMAIL PROTECTED] Subject: Servlet Design Question-Want to get rid of massive if/else block Hi Folks I have just started writting Servlets and want advice on how to write a handler for all incoming requests. At the moment I have all requests

Re: Servlet Design Question-Want to get rid of massive if/else block

2001-07-14 Thread Brad Cox
This works well for me. See JavaDox at http://virtualschool.edu/jwaa for the classes mentioned here. void doRequest(HttpServletRequest request, HttpServletResponse response) { 00071 Ctx ctx = new Ctx(this, request, response); 00072 logRequest(ctx); 00073 try 00074

Servlet Design Question-Want to get rid of massive if/else block

2001-07-14 Thread t t
Hi Folks I have just started writting Servlets and want advice on how to write a handler for all incoming requests. At the moment I have all requests going to the same servlet. This servlet grabs a hidden variable which says which page the client is requesting, ie requestPage=mainMenu the serv

Re: Servlet design question

2000-12-09 Thread Craig R. McClanahan
Suhai Gábor wrote: > Thank You for Your response Nic. > > My idea came from the Java PetStore Demo, where there's only one servlet > with a requestprocessor, and so on. I tried to make something similar > (without EJBs). Maybe it was a bad idea. > I will think again the problem with Your suggesti

Re: Servlet design question

2000-12-09 Thread Suhai Gábor
Thank You for Your response Nic. My idea came from the Java PetStore Demo, where there's only one servlet with a requestprocessor, and so on. I tried to make something similar (without EJBs). Maybe it was a bad idea. I will think again the problem with Your suggestions. Thanks again Gábor > >

Re: Servlet design question

2000-12-08 Thread Nic Ferrier
>>> Suhai_Gábor <[EMAIL PROTECTED]> 08-Dec-00 9:11:00 PM >>> >I'm new at the servlet technology and this list too, >and my english is terrible and I've got a question, >so it isn't easy for me (and for You). FWIW your english is very good. Much better than my Hindi I assue you. >And finally my

Servlet design question

2000-12-08 Thread Suhai Gábor
Hi everyone! I'm new at the servlet technology and this list too, and my english is terrible and I've got a question, so it isn't easy for me (and for You). Well... I've got a servlet. It works as a front component (it communicates with applet clients), it forwards requests to Handler classes (n

Software design question!

2000-11-09 Thread unni
Hi, I am new to servlet and OOP concepts. I would like to get an idea from the servlet gurus before I jump into my small project. I want to develop a system that reads a file and insert a detail record in to a table (for testing I am using MS Access). Later I want to give my friends a web site

Re: SV: Design Question

2000-09-12 Thread Martin Cooper
essage- > > From: Ryan Richards [SMTP:[EMAIL PROTECTED]] > > Sent: Tuesday, September 12, 2000 5:23 AM > > To: [EMAIL PROTECTED] > > Subject: Re: SV: Design Question > > > > Thanks to all for there responses. > > > > Matthias: > >

SV: SV: Design Question

2000-09-12 Thread Matthias Carlsson
Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]För Nitin Khattar Skickat: den 12 september 2000 10:58 Till: [EMAIL PROTECTED] Ämne: Re: SV: Design Question hi Matthias What's the advantage of using this scheme? One is that there will be only one instance o

Re: SV: Design Question

2000-09-12 Thread Oisin Hennessy
ticated IDE's etc. Oisin > -Original Message- > From: Ryan Richards [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, September 12, 2000 5:23 AM > To: [EMAIL PROTECTED] > Subject: Re: SV: Design Question > > Thanks to all for there responses. > > Matthias: > &g

Re: SV: Design Question

2000-09-12 Thread Nitin Khattar
de as all the threads from various forms will try to access the same doPost method of the same instance. - Original Message - From: "Ryan Richards" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 12, 2000 8:52 AM Subject: Re: SV: Design Question

Re: SV: Design Question

2000-09-12 Thread Ryan Richards
-Original Message- From:Matthias Carlsson [EMAIL PROTECTED] Sent:Mon, 11 Sep 2000 19:07:28 +0200 To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: SV: Design Question Although I don't know if it is an effective approach, this is how I (usually) solve this kind of problems (and

Design Question

2000-09-11 Thread Ryan Richards
I have a web site that uses several servlets to capture and utilize html form data and extract or insert into a database based on the form etc...Each form has it's own servlet that does the functionality. The only difference between them is of course th form elements and the jdbc queries/operation

Re: Servlet Design Question

2000-08-24 Thread darien baptiste
er" in the browser blah ,blah,blah darien >From: "Lambert, Stephen : CO IR" <[EMAIL PROTECTED]> >Reply-To: "A mailing list for discussion about Sun Microsystem's Java >Servlet API Technology." <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] &g

Re: Servlet Design Question

2000-08-23 Thread siva baskaran
000 9:58 PM Subject: Re: Servlet Design Question > >>> "Lambert, Stephen : CO IR" <[EMAIL PROTECTED]> 23-Aug-00 5:05:39 PM > >>> > > >My question is what would be the proper approach to > >re-displaying the user entered data with the errors with

Re: Servlet Design Question

2000-08-23 Thread Kevin Mukhar
"Lambert, Stephen : CO IR" wrote: > > How do you re-display an HTML form without using *out.println* statements? > > Scenario: > I have a 300 field HTML form that posts data to an AS/400 file, then sends > back a simple acknowledgement web page using *out.println* statements. Keep the form as one

Re: Servlet Design Question

2000-08-23 Thread Nic Ferrier
>>> "Lambert, Stephen : CO IR" <[EMAIL PROTECTED]> 23-Aug-00 5:05:39 PM >>> >My question is what would be the proper approach to >re-displaying the user entered data with the errors without >using an enormous amount of *out.println* statements? JSP. Nic Ferrier ___

Servlet Design Question

2000-08-23 Thread Lambert, Stephen : CO IR
How do you re-display an HTML form without using *out.println* statements? Scenario: I have a 300 field HTML form that posts data to an AS/400 file, then sends back a simple acknowledgement web page using *out.println* statements. Now I have been asked to validate up to 10 fields all against a s

Re: DB Design question (2 part)

1999-06-08 Thread Michael Nash
ingle connection. Mike Nash JavaCorporate Ltd: Java Components for the Corporate Intranet http://www.javacorporate.com -Original Message- From: Sen-sei [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 08, 1999 10:48 AM To: [EMAIL PROTECTED] Subject: DB Design question (2 part) Hi All: I have a

DB Design question (2 part)

1999-06-08 Thread Sen-sei
Hi All:   I have a three tier application and the servlet acts as the middle tierbetween the user and the database. All of servlets extends database methodsfrom the class that provides database services (open, close...) The firstcalled servlet open the conecttion with the DB, and the classes

DB Servlet Design question

1999-06-07 Thread Sen-sei
Hi all:   I want to make a class that provides to his sub-classes a complete number of methods to open, retrieve information, close... a Connection to a Database. My idea is that the first called servlet, open the Connection to the database and the Servlets called from this one, take profit

Servlet to RMI server - design question

1999-04-25 Thread wendy.ua
Hi RMI-ers and Servlet-ers, Say I have a client applet that passes its query criteria to a servlet. This servlet then has to talk to a RMI server to get the query result back (to the applet eventually). My question is what is the most efficient way to establish and maintain the connection betwe

Re: A JDBC - servlet Design Question

1999-04-23 Thread Rudolph Au
applet-servlet-database application, and I have a > design > question. > > The applet collects info, builds a query object, sends it to the > servlet > (http serialized object), which sends it to the db-server (rmi) to get > the > result set. The result set is returned to the s

Re: A JDBC - servlet Design Question

1999-04-23 Thread Komatineni, Satya
PROTECTED] Subject: A JDBC - servlet Design Question I am building an applet-servlet-database application, and I have a design question. The applet collects info, builds a query object, sends it to the servlet (http serialized object), which sends it to the db-server (rmi) to get the result set. The r

Re: A JDBC - servlet Design Question

1999-04-23 Thread Jason Hunter
> 2. Can I send the JDBC result set back to the applet as a serialized > object, or is it better to "unpack" it at the servlet and send it as > my own result set object? You cannot send a ResultSet back as a serialized object because ResultSet doesn't implement Serializable. Makes sense if you t

A JDBC - servlet Design Question

1999-04-22 Thread Mark Phillips
I am building an applet-servlet-database application, and I have a design question. The applet collects info, builds a query object, sends it to the servlet (http serialized object), which sends it to the db-server (rmi) to get the result set. The result set is returned to the servlet (rmi

Re: Design question (servlet handling multiple forms)

1999-04-21 Thread jon *
> I've used this design pattern to good effect on several projects. I have as well. I will be releasing my very simple framework for using Class.forName() to abstract content from templates (as well as abstract action handling...ie: form processing) on under LGPL (L

Re: Design question (servlet handling multiple forms)

1999-04-21 Thread Craig R. McClanahan
Justin Wells wrote: > Use dynamic class loading to your advantage. Create an interface > representing processing of a request--containing the method you > need to call. Create several implementations of it, one for each > way of processing. > > Then create a "reactor" which loads and dispatches t

Re: Design question (servlet handling multiple forms)

1999-04-21 Thread Justin Wells
Use dynamic class loading to your advantage. Create an interface representing processing of a request--containing the method you need to call. Create several implementations of it, one for each way of processing. Then create a "reactor" which loads and dispatches these handlers. ie: You supply a

Design question (servlet handling multiple forms)

1999-04-21 Thread Lewis, Grant
I currently have a servlet that handles several different HTML forms from its doPost method. Currently, I check a hidden form element to determine which form was just posted then I call one of a number of private methods on the servlet to process the form. This is working fine, but there is the p

servlet thread design (was Re: a design question)

1999-04-12 Thread Justin Wells
On making servlets thread-safe: The approach I took with WebMacro (www.webmacro.org, it's free) was to split everything into several categories, each with a different thread policy. WebMacro is based on a model/view/controller design so the thread policy breaks down along those lines: Templat

Re: a design question

1999-04-12 Thread Kevin Mukhar
Thomas Moore wrote: > > Kevin said: > > Another question about threading. I think this is something that definitely > > needs to go into the FAQ. > Comments welcome... > > FAQ Addendum - Threading in Servlets > (Or What A Tangled Web We Weave) And after I wrote that, I realized the other FAQ (htt

Re: a design question

1999-04-12 Thread Thomas Moore
Kevin said: > Another question about threading. I think this is something that definitely > needs to go into the FAQ. Comments welcome... FAQ Addendum - Threading in Servlets (Or What A Tangled Web We Weave) Are servlets thread safe? Servlets are only thread safe to the degree that you, the prog

Re: a design question

1999-04-09 Thread Carl R. Castro
tDataRequest ( request ); ViewRequest viewRequest = requestFormat.getViewRequest ( request ); View view = viewManager.get ( viewRequest ); Object data = dataManager.get ( dataRequest ); HTML.append ( view.render ( data ) ); } Hope all of this helps somewhat. Best, Carl Carl R. Castro [EMAI

Re: a design question

1999-04-09 Thread Alfonso Urdaneta
Mirko Wolf wrote: > The first one will have no chance to complete the request, right? Servlets are threaded by nature, but the DB stuff is up to you. Alfonso. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include

Re: a design question

1999-04-09 Thread Justin Wells
You can write an adapter to sit im front of the critical code and control the number of threads allowed in. Justin www.webmacro.org / Java Servlet Framework Quoting Mirko Wolf ([EMAIL PROTECTED]): > Hi there, > > Here is another question how to design functions for a servlet. > IMHO for every r

Re: a design question

1999-04-09 Thread Kevin Mukhar
Another question about threading. I think this is something that definitely needs to go into the FAQ. Mirko Wolf wrote: > > Hi there, > > Here is another question how to design functions for a servlet. > IMHO for every request made to a servlet the service function is called again. Yes, service

Re: a design question

1999-04-09 Thread John Kirby
ts out.println(.); } } John Kirby DISC -Original Message- From: Mirko Wolf [mailto:[EMAIL PROTECTED]] Sent: Friday, April 09, 1999 9:51 AM To: [EMAIL PROTECTED] Subject: a design question Hi there, Here is another question how to design functions for a servlet. IMHO for e

Re: a design question

1999-04-09 Thread Roger Kitain
you can grab a connection from the pool and do your database operations. -roger > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Date: Fri, 9 Apr 1999 16:51:29 +0200 > From: Mirko Wolf <[EMAIL PROTECTED]> > Subject: a design question > To: [EMAIL PROTECTED] > > Hi ther

a design question

1999-04-09 Thread Mirko Wolf
Hi there, Here is another question how to design functions for a servlet. IMHO for every request made to a servlet the service function is called again. But what happens, when a critical function is called by two or more service functions at the same time? For instance a function which handles