RE: Nightly Build

2003-11-06 Thread Wendy Smoak
Ramadoss Chinnakuzhandai wrote:
> Do I have to override all the existing jar files in my project with
those 
> new jars or override only particular jar with new jar...??? pls let me
know
> the same for dtd and tld also.

Struts depends on those other .jar files, so it's best to use the ones
that come with Struts to avoid problems.  The dtd's and tld's are inside
the .jar files, and can be discovered by newer containers.

So you might need to change things like:

 http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
or
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
prefix="html-el" %>

If you are not already pointing them at the version you want.  (Thanks
for the reminder... I'm using the nightly build but still pointing at
the 1.1 dtd's!)

Does that help?  If not, tell us what container and what version of
Struts you're coming from.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nightly Build

2003-11-06 Thread Ramadoss Chinnakuzhandai
Hi,
Do I have to override all the existing jar files in my project with those new jars 
or override only particular jar with new jar...??? pls let me know the same for dtd 
and tld also.

tnx in advance.

-Ram

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 1:42 PM
To: Struts Users Mailing List
Subject: RE: Nightly Build


Ramadoss Chinnakuzhandai wrote:
> Can anybody let me know how can I integrate  *Nightly Build* to my
application if
> possible pls let me know the steps involved.since I'm going for
validwhen.

Download the binary distribution from Jakarta and unzip it.  Copy the
.jar and .xml files into your project directory.  Simple as that!

I have an Ant task that copies over the necessary files:

  
 

   

 
 

   

 
 

   

 
  

Set ${struts} to wherever you expanded the .zip/.tar.gz file you
downloaded from Jakarta.
${webinf} is the WEB-INF directory, and ${lib} is WEB-INF/lib.  (If
you're using an older container, you might also need the .tld files.) 

HTH,
-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nightly Build

2003-11-06 Thread Wendy Smoak
Ramadoss Chinnakuzhandai wrote:
> Can anybody let me know how can I integrate  *Nightly Build* to my
application if
> possible pls let me know the steps involved.since I'm going for
validwhen.

Download the binary distribution from Jakarta and unzip it.  Copy the
.jar and .xml files into your project directory.  Simple as that!

I have an Ant task that copies over the necessary files:

  
 

   

 
 

   

 
 

   

 
  

Set ${struts} to wherever you expanded the .zip/.tar.gz file you
downloaded from Jakarta.
${webinf} is the WEB-INF directory, and ${lib} is WEB-INF/lib.  (If
you're using an older container, you might also need the .tld files.) 

HTH,
-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nightly Build

2003-11-06 Thread Wendy Smoak

I put my answer on the Wiki and linked to it from the FAQ page:
http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsHowToUseNightlyBuild

Feel free to add/change/delete as you see fit...

--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Nightly build 08052002: Tiles plugin and mapping.findForward

2002-08-14 Thread Cedric Dumoulin


  Hello,

  Your definition 'login' has an error:



  I think you would like to extends 'base', not to use it as a path ;-). 
If you specify a path, you should start it with a leading '/'.

   Hope this help,
  Cedric

matt_raible wrote:

>I just switched from using the ActionComponentServlet to the Tiles 
>Plugin, but I still get the same error.
>
>Thanks,
>
>Matt
>
>--- In [EMAIL PROTECTED], "matt_raible" <[EMAIL PROTECTED]> wrote:
>  
>
>>Basically, what I'm trying to do is use a DefaultAction to 
>>
>>
>dispatch 
>  
>
>>requests through an action to my definitions.  I'm experiencing 
>>
>>
>some 
>  
>
>>wierd behavior.  I have a Struts build from a couple nights ago.
>>
>>When I request http://localhost/myApp/index.do, everything works 
>>fine - here's my log:
>>
>>- Processing a 'GET' for path '/index'
>>Requested URI: '/roller/index.do'
>>Forwarding to: 'index'
>>processActionForward(index, false)
>>  'index' - processed as definition
>>
>>But, when I request http://localhost/myApp/login.do, I get the 
>>following log and subsequent error:
>>
>>LOG ---
>>- Processing a 'GET' for path '/login'
>>Requested URI: '/roller/login.do'
>>Forwarding to: 'login'
>>processActionForward(login, false)
>>
>>ERROR ---
>>ava.lang.IllegalArgumentException: Path base does not start with 
>>a "/" character
>>  at 
>>org.apache.catalina.core.ApplicationContext.getRequestDispatcher
>>(ApplicationContext.java:572)
>>  at 
>>
>>
>>
>org.apache.catalina.core.ApplicationContextFacade.getRequestDispatche
>  
>
>>r(ApplicationContextFacade.java:174)
>>  at org.apache.struts.action.RequestProcessor.doForward
>>(RequestProcessor.java:1007)
>>  at 
>>
>>
>>
>org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
>  
>
>>(TilesRequestProcessor.java:237)
>>  at 
>>org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
>>(TilesRequestProcessor.java:291)
>>  at 
>>org.apache.struts.action.RequestProcessor.processActionForward
>>(RequestProcessor.java:390)
>>
>>1.  In struts-config.xml, I have:
>>
>>>
>>
>type="org.roller.presentation.DefaultAction" 
>  
>
>>unknown="true"/>
>>
>>2.  In order to request a definition by using definitionName.do, I 
>>have my DefaultAction coded as:
>>
>>
>>String requestURI = request.getRequestURI();
>>String contextPath = request.getContextPath();
>>
>>String definitionName = requestURI.substring(contextPath.length());
>>definitionName = definitionName.substring(1, definitionName.indexOf
>>(".do"));
>>
>>return new ActionForward(definitionName);
>>
>>
>>3.  In my tiles configuration file (tiles-config.xml), I have:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>   
>>
>>
>>
>>Any ideas or suggestions are appreciated.
>>
>>Matt
>>
>>--- In [EMAIL PROTECTED], Cedric Dumoulin <[EMAIL PROTECTED]> wrote:
>>
>>
>>>  Hi,
>>>
>>>  You can test for a definition by asking the definition factory:
>>>
>>>  DefinitionUtil.getDefinition( defName, servletRequest, 
>>>  
>>>
>>servletContext ) ;
>>
>>
>>>This return a ComponentDefinition, or throw 
>>>  
>>>
>>NoSuchDefinitionException if 
>>
>>
>>>not found.
>>>
>>>  Hope this help,
>>> Cedric
>>>
>>>Struts Newsgroup (@Basebeans.com) wrote:
>>>
>>>  
>>>
Subject: Nightly build 08052002: Tiles plugin and 


>>mapping.findForward
>>
>>
From: "Matt Raible" <[EMAIL PROTECTED]>
===
I'd like to write a helper method to check for a  and 


>if 
>  
>
>>none is
>>
>>
found, then to route to forward.

What is the best way to do this?

I know that mapping.findForward() will return a zero length 


>array 
>  
>
>>if nothing
>>
>>
is found, so what would I do next?  I'd love it if there was a
mapping.findDefinition or something.

Thanks,

Matt



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


 



>>>
>>>--
>>>To unsubscribe, e-mail:   
>>>For additional commands, e-mail: 
>>>  
>>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Nightly build 08052002: Tiles plugin and mapping.findForward

2002-08-11 Thread matt_raible

I just switched from using the ActionComponentServlet to the Tiles 
Plugin, but I still get the same error.

Thanks,

Matt

--- In [EMAIL PROTECTED], "matt_raible" <[EMAIL PROTECTED]> wrote:
> Basically, what I'm trying to do is use a DefaultAction to 
dispatch 
> requests through an action to my definitions.  I'm experiencing 
some 
> wierd behavior.  I have a Struts build from a couple nights ago.
> 
> When I request http://localhost/myApp/index.do, everything works 
> fine - here's my log:
> 
> - Processing a 'GET' for path '/index'
> Requested URI: '/roller/index.do'
> Forwarding to: 'index'
> processActionForward(index, false)
>   'index' - processed as definition
> 
> But, when I request http://localhost/myApp/login.do, I get the 
> following log and subsequent error:
> 
> LOG ---
> - Processing a 'GET' for path '/login'
> Requested URI: '/roller/login.do'
> Forwarding to: 'login'
> processActionForward(login, false)
> 
> ERROR ---
> ava.lang.IllegalArgumentException: Path base does not start with 
> a "/" character
>   at 
> org.apache.catalina.core.ApplicationContext.getRequestDispatcher
> (ApplicationContext.java:572)
>   at 
> 
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatche
> r(ApplicationContextFacade.java:174)
>   at org.apache.struts.action.RequestProcessor.doForward
> (RequestProcessor.java:1007)
>   at 
> 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
> (TilesRequestProcessor.java:237)
>   at 
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
> (TilesRequestProcessor.java:291)
>   at 
> org.apache.struts.action.RequestProcessor.processActionForward
> (RequestProcessor.java:390)
> 
> 1.  In struts-config.xml, I have:
> 
>  unknown="true"/>
> 
> 2.  In order to request a definition by using definitionName.do, I 
> have my DefaultAction coded as:
> 
> 
> String requestURI = request.getRequestURI();
> String contextPath = request.getContextPath();
> 
> String definitionName = requestURI.substring(contextPath.length());
> definitionName = definitionName.substring(1, definitionName.indexOf
> (".do"));
> 
> return new ActionForward(definitionName);
> 
> 
> 3.  In my tiles configuration file (tiles-config.xml), I have:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> Any ideas or suggestions are appreciated.
> 
> Matt
> 
> --- In [EMAIL PROTECTED], Cedric Dumoulin <[EMAIL PROTECTED]> wrote:
> > 
> >   Hi,
> > 
> >   You can test for a definition by asking the definition factory:
> > 
> >   DefinitionUtil.getDefinition( defName, servletRequest, 
> servletContext ) ;
> > This return a ComponentDefinition, or throw 
> NoSuchDefinitionException if 
> > not found.
> > 
> >   Hope this help,
> >  Cedric
> > 
> > Struts Newsgroup (@Basebeans.com) wrote:
> > 
> > >Subject: Nightly build 08052002: Tiles plugin and 
> mapping.findForward
> > >From: "Matt Raible" <[EMAIL PROTECTED]>
> > > ===
> > >I'd like to write a helper method to check for a  and 
if 
> none is
> > >found, then to route to forward.
> > >
> > >What is the best way to do this?
> > >
> > >I know that mapping.findForward() will return a zero length 
array 
> if nothing
> > >is found, so what would I do next?  I'd love it if there was a
> > >mapping.findDefinition or something.
> > >
> > >Thanks,
> > >
> > >Matt
> > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:   
> > >For additional commands, e-mail: 
> > >
> > >
> > >  
> > >
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Nightly build 08052002: Tiles plugin and mapping.findForward

2002-08-11 Thread matt_raible

Basically, what I'm trying to do is use a DefaultAction to dispatch 
requests through an action to my definitions.  I'm experiencing some 
wierd behavior.  I have a Struts build from a couple nights ago.

When I request http://localhost/myApp/index.do, everything works 
fine - here's my log:

- Processing a 'GET' for path '/index'
Requested URI: '/roller/index.do'
Forwarding to: 'index'
processActionForward(index, false)
  'index' - processed as definition

But, when I request http://localhost/myApp/login.do, I get the 
following log and subsequent error:

LOG ---
- Processing a 'GET' for path '/login'
Requested URI: '/roller/login.do'
Forwarding to: 'login'
processActionForward(login, false)

ERROR ---
ava.lang.IllegalArgumentException: Path base does not start with 
a "/" character
at 
org.apache.catalina.core.ApplicationContext.getRequestDispatcher
(ApplicationContext.java:572)
at 
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatche
r(ApplicationContextFacade.java:174)
at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1007)
at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
(TilesRequestProcessor.java:237)
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
(TilesRequestProcessor.java:291)
at 
org.apache.struts.action.RequestProcessor.processActionForward
(RequestProcessor.java:390)

1.  In struts-config.xml, I have:



2.  In order to request a definition by using definitionName.do, I 
have my DefaultAction coded as:


String requestURI = request.getRequestURI();
String contextPath = request.getContextPath();

String definitionName = requestURI.substring(contextPath.length());
definitionName = definitionName.substring(1, definitionName.indexOf
(".do"));

return new ActionForward(definitionName);


3.  In my tiles configuration file (tiles-config.xml), I have:
















   



Any ideas or suggestions are appreciated.

Matt

--- In [EMAIL PROTECTED], Cedric Dumoulin <[EMAIL PROTECTED]> wrote:
> 
>   Hi,
> 
>   You can test for a definition by asking the definition factory:
> 
>   DefinitionUtil.getDefinition( defName, servletRequest, 
servletContext ) ;
> This return a ComponentDefinition, or throw 
NoSuchDefinitionException if 
> not found.
> 
>   Hope this help,
>  Cedric
> 
> Struts Newsgroup (@Basebeans.com) wrote:
> 
> >Subject: Nightly build 08052002: Tiles plugin and 
mapping.findForward
> >From: "Matt Raible" <[EMAIL PROTECTED]>
> > ===
> >I'd like to write a helper method to check for a  and if 
none is
> >found, then to route to forward.
> >
> >What is the best way to do this?
> >
> >I know that mapping.findForward() will return a zero length array 
if nothing
> >is found, so what would I do next?  I'd love it if there was a
> >mapping.findDefinition or something.
> >
> >Thanks,
> >
> >Matt
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >For additional commands, e-mail: 
> >
> >
> >  
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Nightly build 08052002: Tiles plugin and mapping.findForward

2002-08-11 Thread Cedric Dumoulin


  Hi,

  You can test for a definition by asking the definition factory:

  DefinitionUtil.getDefinition( defName, servletRequest, servletContext ) ;
This return a ComponentDefinition, or throw NoSuchDefinitionException if 
not found.

  Hope this help,
 Cedric

Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Nightly build 08052002: Tiles plugin and mapping.findForward
>From: "Matt Raible" <[EMAIL PROTECTED]>
> ===
>I'd like to write a helper method to check for a  and if none is
>found, then to route to forward.
>
>What is the best way to do this?
>
>I know that mapping.findForward() will return a zero length array if nothing
>is found, so what would I do next?  I'd love it if there was a
>mapping.findDefinition or something.
>
>Thanks,
>
>Matt
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Nightly Build Problem

2001-10-27 Thread Sandeep Takhar

I think you need to be running tomcat 4.  Apparently
there are previous posts on this.  Someone pointed
this out to me as well.  It was a problem  with
3.2.x..

Sorry, but it escapes me as to what you should search
for in the archives...

Sandeep
--- "L. Yeung" <[EMAIL PROTECTED]> wrote:
> My struts app is currently working. I just
> redownloaded struts build-20011025. Threw out all my
> old tlds, dtds and struts lib jar files and replaced
> it with new ones. When I ran tomcat it crashed. I
> took
> my struts app out from the server.xml, and Tomcat
> ran
> just fine. Am I missing something?
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: nightly build

2001-01-23 Thread Steve A Drake

On Mon, 22 Jan 2001, Steven D. Wilkinson wrote:

> Here is what the installation doc says:
> 
> "XML Parser - Struts requires the presence of an XML parser that is compatible
> with the Java API for XML Parsing (JAXP) specification, 1.0 or later. You can
> download and install the JAXP reference implementation, which is required for
> building the Struts source distribution. In Struts-based web applications, you
> may replace the reference implementation classes with any other JAXP compliant
> parser, such as Xerces. See detailed instructions related to the parser in the
> instructions for building and installing Struts, below."

 Yeah, I saw this in the README file that came with the distribution.

> "Xalan XSLT Processor - If you are building Struts from the source distribution,
> you must download and install version 1_2_D01 (or later) of the Xalan XSLT
> processor (which also includes the Xerces XML parser). This processor is used to
> convert the Struts documentation from its internal XML-based format into the
> HTML that is presented in the Struts documentation application. "

 This was not in the README file.


> Here's the URL http://jakarta.apache.org/struts/installation.html#Prerequisites

 Next time, I'll check here first.

> 
> >  Also, I am just starting a project that I plan to use Struts 1.x. I
> > plan on developing on Tomcat and eventually deploying on
> > Tomcat/Apache. Does this sound reasonable? Should I plan on developing and
> > deploying on Tomcat 3.2.1 or 4.x? I have mixed thoughts about deploying on
> > a servlet engine (4.x) that's implementing on new (2.3) servlet API. Thanks
> > in advance for your advice.
> 
> I'm running on milestone 5 release of Tomcat4.0.  I have been for a while.  No
> problems.  I won't upgrade until official release comes out since I'm having no
> problems.  It works great.  Don't let the fact that it implements the 2.3 API
> stop you.  It still supports 2.2 stuff.  Not like the 2.1 to 2.2 change.  
> BTW, Tomcat4.0 is kewl!  I really like the new logging.  It's also very stable.

 Sounds like good advice. Thanks.




Re: nightly build

2001-01-22 Thread Steven D. Wilkinson

> 
>  Hello. I downloaded last night's build and compiled it. I was able to
> compile it with xalan/xerces (that I coopted from Cocoon 1.8) but not with
> jaxp.jar/parser.jar (that I coopted from Tomcat 3.2.1). From the
> stacktrace (see below), it looks like an Ant (1.2) "import" problem, but
> it's a Struts problem too if you can't compile it! I also tried the
> jaxp.jar/parser.jar combination that came with Ant but had the same
> negative result. (BTW, I don't have multiple parsers in my classpath.)

To summarize the documentation...
use jaxp.jar/parser.jar only if you use binary distribution. (these are only
parsers)
use Xalan if you are building from the source. (This includes XML parser and
XSLT Processor)

Here is what the installation doc says:

"XML Parser - Struts requires the presence of an XML parser that is compatible
with the Java API for XML Parsing (JAXP) specification, 1.0 or later. You can
download and install the JAXP reference implementation, which is required for
building the Struts source distribution. In Struts-based web applications, you
may replace the reference implementation classes with any other JAXP compliant
parser, such as Xerces. See detailed instructions related to the parser in the
instructions for building and installing Struts, below."

"Xalan XSLT Processor - If you are building Struts from the source distribution,
you must download and install version 1_2_D01 (or later) of the Xalan XSLT
processor (which also includes the Xerces XML parser). This processor is used to
convert the Struts documentation from its internal XML-based format into the
HTML that is presented in the Struts documentation application. "

Here's the URL http://jakarta.apache.org/struts/installation.html#Prerequisites


>  Also, I am just starting a project that I plan to use Struts 1.x. I
> plan on developing on Tomcat and eventually deploying on
> Tomcat/Apache. Does this sound reasonable? Should I plan on developing and
> deploying on Tomcat 3.2.1 or 4.x? I have mixed thoughts about deploying on
> a servlet engine (4.x) that's implementing on new (2.3) servlet API. Thanks
> in advance for your advice.

I'm running on milestone 5 release of Tomcat4.0.  I have been for a while.  No
problems.  I won't upgrade until official release comes out since I'm having no
problems.  It works great.  Don't let the fact that it implements the 2.3 API
stop you.  It still supports 2.2 stuff.  Not like the 2.1 to 2.2 change.  
BTW, Tomcat4.0 is kewl!  I really like the new logging.  It's also very stable.

Good luck.  Welcome to struts.

Steve