(Property)MessageResources proposed changes.

2000-12-20 Thread Johan Compagner
Hi, ( i am trying to subscribe to STRUTS-DEV but i don't get a confirmation message so i post it first here) When the new MessageResources class (and its sub) where introduced my app didn't work anymore because of the changed behaviour in loading resouces. I have 2 fixes that i have attached

Re: Bad Multi-Threading Performance

2000-12-20 Thread Ned Seagoon
From: Matthew Strayer [EMAIL PROTECTED] The situation you describe does not cause deadlock because the wait() call in thread 2 releases the synchronized lock. Ahh - didn't realise that! It's not been in any docs I've read before. Now, i've found it buried now in 4 lines of page 184 of

Proposal: RetroFit Struts with the Delegation Event Model

2000-12-20 Thread David Geary
ABSTRACT It's often convenient, and sometimes necessary, to handle Struts events, such as when an action has its locale set, or when the action servlet processes an action's form. This document proposes retrofitting Struts with the delegation event model. That model, which is used by the AWT

Page Forwarding Question

2000-12-20 Thread James Howe
In my action classes I have code which checks to see if a user has logged on. If not, the code forwards to the logon page (e.g. servlet.findForward("logon")). However this doesn't fully accomplish what I would like. If a user attempts to reference a page which requires a login, I would

RE: Page Forwarding Question

2000-12-20 Thread Sayles, Scott SAXONHQ
Have the login page write a hidden field with the value of the requested url and submit it to your logon action. From your logon action you can then instantiate a new ActionForward and set the path to the requested url, as defined in the hidden form field, and return that. Alternatively,

DataSource

2000-12-20 Thread Sayles, Scott SAXONHQ
Pardon me if I'm missing something, but is it intended that the javax.sql.DataSource be required in the ActionServlet? It's just that I downloaded a recent build and I'm now getting errors when trying to compile my actions. They relate to javax.sql.DataSource not being found on the import. Is

Re: DataSource

2000-12-20 Thread craig mcclanahan
"Sayles, Scott SAXONHQ" wrote: Pardon me if I'm missing something, but is it intended that the javax.sql.DataSource be required in the ActionServlet? It's just that I downloaded a recent build and I'm now getting errors when trying to compile my actions. They relate to

Re: What's Struts ...

2000-12-20 Thread craig mcclanahan
Steve A Drake wrote: On Mon, 19 Jun 2000, Shiraz Wasim Zaidi wrote: The action's servlet can then handle the request, and return a HTTP response to the controller, which the controller can pass back to the client. ---COMMENT I think you have a wrong understanding that action

RE: Page Forwarding Question

2000-12-20 Thread Shiraz Wasim Zaidi
In my action classes I have code which checks to see if a user has logged on. If not, the code forwards to the logon page (e.g. servlet.findForward("logon")). However this doesn't fully accomplish what I would like. If a user attempts to reference a page which requires a login, I would

Missing message for key index.title

2000-12-20 Thread Neal Kaiser
Can someone tell me what this error means: javax.servlet.jsp.JspException: Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:261) I get it when trying to run the struts-example on Orion Server. THanks

RE: Missing message for key index.title

2000-12-20 Thread Neal Kaiser
Thanks. I actually have both of those already. I think it might have to do with the Orion Server. I did take the steps that have been posted in the past to get it to work with Orion, but still no luck. Could this be related? In my orion console I see: [root@www orion]# Orion/1.4.4 initialized

RE: What's Struts ...

2000-12-20 Thread Shiraz Wasim Zaidi
an Action class is not a servlet but it has a simliar lifecycle to a servlet in that only one Action object is instantiated. Not always true. If your servlet implements SingleThreadModel interface then container creates a pool of servlet instances. And, looking at the processActionForm()

How can I use a java variable that was defined in the enclosing template tag?

2000-12-20 Thread Hay Tran
Here is an example: // Here is the code segment for the enclosing tag, the template:insert ... . % String strToBeUsedByPageA = "Hello"; % template:insert template='aTemplate.jsp' template:put name='PageA.jsp' /template:insert // Here is the code segment for the enclosed file,