Do I really need to install JRE1.2, struts.jar, etc.. on the distribution machine in order to use struts 1.0?
I know for sure that I would need to install struts.jar, etc.. and jdk1.2 on my development machine in order to use struts1.0 However, when we release the final product to the customer, we only plan to release the generated serverlet classes to the customer without the orignal jsp pages. We would like to release the our product with the followings: Tomcat Server 3.2 JRE 1.1.8 and our product sepcific .war files that contains only the generated serverlet classes, leaving out the struts.lib, etc.. classes. However, according to the instruction on struts home page (included below), in seemed like the our plan above is no feasible. Anyone have any comments or suggestion on the above would be much appreciated. To use Struts in your own application, you will need to follow these steps: Copy the file lib/struts.jar from the Struts distribution into the WEB-INF/lib directory of your web application. Copy the all of the files that match lib/struts*.tld from the Struts distribution into the WEB-INF directory of your web application. Modify the WEB-INF/web.xml file for your web application to include a element to define the controller servlet, and a element to establish which request URIs are mapped to this servlet. Use the WEB-INF/web.xml file from the Struts example application for a detailed example of the required syntax. -Hay - Original Message - From: "Hay Tran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 22, 2001 11:49 AM Subject: Re: Looking for Struts Tutorial > Thanks for the info. > Are are a great help. > > -Hay > > - Original Message - > From: "Craig R. McClanahan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, January 22, 2001 11:20 AM > Subject: Re: Looking for Struts Tutorial > > > > Hay Tran wrote: > > > > > 1. Does any one know the definite (or best guessed) release date for > Struts > > > 1.0? > > > > > > > Best guess is "as soon as the last few showstopper problems are fixed, and > the > > docs updated sufficiently", there will be a beta release of 1.0. The time > frame > > until final release had better be weeks instead of months, or I will > probably > > get lynched :-). > > > > > > > > 2. If 1.0 will not be released by June/2001 time frame, is what are the > > > risks in using one of the nightly build of Struts1.0? > > > > > > > I'm biased, but my experience is that the 1.0 nightly builds are very > stable. > > Once in a while, a problem creeps in, but this is where the active > development > > is occurring, so such things tend to get fixed very quickly. > > > > > > > > 3. Which of the nightly build is the most stable one to use? > > > > > > > The one from last night would probably be a good start. > > > > > > > > -Thanks. > > > > Craig > > > > > > > >
Re: Looking for Struts Tutorial
Thanks for the info. Are are a great help. -Hay - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 22, 2001 11:20 AM Subject: Re: Looking for Struts Tutorial > Hay Tran wrote: > > > 1. Does any one know the definite (or best guessed) release date for Struts > > 1.0? > > > > Best guess is "as soon as the last few showstopper problems are fixed, and the > docs updated sufficiently", there will be a beta release of 1.0. The time frame > until final release had better be weeks instead of months, or I will probably > get lynched :-). > > > > > 2. If 1.0 will not be released by June/2001 time frame, is what are the > > risks in using one of the nightly build of Struts1.0? > > > > I'm biased, but my experience is that the 1.0 nightly builds are very stable. > Once in a while, a problem creeps in, but this is where the active development > is occurring, so such things tend to get fixed very quickly. > > > > > 3. Which of the nightly build is the most stable one to use? > > > > The one from last night would probably be a good start. > > > > > -Thanks. > > Craig > > >
Re: Looking for Struts Tutorial
1. Does any one know the definite (or best guessed) release date for Struts 1.0? 2. If 1.0 will not be released by June/2001 time frame, is what are the risks in using one of the nightly build of Struts1.0? 3. Which of the nightly build is the most stable one to use? -Thanks.
Re: How can I use a java variable that was defined in the enclosing template tag?
Thanks Cedric for your help. Does template:put can actually put an object other than String? That is: <% AClass aObject = new AClass(); %> ... ... And, then, how are we going to get the boject back? I guess that's where your proposal to extend the template tag comes in. In any rate, I have a work around for now, which is to use the request.setAttribute(...) and request.getAttribute(...) to pass and retrieve objects between those files involved in the template. It is not convenient, but, I guess that's what I have to do at the moment. Again, many thanks for your help. -Hay - Original Message - From: "Cedric Dumoulin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 21, 2000 6:13 AM Subject: Re: How can I use a java variable that was defined in the enclosing template tag? > > I have misspell the Components Proposal URL ! > try : http://gauss.ficsgrp.com/cdm/ > > Cedric > > Cedric Dumoulin wrote: > > > Hay, > > > > You can't use a java variable defined in a page inside included page. > > You need to define your variable in a scope (here request, but can > > also be session or application). > > An alternative to your problem could also be : > > <%String strToBeUsedByPageA = "Hello";%> > template='aTemplate.jsp'> > value='<%=strToBeUsedByPageA%>' direct="true" > > > > > and use > > > > You can also have a look to my "extended template proposal" at > > http=//gauss.ficsgrp.com/cdm. You will find more solutions to pass > > values to > > an included template. > > > > Cedric > > > > As an example, another solution to your problem is (with extended > > templates) : > > <%String strToBeUsedByPageA = "Hello";%> > template='aTemplate.jsp'> > value='<%=strToBeUsedByPageA%>' > > > > > and use > > > > > > value = <%="strToBeUsedByPageA" /> > > > > Hay Tran wrote: > > > > > Here is an example:// Here is the code segment for the enclosing tag, > > > the template:insert <%String strToBeUsedByPageA = > > > "Hello";%> > > name='PageA.jsp'> // Here is the code segment for > > > the enclosed file, PageAThe enclosing tag defined the > > > strToBeUsedByPageA variable that is being displayed > > > here:<%=strToBeUsedByPageA %>... // I get the error msg saying > > > strToBeUsedByPageA is not define. Thanks for any help I can > > > get. -Hay > >
How can I use a java variable that was defined in the enclosing template tag?
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 being displayed here:<%=strToBeUsedByPageA %> ... // I get the error msg saying strToBeUsedByPageA is not define. Thanks for any help I can get. -Hay