Re: OT: Formatting Negative Numbers

2003-11-04 Thread Ruth, Brice
I believe a taglib to do this has already been written, check here:

http://www.servletsuite.com/servlets/numtag.htm

Google's your friend :)

Menke, John wrote:

I have asked this question on the TagLib list with no luck.  

Hoping this is not too annoying asking here :)

I have a requirement in my application that states that negative numbers
should be formatted in parenthesis in red without the negative sign.  

Is there any way to do this in JSTL without coding it with  and
???  

If not I'm thinking my best option would be to write my own taglib.
Comments would be appreciated.
-jm

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ???

2003-11-04 Thread Ruth, Brice
the "action" attribute has to reflect an action-mapping that is defined 
in your struts config file. the "page" attribute should start with a '/' 
and will output in HTML the correct URL to the resource, based on the 
web-app that you're running - its purpose is to allow module-relative 
naming of your resources.

Check out the Struts-HTML taglib reference here:

http://jakarta.apache.org/struts/userGuide/dev_html.html

Mauricio T. Ferraz wrote:

Whats the diference between:

My Page

and

My Page

Thanks!!!
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Application objects

2003-11-04 Thread Ruth, Brice
The Tomcat manager application can show how many active sessions a 
particular application has, so I imagine its possible - probably depends 
on the particular container.

I'm not sure about extending the session class, I imagine so, though I 
wouldn't know where you would indicate that *your* session 
implementation should be used over the default implementation - maybe 
someone else can pick up this one.

Finally, yes - you should be able to store things in "application" scope 
from anywhere in the application (init, Struts Action, separate servlet, 
or JSP). Within a JSP, the jsp:useBean tag with a 'scope' attribute of 
"application" will store the bean created in application scope (which is 
what ServletContext is).

Mathieu Grimault wrote:

Hi all, 
   I would like to display the number of users connected (number of session) to my application. Is there a way to do this ?

   Another question, Can we implements code in the session class (by extending the class) and can we store/access/ modify objects in the ServletContext during the execution of the application (not during initialisation) ?

thx for help. Mathieu.
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Submitting a Struts Form from outside of it

2003-11-03 Thread Ruth, Brice
there's nothing special about a struts form, really - just the plumbing 
in the backend. Anything on the front-end, client-side, should work as 
it would with any other server-side infrastructure. What exactly isn't 
working? If you've created a form with the  tag, that's tied 
to an ActionForm/Action, then your form is named the same as your 
ActionForm, in which case something like:

document..submit();

may do the trick ...

bort wrote:

Hi

How would I go about submitting a struts form from outside of it?  I've
tried using javascript's submit() function, but that doesn't seem to be
supported by the struts form.
Does anyone know how I could do this?

TIA



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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
THAT WAS IT!! Having the controller element in there screwed the pooch!!

Somehow, though, this is what's in the "struts-blank.war" that's 
distributed with Struts (verbatim, actually) - it is preconfigured to 
use Tiles, so it uses the TilesRequestProcessor.

[EMAIL PROTECTED](*&[EMAIL PROTECTED](@#$

That was a waste of a day ... nice.

Hubert Rabago wrote:

FYI, got really curious, so I pulled out my test web app, plugged in your
definitions, created /common/layouts/baseLayout.jsp, and everything worked as
expected.  Here's the log:
2003-11-03 16:27:20,637 INFO TilesRequestProcessor.java
tiles.TilesRequestProcessor Tiles definition factory found for request processor
''.
2003-11-03 16:27:20,652 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor processForwardConfig(.baseLayout, true)
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en_US.xml'
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en.xml'
2003-11-03 16:27:20,668 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor uri=/common/layouts/baseLayout.jsp doInclude=false
2003-11-03 16:27:20,683 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor   '.baseLayout' - processed as definition
in tiles-defs.xml:

   

in struts-config:
   
...
   
 
   
I didn't have a  element.
My test web-app didn't make use of Tiles before, I just plugged it in now.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

Everything else works, I'm in the midst of following Ted's refactoring 
approach and moving my JSPs that have tiles:insert statements to tile 
definitions that I can extend & overload.

David Friedman wrote:

   

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book "Struts In Action".
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   
Regards

At 15:26 2003-11-03 -0600, you wrote:

 

I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

  

   

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:



 

I got this yesterday.  It means Tiles didn't intercept your forward
  

   

request

 

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

  

   

I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following


 

exception:

 

javax.servlet.ServletException: Path .baseLayout does not start with a
"/" character
My action is defined like so:

 
And I've defined the plug-in for the Tiles requestor.


 

My tiles-defs.xml has one simple entry:

 


 

path="/common/layouts/baseLayout.jsp"/>

 

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


 

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional 

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Far as I know, I'm using 1.1 ... :)

David Friedman wrote:

I just tried using an "org.apache.struts.action.ForwardAction" with the
'parameter" being a tile starting with a dot name ".success.Page" and it
went through  as expected on Struts v 1.1.  What version of Struts are you
using?  My definition was:

:)

Regards,
David
-----Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 5:20 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?
Everything else works, I'm in the midst of following Ted's refactoring
approach and moving my JSPs that have tiles:insert statements to tile
definitions that I can extend & overload.
David Friedman wrote:

 

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book "Struts In Action".
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   
Regards

At 15:26 2003-11-03 -0600, you wrote:

   

I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:



 

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:



   

I got this yesterday.  It means Tiles didn't intercept your forward

 

request

   

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:



 

I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following
   

exception:

   

javax.servlet.ServletException: Path .baseLayout does not start with a
"/" character
My action is defined like so:

 
And I've defined the plug-in for the Tiles requestor.


 

My tiles-defs.xml has one simple entry:

 

   

path="/common/layouts/baseLayout.jsp"/>

   

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


   

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Should I just scrap my "controller" element?!

Hubert Rabago wrote:

FYI, got really curious, so I pulled out my test web app, plugged in your
definitions, created /common/layouts/baseLayout.jsp, and everything worked as
expected.  Here's the log:
2003-11-03 16:27:20,637 INFO TilesRequestProcessor.java
tiles.TilesRequestProcessor Tiles definition factory found for request processor
''.
2003-11-03 16:27:20,652 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor processForwardConfig(.baseLayout, true)
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en_US.xml'
2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet
Can't open file '/WEB-INF/tiles-defs_en.xml'
2003-11-03 16:27:20,668 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor uri=/common/layouts/baseLayout.jsp doInclude=false
2003-11-03 16:27:20,683 DEBUG TilesRequestProcessor.java
tiles.TilesRequestProcessor   '.baseLayout' - processed as definition
in tiles-defs.xml:

   

in struts-config:
   
...
   
 
   
I didn't have a  element.
My test web-app didn't make use of Tiles before, I just plugged it in now.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

Everything else works, I'm in the midst of following Ted's refactoring 
approach and moving my JSPs that have tiles:insert statements to tile 
definitions that I can extend & overload.

David Friedman wrote:

   

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book "Struts In Action".
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   
Regards

At 15:26 2003-11-03 -0600, you wrote:

 

I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

  

   

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:



 

I got this yesterday.  It means Tiles didn't intercept your forward
  

   

request

 

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

  

   

I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following


 

exception:

 

javax.servlet.ServletException: Path .baseLayout does not start with a
"/" character
My action is defined like so:

 
And I've defined the plug-in for the Tiles requestor.


 

My tiles-defs.xml has one simple entry:

 


 

path="/common/layouts/baseLayout.jsp"/>

 

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


 

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  

   

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

   

-

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I see this:

[DEBUG] I18nFactorySet - -definitions={baseLayout={name=baseLayout, 
path=/common/layouts/baseLayout.jsp, role=null, controller=null, 
controllerType=null, controllerInstance=null, attributes={}}
}
[DEBUG] I18nFactorySet - -factory loaded : {baseLayout={name=baseLayout, 
path=/common/layouts/baseLayout.jsp, role=null, controller=null, 
controllerType=null, controllerInstance=null, attributes={}}
}
[DEBUG] I18nFactorySet - -default factory:{baseLayout={name=baseLayout, 
path=/common/layouts/baseLayout.jsp, role=null, controller=null, 
controllerType=null, controllerInstance=null, attributes={}}
}
[DEBUG] I18nFactorySet - -Factory initialized from file 
'/WEB-INF/tiles-defs.xml'.

My definition is now called "baseLayout" instead of ".baseLayout" - I 
haven't changed it back yet from the previous poster's suggestion.

Hubert Rabago wrote:

In the debug output of Tiles/simplelog.

'.baseLayout' - processed as uri
-or-
'.baseLayout' - processed as definition
should appear there just before the request fails.
Before these lines, there should be a "processForwardConfig(.baseLayout,..."
as well.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

Where should I be looking for this message?

Hubert Rabago wrote:

   

I haven't tried that before, either.  AFAIK, having the plug-in takes care of
installing the TilesRequestProcessor -- you don't have to specify it.  But
 

since
   

a subclass works, having that should work, too.

When you run the code, does it show the ff message:

'.baseLayout' - processed as uri

?

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

 

Only one struts-config.xml, and only the default RequestProcessor, far 
as I know ... here's the "controller" config parameter in struts-config.xml

  
Hubert Rabago wrote:

  

   

I dunno.  Try to find some other possible causes.  Do you only have one
struts-config.xml?  Maybe you have multiple and the different plug-ins are
causing problems.  Are you using a custom RequestProcessor?  If you are, it


 

must
  

   

extend TilesRequestProcessor or else Tiles can't intercept your forwards.  

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:



 

No difference ... just changed it to /tilestest.

Hubert Rabago wrote:

 

  

   

I've had success with tile names starting with ".", and with
 

ForwardAction. 
   



 

I
  

   

haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like "/US/tilestest".  It's always been
   



 

"/myPath"
 

  

   

for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection <[EMAIL PROTECTED]> wrote:

   



 

One thing to try might be to use tile names that does not start with a
   

dot.
   

I have done things that look pretty similar but the tilenames was things
  

   

like
  

   

output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
 
Regards

At 15:26 2003-11-03 -0600, you wrote:

 

  

   

I'm ripping my hair out here, guys ... what's going on with my config?!
 

I 
   

can't see anything wrong in the debug output, yet Struts still is
 

balking 
   

at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

  

   



 

OK, I have simplelog set to debug and I don't see any errors - it seems
   

to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:



 

  

   

I got this yesterday.  It means Tiles didn't intercept your forward
   



 

request
 

  

   

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump
 

the
   



tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope
 

you
   



find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

  

   



 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html
   

(section 
   

3.4.3) for incorpora

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Everything else works, I'm in the midst of following Ted's refactoring 
approach and moving my JSPs that have tiles:insert statements to tile 
definitions that I can extend & overload.

David Friedman wrote:

Tiles work with starting dots.  I use it that way myself.  I think I picked
up that suggestion from Ted's book "Struts In Action".
What is the exact URL you are using?  Do regular non-tiles actions work for
your webapp?
Regards,
David
-Original Message-
From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 4:29 PM
To: Struts Users Mailing List
Subject: Re: ForwardAction not picking up Tiles defs?


One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:

Regards

At 15:26 2003-11-03 -0600, you wrote:
 

I'm ripping my hair out here, guys ... what's going on with my config?! I
can't see anything wrong in the debug output, yet Struts still is balking
at actions that use the ForwardAction class and don't have a parameter
that starts with a '/' ...
Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

   

OK, I have simplelog set to debug and I don't see any errors - it seems
to parse my tiles-def.xml just fine, from what I can see.
?!?

Hubert Rabago wrote:

 

I got this yesterday.  It means Tiles didn't intercept your forward
   

request
 

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
find it.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

   

I'm following the instructions provided here:
http://jakarta.apache.org/struts/userGuide/building_view.html (section
3.4.3) for incorporating tiles definitions in struts-config.xml, and
when the ActionServlet receives a request for an action who's parameter
is a tile definition name (such as .baseLayout), I get the following
 

exception:
 

javax.servlet.ServletException: Path .baseLayout does not start with a
"/" character
My action is defined like so:

  
And I've defined the plug-in for the Tiles requestor.


  

My tiles-defs.xml has one simple entry:

  
 

path="/common/layouts/baseLayout.jsp"/>
 

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Where should I be looking for this message?

Hubert Rabago wrote:

I haven't tried that before, either.  AFAIK, having the plug-in takes care of
installing the TilesRequestProcessor -- you don't have to specify it.  But since
a subclass works, having that should work, too.
When you run the code, does it show the ff message:

'.baseLayout' - processed as uri

?

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

Only one struts-config.xml, and only the default RequestProcessor, far 
as I know ... here's the "controller" config parameter in struts-config.xml

   
Hubert Rabago wrote:

   

I dunno.  Try to find some other possible causes.  Do you only have one
struts-config.xml?  Maybe you have multiple and the different plug-ins are
causing problems.  Are you using a custom RequestProcessor?  If you are, it
 

must
   

extend TilesRequestProcessor or else Tiles can't intercept your forwards.  

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

 

No difference ... just changed it to /tilestest.

Hubert Rabago wrote:

  

   

I've had success with tile names starting with ".", and with ForwardAction. 
 

I
   

haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like "/US/tilestest".  It's always been


 

"/myPath"
  

   

for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection <[EMAIL PROTECTED]> wrote:



 

One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things
   

like
   

output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
  
Regards

At 15:26 2003-11-03 -0600, you wrote:
 

  

   

I'm ripping my hair out here, guys ... what's going on with my config?! I 
can't see anything wrong in the debug output, yet Struts still is balking 
at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

   



 

OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

 

  

   

I got this yesterday.  It means Tiles didn't intercept your forward


 

request
  

   

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the
     

tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  Hope you
 

find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

   



 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter
   

is a tile definition name (such as .baseLayout), I get the following
 

  

   

exception:
 

  

   

javax.servlet.ServletException: Path .baseLayout does not start with a 
"/" character

My action is defined like so:


And I've defined the plug-in for the Tiles requestor.




My tiles-defs.xml has one simple entry:


   

path="/common/layouts/baseLayout.jsp"/>
   

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

  

   

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
 

   

=== message truncated ==

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
Only one struts-config.xml, and only the default RequestProcessor, far 
as I know ... here's the "controller" config parameter in struts-config.xml

   
Hubert Rabago wrote:

I dunno.  Try to find some other possible causes.  Do you only have one
struts-config.xml?  Maybe you have multiple and the different plug-ins are
causing problems.  Are you using a custom RequestProcessor?  If you are, it must
extend TilesRequestProcessor or else Tiles can't intercept your forwards.  

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

No difference ... just changed it to /tilestest.

Hubert Rabago wrote:

   

I've had success with tile names starting with ".", and with ForwardAction.  I
haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like "/US/tilestest".  It's always been
 

"/myPath"
   

for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection <[EMAIL PROTECTED]> wrote:

 

One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:
   
Regards

At 15:26 2003-11-03 -0600, you wrote:
  

   

I'm ripping my hair out here, guys ... what's going on with my config?! I 
can't see anything wrong in the debug output, yet Struts still is balking 
at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:



 

OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

  

   

I got this yesterday.  It means Tiles didn't intercept your forward
 

request
   

because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the 
tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope you 
find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:



 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following
  

   

exception:
  

   

javax.servlet.ServletException: Path .baseLayout does not start with a 
"/" character

My action is defined like so:

 
And I've defined the plug-in for the Tiles requestor.


 

My tiles-defs.xml has one simple entry:

 

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

   

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
  

   

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
No difference ... just changed it to /tilestest.

Hubert Rabago wrote:

I've had success with tile names starting with ".", and with ForwardAction.  I
haven't combined both yet, but can't imagine why a combination would fail.
What I haven't tried is a path like "/US/tilestest".  It's always been "/myPath"
for me.  
Don't know if that helps.

