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"; %>           // Here is the code segment for the enclosed file, PageA The enclosing tag defined the strToBeUsedByPageA variable that is bei

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() me

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 r

RE: Missing message for key index.title

2000-12-20 Thread Jason Haase
It sounds like your ApplicationResources.properties file is not there. Check to make sure it is in ...\struts-example\WEB-INF\classes\org\apache\struts\example. Orion should have unpacked the struts-example.war file for you. Otherwise, look in your web.xml file to make sure your "Action Servlet

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: 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 wo

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. > > > > --- > > I think you have a wrong understanding that action c

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 javax.sql.DataS

RE: What's Struts ...

2000-12-20 Thread Steve A Drake
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. > > --- > I think you have a wrong understanding that action classes are servlets. No > they are re

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: 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, instead

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 like

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 and

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 Con

Re: Bad Multi-Threading Performance

2000-12-20 Thread Matthew Strayer
>Firstly, it looks to me like your code would hang in a deadlock. Take >for >example.. > >Thread1Thread2 >enter beginReading() >exit beginReading() >doing some reading enter beginWriting() [and blocking] >now can't call endReading() > >Now it

(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 Performances

2000-12-20 Thread Ned Seagoon
>From: Matthew Strayer <[EMAIL PROTECTED]> >Here is some code which implements the reader/writer >locking scheme. Instead of having an infinite while >loop, it will abort if the thread is interrupted...I >believe the code correctly handles the exception. It certainly looks like it, although the