Re: Logon Dialogs

2001-04-06 Thread Wayland Chan
You can create a taglib that checks that the user is logged on. Add the tag to each page and it should redirect them to your login page if they haven't logged in, jumping to middle of site via bookmark, or session has timed out. In the struts-example webapp, look at mainMenu.jsp and notice the t

Re: Visualage Java 3.5 with tomcat and struts

2001-04-06 Thread Vincent Massol
oups ... sorry this mail wans meant for Sylvain Fagnent only :) I just wanted to say (having worked with Sylvain on the problem) that it was not the Digester which was missing but it was a parsing problem which we solved by doing what Sylvain explained (replaced the VAJava provided XML parse

Re: Visualage Java 3.5 with tomcat and struts

2001-04-06 Thread Vincent Massol
oui mais le Digester c'est une classe de Struts qui est donc toujours la - Original Message - From: "Sylvain Fagnent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 07, 2001 12:46 AM Subject: Re: Visualage Java 3.5 with tomcat and struts > We had a similar proble

Logon Dialogs

2001-04-06 Thread James Bell
Hi Everyone   How force the user to re-enter their logon credentials after their session has timed out?   Thanks James Bell

Re: Connection Pooling, GenericDataSource, JNDI, CachedRowSet

2001-04-06 Thread Michael Mok
Hi Here is a modified extract of the sample code. I have not tried it though. javax.sql.DataSource dataSource = (javax.sql.DataSource) getServletContext().getAttribute(Action.DATA_SOURCE_KEY); java.sql.Connection conn = dataSource.getConnection(); CachedRowSet crs = new CachedRowSet() crs

RE: Error in WEBSPHERE...

2001-04-06 Thread rbackhouse
You do NOT need to change any struts code for WebSphere 3.5.2/3 if you either place the doc root in the webapps classpath or make a WEB-INF directory in the webapps servlets dir and copy all the org/apache/struts/resources/*.dtd there. The bug is that ServletContext.getResourceAsStream() only l

Re: Visualage Java 3.5 with tomcat and struts

2001-04-06 Thread Sylvain Fagnent
We had a similar problem. In our case it appears that the Digester was missing. Remove the IBM XML Parser for Java Project and replace it by a Xerces parser in a XML projext for instance. Go to http://xml.apache.org/ you'll find the XERCES parser jar. Sylvain Fagnent - Original Message

Re: Struts in WebSphere - VICTORY !!!!!!! - Addendum

2001-04-06 Thread Wayland Chan
Try adding the docroot to your classpath as Richard Backhouse suggested in an earlier post to this thread. 5. Once the convert was finished I added the doc root directory to the classpath for the webapp. (Added c:\websphere\appserver\hosts\default_host\struts-example\web). This was via the admi

RE: Dynamic form elements

2001-04-06 Thread Niall Pemberton
I believe this is on the todo list for version 1.1. Previous Related Threads which talk about the same thing are: form question

RE: Error in WEBSPHERE...

2001-04-06 Thread Assenza, Chris
Manish, Well remember, those instructions are for WebSphere 3.5.3 ONLY. I cannot verify if this works or not, but in addition to the changes you've already made, you must change code in three of the Struts source files. They make method calls (getResourceAsStream()) that are unsupported by WebSp

Cannot retrieve definition for form bean null

2001-04-06 Thread Abraham Kang
Does anyone know what this exception means? javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null I have a simple JSP page that only has two Struts tags: Confused, Abraham

RE: need ServletConfig object in Action class

2001-04-06 Thread Nanduri, Amarnath
Yeah. Use the form object that comes as an input parameter in the perform() method. I think the call is ... form.getServlet().getServletContext().. -Original Message- From: Bever, Nick [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 4:36 PM To: '[EMAIL PROTECTED]' Subject:

Dynamic form elements

2001-04-06 Thread Yuriy Zubarev
Hello Friends, Does anyone know if there is a standart scheme for dealing with form elements that are created dynamicly? For intance I iterate against a bean, creating a table of its properties and for each row I need to have a text element (checkbox, combobox, whatever). The problem is to give t

need ServletConfig object in Action class

2001-04-06 Thread Bever, Nick
Is there any way to access the Action controller's ServletConfig object from an Action class? Thanks. Nick Bever Tallan Email: [EMAIL PROTECTED]

RE: Visualage Java 3.5 with tomcat and struts

2001-04-06 Thread Deadman, Hal
>From what I hear, Tomcat 3.1 is not really supported by Struts, Tomcat 3.2 is. > -Original Message- > From: Wes Cummings [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 4:19 PM > To: Struts-User > Subject: Visualage Java 3.5 with tomcat and struts > > > hi, > I am trying to g

Newbie question #4-more info please help.

2001-04-06 Thread Alex Colic
Hi, I did some more debugging and I have found the following. In my struts-config.xml file I have the following: When is submit a form with action /reqHeader I can see that the bean is being populated but when it get to creating the action instance I get the following error:

Error in WEBSPHERE...

2001-04-06 Thread Manish Sharma
I tried the below and still get errors while trying to start the Application on Websphere 3.5.2. It seems to find STRUTS-CONFIG.XML but cannot seem to reference the DTD. I've created the required DTD structure under /SERVLETS/ and changed the DOCTYPE statement to : http://jakarta.apache.org/stru

Visualage Java 3.5 with tomcat and struts

2001-04-06 Thread Wes Cummings
hi, I am trying to get struts to run in VAJ3.5 pacth 2. I have tomcat running fine. The version of tomcat is 3.1. The version of struts is 1.0-beta-1. In stepping thru with the debugger, it appears to get the error when trying to load org.apache.struts.digester.Digster. I have all Struts classes l

Re: Struts in WebSphere - VICTORY !!!!!!! - Addendum

2001-04-06 Thread Tom Miller
I have a question for you VAJ guys. Can the Tomcat Test Environment co-exist with Websphere in a VAJ installation? I would eventually like to implement the instructions you've arrived at, but need to finish some development in Tomcat first. I've been asked by a client to move into VAJ Enterprise,

struts-user@jakarta.apache.org

2001-04-06 Thread Perkash Khoenkhoen
Met vriendelijke groet, Perkash Khoenkhoen home-page: http://www.khoenkhoen.com

RE: servlet context attribute?

2001-04-06 Thread Young, Wayne
Ok, that gets me closer. I created the servlet & put the following code in the init() method. // Store the lookup service in the servlet context LookupService lookupService = new LookupService(); getServletContext().setAttribute("LookupService",lookupService); I need to get access to this

JDBC RealM

2001-04-06 Thread Mustapha Essalihe
I am setting user authentification in a postgres data and i configure my tomcat server.xml with a RequestInterceptor like this : how can i use this in my web.xml to authentificate users for each ressource in my web application (html files, jsp, servlets ...) give somme example of configurations

Re: troubles with Tomcat

2001-04-06 Thread Johan Compagner
Seet mod_jk many articles on the jakarata site johan - Original Message - From: "ntrgiang" <[EMAIL PROTECTED]> To: "Struts-User" <[EMAIL PROTECTED]> Sent: Friday, April 06, 2001 5:17 PM Subject: troubles with Tomcat > Hi, thanks for reading my message > > When I test some JSP pages,

Re: troubles with Tomcat

2001-04-06 Thread Jim Crossley
http://jakarta.apache.org/struts/installation-tc.html ntrgiang wrote: > > Hi, thanks for reading my message > > When I test some JSP pages, I use Tomcat as my JSP container (without > Apache)and everything is OK. But in the real world if I want to deploy my > application on the web, how can I u

troubles with Tomcat

2001-04-06 Thread ntrgiang
Hi, thanks for reading my message When I test some JSP pages, I use Tomcat as my JSP container (without Apache)and everything is OK. But in the real world if I want to deploy my application on the web, how can I use Tomcat with Apache? Are there any differences between Tomcat Standalone version a

How to use multiple datasources ?

2001-04-06 Thread Szlapa, Michael
Does anyone know how to configure and use multiple datasources ? Thanks in advance Michael -Original Message- From: Szlapa, Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 11:11 AM To: '[EMAIL PR

RE: .do mappings not working & bean cannot be read by the JSP

2001-04-06 Thread Iraklis Kourtidis
thanks Maya. I've tried all the steps you just mentioned unfortunately. I've gone through the struts-example back and forth. The one thing that was completely not clear was what happens first - the execution of the code in the Action, or the displaying of the JSP? Anyway, thanks much for the help.

RE: servlet context attribute?

2001-04-06 Thread Dorai, Harish (c)
You can have a stand alone servlet that will create the instance of your cache object in its init() method and put it in ServletContext using setAttribute. Or other approach would be to use a Startup class (this is available in Weblogic) which will have the Cache object as an instance property. Al

Re: Forwarding to a frameset

2001-04-06 Thread Cedric Dumoulin
A kind of "dynamic templates" will be introduce in struts 1.1. To know how it will work, search in the list archive for "Re: PROPOSAL: Template Screens" (Thu, 01 Mar 2001 ). The proposed mechanism is already implemented in the "components proposal". Have a look to : (main site) : http:

servlet context attribute?

2001-04-06 Thread Young, Wayne
I've seen references on this list about storing an object as a servlet context attribute. Basically, I want to create one instance of an object (to use as a cache) and share it among all sessions. Does this require modifying ActionServlet & adding the attribute? Or is there some other way? Than

A problem about i18n

2001-04-06 Thread JeanX
Hi struts-user, I know locale of user saved under the org.apache.struts.action.Action.LOCALE_KEY key in his session object . But now I want to maintenance it in my own object. So other class of Struts may not work rightly such as taglib.MessageTag . How to resolve it except rewrite these class?

A problem about i18n

2001-04-06 Thread JeanX
Hi struts-user, I know locale of user saved under the org.apache.struts.action.Action.LOCALE_KEY key in his session object . But now I want to maintenance it in my own object. So other class of Struts may not work rightly such as taglib.MessageTag . How to resolve it except rewrite these class?

A problem about i18n

2001-04-06 Thread JeanX
Hi struts-user, I know locale of user saved under the org.apache.struts.action.Action.LOCALE_KEY key in his session object . But now I want to maintenance it in my own object. So other class of Struts may not work rightly such as taglib.MessageTag . How to resolve it except rewrite these class?

Re: Struts in WebSphere - VICTORY !!!!!!! - Addendum

2001-04-06 Thread Manish Sharma
I tried the below and still get errors while trying to start the Application on Websphere 3.5.2. It seems to find STRUTS-CONFIG.XML but cannot seem to reference the DTD. I've created the required DTD structure under /SERVLETS/ and changed the DOCTYPE statement to : http://jakarta.apache.org/stru

Re: Newbie question #2

2001-04-06 Thread Maya Muchnik
Here is the reply from Craig M. for similar question - John Hunt wrote: > 1.What is the normal practice in the case where you > have two pages, and part of the input entered in the > first page needs to be displayed in the second page. I > would say use the same form bean for both

Browser Info in request object

2001-04-06 Thread Narasimhan, Shyamala
How do we access browser info in request object in struts I need to format my jsp respone pages with layers or div depending on whether the browser is netscape or ie

RE: Newbie question #2

2001-04-06 Thread Nanduri, Amarnath
check the mailing list. Somebody before has asked the same question and got a reply back -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 10:26 AM To: Struts Subject: Newbie question #2 Hi, I am porting one of my web apps to the struts infrastr

RE: Newbie question #1

2001-04-06 Thread Nanduri, Amarnath
yes -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 10:26 AM To: Struts Subject: Newbie question #1 Hi, I am porting one of my web apps to the struts infrastructure. I have a few questions that should get me on the right track. I hope someone

Forwarding to a frameset

2001-04-06 Thread Dorai, Harish (c)
Hi, I have a situation where my view consists of a template JSP with 3 frames. My Action class will always be forwarded to this JSP, but the JSPs used to populate the frames will be chosen dynamically based on the client input. How can I configure the ActionServlet and build my Action class and A

Re: Frames, concurrency, and EJB Stateful Session beans - a problem.

2001-04-06 Thread Dan Malks
Bryan, Bryan Field-Elliot wrote: > Thank you Dan -- > > As I emailed at around midnight last night, I have everything taken > care of, using Jason Pringle's pattern. It's probably very similar to > the Business Delegate pattern you describe (which I will read today). This is why they call it a

RE: html:submit tag question

2001-04-06 Thread Nanduri, Amarnath
thanks -Original Message- From: Jim Crossley [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: Re: html:submit tag question I *think* this is the struts equivalent: You may be able to get by without the property attribute, though. "

Newbie question #3-clarification

2001-04-06 Thread Alex Colic
Sorry I forgot to make one thing clear in my question. "The User class has a method getEmployee() that itself has a method getDepartment();" Should be "The User class has a method getEmployee that returns an object of type employee which itself has a method getDepartment()" Sorry. Regards Ale

This maillist, reply-to problem

2001-04-06 Thread Menno M Jansz
Hi, I just noticed that all my mails sent to this list have two reply-to fields, one with my email, and one with the group. As mine is last it seems to get picked up. Is there something I need to set to avoid this? I did not notice this in othere people's posts. Thanks, Menno

Re: Newbie question #3

2001-04-06 Thread Jim Crossley
Alex Colic wrote: > > Hi, I am porting one of my web apps to the struts infrastructure. I have a > few questions that should get me on the right track. I hope someone out > there can help. > > On one of my pages I am getting an object that is already in the session > via: > > > > The User

Newbie question #4

2001-04-06 Thread Alex Colic
Last question. Could someone explain this part of struts.xml Am I correct that: path=form action path that is submitting this request type=class to handle this request name=name of form bean to handle this request scope=scope of from bean input=path of page submitting this request forward=local

Re: how to get reference of a session bean in Action

2001-04-06 Thread Menno M Jansz
Ah in the examples I of course meant eg request.getSession().getAttribute("userinfo"); and eg request.getSession().setAttribute("userinfo", userinfo); Sorry I need more caffeine, or more sleep, Menno 06/04/2001 17:13:12, Menno M Jansz <[EMAIL PROTECTED]> wrote: >To access EJBs in your Action

Re: Frames, concurrency, and EJB Stateful Session beans - a problem.

2001-04-06 Thread Bryan Field-Elliot
Bill -- I think the important design point to make, is that you want your business logic (including rules of behavior, state machine, etc) to be encapsulated within the EJB tier. This makes for tidier code and a more elegant design, and also makes your code more client-neutral. One of the sce

Newbie question #3

2001-04-06 Thread Alex Colic
Hi, I am porting one of my web apps to the struts infrastructure. I have a few questions that should get me on the right track. I hope someone out there can help. On one of my pages I am getting an object that is already in the session via: The User class has a method getEmployee() that itself

Newbie question #2

2001-04-06 Thread Alex Colic
Hi, I am porting one of my web apps to the struts infrastructure. I have a few questions that should get me on the right track. I hope someone out there can help. #2 How do you make a text box read-only? I have a form in which the employee name is read from the bean. I don't want the user to chan

Newbie question #1

2001-04-06 Thread Alex Colic
Hi, I am porting one of my web apps to the struts infrastructure. I have a few questions that should get me on the right track. I hope someone out there can help. 1: I understand that you have a bean associated with a form and the form populates the bean and is populated by the bean. Lets say you

Newbie question #1

2001-04-06 Thread Alex Colic
Hi, I am porting one of my web apps to the struts infrastructure. I have a few questions that should get me on the right track. I hope someone out there can help. 1: I understand that you have a bean associated with a form and the form populates the bean and is populated by the bean. Lets say you

Re: Frames, concurrency, and EJB Stateful Session beans - a problem.

2001-04-06 Thread Bryan Field-Elliot
Thank you Dan -- As I emailed at around midnight last night, I have everything taken care of, using Jason Pringle's pattern. It's probably very similar to the Business Delegate pattern you describe (which I will read today). Basically I implemented a handler class for the Stateful Session Bean, wh

Re: how to get reference of a session bean in Action

2001-04-06 Thread Menno M Jansz
To access EJBs in your Action do a GetAttribute on the HttpSession ( eg request.getSession().getAttribute("userinfo"); ). 1. If the return is null then this indicates it is the first time for this HttpSession, so do a lookup for the relevant ejb. When you have a reference to it do a SetAttri

RE: how to get a global ActionForward object?

2001-04-06 Thread Deadman, Hal
Yes > -Original Message- > From: JeanX [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 3:56 AM > To: struts-user > Subject: how to get a global ActionForward object? > > > Hi struts-user, > > How to get a global ActionForward object defined in > tag in my Action class ? > C

Re: Frames, concurrency, and EJB Stateful Session beans - a problem.

2001-04-06 Thread Dan Malks
All, Sorry to jump in late on this. Am not monitoring this list real consistently at the moment, but it was brought to my attention that there were some business tier coupling and EJB issues being discussed, so I thought I'd make a few quick comments. Looking back over the thread, there is a ment

Re: .do mappings not working & bean cannot be read by the JSP

2001-04-06 Thread Maya Muchnik
Iraklis, I will try to help you, but maybe I could not, because, I am almost in the start stage as you are. The first you need to understand HOW struts-example works, you can find "A Walk tour .." in the example menu. This tour explains step by step, what involve and how in struts-example. The se

Re: Javascript and struts

2001-04-06 Thread Jens Rehpöhler
Hi Joel, I have forgotten to write you my other idea to solve your problem :-) Here it is: Remove the onClick handler and the JavaScript from you login screen. After a succesfull login (logon.do) show a page with the following content: window.open('reconciliation.jsp','recwindow','width=800

Re: Javascript and struts

2001-04-06 Thread Jens Rehpöhler
Hi Joel, > > Username: > Password: > onclick = > "window.open('reconciliation.jsp','recwindow','width=800,height=600,resi > zable=no,scrollbars=yes');return(false)"/> > > > > This works in that it opens a new window and stops anything happening in > th

RE: Frames, concurrency, and EJB Stateful Session beans - a problem.

2001-04-06 Thread Hines, Bill
Brian, Disclaimer: I'm new to EJB and still trying to understand when to use stateful/stateless session beans. Given that, I found your situation interesting. First I'll try to help you if I can. There is an article in the February 2001 WebSphere Advisor by Tony Higham, on page 10, titled "The R

Re: Connection Pooling, GenericDataSource, JNDI, CachedRowSet

2001-04-06 Thread Christophe Thiébaud
On Thu, 05 Apr 2001, you wrote: > I have used the CacheRowSet however I get the > connection from GenericDataSource manually and > associate it with the CachedRowSet. thank for the response you mean you use CachedRowSet methods open(connection), acceptchanges(connection), etc. ? > > You migh

Re: DISABLE TEXT FIELD ON JSP

2001-04-06 Thread Olivier Duchene
Hi, For example, I'm using this code to unfocus a text filed if a checkbox is checked : onfocus="if (!document.form_nam.checkbox_name.checked) {this.blur();}" Olivier. [EMAIL PROTECTED] wrote: > As others pointed out, you cannot use READONLY as it does not support > Netscape. We have got aroun

RE: FIXED: Problem using struts1.0 with ORION 1.3.8 1.4.0 and 1. 4.5 UPDATED

2001-04-06 Thread Olivier Baujard
Shawn, Here is my global-application.log 05.04.01 10:46 Started 05.04.01 10:46 defaultWebApp: 1.4.5 Started 05.04.01 10:46 strutsTest: org.apache.struts.action.ActionServlet: init 05.04.01 10:46 strutsTest: org.apache.struts.action.ActionServlet: Initializing configuration from resource path /st

RE: intercepting requests

2001-04-06 Thread Robert Taylor
I believe the new Servlet API2.3 has a filtering mechanism for this functionality. from http://developer.java.sun.com/developer/technicalArticles/Servlets/servletap i2.3/ Filters The most significant part of API 2.3 is the addition of filters -- objects that can transform a request or modify a

how to get a global ActionForward object?

2001-04-06 Thread JeanX
Hi struts-user, How to get a global ActionForward object defined in tag in my Action class ? Can I get it by calling findForward() on the ActionMapping object I received? Thx :=) Best regards, JeanX pacificnet.com(GZ)