--- Mikael Eriksson - Swedish Connection <[EMAIL PROTECTED]> wrote:
 

One thing to try might be to use tile names that does not start with a dot.
I have done things that look pretty similar but the tilenames was things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:

Regards

At 15:26 2003-11-03 -0600, you wrote:
   

I'm ripping my hair out here, guys ... what's going on with my config?! I 
can't see anything wrong in the debug output, yet Struts still is balking 
at actions that use the ForwardAction class and don't have a parameter 
that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

 

OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

   

I got this yesterday.  It means Tiles didn't intercept your forward request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the 
tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope you 
find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following
   

exception:
   

javax.servlet.ServletException: Path .baseLayout does not start with a 
"/" character

My action is defined like so:

  
And I've defined the plug-in for the Tiles requestor.


  

My tiles-defs.xml has one simple entry:

  

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
   



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
No go :( No discernable difference in end-effect or logging.

Mikael Eriksson - Swedish Connection wrote:

One thing to try might be to use tile names that does not start with a 
dot.
I have done things that look pretty similar but the tilenames was 
things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:


Regards

At 15:26 2003-11-03 -0600, you wrote:

I'm ripping my hair out here, guys ... what's going on with my 
config?! I can't see anything wrong in the debug output, yet Struts 
still is balking at actions that use the ForwardAction class and 
don't have a parameter that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

OK, I have simplelog set to debug and I don't see any errors - it 
seems to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward 
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll 
dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:


I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html 
(section 3.4.3) for incorporating tiles definitions in 
struts-config.xml, and when the ActionServlet receives a request 
for an action who's parameter is a tile definition name (such as 
.baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start 
with a "/" character

My action is defined like so:

   
And I've defined the plug-in for the Tiles requestor.

 
   
 
My tiles-defs.xml has one simple entry:

   

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I'll try this, thanks.

Mikael Eriksson - Swedish Connection wrote:

One thing to try might be to use tile names that does not start with a 
dot.
I have done things that look pretty similar but the tilenames was 
things like
output.page1.  The parsing might get confused or by the starting '.'
My actions look like:


Regards

At 15:26 2003-11-03 -0600, you wrote:

I'm ripping my hair out here, guys ... what's going on with my 
config?! I can't see anything wrong in the debug output, yet Struts 
still is balking at actions that use the ForwardAction class and 
don't have a parameter that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

OK, I have simplelog set to debug and I don't see any errors - it 
seems to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward 
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll 
dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:


I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html 
(section 3.4.3) for incorporating tiles definitions in 
struts-config.xml, and when the ActionServlet receives a request 
for an action who's parameter is a tile definition name (such as 
.baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start 
with a "/" character

My action is defined like so:

   
And I've defined the plug-in for the Tiles requestor.

 
   
 
My tiles-defs.xml has one simple entry:

   

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
This is my first attempt at using tiles defined in tiles-defs.xml, so 
far, all the tiles are being used via tiles:insert in individual JSP 
pages. That seems to be working flawlessly.

Incidentally, I just tried replacing o.a.s.a.ForwardAction with 
o.a.s.tiles.actions.NoOpAction (deprecated) and it doesn't work, either 
- but, it doesn't throw an exception - it just silently fails, pretty 
much. Debug logging is enabled and the following is all I get:

[INFO] RequestProcessor - -Processing a 'GET' for path '/US/tilestest'
[DEBUG] RequestProcessor - - Looking for Action instance for class 
org.apache.struts.tiles.actions.NoOpAction

Hubert Rabago wrote:

Is this the only tile not working, or is this your first attempt at using Tiles
for this app?
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

I'm ripping my hair out here, guys ... what's going on with my config?! 
I can't see anything wrong in the debug output, yet Struts still is 
balking at actions that use the ForwardAction class and don't have a 
parameter that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

   

OK, I have simplelog set to debug and I don't see any errors - it 
seems to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

 

I got this yesterday.  It means Tiles didn't intercept your forward 
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump 
the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope 
you find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:

   

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html 
(section 3.4.3) for incorporating tiles definitions in 
struts-config.xml, and when the ActionServlet receives a request for 
an action who's parameter is a tile definition name (such as 
.baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start with 
a "/" character

My action is defined like so:

  
And I've defined the plug-in for the Tiles requestor.


  

My tiles-defs.xml has one simple entry:

  

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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

   

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


   



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I'm ripping my hair out here, guys ... what's going on with my config?! 
I can't see anything wrong in the debug output, yet Struts still is 
balking at actions that use the ForwardAction class and don't have a 
parameter that starts with a '/' ...

Please, please help!! (currently in begging mode, bribing is next :))

Ruth, Brice wrote:

OK, I have simplelog set to debug and I don't see any errors - it 
seems to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward 
request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump 
the tiles
it'll recognize when you app starts up.  Make sure yours is listed.

I'm using a tile with a ForwardAction now, so I know it works.  Hope 
you find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html 
(section 3.4.3) for incorporating tiles definitions in 
struts-config.xml, and when the ActionServlet receives a request for 
an action who's parameter is a tile definition name (such as 
.baseLayout), I get the following exception:

javax.servlet.ServletException: Path .baseLayout does not start with 
a "/" character

My action is defined like so:

   
And I've defined the plug-in for the Tiles requestor.

 
   
 
My tiles-defs.xml has one simple entry:

   

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
OK, I have simplelog set to debug and I don't see any errors - it seems 
to parse my tiles-def.xml just fine, from what I can see.

?!?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following 
exception:

javax.servlet.ServletException: Path .baseLayout does not start with a 
"/" character

My action is defined like so:

   
And I've defined the plug-in for the Tiles requestor.

 
   
 
My tiles-defs.xml has one simple entry:

   

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
How do I go about turning on debug for Tiles?

Hubert Rabago wrote:

I got this yesterday.  It means Tiles didn't intercept your forward request
because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile.
If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles
it'll recognize when you app starts up.  Make sure yours is listed.
I'm using a tile with a ForwardAction now, so I know it works.  
Hope you find it.

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following 
exception:

javax.servlet.ServletException: Path .baseLayout does not start with a 
"/" character

My action is defined like so:

   
And I've defined the plug-in for the Tiles requestor.

 
   
 
My tiles-defs.xml has one simple entry:

   

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I'm following the instructions provided here: 
http://jakarta.apache.org/struts/userGuide/building_view.html (section 
3.4.3) for incorporating tiles definitions in struts-config.xml, and 
when the ActionServlet receives a request for an action who's parameter 
is a tile definition name (such as .baseLayout), I get the following 
exception:

javax.servlet.ServletException: Path .baseLayout does not start with a 
"/" character

My action is defined like so:

   
And I've defined the plug-in for the Tiles requestor.

 
   
 
My tiles-defs.xml has one simple entry:

   

within the  node.

Any ideas? Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Store object in "application" scope

2003-11-03 Thread Ruth, Brice
It ended up being one of those late Friday afternoon typos ... I was 
storing "navXml" in application scope and trying to use "xmlNav" in my 
JSP. Ooops!!

Nail, Evan Burke wrote:

Hey Brice, 

I would agree I don't think it's finding your bean, as a result its trying to instantiate a Document object, and of course being an interface Document doesn't like someone trying to instantiate it. 

If your object is in the app scope, your should just be able to use it. 

You could try doing a logic present tag and test to see if its really there. Otherwise you can always just enumerate through the attribute names/elements in the servlet context and see what's there. 

