Actions in Global forwards

2004-03-15 Thread Gerald_Beattie
When I add a Action to a global forward I get a IDE syntax error of :

Warning Target /ContentView.do does not exist in the following modules: /

Does anyone know why I would not be able to add a Action as a Global 
forward?



global forwards with modules (Again)

2004-02-13 Thread Matt Bathje
Hi all. I asked this a while back and never got an answer, so figured I'd
ask again and see if there were any bites.

I am trying to have the admin area of my project use modules, but so far it
is a no go. I setup the module as:


  config/admin
  /WEB-INF/struts-config-admin.xml


and if I type urls under /admin/ into the location bar, they work. If I try
to use any of the global forwards I have defined in struts-config-admin.xml
though, they do not. This becomes a problem rapidly, because (like good
struts users) all of our javascript, style sheets, etc. are setup as global
forwards, and the index.jsp page under the /admin/ directory has


Any idea why the forwards aren't being followed, and how to correct the
problem?

I have tried changing that to forward="/admin/adminLogin" and that didn't
help either. Right now the forwards are setup like the following:



I have tried changing it to name="/admin/adminLogin",
path="/admin/login.do", and messing around with the contextRelative
attribute, and nothing seems to help - it always says it can't find the
forward.

Any help would be greatly appreciated.

Thanks again,
Matt Bathje


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



global forwards in modules

2004-01-27 Thread Matt Bathje
Hi again - yet another question from me, sorry.

I am trying to have the admin area of my project use modules, but so far it
is a no go. I setup the module as:


  config/admin
  /WEB-INF/struts-config-admin.xml


and if I type urls under /admin/ into the location bar, they work. If I try
to use any of the global forwards I have defined in struts-config-admin.xml
though, they do not. This becomes a problem rapidly, because (like good
struts users) all of our javascript, style sheets, etc. are setup as global
forwards, and the index.jsp page under the /admin/ directory has


Any idea why the forwards aren't being followed, and how to correct the
problem?

I have tried changing that to forward="/admin/adminLogin" and that didn't
help either. Right now the forwards are setup like the following:



I have tried changing it to name="/admin/adminLogin",
path="/admin/login.do", and messing around with the contextRelative
attribute, and nothing seems to help - it always says it can't find the
forward.

Any help would be greatly appreciated.

Thanks again,
Matt Bathje


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



global forwards and update problems

2004-01-15 Thread Mathieu Grimault
Hello everyone !

I've got a page A with a form with several fields, the fields are populated via the 
reset() method in a corresponding ActionForm, datas are holding in the session.
After filling/modifying the datas in the form a user push a submit and is lead to a 
screen B. The Action corresponding to the A screen replace datas in the session.
On the B screen while i'm using a global forward to back to A screen, old datas are 
displayed but datas in the session have been replaced ! I suspect a cache issue or 
something like that Somebody has an idea to handle this ? 

Are there issues using a forward with redirect=true ? what's the differences betwen a 
redirect=true or false ?

regards, mathieu.

RE: Global Forwards & Request Attributes

2003-09-16 Thread Robert Taylor
When you redirect the request, you lose any existing attributes.
If you must redirect then you could append your String value as 
a request parameter to the forward path or... you could simply
forward instead of redirect.

robert

> -Original Message-
> From: Pat Quinn [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 16, 2003 12:10 PM
> To: [EMAIL PROTECTED]
> Subject: Global Forwards & Request Attributes
> 
> 
> I have a struts action which sets a String value as an attribute in the 
> request scope i then redirect to a global forward. But the value never 
> appears in my jsp i'm using the  tag lib.
> 
> 
> Any ideas what i could be doing wrong here or do global forwards support 
> request attribute population??
> 
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*. 
> http://join.msn.com/?page=features/featuredemail
> 
> 
> -
> 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]



Global Forwards & Request Attributes

2003-09-16 Thread Pat Quinn
I have a struts action which sets a String value as an attribute in the 
request scope i then redirect to a global forward. But the value never 
appears in my jsp i'm using the  tag lib.

Any ideas what i could be doing wrong here or do global forwards support 
request attribute population??

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


RE: Global Forwards and Tiles

2003-08-15 Thread Hue Holleran
Hi David,

I think the fundamental problem here is that global-forwards are not
available to be called from outside the server. If one considers the URL one
might use to call global-forwards, e.g.:

http://myHost/myApp/myForward

... then this will not be passed-to struts - and will instead look for a
servlet mapping matching the "myForward" pattern - and probably won't find
one.

If you look at the result of a global-forwards/forward generated by say:

Forward Me!

... e.g. where the following configures the forward in struts-config to
forward to the "myAction" action:

...

...

...

...

... then it will likely be of the form when rendered to HTML:

Forward Me!

... then this _will_ go through the struts servlet and be correctly mapped
to an action.

If you wanted a way of configuring a method of calling any tiles def from a
jsp then one option would be to have a generic action than can fwd to the
tiles def, e.g. define a bean and action in struts-config:

...

...



...

...

...

...



...

...

The action code would look like this (ok, error handling could be a bit
tighter(!)) but this gives the idea:

package tld.domain.actions;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletContext;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;

import org.apache.struts.action.DynaActionForm;

public final class TilesDefFwdAction extends Action {

public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
 throws Exception {
String tilesDef = "";
// Get our parameter(s) from the form
DynaActionForm dynaForm = (DynaActionForm) form;
try {
tilesDef = dynaForm.get("tilesDef").toString();
} catch (Exception ex) {
// Something went wrong - send to error page
return ( mapping.findForward("tiles-def-not-passed") );
}
// Forward to tiles def
return ( new ActionForward(tilesDef,false) );
}
}

This would then allow a URL of the following format, e.g:

http://www.domain.tld/myApp/do/tilesDefFwd?tilesDef=myDef

... that would then forward to the tiles def "myDef", e.g.

Forward Me To Tiles
Def!

Alternatively, there may already be a mechanism to do this natively in
struts - but have attached the above code as this is what I wrote when I was
getting to grips with forwards/actions/tiles-defs etc - and hopefully it
will be of some help!

Hue.

