RE: creating a class that extends Action Mapping...what is the purpose of it?

2003-12-31 Thread Mohan Radhakrishnan
I remember that this is done to use custom properties in your action mapping in the struts-config.xml file. You can access them in your action. Mohan -Original Message- From: deepak saini [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 6:08 PM To

Re: creating a class that extends Action Mapping...what is the purpose of it?

2003-12-31 Thread Nicolas De Loof
Sometime we need to add some info to struts mappings, and for this we use a class that extends ActionMapping. As an example, we need for a webapp to add a "description" to any mapping to build some stats. DescActionMapping defines a "description" attribute. every acti

creating a class that extends Action Mapping...what is the purpose of it?

2003-12-31 Thread deepak saini
Hi, I was trying one struts example. In that example, it has created one class whcih extends ActionMapping class. I was just wondering why we need to create this class and when is it used and whether we define this class in struts-config or web.xml? Regards Deepak Saini ___

Re: DOTs, wild cards, and action mapping

2003-12-18 Thread Thomas E Enebo
David Friedman wrote: Thomas, (Probably a) Dumb question From the "${area.name}" it looks like you're using Velocity Templates. I thought Velocity couldn't mix with JSP's like that (My impression from ch 17 of 'Struts in Action'. How are you mixing the two? (Or is there a Velocity update

RE: DOTs, wild cards, and action mapping

2003-12-17 Thread David Friedman
here a Velocity update which allows it?) Regards, David -Original Message- From: Thomas E Enebo [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 7:16 PM To: [EMAIL PROTECTED] Subject: DOTs, wild cards, and action mapping I started using the wild-card support in action mapping

DOTs, wild cards, and action mapping

2003-12-17 Thread Thomas E Enebo
I started using the wild-card support in action mappings (from a CVS build). It works, but I noticed something strange (until I realized what it was doing). So, I have a action mapping like: Then in some jsp I have: Where area.address expands to '10.

RE: Action Mapping - without formbean

2003-12-09 Thread Ravi Kulkarni
Thanks Henrik, that answers my question. -Original Message- From: HG [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 3:30 PM To: Struts Users Mailing List Subject: Re: Action Mapping - without formbean Hi Ravi The action attribute of your form tag points to the path for your

Re: Action Mapping - without formbean

2003-12-09 Thread HG
uot; and done the "Struts way". Sorry if I misunderstood your quuestion.. Regards Henrik - Original Message - From: "Ravi Kulkarni" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 09,

Action Mapping - without formbean

2003-12-09 Thread Ravi Kulkarni
Hi All, I have a form with yes/no buttons. I want to use

Why the Action Mapping Cannot Be Retrieved?

2003-11-05 Thread Caroline Jen
I got this message in the browser: [ServletException in:/article/content/menu.jsp] Cannot retrieve mapping for action /do/editor/Category' The menu.jsp is a tile in my application. This is my tile menu.jsp: View Articles If I change the statement that causes the ServletException to

RE: Need help to create owm Custom Action Mapping to read the pro pertys

2003-10-20 Thread Archana Annamaneni
rs, > Fred > > -Original Message- > From: Archana Annamaneni [mailto:[EMAIL PROTECTED] > Sent: 20 October 2003 17:00 > To: [EMAIL PROTECTED] > Subject: Need help to create owm Custom Action Mapping to read the > propertys > > > Hello everyone, > > I

RE: Need help to create owm Custom Action Mapping to read the pro pertys

2003-10-20 Thread Fred Tsang
Custom Action Mapping to read the propertys Hello everyone, I have to read a property when certain action is called. for simple mail application i want to read the smtp mailserver value from outside , i don't want to hard code it, for that I am creating my ActionMapping.And adding ne

Need help to create owm Custom Action Mapping to read the propertys

2003-10-20 Thread Archana Annamaneni
Hello everyone, I have to read a property when certain action is called. for simple mail application i want to read the smtp mailserver value from outside , i don't want to hard code it, for that I am creating my ActionMapping.And adding new tag called set-property for the action.but i am getting

Re: How To Work Out This Action Mapping?

2003-10-11 Thread Caroline Jen
Craig, thank you for your very strong support in the past day or two to guide me through problems with the container-managed authentication. I looked at my web.xml file again and again. There is nothing wrong with the order of the elements in that file. And there is no stack trace in the log fil

Re: How To Work Out This Action Mapping?

2003-10-11 Thread Craig R. McClanahan
Caroline Jen wrote: To answer your questions: 1. The LOGON button links to a forward: LOGON and in my struts-config.xml, I have name="logon" path="/do/admin/Menu"/> Well, that's the first problem ... security constraints are only applied on an original request from

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Caroline Jen
To answer your questions: 1. The LOGON button links to a forward: LOGON and in my struts-config.xml, I have 2. the in my web-xml is: Administrative /do/admin/* administrator contributor By the way, t

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Craig R. McClanahan
Caroline Jen wrote: Thank you very much for the detailed explanation. Yet, I still have hard time to make my application work -- I am "able" to display the welcome page (no problem). And I have http://localhost:8080/PracticeVersion/do/Menu;jsessionid=0A6E76A8F3E849BC8DAAC45BFB72F72E in the addres

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Caroline Jen
Thank you very much for the detailed explanation. Yet, I still have hard time to make my application work -- I am "able" to display the welcome page (no problem). And I have http://localhost:8080/PracticeVersion/do/Menu;jsessionid=0A6E76A8F3E849BC8DAAC45BFB72F72E in the address bar. However, afte

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Craig R. McClanahan
Caroline Jen wrote: Thank you for your reply. I am using container managed authentication. My problem is "how to go from j_security_check back to my Struts framework." That turns out to not be your problem ... that is the container's problem. The key thing to remember is that the user should

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Caroline Jen
Thank you for your reply. I am using container managed authentication. My problem is "how to go from j_security_check back to my Struts framework." I have my Tomcat JDBCRealm configured and users, user_roles tables prepared in the database. In my struts-config.xml file, I did this forward when

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Sasha Borodin
I think you may be doing two things wrong: 1. j_security_check is a special URL. If you have a security realm defined in your web application, and authentication method specified as FORM, then the container will automatically forward any requests for protected resources to a configurable login f

How To Work Out This Action Mapping?

2003-10-10 Thread Caroline Jen
Because there is such a statement (shown below) in my signinForm.jsp: I put in my struts-config.xml file. When I ran the application, I got: [ServletException in:/article/content/signinForm.jsp] Cannot retrieve mapping for action /j_security_check' I know that I did not specify the

Re: Confused - Scaffold and Action Mapping

2003-09-18 Thread Ted Husted
1. The .article.Menu tile uses the menuForm bean. 2. Check the import statement at the top of the file =:0) It's just a static String. HTH, Ted. Caroline Jen wrote: I have problem to understand the action mapping shown below:

Confused - Scaffold and Action Mapping

2003-09-17 Thread Caroline Jen
I have problem to understand the action mapping shown below: code: - - It looks to me that 1. menuForm is the logical name for the form bean as given in the form-bean segment of

Re: derrive the action name from the action mapping that called the JSP

2003-09-17 Thread Daniel Wang
gt; Sent: Tuesday, September 16, 2003 7:22 PM Subject: derrive the action name from the action mapping that called the JSP > Is it possible to derive the action name from the action mapping that > called the JSP? > Like: > > > I have 2 different actions that calls a JSP page. I

derrive the action name from the action mapping that called the JSP

2003-09-16 Thread Mick Knutson
Is it possible to derive the action name from the action mapping that called the JSP? Like: I have 2 different actions that calls a JSP page. I want each of them to submit to the respective action I.e action1 gets submitted to action1.do, and action2 get submitted to action2.do Is this

RE: One form multiple Action mapping

2003-09-15 Thread deepaksawdekar
Hey you can do some thing like this. -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 8:49 PM To: 'Struts Users Mailing List' Subject: RE: One form multiple Acti

Re: action-mapping forward - how do I use it?

2003-08-28 Thread David Thielen
sday, August 28, 2003 2:51 AM Subject: Re: action-mapping forward - how do I use it? > David, > what happens when you use a ? > > If the URL is wrong, have you tried ? > > Alternatively, don't use a form. Use a button inside a > > Hope that helps > Adam > >

Re: action-mapping forward - how do I use it?

2003-08-28 Thread Adam Hardy
a new page. No ActionServlet or ActionForm because the only thing in the form is the button. But I would like to use the action-mapping to determine where to go. I tried to do this with: But if I use a then it blows up on a null form. If I use a then it doesn't go to the mapped page.

RE: action-mapping forward - how do I use it?

2003-08-28 Thread Bill Chmura
How about a little javascript snippet on that button that submits it? That way it will not submit as a form... > -Original Message- > From: David Thielen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 27, 2003 3:56 PM > To: Struts-Users > Subject: action-

action-mapping forward - how do I use it?

2003-08-27 Thread David Thielen
Hi; I have a case where, when the user clicks on a button, I want the action to be to go to a new page. No ActionServlet or ActionForm because the only thing in the form is the button. But I would like to use the action-mapping to determine where to go. I tried to do this with: But if

RE: Exception if no form in my action mapping - why?

2003-08-19 Thread Ditlinger, Steve
form. Steve -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 8:47 AM To: Struts-Users Subject: Exception if no form in my action mapping - why? Hi; When I set an action mapping as this (no form): It thr

Exception if no form in my action mapping - why?

2003-08-19 Thread David Thielen
Hi; When I set an action mapping as this (no form): It threw an exception. When I added a from like this: It worked. Any ideas? In my .jsp I have: thanks - dave

Re: Action mapping 'inputForward'

2003-08-15 Thread Jing Zhou
- Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 15, 2003 11:05 AM Subject: Re: Action mapping 'inputForward' > On Fri, 15 Aug 2003, Erez Efrati

RE: Action mapping 'inputForward'

2003-08-15 Thread Erez Efrati
d the Edit action to use the same form *but* on the request scope. Therefore, I couldn't just use the same tag but had to change based on the 'method' = 'create' or 'edit'. If method=create I use the action=/Signup.do, and in 'edit' I do action="/EditS

Re: Action mapping 'inputForward'

2003-08-15 Thread Craig R. McClanahan
On Fri, 15 Aug 2003, Erez Efrati wrote: > Date: Fri, 15 Aug 2003 18:49:25 +0200 > From: Erez Efrati <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject: Action m

Action mapping 'inputForward'

2003-08-15 Thread Erez Efrati
Hi all, Is it recommended to use the 'inputForward'=true in the configuration? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: One form multiple Action mapping

2003-08-14 Thread Erez Efrati
Come to think of it more, since I want the submitted form to use different action mappings, I thought of using something like Scanfold's RelayAction which dispatches to different action mappings based on the parameter (in my case 'method'). On each action mapping I could set my req

One form multiple Action mapping

2003-08-14 Thread Erez Efrati
I have a registration form (RegForm) which based on the method/mode I want to direct it to a different action mapping in order to assign different roles or security restrictions. I have a single RegAction extending the DispatchAction class, with parameter 'method' as the dispatch para

RE: One form multiple Action mapping

2003-08-14 Thread Bailey, Shane C.
What about: -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:04 AM To: 'Struts Users Mailing List' Subject: One form multiple Action mapping I have a registration form (RegForm) which based on the method/mode

RE: extending RequestProcessor for only ONE action mapping

2003-08-04 Thread Mike Whittaker
ble to specify an extended RequestProcessor. Is this >possible? > There may be a simpler alternative, but if needs be you can just call super.thatMethod() (in all the methods you overide) first when the extended beheviour isn't required. Can't remember what the RP gets access to but

extending RequestProcessor for only ONE action mapping

2003-08-04 Thread tim
I've just recently began hacking out my own RequestProcessor extension and I have found that my extended versions are not needed very much. Most of the time I would like to use the default struts provided RequestProcessor and for individual action mappings be able to specify an extended Request

AW: [newbie] Problem with Action Mapping

2003-07-25 Thread sem . Gottofrey
You have to add '.do' to the action property of your form tag, like this: HTH Robert > -Ursprüngliche Nachricht- > Von: struts user [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 24. Juli 2003 15:33 > An: [EMAIL PROTECTED] > Betreff: Re: [newbie] Pr

Re: [newbie] Problem with Action Mapping

2003-07-24 Thread Kelvin wu
Try to add in - Original Message - From: "struts user" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 24, 2003 9:32 PM Subject: Re: [newbie] Problem with Action Mapping > > I tried both the ways in the login.jsp > > 1 &g

Re: [newbie] Problem with Action Mapping

2003-07-24 Thread struts user
LoginForm and LoginAction classes is com.xxx.yyy.action Regards, Meka Toka From: "Susan Bradeen" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: [newbi

Re: [newbie] Problem with Action Mapping

2003-07-24 Thread Susan Bradeen
On 07/24/2003 08:22:44 AM "struts user" wrote: > Hi, > I am new to Struts, i am facing the following a problem with the action > mappings. > > Here are my code snippets related to mapping the action > > In web.xml > > > action > *.do > > > In login.jsp > - > name="Lo

[newbie] Problem with Action Mapping

2003-07-24 Thread struts user
Hi, I am new to Struts, i am facing the following a problem with the action mappings. Here are my code snippets related to mapping the action In web.xml action *.do In login.jsp - In struts-config.xml - FORM-BEANS GLOBAL FORWARDING

RE: action mapping 'input' question

2003-07-18 Thread Michael Ruppin
Unless validation suceeds, this looks like an infinite loop to me: input="/ForgotPassword.do" path="/ForgotPassword"> m --- Erez Efrati <[EMAIL PROTECTED]> wrote: > I am using struts/tiles/validator in my application. > > Using the following configuration works fine, still > I

RE: action mapping 'input' question

2003-07-18 Thread Erez Efrati
I am using struts/tiles/validator in my application. Using the following configuration works fine, still I see that on the first invocation the form gets validated and I get validation errors. My ForgotPasswordAction action is used both for the INIT and the SUBMIT operations. The only solution I r

RE: action mapping 'input' question

2003-07-18 Thread Amit Kirdatt
To: 'Struts Users Mailing List' Subject: action mapping 'input' question I guess it's simple, but why can't I put an action /MyAction.do in the 'input' field in a action-mapping in the struts-config.xml? Erez

action mapping 'input' question

2003-07-18 Thread Erez Efrati
I guess it's simple, but why can't I put an action /MyAction.do in the 'input' field in a action-mapping in the struts-config.xml? Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

action-mapping in include tag

2003-06-17 Thread Anurag Garg
Hello Everyone, How can I include an action-mapping in a jsp include directive ? I want to achieve something like this: Is there any solution using TILES or something else ? Thanks, BS - To unsubscribe, e-mail: [EMAIL

tiles - input attribute in action mapping

2003-06-06 Thread koen boutsen
Hi I'm using different tiles to create my page. On my login tile, name and password are required fields, so the validator creates an error if one is not provided. Normally, you are redirected to the 'input' attribute of the action mapping in the struts-config. When I put the lo

RE: Posted Again: Build Navigation based on action mapping

2003-06-04 Thread Andrew Hill
. -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 June 2003 21:00 To: Struts Users Mailing List Subject: Posted Again: Build Navigation based on action mapping Sorry for reposting but wanted to get some feedback on this as I am sure everyone here had to deal with this

RE: Build Navigation based on action mapping

2003-06-04 Thread Hibbs, David
I'm guessing that what you really want is to be able to do either a) some reverse engineering/documentation or b) a site map type function because navigation in a Struts app is absolutely based on action mapping and tiles config. That said (and without a clearer question), I will give some

Posted Again: Build Navigation based on action mapping

2003-06-03 Thread Haytham Samad
Sorry for reposting but wanted to get some feedback on this as I am sure everyone here had to deal with this at some point. I am trying to find a way to have navigation built based on the struts-config.xml's action mappings. Since all my use cases are enabled through action listed under a

Re: Struts console action mapping attribute question.

2003-03-20 Thread David Graham
Check the struts-config.xml DTD. David From: [EMAIL PROTECTED] Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Struts console action mapping attribute question. Date: Thu, 20 Mar 2003 16:43:48 +0100 What is the Configuration

Struts console action mapping attribute question.

2003-03-20 Thread Mick . Knutson
What is the Configuration class attribute of an action mapping in the struts console? I see it adds a className="" but I have no idea what this is used for in Struts 1.1rc1 Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.7

action-mapping redirect

2003-03-02 Thread Dinesh Samson J
Greetings, I need to forward/redirect to an htm page on success. In my action mapping I have mentioned my htm pages are in c:\testweb\pages and jsp are under ..\tomcat\webapps\myexample since the context is getting added the htm page does not get displayed. Is there any work around to

Action Mapping path vs parameter

2003-02-28 Thread Mark
There appears to be a one to one relationship with regards to the path and parameter values in mappings. Is there any particular reason why one would use both of these instead of just the path to determine the correct course of action? Regards, Mark -

Re: action mapping

2003-02-05 Thread Emmanuel Boudrant
Only for compatibility reasons between 1.0 and 1.1 javadoc said : NOTE - This class would have been deprecated and replaced by org.apache.struts.config.ActionConfig except for the fact that it is part of the public API that existing applications are using. http://jakarta.apache.org/struts/api

action mapping

2003-02-05 Thread pqin
I remembered some one on the list had said that ActionMapping is deprecated in 1.1b3. If ActionMapping is deprecated, why all those Action.execute still accept ActionMapping as argument? Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing"

follow up on action mapping

2003-01-20 Thread pqin
Last week I asked if action mapping's input accepts action. The answer is Yes after I did a test. input can be a page or an action. Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing"

How to access the current action mapping from the jsp

2003-01-16 Thread Garth Ramakant Patil
i'm trying to build a dynamic navigation widget in a header.jsp that will be included in all my display jsps. i have elected not to use tiles. in order to correctly render the navigation, i need to know what the current action forward is that is being executed. how can i access that from the jsp pa

struts-config action-mapping how to set custom attribute

2002-12-17 Thread Steve Vanspall
Hi there I was wondering if there is a way to set a custom attrbiute to an action mapping, and then retieve it using the ActionMapping class. I notice that the ActionMapping class has a getAttribute(String s) method, but I am not sure if there is a way to set that attribute in the struts-config

Re: action-mapping

2002-12-04 Thread Emmanuel Boudrant
You a 3 type of action-mapping : A simple forward A simple include Or a typed action : With the forward/include action, you don't need to create an action class, they are using only to forward/include one path. With an typed action, you can define multiple forwards depending o

Re: action-mapping

2002-12-04 Thread David Graham
EMAIL PROTECTED])'" <[EMAIL PROTECTED]> Subject: action-mapping Date: Wed, 4 Dec 2002 16:09:05 -0500 I am a newbie but I am a little confused about the following. In the struts api it states the following about the forward property of the action mapping class Exactly one of the forwa

action-mapping

2002-12-04 Thread LUCERO,DENNIS (HP-Boise,ex1)
I am a newbie but I am a little confused about the following. In the struts api it states the following about the forward property of the action mapping class Exactly one of the forward, include, or type properties must be specified. But, in the examples I downloaded with the struts package

How to get the action mapping

2002-12-04 Thread Jordan Thomas
Hi All, A newbie with a basic question (I hope...). How do I get the action mapping from the current request? thanks Jordan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

RE: action mapping input

2002-10-28 Thread Chen, Gin
wanted to do (and it was successful) was: where site.select.page was a tiles definition. Thanks, -Tim -Original Message- From: Chen, Gin [mailto:Gin_Chen@;tvratings.com] Sent: Friday, October 18, 2002 3:19 PM To: 'Struts Users Mailing List' Subject: RE: act

RE: action mapping input

2002-10-18 Thread Kris Schneider
or global. > No? > > -Tim > > -Original Message- > From: John Nicholas [mailto:jakarta@;mobosplash.com] > Sent: Friday, October 18, 2002 2:45 PM > To: Struts Users Mailing List > Subject: Re: action mapping input > > > Chen, Gin wrote: > &g

Re: action mapping input

2002-10-18 Thread Kris Schneider
You can also leverage the input attribute in an action by returning the following from perform/execute: new ActionForward(mapping.getInput()) Quoting John Nicholas <[EMAIL PROTECTED]>: > Chen, Gin wrote: > > Hi all, > > I'm still new to struts and I cant find this in the documentation > > b

RE: action mapping input

2002-10-18 Thread Chen, Gin
To: Struts Users Mailing List Subject: Re: action mapping input Chen, Gin wrote: > Hi all, > I'm still new to struts and I cant find this in the documentation > but, lets say that you have one of the struts-config from the docs. > > > > > >

Re: action mapping input

2002-10-18 Thread John Nicholas
Chen, Gin wrote: Hi all, I'm still new to struts and I cant find this in the documentation but, lets say that you have one of the struts-config from the docs. Rather than have input="/logon.jsp" as in the snip can you have input="logon" and have it use the path from the

action mapping input

2002-10-18 Thread Chen, Gin
Hi all, I'm still new to struts and I cant find this in the documentation but, lets say that you have one of the struts-config from the docs. Rather than have input="/logon.jsp" as in the snip can you have input="logon" and have it use the path from the global-for

Re: security roles per action mapping

2002-10-18 Thread Alexis Gallagher
Eddie & Vicc, Thanks for your help on this. It got me started in the right direction, and I found a solution that I thought I'd share in case it's useful to someone else. In the end, I created a custom subclass of RequestProcess that overrides the processRoles() and always returns true. It's less

Re: security roles per action mapping

2002-10-16 Thread Eddie Bush
Bah! Your web.xml - not your server.xml. I know what I'm talking about, I'm just experiencing technical difficulties in the broadcasting department! LOL Your web.xml holds all your role data and constraints, so using traditional CMA, you'd have to modify that file and restart the app every

Re: security roles per action mapping

2002-10-16 Thread Eddie Bush
Alexis Gallagher wrote: >Hello, > >I've gotten a lot of help just lurking on this list, >so I'm hoping my first question isn't too off base. > >I am trying to use the action "roles" parameter to >define fine-grained security constraints. However, >these constraints will apply to security roles wh

Re: security roles per action mapping

2002-10-16 Thread V. Cekvenich
One aproach: make all the users is a single role for CMA. In first action, make a getUserPricipal, and store in session bean (I also have getFullName in there, so I display in header loged in user name) the Session bean, add methods for getProjectRole() that calls dao to find this. Based on ses

security roles per action mapping

2002-10-16 Thread Alexis Gallagher
Hello, I've gotten a lot of help just lurking on this list, so I'm hoping my first question isn't too off base. I am trying to use the action "roles" parameter to define fine-grained security constraints. However, these constraints will apply to security roles which are defined programmatically

RE: A big problem for me in Action Mapping

2002-10-02 Thread Ashish Kulkarni
tober 02, 2002 3:20 PM > > To: Struts Users Mailing List > > Subject: A big problem for me in Action Mapping > > > > Hi, > > I have a action mapping as below, > > > type="com.myapp.action.SessionInvalidAction" > > scope="request"

RE: A big problem for me in Action Mapping

2002-10-02 Thread Karr, David
> -Original Message- > From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 02, 2002 3:20 PM > To: Struts Users Mailing List > Subject: A big problem for me in Action Mapping > > Hi, > I have a action mapping as below, > type="com.m

A big problem for me in Action Mapping

2002-10-02 Thread Ashish Kulkarni
Hi, I have a action mapping as below, Then i have jsp called include.jsp in "pages" folder with following line of code String user = (String)session.getAttribute("user"); if (user == null) { System.out.println("there is no user so invalid session")

Re: action mapping question

2002-08-30 Thread Ted Husted
, you could just use whatever bean is handy. You don't need a bean with an Action, but you do need one to appease the html:form tag. -Ted. > > >then on search.jsp i have 2 forms, one to search.do and one to logoff.do > >here's my action mapping for logoff: > &g

RE: action mapping question

2002-08-30 Thread Bartley, Chris P
You shouldn't have to have a form bean. Here's the global forward I use for the logout action: Here's my action mapping for my logout action (Struts 1.0.2, with Tiles): The action class is short n' sweet (my abstract ActionSup

RE: action mapping question

2002-08-30 Thread Trieu, Danny
rom: Darren McGuinness [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 9:24 AM To: Struts Users Mailing List Subject: Re: action mapping question 1) I dont need a logoff form, but if i dont have one then i get errors of type: form bean null. 2) 1.0 "Trieu, Danny" wrote: &g

Re: action mapping question

2002-08-30 Thread Darren McGuinness
this error to be exact javax.servlet.ServletException: Cannot retrieve definition for form bean null "Trieu, Danny" wrote: > 1) why would you need a logoff form? > 2) what version of struts are you using? > > You don't have to have a form bean declare for an actio

Re: action mapping question

2002-08-30 Thread Darren McGuinness
1) I dont need a logoff form, but if i dont have one then i get errors of type: form bean null. 2) 1.0 "Trieu, Danny" wrote: > 1) why would you need a logoff form? > 2) what version of struts are you using? > > You don't have to have a form bean declare for an ac

RE: action mapping question

2002-08-30 Thread Trieu, Danny
1) why would you need a logoff form? 2) what version of struts are you using? You don't have to have a form bean declare for an action mapping. The reason it throw the exception Because you have the input attribute setting. With this setting the controller makes assumsion that your ma

action mapping question

2002-08-30 Thread Darren McGuinness
ne to logoff.do here's my action mapping for logoff: first of all, i dont want to use a bean for the logoff action but it complains otherwise, so for now i've used a form with a attribute dummy with get/set/reset/validate methodsis there a way no

Re: action mapping error (2nd post)

2002-08-21 Thread Adrian Brown
Hi Frederic, Usually when I get this error it means something is amiss in the web.xml file, either it cannot be parsed because of unexpected elements or cannot be found at all. Check the output from the console where you started tomcat from, it should give you some clues. Adrian --- Frederic B

action mapping error (2nd post)

2002-08-21 Thread Frederic Barozzi
re Hi, i done the following intallations: - sdk 1.4 - j2ee 1.3.1 - Tomcat 4.0.4 - Struts 1.0.2 - Eclipse 2.0 - Tomcat eclipse plugin - Easy struts eclipse plugin - struts config file editor. I made a simple application, that asks for a login and a passsword. - I launch tomcat - I launch my web n

RE: cannot find action mapping

2002-07-10 Thread Clay Graham
;; '[EMAIL PROTECTED]' Subject:RE: cannot find action mapping Just a follow up, I figured out the problem, basically the datasource is failing. When I look at the log file for the context I get the following error: 2002-07-10 18:13:42 WebappLoader[/test]: Deploying class r

RE: cannot find action mapping

2002-07-10 Thread Clay Graham
Message- From: Clay Graham [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:47 PM To: '[EMAIL PROTECTED]' Subject:cannot find action mapping STRUTS people, this is bizzare, but I have come to expect this in my travels. so any hints as to what the problem may b

cannot find action mapping

2002-07-10 Thread Clay Graham
STRUTS people, this is bizzare, but I have come to expect this in my travels. so any hints as to what the problem may be would be great! I am using tomcat 4.1.3 I have a struts application in $CATALINA_HOME/webapps/test, it has the following stuff in it... >test home.jsp inde

Re: Passing a parameter into an action from the action mapping?

2002-06-18 Thread Joe Germuska
At 1:17 PM -0700 2002/06/18, James Holmes wrote: >The parameter that Joe is talking about is for the > tag in your struts-config.xml. > >Take a look at the Struts Console. It makes setting >all this stuff a breeeze. > >http://www.jamesholmes.com/struts/ Well, gee, you can also take a look at Str

RE: Passing a parameter into an action from the action mapping?

2002-06-18 Thread wbchmura
parameter into an action from the action mapping? What are you using to view the file? Notepad? If so, or you just want a quick way to view it (outside of the Console), use Textpad. http://www.textpad.com It's a serious text editor with everything from 'go to' line and/or column, ma

RE: Passing a parameter into an action from the action mapping?

2002-06-18 Thread wbchmura
m the action mapping? Hmm…try using the Output Options underneath the Options menu in the standalone version (1.12 and later). -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- [EMAIL PROTECTED] wrote: > Already there... > > The only thing that I would love to see in struts &

RE: Passing a parameter into an action from the action mapping?

2002-06-18 Thread James Mitchell
L PROTECTED]] > Sent: Tuesday, June 18, 2002 4:28 PM > To: [EMAIL PROTECTED] > Subject: RE: Passing a parameter into an action from the action mapping? > > > Already there... > > The only thing that I would love to see in struts console is if I view > source having it on

RE: Passing a parameter into an action from the action mapping?

2002-06-18 Thread James Holmes
> Subject: Re: Passing a parameter into an action from > the action mapping? > > > The parameter that Joe is talking about is for the > tag in your struts-config.xml. > > Take a look at the Struts Console. It makes setting > all this stuff a breeeze. >

  1   2   3   >