bn

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 2:47 PM
To: Struts Users Mailing List
Subject: Re: Store object in "application" scope
OK, I'm having very little luck with this. I'm trying to pre-parse an 
XML document that is used by a few different JSPs, so that each of them 
doesn't need to do a  and  - I've checked the source 
for the JSTL XML ParseSupport class to see what its doing, and it seems 
pretty basic (I'm not using filters, so its a bit simpler). I save the 
org.w3c.dom.Document to application scope, then, within the JSP, I do:



I'm getting an exception thrown of type java.lang.InstantiationException 
... correct me if I'm wrong, but if its actually finding my object in 
Application scope, then it shouldn't be throwing this, right? Do I need 
the jsp:useBean at all? Or can I just start using $varName in my 
 statements, straight-away?

Wiebe de Jong wrote:

 

I do the same thing. Here is a code snippet:

public class AppStart extends HttpServlet {

// this will execute at startup
public void init() throws ServletException {
// province/state list
ArrayList provList = new ArrayList();
getServletContext().setAttribute("appProvList", provList);

Wiebe de Jong
http://frontierj.blogspot.com 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 11:20 AM
To: Struts Users Mailing List
Subject: Store object in "application" scope

I'm writing a servlet that will do some init jobs and I'd like to be 
able to store some objects in "application" scope so that they are 
visible from my JSPs - how best would I go about doing this from a 
Servlet? My Servlet class is extending HttpServlet and I'm going to be 
implementing the init(ServletConfig), mainly.

Thanks!



   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Store object in "application" scope

2003-10-31 Thread Ruth, Brice
OK, I'm having very little luck with this. I'm trying to pre-parse an 
XML document that is used by a few different JSPs, so that each of them 
doesn't need to do a  and  - I've checked the source 
for the JSTL XML ParseSupport class to see what its doing, and it seems 
pretty basic (I'm not using filters, so its a bit simpler). I save the 
org.w3c.dom.Document to application scope, then, within the JSP, I do:



I'm getting an exception thrown of type java.lang.InstantiationException 
... correct me if I'm wrong, but if its actually finding my object in 
Application scope, then it shouldn't be throwing this, right? Do I need 
the jsp:useBean at all? Or can I just start using $varName in my 
 statements, straight-away?

Wiebe de Jong wrote:

I do the same thing. Here is a code snippet:

public class AppStart extends HttpServlet {

// this will execute at startup
public void init() throws ServletException {
 // province/state list
 ArrayList provList = new ArrayList();
 getServletContext().setAttribute("appProvList", provList);

Wiebe de Jong
http://frontierj.blogspot.com 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 11:20 AM
To: Struts Users Mailing List
Subject: Store object in "application" scope

I'm writing a servlet that will do some init jobs and I'd like to be 
able to store some objects in "application" scope so that they are 
visible from my JSPs - how best would I go about doing this from a 
Servlet? My Servlet class is extending HttpServlet and I'm going to be 
implementing the init(ServletConfig), mainly.

Thanks!

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ruth, Brice
Yep, the same setup works in that situation - and the way Tomcat knows 
to use the precompiled JSPs is that special entries for each of the 
servlets generated from jasper (the JSP compiler) are entered into the 
web.xml file (this, of course, can be automated).

David Erickson wrote:

We currently have an ant function that just builds the directory structure
of a deployed webapp then points tomcat at that build directory.. is there
anyway to precompile the jsps in this situation without creating a war?  And
how does tomcat know to goto the precompiled files when a request for the
actual jsp comes in?
thanks,
David
- Original Message - 
From: "Ruth, Brice" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 10:45 AM
Subject: Re: Eclipse + Ant + precompile -> Tomcat

 

Thanks for the pointer to your blog, between that and the example
provided by the Tomcat docs, I was able to get what I was looking for -
fully automated pre-compiling & deploying. Excellent!
Holman, Cal wrote:

   

I am using tomcat 5.0.12 and struts 1.1 with tiles and have been
 

successful in precompiling.  The tomcat documentation has a pretty good
example.  The hard part is translating someone else's directory structure
into yours to apply all the examples.  I posted my solution to my web site
at http://www.calandva.com/holmansite/do/blog/blogging
 

I also use Eclipse for development but due to the number of steps and
 

substitution in the various output xml and properties files still create the
final product with ant - invoked in Eclipse or externally.  Not sure I
explained it well enough and I left off my compile and war targets - let me
know if you have questions.
 

Cal

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 10:14
To: Struts Users Mailing List
Subject: Eclipse + Ant + precompile -> Tomcat
I've been doing some googling on having a webapp precompiled when
deployed to Tomcat via an Ant task and I'm a bit intimidated with what's
involved. Has anyone out there done this? Right now, I have an Ant build
setup as an external build in Eclipse that does a variety of things,
including building, packing up my WAR, and installing this WAR to Tomcat
using the catalina-ant "install" command that uses the management URL
and an external context file to install the webapp in a (local) running
Tomcat instance.
I'd like to follow-up the install with a directive to Tomcat to
precompile the JSPs in the web application - does anyone have an Ant
task that I could adapt to this purpose that they'd be willing to share?
Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Learn more about Paymentech's payment processing services at
 

www.paymentech.com
 

THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments
 

are proprietary and confidential information intended only for the use of
the recipient(s) named above.  If you are not the intended recipient, you
may not print, distribute, or copy this message or any attachments.  If you
have received this communication in error, please notify the sender by
return e-mail and delete this message and any attachments from your
computer.
 

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


 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Store object in "application" scope

2003-10-31 Thread Ruth, Brice
Nevermind, I think I have it, thanks.

Ruth, Brice wrote:

I'm writing a servlet that will do some init jobs and I'd like to be 
able to store some objects in "application" scope so that they are 
visible from my JSPs - how best would I go about doing this from a 
Servlet? My Servlet class is extending HttpServlet and I'm going to be 
implementing the init(ServletConfig), mainly.

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Store object in "application" scope

2003-10-31 Thread Ruth, Brice
I'm writing a servlet that will do some init jobs and I'd like to be 
able to store some objects in "application" scope so that they are 
visible from my JSPs - how best would I go about doing this from a 
Servlet? My Servlet class is extending HttpServlet and I'm going to be 
implementing the init(ServletConfig), mainly.

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ruth, Brice
Thanks for the pointer to your blog, between that and the example 
provided by the Tomcat docs, I was able to get what I was looking for - 
fully automated pre-compiling & deploying. Excellent!

Holman, Cal wrote:

I am using tomcat 5.0.12 and struts 1.1 with tiles and have been successful in precompiling.  The tomcat documentation has a pretty good example.  The hard part is translating someone else's directory structure into yours to apply all the examples.  I posted my solution to my web site at http://www.calandva.com/holmansite/do/blog/blogging 

I also use Eclipse for development but due to the number of steps and substitution in the various output xml and properties files still create the final product with ant - invoked in Eclipse or externally.  Not sure I explained it well enough and I left off my compile and war targets - let me know if you have questions.  

Cal

-Original Message-----
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 10:14
To: Struts Users Mailing List
Subject: Eclipse + Ant + precompile -> Tomcat
I've been doing some googling on having a webapp precompiled when
deployed to Tomcat via an Ant task and I'm a bit intimidated with what's
involved. Has anyone out there done this? Right now, I have an Ant build
setup as an external build in Eclipse that does a variety of things,
including building, packing up my WAR, and installing this WAR to Tomcat
using the catalina-ant "install" command that uses the management URL
and an external context file to install the webapp in a (local) running
Tomcat instance.
I'd like to follow-up the install with a directive to Tomcat to
precompile the JSPs in the web application - does anyone have an Ant
task that I could adapt to this purpose that they'd be willing to share?
Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above.  If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments.  If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: tag question

2003-10-31 Thread Ruth, Brice
The "name" attribute on the HTML generated by  is 
automatically set to the name of the action that will be receiving the 
form input, if I'm not mistaken. So, in your case, it would be named 
"doit", if I'm not mistaken. This, I believe, is done to support 
validation through javascript.

Jim Kennedy wrote:

Here's my standard html form tag:





I need to be able to "name" my form in my application.  How do I do that
with the "el" form tag.  It is not this:






name has another meaning for this tag.  what is the equivalent for name in a
standard HTML form tag?


thanks



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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
Coolio, thanks!

James Mitchell wrote:

See Section 11.2 of the Servlet 2.3 API Specification or Section 10.2 of
the Servet 2.2 API Specification.
Then "do" some testingpun intended ;)



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx


 

-Original Message-----
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 11:03 AM
To: Struts Users Mailing List
Subject: Re: use html:link pass two param

doesn't this still put 'do' somewhere in the URL?

Kris Schneider wrote:

   

web.xml:



action
/do/*

Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:



 

How do you go about enabling path mapping v. extension mapping in 
web.xml (or struts-config.xml)?

James Mitchell wrote:

  

   

First of all, you should never have to put ".do" any where in your
application except the web.xml file.
That way, you change the mapping in one place and it flows 
 

to the rest
   

of the application.

Here's what I do:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>




value="editUser"/>
   



value="${user.id}"/>
   


Edit this user



Which produces a link like this:



href="/app/admin-tool/manageUsers?action=editUser&id=44">Edit
   

this user

The above example uses path mapping, but if I were using extension
mapping (*.do), it looks like this:
(with no changes to the source jsp)

Edit this
user


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx






 

-Original Message-
From: javen fang [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 1:58 AM
To: struts
Subject: use html:link pass two param

I have a bean list that have two property id / name

code:
--
 next action

--

And how can I pass the second parameter name after the
action next.do??
Thanks.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
   

---
   

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]
   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
  

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
doesn't this still put 'do' somewhere in the URL?

Kris Schneider wrote:

web.xml:



 action
 /do/*

Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:

 

How do you go about enabling path mapping v. extension mapping in 
web.xml (or struts-config.xml)?

James Mitchell wrote:

   

First of all, you should never have to put ".do" any where in your
application except the web.xml file.
That way, you change the mapping in one place and it flows to the rest
of the application.
Here's what I do:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>





Edit this user



Which produces a link like this:

Edit
this user
The above example uses path mapping, but if I were using extension
mapping (*.do), it looks like this:
(with no changes to the source jsp)

Edit this
user


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx




 

-Original Message-
From: javen fang [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 1:58 AM
To: struts
Subject: use html:link pass two param

I have a bean list that have two property id / name

code:
--
 next action

--

And how can I pass the second parameter name after the
action next.do??
Thanks.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
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]


 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ruth, Brice
Good tip ... thanks! I actually do have a lot of JSPs (especially tiles) 
... so this probably won't work for me at this moment.

Paul McCulloch wrote:

In case you didn't know, you can precompile a specific jsp by simply making
a reqest to the page with a special paramter:
ttp://myapp/somepage.jsp?jsp_precompile

If you don't have a huge number of pages this might form the basis of a
quick and dirty hack.
Paul

-Original Message-----
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: 31 October 2003 15:14
To: Struts Users Mailing List
Subject: Eclipse + Ant + precompile -> Tomcat
I've been doing some googling on having a webapp precompiled when 
deployed to Tomcat via an Ant task and I'm a bit intimidated with what's 
involved. Has anyone out there done this? Right now, I have an Ant build 
setup as an external build in Eclipse that does a variety of things, 
including building, packing up my WAR, and installing this WAR to Tomcat 
using the catalina-ant "install" command that uses the management URL 
and an external context file to install the webapp in a (local) running 
Tomcat instance.

I'd like to follow-up the install with a directive to Tomcat to 
precompile the JSPs in the web application - does anyone have an Ant 
task that I could adapt to this purpose that they'd be willing to share?

Thanks!

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
How do you go about enabling path mapping v. extension mapping in 
web.xml (or struts-config.xml)?

James Mitchell wrote:

First of all, you should never have to put ".do" any where in your
application except the web.xml file.
That way, you change the mapping in one place and it flows to the rest
of the application.
Here's what I do:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>





Edit this user



Which produces a link like this:

Edit
this user
The above example uses path mapping, but if I were using extension
mapping (*.do), it looks like this:
(with no changes to the source jsp)

Edit this
user


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017 (c)
770.822.3359 (h)
AIM:jmitchtx


 

-Original Message-
From: javen fang [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2003 1:58 AM
To: struts
Subject: use html:link pass two param

I have a bean list that have two property id / name

code:
--
 next action

--

And how can I pass the second parameter name after the
action next.do??
Thanks.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Eclipse + Ant + precompile -> Tomcat

2003-10-31 Thread Ruth, Brice
I've been doing some googling on having a webapp precompiled when 
deployed to Tomcat via an Ant task and I'm a bit intimidated with what's 
involved. Has anyone out there done this? Right now, I have an Ant build 
setup as an external build in Eclipse that does a variety of things, 
including building, packing up my WAR, and installing this WAR to Tomcat 
using the catalina-ant "install" command that uses the management URL 
and an external context file to install the webapp in a (local) running 
Tomcat instance.

I'd like to follow-up the install with a directive to Tomcat to 
precompile the JSPs in the web application - does anyone have an Ant 
task that I could adapt to this purpose that they'd be willing to share?

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: use html:link pass two param

2003-10-31 Thread Ruth, Brice
If you have the parameters stored in a java.util.Map object, simply 
specifying the name of that object as the "name" attribute to html:link 
(without any paramId/paramName/paramProperty attributes, will do the 
trick for you.

If your bean list isn't a java.util.Map, you can create one on the fly 
in your JSP like so:




where param1/2 are the names you want the parameters passed as in the 
query string, and value1/2 are the values (which can be populated with 
EL or as the text body of the c:set statement)

After doing this, the "name" attribute to html:link would simply be 
"varName" - which, of course, you can choose to be whatever you want.

Hope this helps!
Brice
javen fang wrote:

I have a bean list that have two property id / name

code:
--
 next action

--

And how can I pass the second parameter name after the
action next.do??
Thanks.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: EL Expression in html:hidden tag

2003-10-30 Thread Ruth, Brice
Is ${pageContext.request.servletPath} returning anything? Try something like



Use the JSTL core tag library at http://java.sun.com/jstl/core to get 
"c:out" ...

Arne Brutschy wrote:

Hello,

I'm having a problem with the html:hidden tag. What I'm trying to do is:

On every page, there is a logout button included. When the user hits
the button, the request will be send to an logoutAction. Afterwards,
the request should be redirected back to the page where the user was
before he hit the button. My problem is, that the including page is
every time another one. So I tried to get it by
${pageContext.request.servletPath}. This works, but I cannot use it as
value in the html:hidden tag. I've seen people on this list doing
this, but my html-el.tld permits it. Does anyone know why? I'm using
struts 1.1 with the standard taglib ea 1.1, tomcat 5.0.12.
Here is my jsp include:

   <%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el"; prefix="html" %>
 .
 .
 .
   
 
 
 
   
and the action:

 public ActionForward logout(ActionMapping mapping, ActionForm form, 
HttpServletRequest request,
  HttpServletResponse response) throws Exception {
   // get session and loginForm
   HttpSession session = request.getSession(true);
   DynaActionForm loginForm = (DynaActionForm)form;
   // remove the user from the session
   session.removeAttribute("user");
 .
 .
   // stay on this page
   String requestedPage = loginForm.get("requestedPage").toString();
   response.sendRedirect(requestedPage);
   return null;
 }
Regards,
Arne Brutschy


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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: How To Submit A Propery/Value Pair That Is Not Selected/Filled-Out By Visitors of the Website?

2003-10-30 Thread Ruth, Brice
Can you just use hidden form variables? Check out the Struts-HTML 
 tag - that might get you through this.

Caroline Jen wrote:

In the welcome page, all visitors of the web site can
choose to view any article that is available in the
database.  But, visitors will not be able to delete or
update any of those articles (DELETE, UPDATE, etc.
buttons are not provided).  This part of my struts
application works well.  I have a drop-down list
enclosed in  for visitors to make a
selection and submit it for an action to be taken:


Find articles by: 





maxlength="50"/>

GO

 

Visitor can choose articles by title, author,
category, content, or article ID.  If "author" is
selected from the drop-down list and the name of the
author "Victor Hugo" is supplied, keyName will be set
as creator and keyValue will be set as Victor Hugo for
further processing as shown in my struts-config.xml
below:
   
   path="/menu/Find"
  
type="org.apache.struts.scaffold.ParameterAction"
   name="menuForm"
   validate="false"
   parameter="keyValue">
   
   name="title"
  
path="/do/find/Property?keyName=title&keyValue="/>
   
   name="author"
  
path="/do/find/Property?keyName=creator&keyValue="/>
   
   name="journal_category"
  
path="/do/find/Property?keyName=journal_category&keyValue="/>
   
   name="content"
  
path="/do/find/Property?keyName=content&keyValue="/>
   
   name="article"
   path="/do/article/View?article="/>
   

After a registered visitor successfully logs in, a
user specific page is displayed.  For example, after
the author Victor Hugo who has submitted several of
his articles at the web site logs in, he will see a
page with "Submit Article" and "View Article" (IT IS A
LINK OR A BUTTON.  IT IS NOT A DROP DOWN LIST), etc. 
The author can view his own articles only because
DELETE, UPDATE, etc. buttons will be provided.

I am stuck here.  There is no drop-down list for
Victor Hugo.  How do I supply keyName (which is
"creator") and keyValue (request.getRemoteUser) to the
action below if Victor Hugo clicks on the "View
Article" button?
   
   path="/menu/Find"
   
   parameter="keyValue">
   
   
   name="author"
  
path="/do/find/Property?keyName=creator&keyValue="/>
   
   



__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: tiles question

2003-10-30 Thread Ruth, Brice
There's a method of reducing this duplication in Ted Husted's "Struts in 
Action" book - the method, I believe, is called the "body wrap" method 
and it addresses a particular situation that is common, that allows you 
to eliminate this duplication. Also, you can define and extend tile 
definitions in XML, that also help mitigate and leverage the 
scaleability of Tiles.

I recommend you check out Ted's book or other Struts books that also 
address Tiles.

Kalra, Ashwani wrote:

hi,
I tiles you have to maintain two pages. One that includes all the sections
like header, footer, variable content jsp, etc. and one jsp which contains
your code(varible part).
This doubles up the no of jsps ?  Is it ok. any work around ?
TIA
Ashwani Kalra
http://www.geocities.com/ashwani_kalra







This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: dynamic drop-down changes without calling action class using session

2003-10-28 Thread Ruth, Brice
You'll have to do more than store the data for your drop-down in the 
session, if you don't want another request to go to the server - you'll 
have to store all the data for your drop-downs in JavaScript and use 
JavaScript to dynamically populate the drop-downs as selections change.

[EMAIL PROTECTED] wrote:

Hi,
  I am having trouble when I try to use struts and Javascript together. =
I am using 4 dropdown list. Based on one selection dynamically change =
other drop- down list. Eventhough I am bringing all drop-list from DB at =
one time and stored in session. I would like to know how to synchronize =
without calling action class again.=20
  In advance I appreciate your help..

Thanks,
Kaja


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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
I think we're in business. SWEET!! Thanks.

Kris Schneider wrote:

Ah, well, here's where I'm out of my element. Perhaps (in the tile):



...
Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:

 

no, is this what I should be doing? Do I have to do anything special in 
my tile to bring "contextNode" into scope? I've been using



for all the other parameters I pass into the tile ...

Kris Schneider wrote:

   

Are you doing something like:



  


And then in your tile using "contextNode":


...
Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:



 

I'm not having a problem using the proper attributes within the foreach, 
I'm having a problem passing an XML fragment to my Tile. I need to be 
able to pass

key1
key2
...
to the Tile - and that's not happening, as far as I can tell. Within the 
foreach I'm doing a few different things, pulling out nameKey, and 
various other attributes and such - and that's all fine, its actually 
getting the entire node that is the "current" node and passing that to 
the Tile that seems to be troublesome.

So, my XML for a particular category looks like this:

  
  nav.crafts.prdctfm.prsnlppr
  nav.crafts.prdctfm.rtry
  
So, with my x:forEach XPath statement, the "context" node is a category 
like this - and I can pull out @nameKey, @order, etc. - to my heart's 
content. I can also do an x:if on "family" to determine if any family 
nodes exist in the current context - this is all OK.

However, there's processing that the tile I include in my x:forEach 
needs to do that needs this XML fragment (specifically, it needs to loop 
through each family and do something specific, much in the same way that 
the parent is looping through each category and doing something 
specific). So, I need to pass XML like that above, from the "current" 
context to the Tile ... somehow.

Is this possible?

Kris Schneider wrote:

  

   

That's fine, isn't it? It should just be the string representation of
 

the
   

context node (i.e. nodeclass.toString()). What if you do:


nameKey: 

Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:





 

Hrmpf, not working they way I expected.

When I add var="node" to my x:forEach, and then use  to display the contents (as this is what would be 
passed to the Tile, via ) - I get the following:

[category: null]

The XPath statement I am using as my select for the forEach, has as its
   

last node, "category" ... what I would hope to get is either something 
like this:


 whatever
 ...

-OR- just the list of "family" nodes.

Kris Schneider wrote:

 

  

   

I don't know much about Tiles, but  can explicitly export a
   



 

scoped
 

  

   

variable via its "var" attribute:



It also implicitly sets the context node each time through an
 

iteration.
   



 

So,
  

   

   



 

I'm
 

  

   

assuming that another XPath expression within the tile would operate
   



 

realtive to
 

  

   

the context set by . If you know Tiles and have some handy


 

test
  

   

   



 

XML
 

  

   

data, it shouldn't be too hard to test out either (or both) of those
   



 

approaches...
 

  

   

Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:



   



 

I have an x:forEach loop (JSTL) that contains within it a
   


   

  

statement - and I'd like to pass the current node of XML to the tile
   

for
   

  

additional processing (conditionally). Is this possible? Within the 
tile, I'll need to do an x:forEach loop on the passed in fragment, so
   

I
   

  

believe I'll need to be able to use x:parse on the fragment that was 
passed in. I'm open to other ways of doing this, as well, but they
   

need
   

  

to only involve what can be done within a JSP/tile, really. I'm 
extending an existing set of code, and am not really open to rewriting
   

it all :)

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
 

  

   

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
 

  

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
  

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
no, is this what I should be doing? Do I have to do anything special in 
my tile to bring "contextNode" into scope? I've been using



for all the other parameters I pass into the tile ...

Kris Schneider wrote:

Are you doing something like:


 
   
 

And then in your tile using "contextNode":


 ...
Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:

 

I'm not having a problem using the proper attributes within the foreach, 
I'm having a problem passing an XML fragment to my Tile. I need to be 
able to pass

key1
key2
...
to the Tile - and that's not happening, as far as I can tell. Within the 
foreach I'm doing a few different things, pulling out nameKey, and 
various other attributes and such - and that's all fine, its actually 
getting the entire node that is the "current" node and passing that to 
the Tile that seems to be troublesome.

So, my XML for a particular category looks like this:

   
   nav.crafts.prdctfm.prsnlppr
   nav.crafts.prdctfm.rtry
   
So, with my x:forEach XPath statement, the "context" node is a category 
like this - and I can pull out @nameKey, @order, etc. - to my heart's 
content. I can also do an x:if on "family" to determine if any family 
nodes exist in the current context - this is all OK.

However, there's processing that the tile I include in my x:forEach 
needs to do that needs this XML fragment (specifically, it needs to loop 
through each family and do something specific, much in the same way that 
the parent is looping through each category and doing something 
specific). So, I need to pass XML like that above, from the "current" 
context to the Tile ... somehow.

Is this possible?

Kris Schneider wrote:

   

That's fine, isn't it? It should just be the string representation of the
context node (i.e. nodeclass.toString()). What if you do:

nameKey: 

Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:



 

Hrmpf, not working they way I expected.

When I add var="node" to my x:forEach, and then use  to display the contents (as this is what would be 
passed to the Tile, via ) - I get the following:

[category: null]

The XPath statement I am using as my select for the forEach, has as its 
last node, "category" ... what I would hope to get is either something 
like this:


  whatever
  ...

-OR- just the list of "family" nodes.

Kris Schneider wrote:

  

   

I don't know much about Tiles, but  can explicitly export a


 

scoped
  

   

variable via its "var" attribute:



It also implicitly sets the context node each time through an iteration.
 

So,
   



 

I'm
  

   

assuming that another XPath expression within the tile would operate


 

realtive to
  

   

the context set by . If you know Tiles and have some handy
 

test
   



 

XML
  

   

data, it shouldn't be too hard to test out either (or both) of those


 

approaches...
  

   

Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:





 

I have an x:forEach loop (JSTL) that contains within it a 
   

statement - and I'd like to pass the current node of XML to the tile for
   

additional processing (conditionally). Is this possible? Within the 
tile, I'll need to do an x:forEach loop on the passed in fragment, so I
   

believe I'll need to be able to use x:parse on the fragment that was 
passed in. I'm open to other ways of doing this, as well, but they need
   

to only involve what can be done within a JSP/tile, really. I'm 
extending an existing set of code, and am not really open to rewriting 
it all :)

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
 

  

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
  

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
I'm not having a problem using the proper attributes within the foreach, 
I'm having a problem passing an XML fragment to my Tile. I need to be 
able to pass

key1
key2
...
to the Tile - and that's not happening, as far as I can tell. Within the 
foreach I'm doing a few different things, pulling out nameKey, and 
various other attributes and such - and that's all fine, its actually 
getting the entire node that is the "current" node and passing that to 
the Tile that seems to be troublesome.

So, my XML for a particular category looks like this:

   
   nav.crafts.prdctfm.prsnlppr
   nav.crafts.prdctfm.rtry
   
So, with my x:forEach XPath statement, the "context" node is a category 
like this - and I can pull out @nameKey, @order, etc. - to my heart's 
content. I can also do an x:if on "family" to determine if any family 
nodes exist in the current context - this is all OK.

However, there's processing that the tile I include in my x:forEach 
needs to do that needs this XML fragment (specifically, it needs to loop 
through each family and do something specific, much in the same way that 
the parent is looping through each category and doing something 
specific). So, I need to pass XML like that above, from the "current" 
context to the Tile ... somehow.

Is this possible?

Kris Schneider wrote:

That's fine, isn't it? It should just be the string representation of the
context node (i.e. nodeclass.toString()). What if you do:

 nameKey: 

Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:

 

Hrmpf, not working they way I expected.

When I add var="node" to my x:forEach, and then use  to display the contents (as this is what would be 
passed to the Tile, via ) - I get the following:

[category: null]

The XPath statement I am using as my select for the forEach, has as its 
last node, "category" ... what I would hope to get is either something 
like this:


   whatever
   ...

-OR- just the list of "family" nodes.

Kris Schneider wrote:

   

I don't know much about Tiles, but  can explicitly export a
 

scoped
   

variable via its "var" attribute:



It also implicitly sets the context node each time through an iteration. So,
 

I'm
   

assuming that another XPath expression within the tile would operate
 

realtive to
   

the context set by . If you know Tiles and have some handy test
 

XML
   

data, it shouldn't be too hard to test out either (or both) of those
 

approaches...
   

Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:



 

I have an x:forEach loop (JSTL) that contains within it a  
statement - and I'd like to pass the current node of XML to the tile for 
additional processing (conditionally). Is this possible? Within the 
tile, I'll need to do an x:forEach loop on the passed in fragment, so I 
believe I'll need to be able to use x:parse on the fragment that was 
passed in. I'm open to other ways of doing this, as well, but they need 
to only involve what can be done within a JSP/tile, really. I'm 
extending an existing set of code, and am not really open to rewriting 
it all :)

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
  

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
Hrmpf, not working they way I expected.

When I add var="node" to my x:forEach, and then use  to display the contents (as this is what would be 
passed to the Tile, via ) - I get the following:

[category: null]

The XPath statement I am using as my select for the forEach, has as its 
last node, "category" ... what I would hope to get is either something 
like this:


   whatever
   ...

-OR- just the list of "family" nodes.

Kris Schneider wrote:

I don't know much about Tiles, but  can explicitly export a scoped
variable via its "var" attribute:


It also implicitly sets the context node each time through an iteration. So, I'm
assuming that another XPath expression within the tile would operate realtive to
the context set by . If you know Tiles and have some handy test XML
data, it shouldn't be too hard to test out either (or both) of those approaches...
Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:

 

I have an x:forEach loop (JSTL) that contains within it a  
statement - and I'd like to pass the current node of XML to the tile for 
additional processing (conditionally). Is this possible? Within the 
tile, I'll need to do an x:forEach loop on the passed in fragment, so I 
believe I'll need to be able to use x:parse on the fragment that was 
passed in. I'm open to other ways of doing this, as well, but they need 
to only involve what can be done within a JSP/tile, really. I'm 
extending an existing set of code, and am not really open to rewriting 
it all :)

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
ah, right - the 'var' attribute, forgot about that. I was just accessing 
the context node, which is devoid of XML markup. Lemme try that.

Kris Schneider wrote:

I don't know much about Tiles, but  can explicitly export a scoped
variable via its "var" attribute:


It also implicitly sets the context node each time through an iteration. So, I'm
assuming that another XPath expression within the tile would operate realtive to
the context set by . If you know Tiles and have some handy test XML
data, it shouldn't be too hard to test out either (or both) of those approaches...
Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:

 

I have an x:forEach loop (JSTL) that contains within it a  
statement - and I'd like to pass the current node of XML to the tile for 
additional processing (conditionally). Is this possible? Within the 
tile, I'll need to do an x:forEach loop on the passed in fragment, so I 
believe I'll need to be able to use x:parse on the fragment that was 
passed in. I'm open to other ways of doing this, as well, but they need 
to only involve what can be done within a JSP/tile, really. I'm 
extending an existing set of code, and am not really open to rewriting 
it all :)

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: application.properties

2003-10-28 Thread Ruth, Brice
nope

Nathan Maves wrote:

I use Sun's application server but when I do this all web applications 
reload when you deploy a new one out there.  Does Tomcat do this as well?

Nathan
On Oct 28, 2003, at 9:48 AM, Ruth, Brice wrote:
You can probably reload or stop/start the individual application, 
whilst leaving the application server running. At least, this is what 
I do with Tomcat all the time ...

Zhou, Qin (Eric) wrote:

Can website pick up the changes from application.properties using 
some way, but without bouncing the applicaiton server?

Eric Zhou

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: application.properties

2003-10-28 Thread Ruth, Brice
You can probably reload or stop/start the individual application, whilst 
leaving the application server running. At least, this is what I do with 
Tomcat all the time ...

Zhou, Qin (Eric) wrote:

Can website pick up the changes from application.properties using some way, but without bouncing the applicaiton server?

Eric Zhou

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Ruth, Brice
Is your "Menu" actionforward the welcome screen you want to get to? And 
does your Action return an ActionForward to this?

Caroline Jen wrote:

Hi, I have the following code in the navbarMenu.jsp:

LOGOUT

and in the struts-config.xml, I have:


and 


  type="org.NameOfOrganization.signoff.LogoffAction">

name="success"
path="/do/Menu"/>


In the LogoffAction.java, I invalidate the session and
I want the user to go back the welcome page.
The problem is that it takes two steps for the user to
go back to the welcome page - After the first click,
the same screen remains in the browser.  The only
change is what is shown in the address bar.  I have to
click the LOGOFF button again and then the welcome
page is displayed.  

What should I do to go back to the welcome page in one step?

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Pass XML fragment to tile?

2003-10-28 Thread Ruth, Brice
I have an x:forEach loop (JSTL) that contains within it a  
statement - and I'd like to pass the current node of XML to the tile for 
additional processing (conditionally). Is this possible? Within the 
tile, I'll need to do an x:forEach loop on the passed in fragment, so I 
believe I'll need to be able to use x:parse on the fragment that was 
passed in. I'm open to other ways of doing this, as well, but they need 
to only involve what can be done within a JSP/tile, really. I'm 
extending an existing set of code, and am not really open to rewriting 
it all :)

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Struts cannot support relative uri ?

2003-10-28 Thread Ruth, Brice
Are you using the struts html:img tag?! Otherwise, if you only have  in your JSP, then the HTML that is output won't 
be anything other than  - Struts/Tomcat/or 
any other container/framework passes through any non-JSP tags like HTML 
"as is".

Send the exact HTML that is in your JSP and the exact HTML that is 
output when you load the page in a browser. Include the exact URI that 
you use to load the page, too.

javen fang wrote:

but if in left.jsp include struts tags, or it mapping
   

from struts action, then relative uri will fail, and
 

"absolute" uri is required:

   

If in this condition, I do like this:

then html is : "http:/localhost/images/logo.jsp"
so I think "asales/pages/" is required.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

If relative URIs work or don't work is dependent on
the HTML being 
produced, more than anything else, since its the
browser that then has 
to request the correct image from the server.

What is the HTML being produced in the cases where
you don't see it working?
javen fang wrote:

   

Hi, all.  I am fajaven from
 

matrix(www.matrix.org.cn)
   

in China.

I wonder it seems like Struts cannot support
 

relative
   

uri.

In tomcat 5.0 , my webapp looks like:
tomcat/webapps/asales
Two files are:
tomcat/webapps/asales/pages/left.jsp
tomcat/webapps/asales/pages/images/logo.jpg
Normally, in left.jsp, I use logo.jpg, like this:

but if in left.jsp include struts tags, or it
 

mapping
from struts action, then relative uri will fail,
and
   

"absolute" uri is required:

You know, relative uri cannot be used is not
convinient very much.
How can I solve this question? 

Thanks.

javen fang from matrix

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
 

protection around 
   

http://mail.yahoo.com 

 

-
   

To unsubscribe, e-mail:
 

[EMAIL PROTECTED]
   

For additional commands, e-mail:
 

[EMAIL PROTECTED]
   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


   

-
 

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



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Struts cannot support relative uri ?

2003-10-28 Thread Ruth, Brice
If relative URIs work or don't work is dependent on the HTML being 
produced, more than anything else, since its the browser that then has 
to request the correct image from the server.

What is the HTML being produced in the cases where you don't see it working?

javen fang wrote:

Hi, all.  I am fajaven from matrix(www.matrix.org.cn)
in China.
I wonder it seems like Struts cannot support relative
uri.
In tomcat 5.0 , my webapp looks like:
tomcat/webapps/asales
Two files are:
tomcat/webapps/asales/pages/left.jsp
tomcat/webapps/asales/pages/images/logo.jpg
Normally, in left.jsp, I use logo.jpg, like this:

but if in left.jsp include struts tags, or it mapping
from struts action, then relative uri will fail, and
"absolute" uri is required:

You know, relative uri cannot be used is not
convinient very much.
How can I solve this question? 

Thanks.

javen fang from matrix

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: question about reset()

2003-10-27 Thread Ruth, Brice
to my knowledge, reset() is called to clear the form (and perform any 
re-initialization), before calling the setters for the form parameters 
being submitted by the browser.

this way, the action that accesses the actionform will always have the 
values submitted by the browser, no more, no less - instead of possibly 
having "stale" data. the subclassing is done because ActionForm is being 
extended by each of your classes, and ActionForm doesn't have javabean 
methods for all the parameters in your form - your ActionForm class has 
those.

Sonam Belbase wrote:

I'm trying to understand ActionForms a bit better and here is my
question:
If the servlet controller automatically invokes the reset() method
before passing the ActionForm bean to the Action implementation class
instance, how can you use the form's properties' values in your action?
Is this why in the action, you need to downcast the form argument passed
by the controller servlet to your Actionform as such:
String userName = ((LoginForm) form).getUserName();

Thanks,
SB
--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.


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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Ruth, Brice
In this particular code, you'd need to use 
pageContext.getAttribute("airportCode"), in your scriptlet, I believe.

Ruta Thakkar wrote:

Dear All,

I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are upgrading to weblogic 8.1/jdk1.4

Here is the code that i was using earlier to pass multiple parameters in html:link:




<%
java.util.HashMap params = new java.util.HashMap();
params.put("method", "getAirportDetails");
params.put("airportCode", airportCode );
pageContext.setAttribute("paramsName", params);
%>









this works fine with Weblogic 6.1 and jdk 1.3, But when i upgraded to jdk 1.4 
/weblogic 8.1,
it gives me an error:
cannot resolve symbol airportCode at line : params.put("airportCode", airportCode );
I know that jdk1.4 is stricter when it comes to compilation, but does this imply that the bean:define tag is not compiant with jdk1.4??

Pls guide me on how to proceed forward

Regds
Ruta
DISCLAIMER:

Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies Limited and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at [EMAIL PROTECTED] 

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Tags creating Tags

2003-10-26 Thread Ruth, Brice
I think you'll still end up with a severe performance penalty. If you 
generate JSP dynamically, that JSP will have to be "pre-compiled" each 
time you re-generate it.

[EMAIL PROTECTED] wrote:

Craig R.McClanahan wrote:
 

To accomplish what you are after, you would need another
layer of compilation.
You'll need to come up with a different approach to accomplish what you
are after.
   

I think this link ( an article by Jason Diamon at xml.com) presents an
example of what Craig calls "another layer of compilation"
http://www.xml.com/pub/a/2002/03/27/templatexslt.html
Suppose you define a template language for your own. By that language(a set
of XML elements/attributes name vocabularies), you mark-up the page source
codes with the "super-duper mamma tags" you define. Also you develop a
"MyLang-JSP transformer" by XSLT to produce JSP source codes. You can use
whatever JSP custom tags, including Struts', in the JSP generated by your
preprocessor. In fact I used this method for my application, which proved
good enough.
Kazuaki





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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Tags creating Tags

2003-10-26 Thread Ruth, Brice
One way of accomplishing what you want to do, I think, is simply making 
calls to the appropriate Struts classes that are called when  
is parsed & compiled. Instead of outputting an  - just call 
those methods with the arguments that you would write out as  
attributes, and you should get pretty close to what you're trying to 
achieve (without the performance hit ;)

Brice

Craig R. McClanahan wrote:

Lukas Bradley wrote:

Hi all,

Maybe I'm just tired, but the answer to this is not to be found.  I 
could me
making this harder than it is, or something might be right in front 
of me,
and I don't see it.

What I want is a custom tag that creates other custom tags.  Here is a
simple example:


Should produce something like this:


 English
 
  


Which should then evaluate to:


 English
 
  

I've thought about trying to extend BodyTagSupport, return
EVAL_BODY_BUFFERED in doStartTag(), modify the bodyContent in 
doAfterBody(),
then return EVAL_PAGE() in doEndTag().  However, BodyContent has a 
protected
constructor, and no way to set its content.

I want to maintain the functionality gained from Struts-like custom 
tags,
while extracting the creation of them in a super-duper momma tag.  
Any help?

 

It's not much help, except in the sense that it will put your search 
for the answer out of it's misery :-).  What you are trying to do is 
not supported by JSP -- the reason is that custom tags are converted 
into appropriate method calls at page compile time.  After that, they 
are just executed.  To accomplish what you are after, you would need 
another layer of compilation.

You'll need to come up with a different approach to accomplish what 
you are after.

Lukas

 

Craig



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Tiles And Images

2003-10-26 Thread Ruth, Brice
Using the  tag is powerful, though, as it allows you to use 
relative (to page) references for links/images/etc. - if needed, and 
module relative references are still supported by , 
, and of course,  tags. 
That's how our application is structured - this way, when we put things 
in different directories, and each of those directories has its own 
images directory, so we can use the same tile or JSP in each of those 
directories and have them use relative image paths, when necessary 
(specific to the hierarchy they're in), and *also* use module relative 
paths by using the other Struts tags.

Makes code re-use in HTML a lot more attractive :)

Brice

Holman, Cal wrote:

Ruth>> I don't think so.  They were thinking of this option.  The HTML:BASE renders a  tag reference relative to the page request.  So if your template is in the app root then the effect is the same.  I use templates that are actually in different directories so in order to ensure all relative references are to the root I use the scriplet.  Not sure this is a best practice.  But I do not need to worry what jsp I am coding on - all references are relative to the root.  This simplifies the html and if I reorganize the site there are no links/img changes necessary.  It does make IDE rendering harder since they typically do best with relative urls and no base tag.

Cal 

http://www.calandva.com/Last update 08/01/03

-Original Message-----
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 25, 2003 18:59
To: Struts Users Mailing List
Subject: Re: Tiles And Images
Just an FYI (and correct me if I'm wrong), but just doing 
will pretty much do what all the stuff you have below there does - what
you have in there is the default behavior of the Struts-HTML base tag.
Holman, Cal wrote:

 

Try searching the archives this is a common issue.  The requests for images are based on where the template tiles is using is located - not the location of the jsp being inserted in the template.  One approach is to use the base tag - I do the following to ensure all images and links are rooted at the same level in the application - the root.  This is the simplest, but there are other suggestions as well.

This line is in the base template - or any template.

Images then are referenced from the root of the web app - this is from the footer jsp



My directory structure is

App
--> web (web stuff)
-->WEB-INF
Others like the WEB-INF capability to protect resources.

Cal

http://www.calandva.com/Last update 08/01/03

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 14:42
To: [EMAIL PROTECTED]
Subject: Tiles And Images
I use tiles and stylesheet to display my web pages.  I
also try to insert some images in those pages.
The tiles work fine.  I have header, footer, navbar,
content, etc. displayed without problem.  But, I am
curious to know if anybody has had difficulties in
inserting images.  I have tried various ways and
cannot succeed.
__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above.  If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments.  If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.

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

--
Brice 

Re: redirection - please help

2003-10-25 Thread Ruth, Brice
You'll want to issue a "Location: \n\n" header to 
the response stream, that should do the trick.

ajay brar wrote:

hi!
is it possible for me to redirect users to an external site from 
inside an action class.
ie, say a user clicks /foo, this calls FooAction which does some 
intial processing. I now want to redirect the user to some other site. 
how can i do that?
do i write the link out into the response stream?

thanks
cheers
Ajay
_
E-mail just got a whole lot better. New ninemsn Premium. Click here  
http://ninemsn.com.au/premium/landing.asp

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Tiles And Images

2003-10-25 Thread Ruth, Brice
Just an FYI (and correct me if I'm wrong), but just doing  
will pretty much do what all the stuff you have below there does - what 
you have in there is the default behavior of the Struts-HTML base tag.

Holman, Cal wrote:

Try searching the archives this is a common issue.  The requests for images are based on where the template tiles is using is located - not the location of the jsp being inserted in the template.  One approach is to use the base tag - I do the following to ensure all images and links are rooted at the same level in the application - the root.  This is the simplest, but there are other suggestions as well.

This line is in the base template - or any template.

Images then are referenced from the root of the web app - this is from the footer jsp



My directory structure is

App
--> web (web stuff)
-->WEB-INF
Others like the WEB-INF capability to protect resources.

Cal 

http://www.calandva.com/Last update 08/01/03

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 14:42
To: [EMAIL PROTECTED]
Subject: Tiles And Images
I use tiles and stylesheet to display my web pages.  I
also try to insert some images in those pages.
The tiles work fine.  I have header, footer, navbar,
content, etc. displayed without problem.  But, I am
curious to know if anybody has had difficulties in
inserting images.  I have tried various ways and
cannot succeed. 

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above.  If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments.  If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Tiles And Images

2003-10-24 Thread Ruth, Brice
On the page that is your "main" page, insert the Struts HTML tag 
 - that should help out somewhat. Also, if that doesn't 
work, try using the Struts  tags with the page="" attribute, 
providing a module-relative path to where your image is stored. That 
should work without a hitch.

Good luck.

Caroline Jen wrote:

I use tiles and stylesheet to display my web pages.  I
also try to insert some images in those pages.
The tiles work fine.  I have header, footer, navbar,
content, etc. displayed without problem.  But, I am
curious to know if anybody has had difficulties in
inserting images.  I have tried various ways and
cannot succeed.  

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Dynamic JSPs and STRUTS

2003-10-24 Thread Ruth, Brice
JSTL in particular has a lot of tags for wrangling XML, so if you do 
pull out your 100 odd differences into an XML file, you'll need JSTL, 
most likely, to re-construct your JSP. I guess this sorta depends on if 
you understand XML at all ... if you can think of a way of using XML to 
pull out the 100 differences into an XML structure that makes sense, 
then just looking at some online documentation for JSTL should put you 
well on your way to getting this done.

Also, if you use the Struts EL tags, you pretty much are forced to use 
the JSTL tags as well, since certain Struts tags are not present in the 
Struts EL taglibs, since they are *precisely* the same (with EL) as the 
JSTL equivalent. The Struts EL documentation indicates which Struts tags 
are not present as well as what the equivalent JSTL tag is.

Good luck!

DeBurgo, Jean P. wrote:

The JSP pages I am creating all are using form elements.  How can JSTL be
used for dynamic form elements?  What struts tag libs overlap JSTL?
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 2:25 PM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic JSPs and STRUTS
Yes, JSTL plays very well with struts even though there is a great deal
of overlap.
I use JSTL exclusively for non-form elements - i.e., pure presentation /
output stuff.
Larry

 

[EMAIL PROTECTED] 10/24/03 12:11 PM >>>
   

The web app was developed using Struts.  This is a new section of the
app I
am developing.  I wanted to continue using Struts  libraries/components
to
construct dynamic JSP pages.  Does JSTL integrate nicely with Struts? 
Or
does Struts have similar components that do the same thing?

-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Commenting JSP code?

2003-10-24 Thread Ruth, Brice
thanks :)

David Graham wrote:

--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
 

How do I go about putting comments in my JSP code that I don't want sent

out to the browser?
   

http://java.sun.com/products/jsp/tags/12/syntaxref12.html

David

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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



__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Commenting JSP code?

2003-10-24 Thread Ruth, Brice
How do I go about putting comments in my JSP code that I don't want sent 
out to the browser?

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Dynamic JSPs and STRUTS

2003-10-24 Thread Ruth, Brice
You wouldn't even necessarily need to go the route of Struts to 
accomplish this - you could store your 100 variations in an XML file and 
use the JSTL core/xml libraries to dynamically generate your JSPs based 
on parameters.

DeBurgo, Jean P. wrote:

I am looking for the best approach to building dynamic JSP pages using
Struts.
I have a web app that has over 100 JSP pages that are basically identical. I
have a fixed set of form fields/parameter (15) and each JSP could have any
combination of the form fields displayed.  Each of 100 JSP pages has 1
unique value that is assigned to 1 of the form field/parameter. 

Instead of 100 JSP pages, I want to dynamically create 1 JSP page to display
a combination of form fields/parameters from the fixed set and assign the
unique value on of the form field/parameter.
Any suggestions or links to resources would be greatly appreciated.

Thanks,
Jean De Burgo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: hide section of form

2003-10-24 Thread Ruth, Brice
Layers may actually not work, as most browsers have a limitation of 
layering over "active" content - "active" meaning Java applets, Flash, 
and forms (much to my surprise). Your best bet is probably to use the 
HTML rewriting capabilities of IE/Mozilla, for IE this is innerHTML, I 
believe - an equivalent exists for Mozilla, though I don't know off the 
top of my head what the DOM name for it is.

Even so, using Dreamweaver will probably help you out a lot with stuff 
like this - there may even be a free (or pay) extension at Macromedia's 
Dreamweaver exchange (http://www.macromedia.com/exchange/dreamweaver) 
that would do it all for you.

Brice

Rajat Pandit wrote:

Thoug a non struts related question,  you might want to consider layers
(DHTML) and make them visible or invisible. Try using dreamweaver. It
has a good tool for making layers
-Original Message-
From: Jan Kester [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2003 12:59 AM
To: Struts Users Mailing List
Subject: hide section of form

Hello

how can I hide a section of my form with struts/javascript. That is,
someone presses a radio button and sees additional questions, presses
the opposite radio button and questions disappears. Without reloading
the form.
Regards, Jan

-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Good list for JSTL questions?

2003-10-23 Thread Ruth, Brice
Thanks.

Martin Cooper wrote:

The Jakarta taglibs-user list is probably the best one, since the JSTL RI
implementors are on that list, along with a good number of JSTL users.
--
Martin Cooper
"Ruth, Brice" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
 

What's a good list to address JSTL questions to?

Thanks.

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   





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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Good list for JSTL questions?

2003-10-23 Thread Ruth, Brice
What's a good list to address JSTL questions to?

Thanks.

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Bad email config [was: RE: sorting and searching in Struts/tiles]

2003-10-23 Thread Ruth, Brice
Yeppers, I've been getting the same thing.

James Mitchell wrote:

"his emails aren't reaching the list"

That's because he has a problem with the configuration of his mail
client.  He asked me something offlist, and my reply just bounced.  I
think his reply-to is set to go to some yahoo group address.not
sure.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx


 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 1:26 PM
To: Struts Users Mailing List
Subject: sorting and searching in Struts/tiles

[Forwarded from Dinh Nguyen, his emails aren't reaching the list]

Dinh Nguyen wrote:

Hi,

I am wondering how do you do the sorting and searching in struts.
Let say, when a person views a list of collections (for example, the
list consists of 5 people, each person has first name, last name,
age), there is a drop-down menu on the bottom of the table/page says
that:
1) Sort has two options: a) Ascending b) Descending
2) Search has three options a) Last Name b) First Name c) Age
Since data is not stored in database yet.
so in this case how can I do it using Struts?
Thanks for your help.

DN

-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
Craig R. McClanahan wrote:

Ruth, Brice wrote:

Seems strange that a rule would be set that breaks IETF standards, 
doesn't it? Or am I seeing this totally wrong?

In IETF standards terms, the session identifier is a *path* parameter, 
not a *query* parameter.  Such parameters can actually be added to any 
segment in the url ("http://foo.com/bar;baz=bop/ping;game=pong";), not 
just the last one.  Just because it is not common doesn't mean it's 
broken :-).

Craig McClanahan

Very true, very true. I'm just having a hard time understanding what 
Apache is supposed to *do* with this 'param' argument ... I've been 
doing web stuff for quite a while and I've never really run into this 
(which again, doesn't mean anything's broken, just because *I* haven't 
encountered it :)).

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
Craig R. McClanahan wrote:

Don't blame Tomcat's JK or JK2 connectors on me!  I don't have 
anything to do with them :-).

I've only ever been interested in the standalone Tomcat code (and, for 
work, the way that Tomcat gets integrated into Sun's web server and 
app server products).  In all of those cases, session identifiers work 
just fine.  So do servlet mappings and all the other features.

ISTR someone on TOMCAT-USER has posted a mod_rewrite rule that can 
deal with the jsessionid passthrough.
I have a mod_rewrite rule working now, but my problem is that the rule 
has to be specified in the VirtualHost definition for a site, and that 
VirtualHost definition is auto-generated by ApacheConfig on the Tomcat 
side, and there's no way to tell ApacheConfig to do this right ... so, 
right now, I have hand-edited the mod_jk.conf file generated by 
ApacheConfig, but I have to re-edit everytime Tomcat restarts (and 
rewrites that file).

Not an ideal situation, by any means :(

On a production server, I can see putting the Apache configuration in 
httpd.conf or some other file, all manually, without using ApacheConfig 
at all, but for dev and staging, that saves me a ton of time ...

Brice

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


sorting and searching in Struts/tiles

2003-10-23 Thread Ruth, Brice
[Forwarded from Dinh Nguyen, his emails aren't reaching the list]

Dinh Nguyen wrote:

Hi,

I am wondering how do you do the sorting and searching in struts.
Let say, when a person views a list of collections (for example, the
list consists of 5 people, each person has first name, last name,
age), there is a drop-down menu on the bottom of the table/page says
that:
1) Sort has two options: a) Ascending b) Descending
2) Search has three options a) Last Name b) First Name c) Age
Since data is not stored in database yet.
so in this case how can I do it using Struts?
Thanks for your help.

DN

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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
OK, so that looks like it makes sense, but why is Apache barfing on the 
'params', then? I can't imagine that Apache doesn't support the HTTP/1.0 
spec entirely.

Kris Schneider wrote:

The HTTP/1.0 spec defines a URI as:

...
rel_path = [ path ] [ ";" params ] [ "?" query ]
...
The Servlet spec states:

The session id must be encoded as a path parameter in the URL string. The
name of the parameter must be jsessionid.
Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:

 

Saul Q Yuan wrote:

   

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:32 AM
To: Struts Users Mailing List
Subject: Re: how to disable (or work around) jsessionid in html:img
sources
James Mitchell wrote:

  

   

A bit of history on this subject:

* From: Craig R. McClanahan
* Subject: Re: Why would jsessionid not appear?
* Date: Wed, 08 Aug 2001 12:09:26 -0700
The jsessionid path parameter will only be added if the servlet
container
does not know whether your client supports cookies.  How Tomcat


 

handles

 

this (probably typical of others):

* On the first response in a session, send the session id
both ways (cookie and encoding).
* If the subsequent request comes back with a cookie, turn
of URL rewriting for the remainder of this session.
* If the subsequent request comes back without a cookie,
keep on rewriting.
Craig



So, with that having been said, all you have to do is
tell all your users to hit refresh whenever they access
your site.
That way, all external links and images will work.

If you find that unacceptable, you could:

Move the contents of index.jsp to index2.jsp, then:

Put a meta refresh tag as your initial page (index.jsp).
 http://www.yoursite.com/index2.jsp";>
or

Add some javascript that sends the user to index2.jsp.
 (similar to above)
or

Use  or any number of ways in a scriptlet
to redirect to index2.jsp
On the Struts-Atlanta web site (http://www.struts-atlanta.org),
I take a slightly different approach.
At the top of my index.jsp, I do this:






What this does is refresh the page one time only.  This method works


 

for

 

me because I am not posting or processing any forms with this page


 

which

 

would not work correctly if I had.

Hope that helps.





 

Thanks, James.

Ignoring for the moment how these workarounds smack of "hack", this
doesn't solve the problem of people visiting the site w/o cookies
enabled. What I don't understand is why the delimiter ';' is being
  

   

used,

 

instead of the traditional '?' - which Apache wouldn't have a problem
stripping off and serving up the proper file with ...
  

   

That seems to be a rule in the Servlet specification on URL rewriting
for passing session info.
http://www.jcp.org/aboutJava/communityprocess/first/jsr053/servlet23_PFD
.pdf
Saul



 

Seems strange that a rule would be set that breaks IETF standards, 
doesn't it? Or am I seeing this totally wrong?

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
Saul Q Yuan wrote:

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:32 AM
To: Struts Users Mailing List
Subject: Re: how to disable (or work around) jsessionid in html:img
sources
James Mitchell wrote:

   

A bit of history on this subject:

* From: Craig R. McClanahan
* Subject: Re: Why would jsessionid not appear?
* Date: Wed, 08 Aug 2001 12:09:26 -0700
The jsessionid path parameter will only be added if the servlet
container
does not know whether your client supports cookies.  How Tomcat
 

handles
 

this (probably typical of others):

* On the first response in a session, send the session id
both ways (cookie and encoding).
* If the subsequent request comes back with a cookie, turn
of URL rewriting for the remainder of this session.
* If the subsequent request comes back without a cookie,
keep on rewriting.
Craig



So, with that having been said, all you have to do is
tell all your users to hit refresh whenever they access
your site.
That way, all external links and images will work.

If you find that unacceptable, you could:

Move the contents of index.jsp to index2.jsp, then:

Put a meta refresh tag as your initial page (index.jsp).
  http://www.yoursite.com/index2.jsp";>
or

Add some javascript that sends the user to index2.jsp.
  (similar to above)
or

Use  or any number of ways in a scriptlet
to redirect to index2.jsp
On the Struts-Atlanta web site (http://www.struts-atlanta.org),
I take a slightly different approach.
At the top of my index.jsp, I do this:






What this does is refresh the page one time only.  This method works
 

for
 

me because I am not posting or processing any forms with this page
 

which
 

would not work correctly if I had.

Hope that helps.



 

Thanks, James.

Ignoring for the moment how these workarounds smack of "hack", this
doesn't solve the problem of people visiting the site w/o cookies
enabled. What I don't understand is why the delimiter ';' is being
   

used,
 

instead of the traditional '?' - which Apache wouldn't have a problem
stripping off and serving up the proper file with ...
   



That seems to be a rule in the Servlet specification on URL rewriting
for passing session info.
http://www.jcp.org/aboutJava/communityprocess/first/jsr053/servlet23_PFD
.pdf
Saul

 

Seems strange that a rule would be set that breaks IETF standards, 
doesn't it? Or am I seeing this totally wrong?

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
Bizarre ... dunno what's up with my config, then. Not a biggie, I guess 
- my workaround still works, I guess. I just wanted to use this because 
I was using a scriptlet to generate some *very* dynamic code and got 
into a situation where I couldn't use  because it'd be 
nested within an  tag (in an onmouseover attribute) - so I 
wanted to use that code to get the prefix to just insert with another 
scriptlet. But, I think I've worked around that now, too.

It is truly amazing how a JSP can be compiled from custom JSP tags 
(tiles, struts, etc.), java code scriptlets, and EL expressions within 
tags, to something that actually works. I am truly amazed at times! :)

Kris Schneider wrote:

If it's any consolation, I just tried the original JSP-only code I posted with
TC 4.1.24 and it worked fine...
Quoting "Ruth, Brice" <[EMAIL PROTECTED]>:

 

James Mitchell wrote:

   

A bit of history on this subject:

* From: Craig R. McClanahan
* Subject: Re: Why would jsessionid not appear?
* Date: Wed, 08 Aug 2001 12:09:26 -0700 

The jsessionid path parameter will only be added if the servlet
container
does not know whether your client supports cookies.  How Tomcat handles
this (probably typical of others):
* On the first response in a session, send the session id
both ways (cookie and encoding).
* If the subsequent request comes back with a cookie, turn
of URL rewriting for the remainder of this session.
* If the subsequent request comes back without a cookie,
keep on rewriting.
Craig



So, with that having been said, all you have to do is 
tell all your users to hit refresh whenever they access 
your site.  

That way, all external links and images will work.

If you find that unacceptable, you could:

Move the contents of index.jsp to index2.jsp, then:

Put a meta refresh tag as your initial page (index.jsp).
  http://www.yoursite.com/index2.jsp";> 

or

Add some javascript that sends the user to index2.jsp.
  (similar to above)
or

Use  or any number of ways in a scriptlet
to redirect to index2.jsp
On the Struts-Atlanta web site (http://www.struts-atlanta.org), 
I take a slightly different approach.
At the top of my index.jsp, I do this:







What this does is refresh the page one time only.  This method works for
me because I am not posting or processing any forms with this page which
would not work correctly if I had.
Hope that helps.



 

Thanks, James.

Ignoring for the moment how these workarounds smack of "hack", this 
doesn't solve the problem of people visiting the site w/o cookies 
enabled. What I don't understand is why the delimiter ';' is being used, 
instead of the traditional '?' - which Apache wouldn't have a problem 
stripping off and serving up the proper file with ...

Just to clarify - by calling these workarounds "hacks" - I mean no 
disrespect - I am just looking for a cleaner method of handling this. 
That's all.

Brice

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Ruth, Brice
James Mitchell wrote:

A bit of history on this subject:

* From: Craig R. McClanahan
* Subject: Re: Why would jsessionid not appear?
* Date: Wed, 08 Aug 2001 12:09:26 -0700 

The jsessionid path parameter will only be added if the servlet
container
does not know whether your client supports cookies.  How Tomcat handles
this (probably typical of others):
* On the first response in a session, send the session id
 both ways (cookie and encoding).
* If the subsequent request comes back with a cookie, turn
 of URL rewriting for the remainder of this session.
* If the subsequent request comes back without a cookie,
 keep on rewriting.
Craig



So, with that having been said, all you have to do is 
tell all your users to hit refresh whenever they access 
your site.  

That way, all external links and images will work.

If you find that unacceptable, you could:

Move the contents of index.jsp to index2.jsp, then:

 Put a meta refresh tag as your initial page (index.jsp).
   http://www.yoursite.com/index2.jsp";> 

 or

 Add some javascript that sends the user to index2.jsp.
   (similar to above)
 or

 Use  or any number of ways in a scriptlet
 to redirect to index2.jsp
On the Struts-Atlanta web site (http://www.struts-atlanta.org), 
I take a slightly different approach.
At the top of my index.jsp, I do this:







What this does is refresh the page one time only.  This method works for
me because I am not posting or processing any forms with this page which
would not work correctly if I had.
Hope that helps.

 

Thanks, James.

Ignoring for the moment how these workarounds smack of "hack", this 
doesn't solve the problem of people visiting the site w/o cookies 
enabled. What I don't understand is why the delimiter ';' is being used, 
instead of the traditional '?' - which Apache wouldn't have a problem 
stripping off and serving up the proper file with ...

Just to clarify - by calling these workarounds "hacks" - I mean no 
disrespect - I am just looking for a cleaner method of handling this. 
That's all.

Brice

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-22 Thread Ruth, Brice
I tried this and got a JSP compile error that MODULE_KEY in 
org.apache.struts.Globals couldn't be resolved ...

org.apache.struts.Globals _jspx_th_c_rt_set_0.setValue( 
Globals.MODULE_KEY ); ^ 1 error

?!

Kris Schneider wrote:

If you can accomplish what you want via Apache rewrite rules, that seems like a
simpler solution. If that doesn't work out, here's a JSP/JSTL equivalent of how
 comes up with the module path:
<%@ page import="org.apache.struts.Globals" %>
<%@ taglib prefix="c"uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"; %>




   


">

Quoting dutrieux <[EMAIL PROTECTED]>:

 

Maybe you can try, But I think the impacts is all pages send to apache 
then all virtualhosts defiend by the mod_jk.

Ruth, Brice a écrit :

   

Is this something I can do at a global level, so that it impacts all 
virtualhosts defined by the mod_jk auto configuration file generated 
by Tomcat's connector?

dutrieux wrote:

 

Hello

For Apache v3.x you need to put in "httpd.conf" file this entry :

RewriteRule ^(.*);jsessionid=.*$ $1 [L]

Best regards

Olivier Dutrieux
*
*
Ruth, Brice a écrit :
   

Ruth, Brice wrote:

 

Hi. I'm using html:img in certain tiles that are used from very 
different places in my application with the "page" attribute to 
take advantage of module-relative naming for the image sources. 
However, when cookies aren't enabled, or on the first visit to the 
web application (with no session cookie having been previously 
detected), the ';jsessionid=X' gets added to the end of the image. 
Now, I'm not driving any dynamic images, nor do I intend to, so 
this sessionid is worthless to me. Furthermore - since I'm using 
Apache+Tomcat+mod_jk to serve this application, Apache seems to 
choke on serving up this image. I expect its because the sessionid 
is delimited by ';' instead of '?' as I'm used to, but maybe not.

Either way - does anyone know of a way to get around this? If 
possible, I'd prefer not having to do anything special in the 
Apache conf, mainly because I'm using the auto-generated mod_jk 
conf file for this configuration.

Thanks!

   

Any takers on this? This is kinda hosin' up my Apache/Tomcat setup 
... Tomcat standalone serves up the images fine with the jsessionid 
junk, but Apache doesn't!

 

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

--


*Olivier Dutrieux*



Institut Pasteur
Informatique de gestion
&
Micro-Informatique
25-28 rue du Docteur Roux
75724 PARIS CEDEX 15

Tel: +33 (0) 1 40 61 31 62
Fax: +33 (0) 1 45 68 89 89

   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Struts on WebSphere 3.5

2003-10-22 Thread Ruth, Brice
Does WS 3.5 support the minimum JSP requirements set forth by Struts?

Thomas Schneider wrote:

Has anyone experiences in getting struts installed on a WebSphere
Application Server v3.5?
I tried to get the struts-example.war running as desribed at
http://jakarta.apache.org/struts/userGuide/installation-was352-x.html
but I still get the error "Cannot find message resources under key
org.apache.struts.action.MESSAGE". What does it mean?
The error is mentioned in the article above: "then your application is
most likely still bombing on the struts-config issue that Richard
discovered.", but who is Richard?
Thanks for help or any informations regarding struts with WAS v3.5



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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on 11/ 5

2003-10-22 Thread Ruth, Brice
Any chance that someone could setup a DV camera, record the 
presentation, then post it somewhere as a small Quicktime movie? That 
would be excellent, too.

Van Riper, Mike wrote:

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 7:20 PM
To: Struts Users Mailing List
Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig 
McClanahan
on 11/ 5

Ruth, Brice wrote:

   

Any chance of getting a webcast setup for this? For those of us not 
fortunate enough to be local to the 'Valley? :)

 

You'll have to ask Van about broadcast facilities :-),
   

I'll look into this, but, it will most likely not be happening. At my day
job, I am on the critical path for completing and shipping a new product
right now. So, it is not going to happen unless they have the facilities
required for this at Netscape *and* I can find a volunteer with more free
time than myself to set it up.
Sorry, Van

 

but I do plan to 
make my slides available after the talk.

Craig

   

Van Riper, Mike wrote:

 

The next meeting of the Silicon Valley Struts User BOF 
   

will be held at
   

Netscape in Mountain View on Wednesday, November 5th. Craig 
McClanahan, a
senior staff engineer for Sun Microsystems, will make a 
   

presentation 
   

on this
topic:
Struts and JavaServer Faces -- Competition or Coexistence?

Craig is uniquely qualified to give this talk, because he 
   

is both the
   

original creator of the Struts Framework and 
   

co-specification lead for
   

JavaServer Faces (JSR-127). You will find the full announcement 
including
directions to Netscape here:

<http://www.baychi.org/bof/struts/20031105a/>
(Please note the change of venue from
VeriSign to Netscape for November)
This meeting is being co-hosted by the Silicon Valley Java 
   

User Group
   

(SVJUG) and the Java SIG of the East Bay I.T. Group 
   

(eBIG). Special 
   

thanks
goes to SVJUG President Venki Seshaadri for arranging the meeting 
space at
Netscape.

SVJUG <http://www.svjug.org/>
eBIG <http://www.ebig.org/sig/sig.aspx?SIGid=21>
That's all folks, Van

Mike Van Riper
mailto:[EMAIL PROTECTED]
http://www.baychi.org/bof/struts/


   

-
   

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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-22 Thread Ruth, Brice
Is this something I can do at a global level, so that it impacts all 
virtualhosts defined by the mod_jk auto configuration file generated by 
Tomcat's connector?

dutrieux wrote:

Hello

For Apache v3.x you need to put in "httpd.conf" file this entry :

RewriteRule ^(.*);jsessionid=.*$ $1 [L]

Best regards

Olivier Dutrieux
*
*
Ruth, Brice a écrit :
Ruth, Brice wrote:

Hi. I'm using html:img in certain tiles that are used from very 
different places in my application with the "page" attribute to take 
advantage of module-relative naming for the image sources. However, 
when cookies aren't enabled, or on the first visit to the web 
application (with no session cookie having been previously 
detected), the ';jsessionid=X' gets added to the end of the image. 
Now, I'm not driving any dynamic images, nor do I intend to, so this 
sessionid is worthless to me. Furthermore - since I'm using 
Apache+Tomcat+mod_jk to serve this application, Apache seems to 
choke on serving up this image. I expect its because the sessionid 
is delimited by ';' instead of '?' as I'm used to, but maybe not.

Either way - does anyone know of a way to get around this? If 
possible, I'd prefer not having to do anything special in the Apache 
conf, mainly because I'm using the auto-generated mod_jk conf file 
for this configuration.

Thanks!

Any takers on this? This is kinda hosin' up my Apache/Tomcat setup 
... Tomcat standalone serves up the images fine with the jsessionid 
junk, but Apache doesn't!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: how to disable (or work around) jsessionid in html:img sources

2003-10-22 Thread Ruth, Brice
Ruth, Brice wrote:

Hi. I'm using html:img in certain tiles that are used from very 
different places in my application with the "page" attribute to take 
advantage of module-relative naming for the image sources. However, 
when cookies aren't enabled, or on the first visit to the web 
application (with no session cookie having been previously detected), 
the ';jsessionid=X' gets added to the end of the image. Now, I'm not 
driving any dynamic images, nor do I intend to, so this sessionid is 
worthless to me. Furthermore - since I'm using Apache+Tomcat+mod_jk to 
serve this application, Apache seems to choke on serving up this 
image. I expect its because the sessionid is delimited by ';' instead 
of '?' as I'm used to, but maybe not.

Either way - does anyone know of a way to get around this? If 
possible, I'd prefer not having to do anything special in the Apache 
conf, mainly because I'm using the auto-generated mod_jk conf file for 
this configuration.

Thanks!

Any takers on this? This is kinda hosin' up my Apache/Tomcat setup ... 
Tomcat standalone serves up the images fine with the jsessionid junk, 
but Apache doesn't!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Help with URL localization (continued)

2003-10-22 Thread Ruth, Brice
Jason Lea wrote:

Ruth, Brice wrote:

This seems like a good idea, but I think it would prevent the country 
code from always being available in the URL (so if you're in the US 
site, you should always see /US/index.do, etc.) unless I can do this 
within the Tomcat/Servlet interaction, w/o issuing a redirect to the 
browser?! Can chain.doFilter() send the request to an action other 
than what was initially invoked by the browser?
 

Yes, the filter catches the request before it is passed to the servlet 
so you can do pretty much anything you like including sending the 
request to a different action.  But the redirect is usually server 
side, so the browser would see the original URL.

So the problem comes back to getting the links to include the country 
code.

Here are 2 ways...

1. (probably involves the most work)  Create some new JSP tags using 
the Struts tags a base.  You need to do almost the same thing but 
insert that country code at the start of the link.  Then you can use 
some text, 
which would create a link with url '/US/crafts/crafts.do'

2.  (this might work staight off, and doesn't look too bad) Using JSTL 
and the Struts-EL tags...
some 
text

Though i think struts puts the locale into the session under the name 
|'org.apache.struts.action.LOCALE', so you might| need to put a copy 
(in your filter)
into session under a shorter name - or even just the country code that 
you are using.  Eg put into session as 'urlprefix' and 

The only thing you are losing here is you are not linking to the 
action name ('crafts/crafts'), you have to link to the url name 
'crafts/crafts.do'.  So if you changed the servlet mapping from '*.do' 
to '/do' you would have to change the links.
#2 is what I have currently implemented. Though the way that some other 
aspects are going, I may end up creating my own extension of the Struts 
HTML tag set for other reasons, at which point, I'll probably go ahead 
an implement #1.

Thanks for the excellent feedback!!

Brice

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on 11/ 5

2003-10-21 Thread Ruth, Brice
Any chance of getting a webcast setup for this? For those of us not 
fortunate enough to be local to the 'Valley? :)

Van Riper, Mike wrote:

The next meeting of the Silicon Valley Struts User BOF will be held at
Netscape in Mountain View on Wednesday, November 5th. Craig McClanahan, a
senior staff engineer for Sun Microsystems, will make a presentation on this
topic:
Struts and JavaServer Faces -- Competition or Coexistence?

Craig is uniquely qualified to give this talk, because he is both the
original creator of the Struts Framework and co-specification lead for
JavaServer Faces (JSR-127). You will find the full announcement including
directions to Netscape here:

(Please note the change of venue from
VeriSign to Netscape for November)
This meeting is being co-hosted by the Silicon Valley Java User Group
(SVJUG) and the Java SIG of the East Bay I.T. Group (eBIG). Special thanks
goes to SVJUG President Venki Seshaadri for arranging the meeting space at
Netscape.
SVJUG 
eBIG 
That's all folks, Van

Mike Van Riper
mailto:[EMAIL PROTECTED]
http://www.baychi.org/bof/struts/


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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Help with URL localization (continued)

2003-10-21 Thread Ruth, Brice
This seems like a good idea, but I think it would prevent the country 
code from always being available in the URL (so if you're in the US 
site, you should always see /US/index.do, etc.) unless I can do this 
within the Tomcat/Servlet interaction, w/o issuing a redirect to the 
browser?! Can chain.doFilter() send the request to an action other than 
what was initially invoked by the browser?

Brice

Jason Lea wrote:

Here is a thought...

Set up your action mappings in struts-config.xml without the domain 
prefix eg
   /index.do
   /crafts/crafts.do

Then in your filter you can check for the locale prefix and set the 
locale.  In the same filter, construct a new path by removing the 
locale prefix and forward to the remainder of the path

eg request is /de/index.do --> redirect to /index.do

Struts will then match this and forward to the correct action.
If the request doesn't contain a matching locale then just let the 
request pass through.  eg /crafts/crafts.do would be let through 
unchanged as the 'crafts. does not match a locale.  As the first 
request should set the locale, you may not need to include it in any 
subsequent requests so .jsps can link to /index.do instead of 
/de/index.do

eg
request #1:  /de/index.do  (filter sets locale to de)
request #2: /crafts/crafts.do (uses locale already set to de)
Hmm, you could even change the filter mapping so it is only invoked 
for the locales that you are covering eg
/de/*
/fr/*

Then you won't have to do let through any unmatched locales eg 
/crafts/crafts.do would not be checked by the filter, but 
/fr/crafts/crafts.do is caught, locale set and redirected to 
/crafts/crafts.do

Ruth, Brice wrote:

The straightforward wildcarding didn't seem to work (it matched 
against a literal wildcard). Just an FYI for others, I guess .. :)

Adam Hardy wrote:

 

Hi Brice,
wasn't long before you came back! I was holding out thinking someone 
else might have a more intuitive solution than mine, but whatever, 
in your position I write my own taglib based on the html link taglib 
& add in the locale to the URL in that.

As for the action mappings, I think you're going to have to test it 
to see if you can use patterns. The struts gurus seem to be keeping 
their heads down, but maybe one of them will chime in.

Adam

On 10/21/2003 05:40 PM Ruth, Brice wrote:

  

Greetings.

As per my previous thread on the best way to create a URL structure 
like:

http://domain/us/whatever
http://domain/de/whatever
etc.
I've implemented the recommendations I received and now have a 
Filter listening to each request and setting the locale 
appropriately based on the country code specified in the URL. 
Working great :) I also have the .jsp I'm working with mapped to an 
action with a path like /us/index.do.

Now, within this index page, I have links in my navigation, being 
generated by the Struts HTML tags (html:link) - how would I best go 
about incorporating the country URL prefix (/us/, /de/, /fr/, etc.) 
without manually having to insert something like  - also, instead of setting up an 
action for each .jsp, for each language (/us/index.do; 
/de/index.do; /us/crafts/crafts.do; /de/crafts/crafts.do; etc.) - 
what's a better way of doing this? Can I create an action using 
org.apache.struts.actions.ForwardAction that uses a wildcard? So 
something like /*/index.do would have a parameter of /index.jsp and 
/*/crafts/crafts.do would have a parameter of /crafts/crafts.jsp.

I'm looking for guidance - best way of accomplishing my goals of 
code-reuse, ease-of-maintenance, as well as being able to provide 
the flexibility in URL naming that marketing would like to see.

Thanks,
Brice

  


 



--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Help with URL localization (continued)

2003-10-21 Thread Ruth, Brice
The straightforward wildcarding didn't seem to work (it matched against 
a literal wildcard). Just an FYI for others, I guess .. :)

Adam Hardy wrote:



Hi Brice,
wasn't long before you came back! I was holding out thinking someone 
else might have a more intuitive solution than mine, but whatever, in 
your position I write my own taglib based on the html link taglib & 
add in the locale to the URL in that.

As for the action mappings, I think you're going to have to test it to 
see if you can use patterns. The struts gurus seem to be keeping their 
heads down, but maybe one of them will chime in.

Adam

On 10/21/2003 05:40 PM Ruth, Brice wrote:

Greetings.

As per my previous thread on the best way to create a URL structure 
like:

http://domain/us/whatever
http://domain/de/whatever
etc.
I've implemented the recommendations I received and now have a Filter 
listening to each request and setting the locale appropriately based 
on the country code specified in the URL. Working great :) I also 
have the .jsp I'm working with mapped to an action with a path like 
/us/index.do.

Now, within this index page, I have links in my navigation, being 
generated by the Struts HTML tags (html:link) - how would I best go 
about incorporating the country URL prefix (/us/, /de/, /fr/, etc.) 
without manually having to insert something like  - also, instead of setting up an 
action for each .jsp, for each language (/us/index.do; /de/index.do; 
/us/crafts/crafts.do; /de/crafts/crafts.do; etc.) - what's a better 
way of doing this? Can I create an action using 
org.apache.struts.actions.ForwardAction that uses a wildcard? So 
something like /*/index.do would have a parameter of /index.jsp and 
/*/crafts/crafts.do would have a parameter of /crafts/crafts.jsp.

I'm looking for guidance - best way of accomplishing my goals of 
code-reuse, ease-of-maintenance, as well as being able to provide the 
flexibility in URL naming that marketing would like to see.

Thanks,
Brice


--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


how to disable (or work around) jsessionid in html:img sources

2003-10-21 Thread Ruth, Brice
Hi. I'm using html:img in certain tiles that are used from very 
different places in my application with the "page" attribute to take 
advantage of module-relative naming for the image sources. However, when 
cookies aren't enabled, or on the first visit to the web application 
(with no session cookie having been previously detected), the 
';jsessionid=X' gets added to the end of the image. Now, I'm not driving 
any dynamic images, nor do I intend to, so this sessionid is worthless 
to me. Furthermore - since I'm using Apache+Tomcat+mod_jk to serve this 
application, Apache seems to choke on serving up this image. I expect 
its because the sessionid is delimited by ';' instead of '?' as I'm used 
to, but maybe not.

Either way - does anyone know of a way to get around this? If possible, 
I'd prefer not having to do anything special in the Apache conf, mainly 
because I'm using the auto-generated mod_jk conf file for this 
configuration.

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: html:rewrite doesn't rewrite "action" contrary to docs?

2003-10-21 Thread Ruth, Brice
Its actually not quite that difficult to understand - the drop down form 
element was selected by the design agency as a means of navigating 
between the localizations of the site. So, the actual select doesn't 
submit a form (so no code to be executed on the server end) - it simply 
calls a bit of javascript code that takes the URL contained in the value 
attribute of the  and directs the browser to load that URL.

Not very sophisticated, not very difficult - its really merely a design 
element. But, it necessitates the need for the URL that is in the value 
attribute of the  tag be correct, based on the rewriting rules 
that Struts applies. It just surprised me that this isn't in 1.1 - seems 
like that would be a no-brainer, but maybe there's more to it than just 
what I see :)

No biggie - my workaround is fine for now.

James Mitchell wrote:

Hmmm...that's a tough one.	

Perhaps you should reevaluate your Use Case.  

Q.Why are you submitting to a different URL depending on the selection 
 of a drop down?  

Q.Why don't you just perform a different piece of code depending on what

 they picked?





--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx


 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 2:11 PM
To: Struts Users Mailing List
Subject: Re: html:rewrite doesn't rewrite "action" contrary to docs?

I have a drop-down select that jumps the user to a different 
country's 
site (e.g. from /US/whatever to /DE/index.do). For the select 
to work, I 
embed the link for the jump in the option's "value" attribute - so it 
looks like this:

US

The reason I need the rewrite (besides sessions and such) is 
that this 
is in a tile that will be referenced from pages that aren't all 
necessarily at the same hierarchy level.

Brice

James Mitchell wrote:

   

There are other ways to get around hard-coding ".do" anywhere in your
app.
What, specifically, are you rewriting?
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 1:46 PM
To: Struts Users Mailing List
Subject: Re: html:rewrite doesn't rewrite "action" contrary to docs?

I see. Well, I would prefer only to use stable release builds 
for this - 
so I can make do with adding ".do" on the end of my 
   

relative URLs and 
   

using "page" instead of "action" for now ... when will the 
next stable 
release come out?

James Mitchell wrote:

  

   

It was added after 1.1 release.  That's why it is "in" in 


 

the docs, but
  

   

not available anywhere except in the nightlies.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx






 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 1:23 PM
To: Struts Users Mailing List
Subject: html:rewrite doesn't rewrite "action" contrary to docs?

The docs 
(http://jakarta.apache.org/struts/userGuide/struts-html.html
  

   

#rewrite) 

 

indicate that html:rewrite will rewrite an action, 
 

forward, href, or 
   

page attribute - but the "action" attribute isn't in the TLD 
and in the 
source for org.apache.struts.taglib.html.RewriteTag the call to 
RequestUtils.computeURL passes a hard-coded "null" in for 
 

the action 
   

parameter.

Why?

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


---
 

--
   

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]


  

   



 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: html:rewrite doesn't rewrite "action" contrary to docs?

2003-10-21 Thread Ruth, Brice
I have a drop-down select that jumps the user to a different country's 
site (e.g. from /US/whatever to /DE/index.do). For the select to work, I 
embed the link for the jump in the option's "value" attribute - so it 
looks like this:

US

The reason I need the rewrite (besides sessions and such) is that this 
is in a tile that will be referenced from pages that aren't all 
necessarily at the same hierarchy level.

Brice

James Mitchell wrote:

There are other ways to get around hard-coding ".do" anywhere in your
app.
What, specifically, are you rewriting?
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx


 

-----Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 1:46 PM
To: Struts Users Mailing List
Subject: Re: html:rewrite doesn't rewrite "action" contrary to docs?

I see. Well, I would prefer only to use stable release builds 
for this - 
so I can make do with adding ".do" on the end of my relative URLs and 
using "page" instead of "action" for now ... when will the 
next stable 
release come out?

James Mitchell wrote:

   

It was added after 1.1 release.  That's why it is "in" in 
 

the docs, but
   

not available anywhere except in the nightlies.



--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 1:23 PM
To: Struts Users Mailing List
Subject: html:rewrite doesn't rewrite "action" contrary to docs?

The docs 
(http://jakarta.apache.org/struts/userGuide/struts-html.html
   

#rewrite) 
 

indicate that html:rewrite will rewrite an action, forward, href, or 
page attribute - but the "action" attribute isn't in the TLD 
and in the 
source for org.apache.struts.taglib.html.RewriteTag the call to 
RequestUtils.computeURL passes a hard-coded "null" in for the action 
parameter.

Why?

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]


   

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: html:rewrite doesn't rewrite "action" contrary to docs?

2003-10-21 Thread Ruth, Brice
I see. Well, I would prefer only to use stable release builds for this - 
so I can make do with adding ".do" on the end of my relative URLs and 
using "page" instead of "action" for now ... when will the next stable 
release come out?

James Mitchell wrote:

It was added after 1.1 release.  That's why it is "in" in the docs, but
not available anywhere except in the nightlies.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx


 

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 1:23 PM
To: Struts Users Mailing List
Subject: html:rewrite doesn't rewrite "action" contrary to docs?

The docs 
(http://jakarta.apache.org/struts/userGuide/struts-html.html#rewrite) 
indicate that html:rewrite will rewrite an action, forward, href, or 
page attribute - but the "action" attribute isn't in the TLD 
and in the 
source for org.apache.struts.taglib.html.RewriteTag the call to 
RequestUtils.computeURL passes a hard-coded "null" in for the action 
parameter.

Why?

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


-
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]
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


html:rewrite doesn't rewrite "action" contrary to docs?

2003-10-21 Thread Ruth, Brice
The docs 
(http://jakarta.apache.org/struts/userGuide/struts-html.html#rewrite) 
indicate that html:rewrite will rewrite an action, forward, href, or 
page attribute - but the "action" attribute isn't in the TLD and in the 
source for org.apache.struts.taglib.html.RewriteTag the call to 
RequestUtils.computeURL passes a hard-coded "null" in for the action 
parameter.

Why?

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Help with URL localization (continued)

2003-10-21 Thread Ruth, Brice
Greetings.

As per my previous thread on the best way to create a URL structure like:

http://domain/us/whatever
http://domain/de/whatever
etc.
I've implemented the recommendations I received and now have a Filter 
listening to each request and setting the locale appropriately based on 
the country code specified in the URL. Working great :) I also have the 
.jsp I'm working with mapped to an action with a path like /us/index.do.

Now, within this index page, I have links in my navigation, being 
generated by the Struts HTML tags (html:link) - how would I best go 
about incorporating the country URL prefix (/us/, /de/, /fr/, etc.) 
without manually having to insert something like  - also, instead of setting up an 
action for each .jsp, for each language (/us/index.do; /de/index.do; 
/us/crafts/crafts.do; /de/crafts/crafts.do; etc.) - what's a better way 
of doing this? Can I create an action using 
org.apache.struts.actions.ForwardAction that uses a wildcard? So 
something like /*/index.do would have a parameter of /index.jsp and 
/*/crafts/crafts.do would have a parameter of /crafts/crafts.jsp.

I'm looking for guidance - best way of accomplishing my goals of 
code-reuse, ease-of-maintenance, as well as being able to provide the 
flexibility in URL naming that marketing would like to see.

Thanks,
Brice
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote:

On 10/20/2003 10:33 PM Ruth, Brice wrote:

Adam Hardy wrote:

On 10/20/2003 07:41 PM Ruth, Brice wrote:

Adam Hardy wrote:

On 10/20/2003 05:57 PM Ruth, Brice wrote:

Adam Hardy wrote:

If that's a real .jsp file then that has to be a real us 
directory in your website. If that's the case, you can set the 
locale via a tag in the JSP. Alternatively you could use a 
filter. Have you thought of character encoding? If you have to 
set the request character encoding, then you may as well take 
care of the locale at the same time. A popular method is to use 
a filter called SetCharacterEncodingFilter which is easy to find 
the source code for on google or the tomcat website somewhere.

I was talking about virtual directories that are just mappings 
which the action servlet looks at. If you aren't going to use a 
filter, you could set the locale in the action instead, by 
checking the mapping path for the locale code.

HTH
Adam
OK, I have to admit I'm a bit confused now :). I would like to be 
able to use a virtual directory structure, where /us/, /de/, 
/fr/, etc. just trigger something in Struts to set the locale 
appropriately, so that when /index.jsp is accessed under a 
particular virtual directory, its localized properly. Is this 
possible? As for character encoding, I hadn't really given it 
much thought and I'm not too familiar with filters, either ... is 
that a Struts feature or a JSP/Tomcat feature?

Thanks!

You would access /us/index.do, where *.do is the servlet mapping 
to struts in the web.xml, and /us/index is the struts action 
mapping to index.jsp. The real path of the index.jsp is hidden 
from public view by struts.

I doesn't have to be *.do - you can set up web.xml to map any 
pattern to struts - for instance /us/index.schmindex would be 
*.schmindex

Filters are not struts - they're in the J2EE servlet spec. You set 
them up in web.xml as well. They're a lead pipe cinch. They act on 
a mapping which the request must match for them to take effect, 
but most of the time in this sort of situation, the mapping is 
just /* for everything.

Tomcat processes the filters on the request before passing it to 
struts.

Adam

OK, so I understand hiding the .jsp from the world with Struts, 
that's cool by me - I can handle that. So in that context, the 
virtual paths makes sense. As for the filters, would I set up a 
filter for say /us, /de, /fr - and then have Tomcat add the correct 
locale to the session before the request is passed on to Struts? Is 
that the use of filters in this situation?

Brice

it seems to me that the best use of the filter would be just to have 
one which sees all the traffic, and then it can extract the locale 
code from the request URL, check that it's one you deal with :) and 
then saves the info to the user's session.

Adam

Cool, that's actually the route I'm taking now - just to test it out. 
Thanks a ton! :) I think between the various approaches, I have a 
plan now!

Brice

Great. Hope it works out.

Hehe, you'll be the first to know if it doesn't :)

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote:

On 10/20/2003 07:41 PM Ruth, Brice wrote:

Adam Hardy wrote:

On 10/20/2003 05:57 PM Ruth, Brice wrote:

Adam Hardy wrote:

If that's a real .jsp file then that has to be a real us directory 
in your website. If that's the case, you can set the locale via a 
tag in the JSP. Alternatively you could use a filter. Have you 
thought of character encoding? If you have to set the request 
character encoding, then you may as well take care of the locale 
at the same time. A popular method is to use a filter called 
SetCharacterEncodingFilter which is easy to find the source code 
for on google or the tomcat website somewhere.

I was talking about virtual directories that are just mappings 
which the action servlet looks at. If you aren't going to use a 
filter, you could set the locale in the action instead, by 
checking the mapping path for the locale code.

HTH
Adam
OK, I have to admit I'm a bit confused now :). I would like to be 
able to use a virtual directory structure, where /us/, /de/, /fr/, 
etc. just trigger something in Struts to set the locale 
appropriately, so that when /index.jsp is accessed under a 
particular virtual directory, its localized properly. Is this 
possible? As for character encoding, I hadn't really given it much 
thought and I'm not too familiar with filters, either ... is that a 
Struts feature or a JSP/Tomcat feature?

Thanks!

You would access /us/index.do, where *.do is the servlet mapping to 
struts in the web.xml, and /us/index is the struts action mapping to 
index.jsp. The real path of the index.jsp is hidden from public view 
by struts.

I doesn't have to be *.do - you can set up web.xml to map any 
pattern to struts - for instance /us/index.schmindex would be 
*.schmindex

Filters are not struts - they're in the J2EE servlet spec. You set 
them up in web.xml as well. They're a lead pipe cinch. They act on a 
mapping which the request must match for them to take effect, but 
most of the time in this sort of situation, the mapping is just /* 
for everything.

Tomcat processes the filters on the request before passing it to 
struts.

Adam

OK, so I understand hiding the .jsp from the world with Struts, 
that's cool by me - I can handle that. So in that context, the 
virtual paths makes sense. As for the filters, would I set up a 
filter for say /us, /de, /fr - and then have Tomcat add the correct 
locale to the session before the request is passed on to Struts? Is 
that the use of filters in this situation?

Brice

it seems to me that the best use of the filter would be just to have 
one which sees all the traffic, and then it can extract the locale 
code from the request URL, check that it's one you deal with :) and 
then saves the info to the user's session.

Adam

Cool, that's actually the route I'm taking now - just to test it out. 
Thanks a ton! :) I think between the various approaches, I have a plan now!

Brice

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Our product content is going to be localized to the countries that the 
products are available in, and for that, we've built a database that 
holds this "content" and an interface to manage it - when adding a new 
translation, the user selects what language they're entering the 
translation for, and this is stored in the database - the keys used in 
the database to define the language are the same two by two codes used 
for locales (so en_US, fr_FR, etc.) so when pulling product data from 
the database into a JavaBean for the product (pseudo object-relational), 
the Bean has a collection of all the languages that this product is 
available in - this then can be rendered appropriately on the page in 
the user's locale.

Rajat Pandit wrote:

Hello,
A little off the topic though, but it this has always intrigued me about
building a multilingual website. I mean using the resources bundle u
could provide a translations from the labels but in case of building a
CMS (content management system) how would one enter the content in the
native language in which the site is translated?
I believe the solution that I have come up with is to save the same
content in different languages. But I am sure there would be a better
solution out there somewhere. I am new to struts development (and java
on the whole!) so pardon my ignorance!!.
rp

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 9:41 AM
To: Struts Users Mailing List
Subject: Re: Localization with Struts/Tiles and URLs

Craig R. McClanahan wrote:

 

Ruth, Brice wrote:

   

[snip]
On the first point, our site will have a global landing page that 
will present the user with flags to choose their locale.
 

This is semi-offtopic, but might be of interest.

When I worked on a large scale multi-lingual app in Europe a few years
   

 

ago, my intent was to do exactly this (but with a tweak -- the landing
   

 

page language was determined by the browser's default language 
setting).  However, I was informed by more than a few Europeans that 
using flags for language choice was not being culturally sensitive -- 
if I'm a French-speaking person living in Belgium or Switzerland, it's
   

 

going to irritate me greatly to have to click the flag of France -- 
and it's not a 1:1 relationship for any multilingual country (as these
   

 

two, among others, are).

Craig
   

Craig,

Thanks - I'll pass this on to our marketing folks. One note, though - 
our site will not only be localized for language, but will also be 
sensitive to the actual products our company offers in those markets. 
So, if we market products in Belgium and France, and they aren't the 
same, then we'll have two flags - one for Belgium, one for France - 
though that obviously creates a problem with countries that have more 
than one language, like Belgium and Switzerland, for instance.

 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote:

On 10/20/2003 05:57 PM Ruth, Brice wrote:

Adam Hardy wrote:

If that's a real .jsp file then that has to be a real us directory 
in your website. If that's the case, you can set the locale via a 
tag in the JSP. Alternatively you could use a filter. Have you 
thought of character encoding? If you have to set the request 
character encoding, then you may as well take care of the locale at 
the same time. A popular method is to use a filter called 
SetCharacterEncodingFilter which is easy to find the source code for 
on google or the tomcat website somewhere.

I was talking about virtual directories that are just mappings which 
the action servlet looks at. If you aren't going to use a filter, 
you could set the locale in the action instead, by checking the 
mapping path for the locale code.

HTH
Adam
OK, I have to admit I'm a bit confused now :). I would like to be 
able to use a virtual directory structure, where /us/, /de/, /fr/, 
etc. just trigger something in Struts to set the locale 
appropriately, so that when /index.jsp is accessed under a particular 
virtual directory, its localized properly. Is this possible? As for 
character encoding, I hadn't really given it much thought and I'm not 
too familiar with filters, either ... is that a Struts feature or a 
JSP/Tomcat feature?

Thanks!

You would access /us/index.do, where *.do is the servlet mapping to 
struts in the web.xml, and /us/index is the struts action mapping to 
index.jsp. The real path of the index.jsp is hidden from public view 
by struts.

I doesn't have to be *.do - you can set up web.xml to map any pattern 
to struts - for instance /us/index.schmindex would be *.schmindex

Filters are not struts - they're in the J2EE servlet spec. You set 
them up in web.xml as well. They're a lead pipe cinch. They act on a 
mapping which the request must match for them to take effect, but most 
of the time in this sort of situation, the mapping is just /* for 
everything.

Tomcat processes the filters on the request before passing it to struts.

Adam

OK, so I understand hiding the .jsp from the world with Struts, that's 
cool by me - I can handle that. So in that context, the virtual paths 
makes sense. As for the filters, would I set up a filter for say /us, 
/de, /fr - and then have Tomcat add the correct locale to the session 
before the request is passed on to Struts? Is that the use of filters in 
this situation?

Brice

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Craig R. McClanahan wrote:

Ruth, Brice wrote:

[snip]
On the first point, our site will have a global landing page that 
will present the user with flags to choose their locale.


This is semi-offtopic, but might be of interest.

When I worked on a large scale multi-lingual app in Europe a few years 
ago, my intent was to do exactly this (but with a tweak -- the landing 
page language was determined by the browser's default language 
setting).  However, I was informed by more than a few Europeans that 
using flags for language choice was not being culturally sensitive -- 
if I'm a French-speaking person living in Belgium or Switzerland, it's 
going to irritate me greatly to have to click the flag of France -- 
and it's not a 1:1 relationship for any multilingual country (as these 
two, among others, are).

Craig
Craig,

Thanks - I'll pass this on to our marketing folks. One note, though - 
our site will not only be localized for language, but will also be 
sensitive to the actual products our company offers in those markets. 
So, if we market products in Belgium and France, and they aren't the 
same, then we'll have two flags - one for Belgium, one for France - 
though that obviously creates a problem with countries that have more 
than one language, like Belgium and Switzerland, for instance.

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote:

On 10/20/2003 04:47 PM Ruth, Brice wrote:

Adam Hardy wrote:

On 10/17/2003 09:56 PM Ruth, Brice wrote:

I'm looking for some guidance on how best to go about a requirement 
I have from our marketing as far as URL naming goes. We're 
developing an international (localized) site and we have a 
requirement that the URLs look something like this:

domain/us/
domain/fr/
domain/de/
etc.
first thing you've got to decide is whether you are going to select 
that locale based on their browser settings, or whether you are 
going to show them the default locale first and let them click on 
their chosen flag.


On the first point, our site will have a global landing page that 
will present the user with flags to choose their locale. So with that 
point of entry, I'm set - I can have the flags link to an action that 
sets the selected locale in the user's session and sets a cookie, 
possibly, so that they don't have to go through that again when they 
return.

As for how the site is localized, some of that I'm still determining, 
but for the most part, I'm going to take advantage of resource files 
as well as localized tile definitions, to the greatest extent 
possible. There will be areas of the site that aren't shared between 
countries, however, that will likely be served from static files, or 
dynamic files that are only localized to a particular language.

I think I kind of understand the solution proposed with the wildcards 
.. but one of the things I'm fuzzy on is how to handle the situation 
of deep-links - if someone links to http://domain/us/index.jsp - then 
somehow, the locale needs to be initted to 'en_US', right? - without 
relying on there being a cookie present from a previous visit, of 
course. If I split out the mappings for each locale, can I set the 
default locale for that mapping in struts-config.xml or is this 
something that's done in web.xml/server.xml?


If that's a real .jsp file then that has to be a real us directory in 
your website. If that's the case, you can set the locale via a tag in 
the JSP. Alternatively you could use a filter. Have you thought of 
character encoding? If you have to set the request character encoding, 
then you may as well take care of the locale at the same time. A 
popular method is to use a filter called SetCharacterEncodingFilter 
which is easy to find the source code for on google or the tomcat 
website somewhere.

I was talking about virtual directories that are just mappings which 
the action servlet looks at. If you aren't going to use a filter, you 
could set the locale in the action instead, by checking the mapping 
path for the locale code.

HTH
Adam
OK, I have to admit I'm a bit confused now :). I would like to be able 
to use a virtual directory structure, where /us/, /de/, /fr/, etc. just 
trigger something in Struts to set the locale appropriately, so that 
when /index.jsp is accessed under a particular virtual directory, its 
localized properly. Is this possible? As for character encoding, I 
hadn't really given it much thought and I'm not too familiar with 
filters, either ... is that a Struts feature or a JSP/Tomcat feature?

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: Localization with Struts/Tiles and URLs

2003-10-20 Thread Ruth, Brice
Adam Hardy wrote:

On 10/17/2003 09:56 PM Ruth, Brice wrote:

Greetings, all.

I'm looking for some guidance on how best to go about a requirement I 
have from our marketing as far as URL naming goes. We're developing 
an international (localized) site and we have a requirement that the 
URLs look something like this:

domain/us/
domain/fr/
domain/de/
etc.
Now, I have a pretty decent grasp on how I'm going to use the 
localization features of Tiles and Struts to localize the site, but 
how best do I go about fulfilling the requirement outlined above?


Hi Brice,
first thing you've got to decide is whether you are going to select 
that locale based on their browser settings, or whether you are going 
to show them the default locale first and let them click on their 
chosen flag.

You also don't say if you have all your localized text in resources 
files, or whether you also have large amounts of text in static files, 
one language per file.

I tried to remember whether you can use wild cards in your action 
mapping paths in struts-config.xml, but I can't get my brain in gear 
right now.

So if you can, map your actions like so "/*/*/whatever.do" but if not, 
then you might have to repeat the whole mapping for each locale.

Fortunately the servlet mapping to the struts action servlet 
definitely takes wildcard characters, so *.do will match all your 
locale URLs.

Have fun,
Adam
On the first point, our site will have a global landing page that will 
present the user with flags to choose their locale. So with that point 
of entry, I'm set - I can have the flags link to an action that sets the 
selected locale in the user's session and sets a cookie, possibly, so 
that they don't have to go through that again when they return.

As for how the site is localized, some of that I'm still determining, 
but for the most part, I'm going to take advantage of resource files as 
well as localized tile definitions, to the greatest extent possible. 
There will be areas of the site that aren't shared between countries, 
however, that will likely be served from static files, or dynamic files 
that are only localized to a particular language.

I think I kind of understand the solution proposed with the wildcards .. 
but one of the things I'm fuzzy on is how to handle the situation of 
deep-links - if someone links to http://domain/us/index.jsp - then 
somehow, the locale needs to be initted to 'en_US', right? - without 
relying on there being a cookie present from a previous visit, of 
course. If I split out the mappings for each locale, can I set the 
default locale for that mapping in struts-config.xml or is this 
something that's done in web.xml/server.xml?

Thanks for the response on this - the best way of going about this 
hasn't quite crystallized yet, but I think I'm getting close.

Thanks again.
Brice
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: org.apache.action.struts.*

2003-10-17 Thread Ruth, Brice
And even more convenient is the way that you can use Eclipse to show all 
the packages/classes/etc. when you add a library to a project. ;)

Andy Engle wrote:

"Ruth, Brice" <[EMAIL PROTECTED]> wrote:

 

struts.jar

Martin Gainty wrote:

   

Which jar contains org.apache.struts.action.*
 

Another tip: Sometimes I use WinZip to look at jar files, which will
show you all the classes and paths of those classes that are wrapped up
in a jar file.  Also, you can do the Windoze "search for files
containing text..." in a specific directory, which will also point out
which jar file may be containing a specific package or class name.
Andy

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

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: org.apache.action.struts.*

2003-10-17 Thread Ruth, Brice
struts.jar

Martin Gainty wrote:

Which jar contains org.apache.struts.action.*

Many Thanks,

-Martin
 

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Localization with Struts/Tiles and URLs

2003-10-17 Thread Ruth, Brice
Greetings, all.

I'm looking for some guidance on how best to go about a requirement I 
have from our marketing as far as URL naming goes. We're developing an 
international (localized) site and we have a requirement that the URLs 
look something like this:

domain/us/
domain/fr/
domain/de/
etc.
Now, I have a pretty decent grasp on how I'm going to use the 
localization features of Tiles and Struts to localize the site, but how 
best do I go about fulfilling the requirement outlined above?

Thanks!

--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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