> -Original Message-
> From: David Holtzhouser [mailto:[EMAIL PROTECTED]
> Sent: 15 August 2003 14:57
> To: [EMAIL PROTECTED]
> Subject: Global Forwards and Tiles
>
>
> I've attached a discussion with a fellow developer
> regarding Global Forwards and Tiles.  The tiles-defs
> are in xml if that makes any difference.
>
>  *
>  Here's the delima. I can configure a Global Forward
> that maps to my tiles definition. If I refer to this
> global forward from an Action then it finds my tile
> def. But, If I call this global forward from a jsp,
> then it craps out. But normally you can call a global
> forward from a JSP and it will work fine, as long as
> you are not using tiles defs. So, it seems like if I
> want to get from one JSP to another tiles def, then I
> have to go through a Action, which could be a
> ForwardAction. My Actions can use my global forwards,
> but my pages cannot. It's kind of weird, but I at
> least I understand what I can and can't do now.
>   *
>
> So are thought is that Global ActionForwards defined
> in the  section of the
> struts-config.xml really don't go through the
> ActionServlet at all, or somehow skip allowing the
> ActionServlet's, RequestProcessor delegate:
>
>  processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
>
> to handle it.
>
> Can anyone provide clarification on this?
>
> Thanks
>
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> 

RE: Global Forwards and Tiles

2003-08-15 Thread Witbeck, Shane
My solution to this problem is not to define any global forwards and route
everything through an Action. If you are forwarding to a simple JSP defined
by a tile then define an action-mapping using a ForwardAction. 

HTH,

Shane

-Original Message-
From: David Holtzhouser [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 9:57 AM
To: [EMAIL PROTECTED]
Subject: Global Forwards and Tiles


I've attached a discussion with a fellow developer
regarding Global Forwards and Tiles.  The tiles-defs
are in xml if that makes any difference.

 *
 Here's the delima. I can configure a Global Forward
that maps to my tiles definition. If I refer to this
global forward from an Action then it finds my tile
def. But, If I call this global forward from a jsp,
then it craps out. But normally you can call a global
forward from a JSP and it will work fine, as long as
you are not using tiles defs. So, it seems like if I
want to get from one JSP to another tiles def, then I
have to go through a Action, which could be a
ForwardAction. My Actions can use my global forwards,
but my pages cannot. It's kind of weird, but I at
least I understand what I can and can't do now.
  *

So are thought is that Global ActionForwards defined
in the  section of the
struts-config.xml really don't go through the
ActionServlet at all, or somehow skip allowing the
ActionServlet's, RequestProcessor delegate:



to handle it.  

Can anyone provide clarification on this?

Thanks



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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]



Global Forwards and Tiles

2003-08-15 Thread David Holtzhouser
I've attached a discussion with a fellow developer
regarding Global Forwards and Tiles.  The tiles-defs
are in xml if that makes any difference.

 *
 Here's the delima. I can configure a Global Forward
that maps to my tiles definition. If I refer to this
global forward from an Action then it finds my tile
def. But, If I call this global forward from a jsp,
then it craps out. But normally you can call a global
forward from a JSP and it will work fine, as long as
you are not using tiles defs. So, it seems like if I
want to get from one JSP to another tiles def, then I
have to go through a Action, which could be a
ForwardAction. My Actions can use my global forwards,
but my pages cannot. It's kind of weird, but I at
least I understand what I can and can't do now.
  *

So are thought is that Global ActionForwards defined
in the  section of the
struts-config.xml really don't go through the
ActionServlet at all, or somehow skip allowing the
ActionServlet's, RequestProcessor delegate:



to handle it.  

Can anyone provide clarification on this?

Thanks



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Are only Global Forwards legit for getInputForward()?

2003-06-11 Thread Doyle, Michael J
Hi,

I couldn't understand why my DynaValidatorForm was giving me a blank page
when validation failed. 

I had specified "/index.jsp" as my input. I figured out that a blank page
with no other exception means Struts can't find the path it's supposed to.

I found this bugzilla ticket
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17429
 

It suggests that getInputForward doesn't work, but creating a new
ActionForward with getInput as a parameter does. I tried this in an Action
class and found this to be true. But this didn't help -- Validator seems to
call getInputForward.

Well... struts-example declares a global forward "logon" and uses that as
the input for the logon page. I tried the same, it works.

So my question:

--> Must I declare a global forward and then use that as the input every
time I want to use the Validator?

Or

--> Is getInputForward() broken as suggested in the ticket?

Thanks
- Mike


FW: Find global forwards in individual module

2003-05-31 Thread Zaili_Xu


Hi, guys

We are using multi modules in Struts. We find a prolem in finding the global forward 
specified in the default config. For example, our UserProfileThanksAction is configed 
in profile module and "home" is the name of a global forward specified in the default 
config, when we say 

return mapping.findForward("home");

in UserProfileThanksAction the mapping is not able to find "home".

We are not using the switch action. Instead we are specifying modul prefix in config 
file. For example, 

What is the appropriate way to find global forwards in individual module ?

Thanks in advance for your response.

Zaili Xu

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



Find global forwards in individual module

2003-05-31 Thread Zaili_Xu
Hi, guys

We are using multi modules in Struts. We find a prolem in finding the global forward 
specified in the default config. For example, our UserProfileThanksAction is configed 
in profile module and "home" is the name of a global forward specified in the default 
config, when we say 

return mapping.findForward("home");

in UserProfileThanksAction the mapping is not able to find "home".

We are not using the switch action. Instead we are specifying modul prefix in config 
file. For example, 

What is the appropriate way to find global forwards in individual module ?

Thanks in advance for your response.

Zaili Xu

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



Re: [Q] Using tiles definition in global-forwards...

2003-03-24 Thread David Graham
Tiles in a global forward has nothing to do with the issue.  The 
 tag does not call Tiles to process a definition.  Tiles is 
only called through its customized RequestProcessor.  I advise against using 
the forward tag at all because that function is business logic that should 
be in an Action.

David



From: John Nikolai <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: [Q] Using tiles definition in global-forwards...
Date: Mon, 24 Mar 2003 10:22:42 -0800
I have searched the mail archives for this and found the following message:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg61840.html

Basically I want to put a tiles definition into a global forward like this:

--



--
but when I call the following in index.jsp:

--
<%@ taglib uri="struts-logic" prefix="logic"%>

--
I get a 404 error saying:

-
The requested resource (/xyz/.welcome) is not available.
-
The workaround posted in the message referenced above says to create a 
custom action forward and call it with a parameter with the tiles 
definition. This, to me, seems like a quick hack to work around the fact 
that tiles is not quite fully integrated into struts yet. Of course I could 
be completely wrong saying that and if so I apologize (with a nod to Cedric 
for his hard work! ;-). I wrote up a bug (#18241: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18241)  which was closed 
saying this was already working.

Can someone please help and show me what I'm doing wrong?
Thanks for your help,
 - John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: [Q] Using tiles definition in global-forwards...

2003-03-24 Thread John Nikolai
Oops... forgot to mention that I'm using:  jakarta-struts-1.1-rc1

On Monday, March 24, 2003, at 10:22 AM, John Nikolai wrote:

I have searched the mail archives for this and found the following  
message:

http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg61840.html

Basically I want to put a tiles definition into a global forward like  
this:

--



--
but when I call the following in index.jsp:

--
<%@ taglib uri="struts-logic" prefix="logic"%>

--
I get a 404 error saying:

-
The requested resource (/xyz/.welcome) is not available.
-
The workaround posted in the message referenced above says to create a  
custom action forward and call it with a parameter with the tiles  
definition. This, to me, seems like a quick hack to work around the  
fact that tiles is not quite fully integrated into struts yet. Of  
course I could be completely wrong saying that and if so I apologize  
(with a nod to Cedric for his hard work! ;-). I wrote up a bug  
(#18241: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18241)   
which was closed saying this was already working.

Can someone please help and show me what I'm doing wrong?
Thanks for your help,
 - John
-
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]


[Q] Using tiles definition in global-forwards...

2003-03-24 Thread John Nikolai
I have searched the mail archives for this and found the following 
message:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg61840.html

Basically I want to put a tiles definition into a global forward like 
this:

--



--
but when I call the following in index.jsp:

--
<%@ taglib uri="struts-logic" prefix="logic"%>

--
I get a 404 error saying:

-
The requested resource (/xyz/.welcome) is not available.
-
The workaround posted in the message referenced above says to create a 
custom action forward and call it with a parameter with the tiles 
definition. This, to me, seems like a quick hack to work around the 
fact that tiles is not quite fully integrated into struts yet. Of 
course I could be completely wrong saying that and if so I apologize 
(with a nod to Cedric for his hard work! ;-). I wrote up a bug (#18241: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18241)  which was 
closed saying this was already working.

Can someone please help and show me what I'm doing wrong?
Thanks for your help,
 - John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: REPOST - Using tiles mappings in global forwards

2003-03-05 Thread Simon Kelly

> 
> 
> 
>
> I have inserted the following code into a jsp file to test the forwards:
> <%@ taglib uri="struts-logic" prefix="logic"%>
> 
>

Try changing the path to /WEB-INF/pages/my.default or similar.  It may be
that the mappings pointer to where your my.default resides is not right, so
have a check on those as well.

Cheers

Simon


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



REPOST - Using tiles mappings in global forwards

2003-03-05 Thread White, Joshua A (CASD, IT)
If the "forward" attribute of the action element can take both an actual
path or a tiles definition to forward to, shouldn't the global forwards
element have similar functionality?

In Chuck Cavaness's book (Programming Jakarta Struts), he attempts to do
this on page 347.  I just can't get it to work.  Is this perhaps
functionality which is now broken?

Joshua





I have successfully set up tiles using a tiles-def.xml file.  In this file,
I have set up a definition for "my.default".

I have been successfully able to view this layout by inserting the following
code into a jsp:
<%@ taglib uri="struts-html" prefix="html"%>
<%@ taglib uri="struts-bean" prefix="bean"%>
<%@ taglib uri="struts-tiles" prefix="tiles"%>


Again, this works fine.  I have been attempting to declare a global forward
mapping for the same layout:




I have inserted the following code into a jsp file to test the forwards:
<%@ taglib uri="struts-logic" prefix="logic"%>


When I hit the page containing this code, Tomcat gives me a 404 ("The
requested resource (/myapp/my.default) is not available.").  Whats happening
here?  

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



RE: Multiple query params for global forwards

2002-12-12 Thread Viva Chu
Here's the reason why for anyone else with a similar problem:

Since it is an xml file, you need to make sure to use entity references
where appropriate (i.e., changing & to &).

  



  

-Original Message-
From: Viva Chu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 3:26 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards


Actually this was a typo only in my email when constructing my example.
Uniqueness of the forward name is not my problem.  Here's the example again
written correctly:

  



  


-Original Message-
From: Scott Dickson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards


Forward names whether they are global or local have to be unique.

Just for clarification...

When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.

Hope this helps.

Scott

-Original Message-
From: Viva Chu [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 December 2002 9:34
To: [EMAIL PROTECTED]
Subject: Multiple query params for global forwards


I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes.  Is this
not allowed?  If not, anyone know the reason why?

  



  



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


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



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




RE: Multiple query params for global forwards

2002-12-12 Thread Viva Chu
Actually this was a typo only in my email when constructing my example.
Uniqueness of the forward name is not my problem.  Here's the example again
written correctly:

  



  


-Original Message-
From: Scott Dickson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: Multiple query params for global forwards


Forward names whether they are global or local have to be unique.

Just for clarification...

When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.

Hope this helps.

Scott

-Original Message-
From: Viva Chu [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 December 2002 9:34
To: [EMAIL PROTECTED]
Subject: Multiple query params for global forwards


I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes.  Is this
not allowed?  If not, anyone know the reason why?

  



  



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


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




RE: Multiple query params for global forwards

2002-12-12 Thread Scott Dickson
Forward names whether they are global or local have to be unique.

Just for clarification...

When you reference the name of the Forward in your action servlet struts
looks for a local Forward if it can't find one it will look for a Global
Forward.

Hope this helps.

Scott

-Original Message-
From: Viva Chu [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 December 2002 9:34
To: [EMAIL PROTECTED]
Subject: Multiple query params for global forwards


I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes.  Is this
not allowed?  If not, anyone know the reason why?

  



  



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





Multiple query params for global forwards

2002-12-12 Thread Viva Chu
I'm trying to configure a global forward with multiple query parameters and
get a parse error from the Digester when my web app initializes.  Is this
not allowed?  If not, anyone know the reason why?

  



  




Problem with Global Forwards when using Scaffold FindForwardAction

2002-11-13 Thread Steve_Akins
Hi all,

Was wondering if anyone has used FindForwardAction successfully with global
forwards?

I can't see how the current version can work, even if the commented code is
uncommented.

Any ideas?


Steve Akins
Team Leader, Frameworks, J2EE Engineering
Development Centre
Financial Services Australia Technology


( +61 3 8641 2846 2 +61 3 8641 4152 : [EMAIL PROTECTED]


National Australia Bank Limited
4th Floor/ 500 Bourke St
Melbourne, Victoria 3000
__
The information contained in this email communication may be confidential.
You
should only read, disclose, re-transmit, copy, distribute, act in reliance
on or
commercialise the information if you are authorised to do so. If you are
not the
intended recipient of this email communication, please notify us
immediately by
email to [EMAIL PROTECTED] or reply by email direct to the sender
and then destroy any electronic or paper copy of this message.  Any views
expressed in this email communication are those of the individual sender,
except
where the sender specifically states them to be the views of a member of
the
National Australia Bank Group of companies.  The National Australia Bank
Group
of companies does not represent, warrant or guarantee that the integrity of
this
communication has been maintained nor that the communication is free of
errors,
virus or interference.


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: global forwards vs. simple forwards

2002-10-22 Thread Lacerda, Wellington (AFIS)
Hi Marcus

Global forwards are to be used when you have paths inside the application
that are recurrent and common to a number of actions. For example: logon.
Every sensitive action in the application will have to check the credentials
of the user, and if the user hasn't logged on yet, the application must
transfer him(er) to the logon page.

A regular forward ordinarily transfers control to some other component in
the application. Most commonly used to go to a view component. You can use
ordinary forwards instead of globals, but it will be redundant.

You can also use the same forward name of a global forward inside an Action
forward. In that case the Action's will override the definition of the
global for that specific mapping (which is the case in your example).

Wellington L. S. da Silva
Author of "JSP and Tag Libraries for Web Development"
FAO of the UN - Consultant

-Original Message-
From: Marcus Biel [mailto:Marcus.Biel@;bmw.de]
Sent: Tuesday, October 22, 2002 3:30 PM
To: [EMAIL PROTECTED]
Subject: global forwards vs. simple forwards


When to use global forwards and when to use regular action forwards ?





or:






???

thanks in advance,

cya,

marcus

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




global forwards vs. simple forwards

2002-10-22 Thread Marcus Biel
When to use global forwards and when to use regular action forwards ?





or:






???

thanks in advance,

cya,

marcus

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: Using global forwards to tile definitions?

2002-09-11 Thread Cedric Dumoulin



Dylan van Iersel wrote:

>On Tue, 2002-09-10 at 19:33, Cedric Dumoulin wrote:
>
>  Yes, the problem comes from  . It is not a bug: Tiles 
>definitions name are logical names, not URLs.  require a real 
>URL to work because its result is interpreted on the server side.
>
>
>The tag is processed on the server side but the actual result is an URL
>which get sent back to the client within the HTML. That leads me to
>think that the tag can generate a 'normal' URL from a symbolic name
>perfectly well. 
> 
>  
>
  Yes, the tag is able to generate an URL from a symbolic name, but 
there is no URL associated to a Tiles ! The path associated to a Tiles 
is the URL of the template to use. This template URL is used by several 
definitions, and can't be used in the link tag. What do you see for the 
URL generated by  from a definition name ?

  Cedric

>
>[EMAIL PROTECTED] wrote:
>
>>Well, that does help.  I can stop banging my head against the desk
>>now...
>>
>>In the struts book online it covers this...
>>
>>>extends="storefront.default">
>>
>>
>>  
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>So this is a problem in the HTML:Link forward code?  Is it intentional? 
>>Is it something I can look at fixing?
>>
>>Thanks for the answer!
>>
>>
>>
>>
>>-Original Message-
>>From: cedric [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, September 10, 2002 12:24 PM
>>To: struts-user
>>Subject: Re: Using global forwards to tile definitions?
>>
>>
>>
>>  The  tag can't be used with a Tiles name as path. You need 
>>to use an intermediate action. An often used solution is to have an 
>>action taking a definition name as http parameter, like the tiles 
>>DefinitionDispatcherAction. This action should check if the provided 
>>definition name is allowed, otherwise it is possible to access all your 
>>definitions.
>>  Your global forward could now look like:
>>
>>   >path="path.to.dispatcheraction.do?def=plantsec.index"/>
>>
>>  Hope this help,
>> Cedric
>>
>>[EMAIL PROTECTED] wrote:
>>
>>  
>>
>>>I'm going back and trying to implement some "best practices" that I
>>>skipped over in the beginning.  One of which is to use global forwards
>>>alot.   
>>>
>>>Say I have some global forwards that look like this:
>>>
>>>
>>>  
>>>  
>>>  
>>>
>>>
>>>And in my JSP pages I use:
>>>
>>>Contact Us
>>>
>>>I can see the benefit that gives me.
>>>
>>>But if I have a tiles definition for the plantsec.faq it does not seem
>>>to want to run that.  Am I doing something wrong or do I need to use an
>>>action for every one of those?  That is the only way I can seem to make
>>>it work...
>>>
>>>Any help is appreciated
>>>
>>>
>>>
>>>
>>>
>>>
>>>William B Chmura
>>>Internet Services Admin / IT Department 
>>>Ensign-Bickford Industries, Inc and subsidiaries
>>>
>>>Tel: 860.843.1542
>>>660 Hopmeadow Street
>>>Simsbury, CT  06070
>>>
>>>http://www.e-bind.com
>>>http://www.e-bco.com
>>>http://www.e-brealty.com
>>>http://www.eba-d.com
>>>http://www.applied-food.com
>>>
>>>
>>>
>>>
>>> 
>>>
>>>
>>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>  
>>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>Groeten, 
>
>Dylan 
>
> 
>Dylan van Iersel 
>E-mail:   [EMAIL PROTECTED]
>Web: http://www.van-iersel.org
>ICQ#:46244248 
> 
>
>
>  
>



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




Re: Using global forwards to tile definitions?

2002-09-10 Thread Dylan van Iersel

On Tue, 2002-09-10 at 19:33, Cedric Dumoulin wrote:

  Yes, the problem comes from  . It is not a bug: Tiles 
definitions name are logical names, not URLs.  require a real 
URL to work because its result is interpreted on the server side.


The tag is processed on the server side but the actual result is an URL
which get sent back to the client within the HTML. That leads me to
think that the tag can generate a 'normal' URL from a symbolic name
perfectly well. 


   Cedric

[EMAIL PROTECTED] wrote:

>Well, that does help.  I can stop banging my head against the desk
>now...
>
>In the struts book online it covers this...
>
>extends="storefront.default">
>
>
>  
>
>
>
>
>
>
>
>
>
>So this is a problem in the HTML:Link forward code?  Is it intentional? 
>Is it something I can look at fixing?
>
>Thanks for the answer!
>
>
>
>
>-Original Message-
>From: cedric [mailto:[EMAIL PROTECTED]]
    >Sent: Tuesday, September 10, 2002 12:24 PM
>To: struts-user
>Subject: Re: Using global forwards to tile definitions?
>
>
>
>  The  tag can't be used with a Tiles name as path. You need 
>to use an intermediate action. An often used solution is to have an 
>action taking a definition name as http parameter, like the tiles 
>DefinitionDispatcherAction. This action should check if the provided 
>definition name is allowed, otherwise it is possible to access all your 
>definitions.
>  Your global forward could now look like:
>
>   path="path.to.dispatcheraction.do?def=plantsec.index"/>
>
>  Hope this help,
> Cedric
>
    >[EMAIL PROTECTED] wrote:
>
>  
>
    >>I'm going back and trying to implement some "best practices" that I
>>skipped over in the beginning.  One of which is to use global forwards
>>alot.   
>>
>>Say I have some global forwards that look like this:
>>
>>
>>  
>>  
>>  
>>
>>
>>And in my JSP pages I use:
>>
>>Contact Us
>>
>>I can see the benefit that gives me.
>>
>>But if I have a tiles definition for the plantsec.faq it does not seem
>>to want to run that.  Am I doing something wrong or do I need to use an
>>action for every one of those?  That is the only way I can seem to make
>>it work...
>>
>>Any help is appreciated
>>
>>
>>
>>
>>
>>
>>William B Chmura
>>Internet Services Admin / IT Department 
>>Ensign-Bickford Industries, Inc and subsidiaries
>>
>>Tel: 860.843.1542
>>660 Hopmeadow Street
>>Simsbury, CT  06070
>>
>>http://www.e-bind.com
>>http://www.e-bco.com
>>http://www.e-brealty.com
>>http://www.eba-d.com
>>http://www.applied-food.com
>>
>>
>>
>>
>> 
>>
>>
>>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>  
>



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


Groeten, 

Dylan 

 
Dylan van Iersel 
E-mail:   [EMAIL PROTECTED]
Web: http://www.van-iersel.org
ICQ#:46244248 
 




Re: Using global forwards to tile definitions?

2002-09-10 Thread Cedric Dumoulin


  Yes, the problem comes from  . It is not a bug: Tiles 
definitions name are logical names, not URLs.  require a real 
URL to work because its result is interpreted on the server side.

   Cedric

[EMAIL PROTECTED] wrote:

>Well, that does help.  I can stop banging my head against the desk
>now...
>
>In the struts book online it covers this...
>
>extends="storefront.default">
>
>
>  
>
>
>
>
>
>
>
>
>
>So this is a problem in the HTML:Link forward code?  Is it intentional? 
>Is it something I can look at fixing?
>
>Thanks for the answer!
>
>
>
>
>-Original Message-
>From: cedric [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 10, 2002 12:24 PM
>To: struts-user
>Subject: Re: Using global forwards to tile definitions?
>
>
>
>  The  tag can't be used with a Tiles name as path. You need 
>to use an intermediate action. An often used solution is to have an 
>action taking a definition name as http parameter, like the tiles 
>DefinitionDispatcherAction. This action should check if the provided 
>definition name is allowed, otherwise it is possible to access all your 
>definitions.
>  Your global forward could now look like:
>
>   path="path.to.dispatcheraction.do?def=plantsec.index"/>
>
>  Hope this help,
> Cedric
>
>[EMAIL PROTECTED] wrote:
>
>  
>
>>I'm going back and trying to implement some "best practices" that I
>>skipped over in the beginning.  One of which is to use global forwards
>>alot.   
>>
>>Say I have some global forwards that look like this:
>>
>>
>>  
>>  
>>  
>>
>>
>>And in my JSP pages I use:
>>
>>Contact Us
>>
>>I can see the benefit that gives me.
>>
>>But if I have a tiles definition for the plantsec.faq it does not seem
>>to want to run that.  Am I doing something wrong or do I need to use an
>>action for every one of those?  That is the only way I can seem to make
>>it work...
>>
>>Any help is appreciated
>>
>>
>>
>>
>>
>>
>>William B Chmura
>>Internet Services Admin / IT Department 
>>Ensign-Bickford Industries, Inc and subsidiaries
>>
>>Tel: 860.843.1542
>>660 Hopmeadow Street
>>Simsbury, CT  06070
>>
>>http://www.e-bind.com
>>http://www.e-bco.com
>>http://www.e-brealty.com
>>http://www.eba-d.com
>>http://www.applied-food.com
>>
>>
>>
>>
>> 
>>
>>
>>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>  
>



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




RE: Using global forwards to tile definitions?

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


Re: Using global forwards to tile definitions?

2002-09-10 Thread Cedric Dumoulin


  The  tag can't be used with a Tiles name as path. You need 
to use an intermediate action. An often used solution is to have an 
action taking a definition name as http parameter, like the tiles 
DefinitionDispatcherAction. This action should check if the provided 
definition name is allowed, otherwise it is possible to access all your 
definitions.
  Your global forward could now look like:

   

  Hope this help,
 Cedric

[EMAIL PROTECTED] wrote:

>I'm going back and trying to implement some "best practices" that I
>skipped over in the beginning.  One of which is to use global forwards
>alot.   
>
>Say I have some global forwards that look like this:
>
>
>   
>   
>   
>
>
>And in my JSP pages I use:
>
>Contact Us
>
>I can see the benefit that gives me.
>
>But if I have a tiles definition for the plantsec.faq it does not seem
>to want to run that.  Am I doing something wrong or do I need to use an
>action for every one of those?  That is the only way I can seem to make
>it work...
>
>Any help is appreciated
>
>
>
>
>
>
>William B Chmura
>Internet Services Admin / IT Department 
>Ensign-Bickford Industries, Inc and subsidiaries
>
>Tel: 860.843.1542
>660 Hopmeadow Street
>Simsbury, CT  06070
>
>http://www.e-bind.com
>http://www.e-bco.com
>http://www.e-brealty.com
>http://www.eba-d.com
>http://www.applied-food.com
>
> 
>
>
>  
>



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




Using global forwards to tile definitions?

2002-09-10 Thread wbchmura


BDY.RTF
Description: RTF file


RE: global forwards in forms.

2002-09-08 Thread Todd Pierce

Thanks for the information, Ted. I note with amusement that the debate for
this feature is still warm ;-) I'd vote for it!

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, 6 September 2002 8:41 PM
To: Struts Users Mailing List
Subject: Re: global forwards in forms.


There's actually a feature requite there, but it's been marked "later".
A patch has also been submitted, but with everything else going on, I 
haven't been able to look at it closely enough to commit it.

http://issues.apache.org/bugzilla/show_bug.cgi?id=7202

I do agree that now that we can do things like specify the input 
parameter as a forward, it only makes sense to use these as the standard 
Struts URI wrapper. In the case of an Action form, it may still be a 
requirement that it resolve to an Action. But being able to flex the 
target of a form (without a RTE) makes it easier to share forms between 
workflows (see also #10550).

What really made be a believer is when I needed to change from 
application-based to container-based security. The targets of all the 
forms had to be changed to accomodate the URI pattern. The URIs may be 
virtual, but they are not logical. Other components have expectations 
about how they are used. If the targets of the forms had been specified 
as ActionForwards, I could have made ALL the changes from within the 
Struts configuration.

-Ted

John Yu wrote:

> 
> I see. Perhaps you can file a feature request in Bugzilla.
> 
> 
> At 07:44 am 06-09-2002, you wrote:
> 
>> I understand, however I read in http://husted.com/struts/catalog.htm
>>
>> "Rather than embed the path to an ActionMapping in a JSP, a link should
>> refer to a Global Forward instead...
>> 
>> "
>>
>> I thought this was good advice. Also, since a form action is 
>> essentially a
>> link with parameters hidden from the browser's address bar I can't see 
>> why
>> we shouldn't be able to use a global forward here as well.
>>
>> -Original Message-
>> From: John Yu [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, 5 September 2002 3:46 PM
>> To: Struts Users Mailing List
>> Subject: Re: global forwards in forms.
>>
>>
>> doesn't support forwarding to global forwards. What global forwards 
>> give you is globally visible symbolic URIs. In a sense, the actions 
>> are already globally visible symbolic URIs. (Watch out that using may 
>> not be compatible with multi subapps.)
> 
> 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
<http://husted.com/struts/book.html>


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




Re: global forwards in forms.

2002-09-06 Thread Ted Husted

There's actually a feature requite there, but it's been marked "later".
A patch has also been submitted, but with everything else going on, I 
haven't been able to look at it closely enough to commit it.

http://issues.apache.org/bugzilla/show_bug.cgi?id=7202

I do agree that now that we can do things like specify the input 
parameter as a forward, it only makes sense to use these as the standard 
Struts URI wrapper. In the case of an Action form, it may still be a 
requirement that it resolve to an Action. But being able to flex the 
target of a form (without a RTE) makes it easier to share forms between 
workflows (see also #10550).

What really made be a believer is when I needed to change from 
application-based to container-based security. The targets of all the 
forms had to be changed to accomodate the URI pattern. The URIs may be 
virtual, but they are not logical. Other components have expectations 
about how they are used. If the targets of the forms had been specified 
as ActionForwards, I could have made ALL the changes from within the 
Struts configuration.

-Ted

John Yu wrote:

> 
> I see. Perhaps you can file a feature request in Bugzilla.
> 
> 
> At 07:44 am 06-09-2002, you wrote:
> 
>> I understand, however I read in http://husted.com/struts/catalog.htm
>>
>> "Rather than embed the path to an ActionMapping in a JSP, a link should
>> refer to a Global Forward instead...
>> 
>> "
>>
>> I thought this was good advice. Also, since a form action is 
>> essentially a
>> link with parameters hidden from the browser's address bar I can't see 
>> why
>> we shouldn't be able to use a global forward here as well.
>>
>> -Original Message-
>> From: John Yu [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, 5 September 2002 3:46 PM
>> To: Struts Users Mailing List
>> Subject: Re: global forwards in forms.
>>
>>
>> doesn't support forwarding to global forwards. What global forwards 
>> give you is globally visible symbolic URIs. In a sense, the actions 
>> are already globally visible symbolic URIs. (Watch out that using may 
>> not be compatible with multi subapps.)
> 
> 


-- 
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
<http://husted.com/struts/book.html>


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




RE: global forwards in forms.

2002-09-05 Thread John Yu


I see. Perhaps you can file a feature request in Bugzilla.


At 07:44 am 06-09-2002, you wrote:
>I understand, however I read in http://husted.com/struts/catalog.htm
>
>"Rather than embed the path to an ActionMapping in a JSP, a link should
>refer to a Global Forward instead...
>
>"
>
>I thought this was good advice. Also, since a form action is essentially a
>link with parameters hidden from the browser's address bar I can't see why
>we shouldn't be able to use a global forward here as well.
>
>-Original Message-
>From: John Yu [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, 5 September 2002 3:46 PM
>To: Struts Users Mailing List
>Subject: Re: global forwards in forms.
>
>
>doesn't support forwarding to global forwards. What global forwards give 
>you is globally visible symbolic URIs. In a sense, the actions are already 
>globally visible symbolic URIs. (Watch out that using may not be 
>compatible with multi subapps.)

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Don't develop Struts Apps without it!"


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




RE: global forwards in forms.

2002-09-05 Thread Todd Pierce

I understand, however I read in http://husted.com/struts/catalog.htm 

"Rather than embed the path to an ActionMapping in a JSP, a link should
refer to a Global Forward instead...

" 

I thought this was good advice. Also, since a form action is essentially a
link with parameters hidden from the browser's address bar I can't see why
we shouldn't be able to use a global forward here as well.

-Original Message-
From: John Yu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 5 September 2002 3:46 PM
To: Struts Users Mailing List
Subject: Re: global forwards in forms.


 doesn't support forwarding to global forwards.

What global forwards give you is globally visible symbolic URIs.
In a sense, the actions are already globally visible symbolic URIs.

(Watch out that using  may not be compatible with 
multi subapps.)


At 09:53 am 05-09-2002, you wrote:
>To remove literal requests from JSPs I'm replacing them with global
forwards
>and using the link tag's forward attribute. However, there doesn't seem to
>be a corresponding attribute for the form tag. How can you use global
>forwards for form actions? I've tried using the forward name as the action,
>but it throws a servlet exception.
>
>I'm using Struts 1.1-b2

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Don't develop Struts Apps without it!"


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




Re: global forwards in forms.

2002-09-04 Thread John Yu

 doesn't support forwarding to global forwards.

What global forwards give you is globally visible symbolic URIs.
In a sense, the actions are already globally visible symbolic URIs.

(Watch out that using  may not be compatible with 
multi subapps.)


At 09:53 am 05-09-2002, you wrote:
>To remove literal requests from JSPs I'm replacing them with global forwards
>and using the link tag's forward attribute. However, there doesn't seem to
>be a corresponding attribute for the form tag. How can you use global
>forwards for form actions? I've tried using the forward name as the action,
>but it throws a servlet exception.
>
>I'm using Struts 1.1-b2

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Don't develop Struts Apps without it!"


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




global forwards in forms.

2002-09-04 Thread Todd Pierce

To remove literal requests from JSPs I'm replacing them with global forwards
and using the link tag's forward attribute. However, there doesn't seem to
be a corresponding attribute for the form tag. How can you use global
forwards for form actions? I've tried using the forward name as the action,
but it throws a servlet exception.

I'm using Struts 1.1-b2


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




Urgent-using global-forwards in custom tag classes

2002-06-14 Thread Yaman Kumar

Hi,
I have a requirement to get a forward class in a Custom tag class which is
in
struts-config.xml.

I'm writing a user's session checking tag which needs to forward to a
login.jsp page
that is available in struts-config.xml





In my custom tag i would like to get the value of sessionexpired.
I'm following struts-example webapp to break this and looking
 tag
to extend it

TIA
rayaku




-Original Message-
From: William W [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 13 June 2002 8:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction



Is it possible ?
Use boolean in the "depends" property ?


  
  
 methodName
 update
  



>From: "William W" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Validator and DispatchAction
>Date: Thu, 13 Jun 2002 14:46:09 +
>
>
>I think that if I use DispatchAction with ValidatorActionForm I will have
>the same problem. How can I validate the form for diferents methods in the
>same Action ? Am I wrong ?
>Thanks,
>William.
>
>
>>From: David Winterfeldt <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: Struts Users Mailing List <[EMAIL PROTECTED]>,  Rick
>>Reumann <[EMAIL PROTECTED]>
>>Subject: Re: Validator and DispatchAction
>>Date: Wed, 12 Jun 2002 14:42:51 -0700 (PDT)
>>
>>You would currently have to write your own required
>>validation method and have it check a variable defined
>>by a field to see if it should perform the validation
>>or not.  Or define a separate set of validation rules
>>for each action and use ValidatorActionForm (which
>>uses the action path to retrieve the validation
>>rules).
>>
>>David
>>
>>--- Rick Reumann <[EMAIL PROTECTED]> wrote:
>> > On Wednesday, June 12, 2002, 10:14:09 AM, William
>> > wrote:
>> >
>> > WW> I have a UserForm, the fields are : userId and
>> > userName.
>> > WW> I have a UserAction that extends DispatchAction.
>> > The UserAction have  two
>> > WW> methods (insert and update). For the insert
>> > method only the userName is
>> > WW> required, and for update method the userId and
>> > the userName are required.
>> > WW> How can I can do a dependency validation with
>> > the validator.xml ?
>> >
>> > I'm curious about this as well. There was a post
>> > a few days back
>> > dealing with the same issue. I think you are
>> > able to nest
>> > validation rules for a form but I forgot the
>> > exact syntax. Maybe
>> > someone else could shed some light again on how
>> > to do this.
>> >
>> >
>> > --
>> >
>> > Rick
>> > mailto:[EMAIL PROTECTED]
>> >
>> > "If you go to a party, and you want to be the
>> > popular one at the
>> > party, do this: Wait until no one is looking, then
>> > kick a burning log
>> > out of the fireplace onto the carpet. Then jump on
>> > top of it with your
>> > body and yell, "Log o' fire! Log o' fire!" I've
>> > never done this, but I
>> > think it'd work."
>> >   -Jack Handey
>> >
>> >
>> > --
>> > To unsubscribe, e-mail:
>> > 
>> > For additional commands, e-mail:
>> > 
>> >
>>
>>
>>__
>>Do You Yahoo!?
>>LAUNCH - Your Yahoo! Music Experience
>>http://launch.yahoo.com
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>
>
>
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>




_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Global-Forwards Question

2002-06-03 Thread Jerry Jalenak

Figured it out.

I needed to define the Action via a  tag in
struts-config.xml.  I only specified the path and type parameters.

Thanks for everyones input!

Jerry

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 1:08 PM
To: Struts Users Mailing List
Subject: Re: Global-Forwards Question


Trying to run multiple ActionServlet instances in the same web application
is going to cause you no end of grief, and is not a supported
configuration.  You should organize your app so that it uses a single
instance of the controller.

Craig McClanahan


On Mon, 3 Jun 2002, Jerry Jalenak wrote:

> Date: Mon, 3 Jun 2002 12:26:38 -0500
> From: Jerry Jalenak <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Global-Forwards Question
>
> Hi All,
>
> Is it possible to use the mapping.findForward method to forward to another
> ActionServlet?  I have two ActionServlets that both need to forward to a
> third, common ActionServlet.  In my struts-config, I have the following
> line:
>
>   
>   
>   
>
> where 'thirdAction' is the common ActionServlet.  In both of the other two
> ActionServlet, I have
>
>   actionForward = mapping.findForward("thirdAction");
>   return actionForward;
>
> It doesn't seem as though the forward is happening as I never get into the
> 'thirdAction'.  Can this be done this way?
>
> Thanks!
>
>
>
> This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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



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




RE: Global-Forwards Question

2002-06-03 Thread Jerry Jalenak

Craig,

Sorry for the confusion - this is a bad use of terminology on my part.  I'm
not using multiple ActionServlets (i.e. controllers) - rather multiple
Actions as defined in struts-config by the  tags.

Jerry

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 1:08 PM
To: Struts Users Mailing List
Subject: Re: Global-Forwards Question


Trying to run multiple ActionServlet instances in the same web application
is going to cause you no end of grief, and is not a supported
configuration.  You should organize your app so that it uses a single
instance of the controller.

Craig McClanahan


On Mon, 3 Jun 2002, Jerry Jalenak wrote:

> Date: Mon, 3 Jun 2002 12:26:38 -0500
> From: Jerry Jalenak <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Global-Forwards Question
>
> Hi All,
>
> Is it possible to use the mapping.findForward method to forward to another
> ActionServlet?  I have two ActionServlets that both need to forward to a
> third, common ActionServlet.  In my struts-config, I have the following
> line:
>
>   
>   
>   
>
> where 'thirdAction' is the common ActionServlet.  In both of the other two
> ActionServlet, I have
>
>   actionForward = mapping.findForward("thirdAction");
>   return actionForward;
>
> It doesn't seem as though the forward is happening as I never get into the
> 'thirdAction'.  Can this be done this way?
>
> Thanks!
>
>
>
> This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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



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




RE: Global-Forwards Question

2002-06-03 Thread Jerry Jalenak

No, I haven't.  Now that I think about this, my first two ActionServlets are
defined through the  tags in struts-config.  There is no
place where I define thirdAction.  Can I create a 'dummy' 
definition that only defines the path, name, and scope for the action?

Jerry

-Original Message-
From: Bharat Nagwani [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 1:03 PM
To: Struts Users Mailing List
Subject: Re: Global-Forwards Question


have you defined the servlet in web.xml


At 10:46 AM 6/3/2002 -0700, you wrote:
>Have you tried:
>
> 
> 
>or
>
> 
> 
>
>-vincent.
>
>Jerry Jalenak wrote:
>
> > Hi All,
> >
> > Is it possible to use the mapping.findForward method to forward to
another
> > ActionServlet?  I have two ActionServlets that both need to forward to a
> > third, common ActionServlet.  In my struts-config, I have the following
> > line:
> >
> > 
> > 
> > 
> >
> > where 'thirdAction' is the common ActionServlet.  In both of the other
two
> > ActionServlet, I have
> >
> > actionForward = mapping.findForward("thirdAction");
> > return actionForward;
> >
> > It doesn't seem as though the forward is happening as I never get into
the
> > 'thirdAction'.  Can this be done this way?
> >
> > Thanks!
> >
> > This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the individual or 
> entity to which it is addressed. If you are not the intended recipient or 
> the person responsible for delivering the transmission to the intended 
> recipient, be advised that you have received this transmission in error 
> and that any use, dissemination, forwarding, printing, or copying of this 
> information is strictly prohibited. If you have received this 
> transmission in error, please immediately notify LabOne at (800)388-4675.
> >
> > --
> > To unsubscribe, 
> e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




Re: Global-Forwards Question

2002-06-03 Thread Craig R. McClanahan

Trying to run multiple ActionServlet instances in the same web application
is going to cause you no end of grief, and is not a supported
configuration.  You should organize your app so that it uses a single
instance of the controller.

Craig McClanahan


On Mon, 3 Jun 2002, Jerry Jalenak wrote:

> Date: Mon, 3 Jun 2002 12:26:38 -0500
> From: Jerry Jalenak <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Global-Forwards Question
>
> Hi All,
>
> Is it possible to use the mapping.findForward method to forward to another
> ActionServlet?  I have two ActionServlets that both need to forward to a
> third, common ActionServlet.  In my struts-config, I have the following
> line:
>
>   
>   
>   
>
> where 'thirdAction' is the common ActionServlet.  In both of the other two
> ActionServlet, I have
>
>   actionForward = mapping.findForward("thirdAction");
>   return actionForward;
>
> It doesn't seem as though the forward is happening as I never get into the
> 'thirdAction'.  Can this be done this way?
>
> Thanks!
>
>
>
> This transmission (and any information attached to it) may be confidential and is 
>intended solely for the use of the individual or entity to which it is addressed. If 
>you are not the intended recipient or the person responsible for delivering the 
>transmission to the intended recipient, be advised that you have received this 
>transmission in error and that any use, dissemination, forwarding, printing, or 
>copying of this information is strictly prohibited. If you have received this 
>transmission in error, please immediately notify LabOne at (800)388-4675.
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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




Re: Global-Forwards Question

2002-06-03 Thread Bharat Nagwani

have you defined the servlet in web.xml


At 10:46 AM 6/3/2002 -0700, you wrote:
>Have you tried:
>
> 
> 
>or
>
> 
> 
>
>-vincent.
>
>Jerry Jalenak wrote:
>
> > Hi All,
> >
> > Is it possible to use the mapping.findForward method to forward to another
> > ActionServlet?  I have two ActionServlets that both need to forward to a
> > third, common ActionServlet.  In my struts-config, I have the following
> > line:
> >
> > 
> > 
> > 
> >
> > where 'thirdAction' is the common ActionServlet.  In both of the other two
> > ActionServlet, I have
> >
> > actionForward = mapping.findForward("thirdAction");
> > return actionForward;
> >
> > It doesn't seem as though the forward is happening as I never get into the
> > 'thirdAction'.  Can this be done this way?
> >
> > Thanks!
> >
> > This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the individual or 
> entity to which it is addressed. If you are not the intended recipient or 
> the person responsible for delivering the transmission to the intended 
> recipient, be advised that you have received this transmission in error 
> and that any use, dissemination, forwarding, printing, or copying of this 
> information is strictly prohibited. If you have received this 
> transmission in error, please immediately notify LabOne at (800)388-4675.
> >
> > --
> > To unsubscribe, 
> e-mail:   
> > For additional commands, e-mail: 
> 
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


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




RE: Global-Forwards Question

2002-06-03 Thread Jerry Jalenak

Further clarification 

I do get a 'Page cannot be found' when I use the path='/thirdAction.do'
format.


Jerry

-Original Message-
From: Vincent Aumont [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 12:47 PM
To: Struts Users Mailing List
Subject: Re: Global-Forwards Question


Have you tried:



or




-vincent.

Jerry Jalenak wrote:

> Hi All,
>
> Is it possible to use the mapping.findForward method to forward to another
> ActionServlet?  I have two ActionServlets that both need to forward to a
> third, common ActionServlet.  In my struts-config, I have the following
> line:
>
> 
> 
> 
>
> where 'thirdAction' is the common ActionServlet.  In both of the other two
> ActionServlet, I have
>
> actionForward = mapping.findForward("thirdAction");
> return actionForward;
>
> It doesn't seem as though the forward is happening as I never get into the
> 'thirdAction'.  Can this be done this way?
>
> Thanks!
>
> This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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



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




RE: Global-Forwards Question

2002-06-03 Thread Jerry Jalenak

Yeah, I have.  Still doesn't seem to find the ActionServlet.  Since the path
parameter is for a relative path, I'm wondering if I need to further qualify
the path to the servlet (however I don't get any errors from Tomcat...)

Jerry

-Original Message-
From: Vincent Aumont [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 12:47 PM
To: Struts Users Mailing List
Subject: Re: Global-Forwards Question


Have you tried:



or




-vincent.

Jerry Jalenak wrote:

> Hi All,
>
> Is it possible to use the mapping.findForward method to forward to another
> ActionServlet?  I have two ActionServlets that both need to forward to a
> third, common ActionServlet.  In my struts-config, I have the following
> line:
>
> 
> 
> 
>
> where 'thirdAction' is the common ActionServlet.  In both of the other two
> ActionServlet, I have
>
> actionForward = mapping.findForward("thirdAction");
> return actionForward;
>
> It doesn't seem as though the forward is happening as I never get into the
> 'thirdAction'.  Can this be done this way?
>
> Thanks!
>
> This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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



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




Re: Global-Forwards Question

2002-06-03 Thread Vincent Aumont

Have you tried:



or




-vincent.

Jerry Jalenak wrote:

> Hi All,
>
> Is it possible to use the mapping.findForward method to forward to another
> ActionServlet?  I have two ActionServlets that both need to forward to a
> third, common ActionServlet.  In my struts-config, I have the following
> line:
>
> 
> 
> 
>
> where 'thirdAction' is the common ActionServlet.  In both of the other two
> ActionServlet, I have
>
> actionForward = mapping.findForward("thirdAction");
> return actionForward;
>
> It doesn't seem as though the forward is happening as I never get into the
> 'thirdAction'.  Can this be done this way?
>
> Thanks!
>
> This transmission (and any information attached to it) may be confidential and is 
>intended solely for the use of the individual or entity to which it is addressed. If 
>you are not the intended recipient or the person responsible for delivering the 
>transmission to the intended recipient, be advised that you have received this 
>transmission in error and that any use, dissemination, forwarding, printing, or 
>copying of this information is strictly prohibited. If you have received this 
>transmission in error, please immediately notify LabOne at (800)388-4675.
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Global-Forwards Question

2002-06-03 Thread Jerry Jalenak

Hi All,

Is it possible to use the mapping.findForward method to forward to another
ActionServlet?  I have two ActionServlets that both need to forward to a
third, common ActionServlet.  In my struts-config, I have the following
line:





where 'thirdAction' is the common ActionServlet.  In both of the other two
ActionServlet, I have

actionForward = mapping.findForward("thirdAction");
return actionForward;

It doesn't seem as though the forward is happening as I never get into the
'thirdAction'.  Can this be done this way?

Thanks!



This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




Using Global Forwards for all entry points to application?

2002-04-21 Thread jfc100

Hi,

Can somebody please explain this suggestion (from the struts catalog) to 
me as I think I must be missing something. Here is the excerpt:

>
>     Use Global Forwards for all entry points to application
>
> All links in the application should be to ActionMappings. Rather than 
> embed the path to an ActionMapping in a JSP, a link should refer to a 
> Global Forward instead. The Global Forward can include parameters as 
> needed, and should use a logical name that follows the command 
> structure. Compound or path-like names can be used as preferred.
>
>  
>  
>  
>
>  
>  
>   path="/do/item/Search?column=script"/>
>
>  
>  
>   path="/do/item/Search?column=script"/>
>
> This also allows the parameters to be changed without modifying the 
> JSPs or Actions that use the Global Forward.
>
> /Very early releases of Struts required subclassing the
> ActionMappings if you wanted to use names other than "success" and
> "failure". The mappings have long since been upgraded so that any
> arbitrary name can be used./
>
> 

If my web.xml is configured to route all /do/* requests to the 
ActionServlet, why should a link refer to a Global forward instead of to 
a for e.g. '/do/registration/capture'? I always thought that the 
forwards were used to select a jsp page or template.

Am I missing something here?

Any thoughts, ideas or enlightenment much appreciated!
Joe


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




Re: global forwards (Struts Catalog)

2002-02-03 Thread rob

Hi Ted,

sorry to ask for clarification again and it's probably completely obvious
but I've overlooked it.  How can I specify the link from within a custom tag
(since the struts  tag) can only be used within a
JSP page and not in the body of doStartTag()/doEndTag()?  or can it?

Thanks for the quick reply before I appreciate it

rob
- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 3:14 PM
Subject: Re: global forwards (Struts Catalog)


> 
>
>  ...
>
> or
>
> 
>
>  ...
>
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Java Web Development with Struts.
> -- Tel +1 585 737-3463.
> -- Web http://www.husted.com/struts/
>
> rob wrote:
> >
> > I was just reading Ted's Struts Catalog to improve the building of my
struts
> > based application and I misunderstand the section on 'Use Global
Forwards
> > for all entry points to application'
> >
> > Also it says 'all links in the application should be to ActionMappings.
> > Rather than embed the path to
> > an ActionMapping in a JSP, a link should refer to a Global Forward
instead.
> > This is what I either
> > misunderstand or can't get to work.
> >
> > I have a global forward:
> > 
> >
> > Now I have a custom tag that would typically generate links to /do/view
but
> > would like to instead use
> > the global forward name view.
> >
> > example where n is generated from some set (not using global forward):
> > item n
> > obviously this is the kind of link we're trying to avoid cause it's hard
> > coded to /do/view
> >
> > So how do I generate a link that will follow / use the Global Forward?
> >
> > Thanks
> >
> > rob
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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





Re: global forwards (Struts Catalog)

2002-02-03 Thread Ted Husted



 ...

or 



 ...


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

rob wrote:
> 
> I was just reading Ted's Struts Catalog to improve the building of my struts
> based application and I misunderstand the section on 'Use Global Forwards
> for all entry points to application'
> 
> Also it says 'all links in the application should be to ActionMappings.
> Rather than embed the path to
> an ActionMapping in a JSP, a link should refer to a Global Forward instead.
> This is what I either
> misunderstand or can't get to work.
> 
> I have a global forward:
> 
> 
> Now I have a custom tag that would typically generate links to /do/view but
> would like to instead use
> the global forward name view.
> 
> example where n is generated from some set (not using global forward):
> item n
> obviously this is the kind of link we're trying to avoid cause it's hard
> coded to /do/view
> 
> So how do I generate a link that will follow / use the Global Forward?
> 
> Thanks
> 
> rob
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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




global forwards (Struts Catalog)

2002-02-03 Thread rob

I was just reading Ted's Struts Catalog to improve the building of my struts
based application and I misunderstand the section on 'Use Global Forwards
for all entry points to application'

Also it says 'all links in the application should be to ActionMappings.
Rather than embed the path to
an ActionMapping in a JSP, a link should refer to a Global Forward instead.
This is what I either
misunderstand or can't get to work.

I have a global forward:


Now I have a custom tag that would typically generate links to /do/view but
would like to instead use
the global forward name view.

example where n is generated from some set (not using global forward):
item n
obviously this is the kind of link we're trying to avoid cause it's hard
coded to /do/view

So how do I generate a link that will follow / use the Global Forward?


Thanks

rob


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




Global Forwards

2001-12-05 Thread Dave J Dandeneau

Can a global forward point to a file in the WEB-INF directory?

Thanks,
dave



Re: global forwards

2001-10-22 Thread Ted Husted

You may need to url-encode the path here. Try ViewClip&streamMode

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

chiji nwankwo wrote:
> 
> Hi,
> 
> Can anyone see what I am doing wrong?
> 
>  path="/do/search?action=ViewClip&streamMode=High" />
> 
> Application developer (ibm) seems to be complaining about the use of a
> delimiter.  This is taken from within my strut-config file and I have
> an action called search.
> 
> Is it wrong to use more than one parameter.  It doesn't seem to
> complain when I use just one parameter.
> 
> Please help
> 
> Thanks
> 
> Chiji
> 
> --
> Get your FREE download of MSN Explorer at http://explorer.msn.com



Re: GLOBAL FORWARDS

2001-10-20 Thread Renaud Waldura

Try using "&" instead of "&" in your path.





- Original Message -
From: "chiji nwankwo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 20, 2001 8:17 AM
Subject: GLOBAL FORWARDS


> Hi,
>
> Can anyone see what I am doing wrong?
>
> 
>
> Application developer (ibm) seems to be complaining about the use of a
delimiter.  This is taken from within my strut-config file and I have an
action called search.
>
> Is it wrong to use more than one parameter.  It doesn't seem to complain
when I use just one parameter.
>
> Please help
>
> Thanks
>
> Chiji
>
>
>
>
>
>
> --
--
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>




GLOBAL FORWARDS

2001-10-20 Thread chiji nwankwo



Hi,
Can anyone see what I am doing wrong?

Application developer (ibm) seems to be complaining about the use of a delimiter.  This is taken from within my strut-config file and I have an action called search.
Is it wrong to use more than one parameter.  It doesn't seem to complain when I use just one parameter.
Please helpThanks
Chiji
 Get your FREE download of MSN Explorer at http://explorer.msn.com

Hi,
Can anyone see what I am doing wrong?

Application developer (ibm) seems to be complaining about the use of a delimiter.  This is taken from within my strut-config file and I have an action called search.
Is it wrong to use more than one parameter.  It doesn't seem to complain when I use just one parameter.
Please helpThanks
ChijiGet your FREE download of MSN Explorer at http://explorer.msn.com




RE: global forwards

2001-10-19 Thread Fletcher, Ken

Oh, nevermind

-Original Message-
From: Fletcher, Ken [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 3:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: global forwards


I believe you forgot the path...
 
-Original Message-
From: chiji nwankwo [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 3:42 PM
To: [EMAIL PROTECTED]
Subject: global forwards



Hi,

Can anyone see what I am doing wrong?



Application developer (ibm) seems to be complaining about the use of a
delimiter.  This is taken from within my strut-config file and I have an
action called search.

Is it wrong to use more than one parameter.  It doesn't seem to complain
when I use just one parameter.

Please help

Thanks

Chiji


  _  

Get your FREE download of MSN Explorer at http://explorer.msn.com
<http://go.msn.com/bql/hmtag_itl_EN.asp> 



RE: global forwards

2001-10-19 Thread Fletcher, Ken

I believe you forgot the path...
 
-Original Message-
From: chiji nwankwo [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 19, 2001 3:42 PM
To: [EMAIL PROTECTED]
Subject: global forwards



Hi,

Can anyone see what I am doing wrong?



Application developer (ibm) seems to be complaining about the use of a
delimiter.  This is taken from within my strut-config file and I have an
action called search.

Is it wrong to use more than one parameter.  It doesn't seem to complain
when I use just one parameter.

Please help

Thanks

Chiji


  _  

Get your FREE download of MSN Explorer at http://explorer.msn.com
<http://go.msn.com/bql/hmtag_itl_EN.asp> 




global forwards

2001-10-19 Thread chiji nwankwo

Hi,
Can anyone see what I am doing wrong?

Application developer (ibm) seems to be complaining about the use of a delimiter.  This is taken from within my strut-config file and I have an action called search.
Is it wrong to use more than one parameter.  It doesn't seem to complain when I use just one parameter.
Please helpThanks
ChijiGet your FREE download of MSN Explorer at http://explorer.msn.com


Re: AW: global forwards for menu generation

2001-10-19 Thread Jonathan M Crater

there is no built in struts way (that i know of) to do this.  the action
servlet stores the global forwards collection in the servlet context, so you
have access to that collection from your web components.  once you grab it you
can simply use the iterate tag to spit out the values contained in the forward
objects it contains.

the main task of global forwards is to define commonly used request paths.

the input element specifies where the input of a form came from, and also
where the action servlet should forward back to should your action form's
validate method return a populated ActionErrors object.

-jc

storck wrote:

> How can I use global forwards for menu-generation?
> What is the main task if global forwards?
> For what is the input-property in the action-tag under action-mappings in
> the struts-config.xml?
>
> -Ursprungliche Nachricht-
> Von: Jonathan M Crater [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 19. Oktober 2001 13:07
> An: [EMAIL PROTECTED]
> Betreff: global forwards for menu generation
>
> i have found that my global forwards almost always contain my menu items,
> and
> thus it would be convenient to have an extra attribute on the forward
> element
> like "text" or "menu", the value of which could be presented in a jsp and
> would
> allow direct iteration through the forwards collection to generate a menu
> based
> on which forwards supplied a menu or text attribute.  right now i have to
> hook
> into the forwards collection externally, using text supplied from another
> configuration file in order to avoid having the paths in two different
> places in
> my app.  has anyone else run into this?  is there a standard way that this
> is
> being handled?  if there is a reason why this is being avoided, i'd be
> interested in hearing that as well.
>
> tia,
>
> jc





AW: global forwards for menu generation

2001-10-19 Thread storck

How can I use global forwards for menu-generation?
What is the main task if global forwards?
For what is the input-property in the action-tag under action-mappings in
the struts-config.xml?

-Ursprungliche Nachricht-
Von: Jonathan M Crater [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 19. Oktober 2001 13:07
An: [EMAIL PROTECTED]
Betreff: global forwards for menu generation


i have found that my global forwards almost always contain my menu items,
and
thus it would be convenient to have an extra attribute on the forward
element
like "text" or "menu", the value of which could be presented in a jsp and
would
allow direct iteration through the forwards collection to generate a menu
based
on which forwards supplied a menu or text attribute.  right now i have to
hook
into the forwards collection externally, using text supplied from another
configuration file in order to avoid having the paths in two different
places in
my app.  has anyone else run into this?  is there a standard way that this
is
being handled?  if there is a reason why this is being avoided, i'd be
interested in hearing that as well.

tia,

jc




global forwards for menu generation

2001-10-19 Thread Jonathan M Crater

i have found that my global forwards almost always contain my menu items, and
thus it would be convenient to have an extra attribute on the forward element
like "text" or "menu", the value of which could be presented in a jsp and would
allow direct iteration through the forwards collection to generate a menu based
on which forwards supplied a menu or text attribute.  right now i have to hook
into the forwards collection externally, using text supplied from another
configuration file in order to avoid having the paths in two different places in
my app.  has anyone else run into this?  is there a standard way that this is
being handled?  if there is a reason why this is being avoided, i'd be
interested in hearing that as well.

tia,

jc





Re: Global forwards, targets and frames

2001-06-01 Thread Craig R. McClanahan



On Fri, 11 May 2001, Kyle Robinson wrote:

> Is there a way to specify the target of a global forward?
> I have a global forward which I want to go to another frame.  For instance
> in my action if everything works fine I want to return to the input page but
> if there is an error I want to go to another frame.  Any thoughts?
>  

Unfortunately, targets need to be specified by the client, not the
server.  For any one request, then, you're stuck with making a single
choice for where the response will be displayed.

>  
>  
> Kyle Robinson 
> Systems Consultant 
> Pangaea Systems Inc. 
> (250) 360-0111 
>  
> 

Craig





Global forwards, targets and frames

2001-05-11 Thread Kyle Robinson



Is there a way to 
specify the target of a global forward?
I have a global 
forward which I want to go to another frame.  For instance in my action if 
everything works fine I want to return to the input page but if there is an 
error I want to go to another frame.  Any thoughts?
 
 
 
Kyle 
Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111