Re: How to expose DynaValidator in Action?

2003-09-25 Thread Barry Volpe
great thanks - Original Message - From: Fenderbosch, Eric [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 11:11 AM Subject: RE: How to expose DynaValidator in Action? Just did this earlier today for the first time.

Re: How to expose DynaValidator in Action?

2003-09-25 Thread Barry Volpe
thanks! - Original Message - From: Alex Shneyderman [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 11:12 AM Subject: RE: How to expose DynaValidator in Action? One of the parameters to the execute in your action Is ActionForm

Tiles and ControllerClass

2003-09-25 Thread Jim Theodoridis
Hi. In tiles-def.xml i have the following definition definition name=.poll path=/tiles/layouts/tileLayout.jsp controllerClass=gr.tera.portal.actions.poll.GetPollAction put name=title value=Poll / put name=tileBody value=/pages/poll/poll.jsp / /definition But when i run the

RE: Tiles and ControllerClass

2003-09-25 Thread Alex Shneyderman
Yep, you gotta extend the right class. Try to extend org.apache.struts.tiles.ActionController instead -Original Message- From: Jim Theodoridis [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 2:27 PM To: Struts Users Mailing List Subject: Tiles and ControllerClass

Re: Tiles and ControllerClass

2003-09-25 Thread Barry Volpe
The problem I ran into with this is if you are using the controllerClass you are required to implement Controller even though you are extending Action. If you are extending Action or Tiles Action and not implementing Controller then I was required to use ControllerUrl. This required me to add an

Here is an example TilesAction

2003-09-25 Thread Barry Volpe
- Original Message - From: Barry Volpe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 3:41 PM Subject: Re: Data Source issue in tiles controller execute() TYPO: This: tiles:insert definition=.penguin.view flush=true / should

Re: Tiles and ControllerClass

2003-09-25 Thread Barry Volpe
I addition if you implement Controller you will need to declare the (interface requirement) perform method. - Original Message - From: Barry Volpe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 11:32 AM Subject: Re: Tiles and

Re: Tiles and ControllerClass

2003-09-25 Thread khote
You can also just implement the Controller: package gr.tera.portal.actions.poll; public class GetPollAction implements org.apache.struts.tiles.Controller { } the tiles processor currently calls the perform method, but the docs say that this will be deprecated in 1.2 I found this

And now for something completely different... [OT]

2003-09-25 Thread Christian Bollmeyer
Please don't kick me for posting this here, but still, one or two might possibly be interested in taking notice: http://www.dba-oracle.com/art_firing.htm It's always good to know one's enemies :-) -- Chris - To unsubscribe,

BeanMapping WAS: [Poll] action mappings

2003-09-25 Thread Mainguy, Mike
I think your way is perfectly acceptable. I like to try and use the supplied interfaces (i.e. DynaBean) if they suit my needs and, to date, DynaBean has served me well. You can use BeanUtils to map DynaBeans to POJO's and visa versa (as a matter of fact you can to it to/from maps also I

Re: Urgent: Changing URLs for existing struts project

2003-09-25 Thread mohan
Because i was already using mod_jk2 , the best to configure was to change it to add the Context in the server.xml with the desired URL. This is cool isnt itMailing List are great thanx to u all --Mohan If you have developed your application in struts friendly way, this should be as easy

Problem with Struts-faces example app

2003-09-25 Thread Daniel Smeltzer
I'm attempting to write some things with the struts-faces library. I have had some difficulty and decided to step back and look over the example again. Now, I'm having issues getting the example app to work! I have a fresh install of Tomcat 5.0.12b that I'm using. I have deployed the example

Re: action chaining and request.getRequestURI()

2003-09-25 Thread Manish Singla
You go from one action to another action by requestdispatcher ..thus request.getRequestURI() will not serve your purpose One solution is you can read request header Referer in /doerror.do Now, above header is optional. Or else , you may set request.setAttribute in /doNews.do which you can read

Clearing a DynaActionForm values?

2003-09-25 Thread Mick Knutson
How do I clear a DynaActionForm values? --- Thanks Mick Knutson http://www.baselogic.com +001(805) 563-0666 Office +001 (708) 570-2772 Fax --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
I have an HTML image map that needs to use the SSLExt links: pmap name=Map2 area shape=rect coords=17,0,84,26 href=/index.jsp area shape=rect coords=96,0,187,26 href=/member.do area shape=rect coords=204,0,284,26 href=/notification.do area shape=rect coords=302,0,406,26

Re: And now for something completely different... [OT]

2003-09-25 Thread Max Cooper
What's with this?: Drug and alcohol abusers will vehemently deny their addiction, especially UNIX systems administrators... Are Unix Sys Admins the hardest partyers of the IT bunch? Or maybe the author thinks that Unix is over, and that the sysadmins are just in denial about that and thus prone

Re: SSLExt and useMap?

2003-09-25 Thread Max Cooper
sslext:rewrite / can render URLs to stick into the area href's. -Max - Original Message - From: Mick Knutson [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 1:23 PM Subject: Re: SSLExt and useMap? I have an HTML image map that needs to use the

Re: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
Do you mean Like: area shape=rect coords=17,0,84,26 href=sslext:rewrite name='/member.do'/ --- Thanks Mick Knutson http://www.baselogic.com +001(805) 563-0666 Office +001 (708) 570-2772 Fax --- - Original Message - From: Max Cooper [EMAIL PROTECTED] To: Struts Users Mailing List

Re: SSLExt and useMap?

2003-09-25 Thread Max Cooper
Yup, that's the technique I was thinking of. Even though that seems a little like nested tags, it really is not (and should work fine) because the area tag is just HTML rather than a JSP custom tag. -Max - Original Message - From: Mick Knutson [EMAIL PROTECTED] To: Struts Users Mailing

RE: [Poll] action mappings

2003-09-25 Thread Shane Mingins
-Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Friday, 26 September 2003 2:14 a.m. To: Struts Users Mailing List Subject: Re: [Poll] action mappings OK, I think I understand #1 now. However, I still disagree with it ;) If you are using the same form bean

Re: BeanMapping WAS: [Poll] action mappings

2003-09-25 Thread Craig R. McClanahan
Mainguy, Mike wrote: I think your way is perfectly acceptable. I like to try and use the supplied interfaces (i.e. DynaBean) if they suit my needs and, to date, DynaBean has served me well. You can use BeanUtils to map DynaBeans to POJO's and visa versa (as a matter of fact you can to it

Re: SSLExt and useMap?

2003-09-25 Thread Mick Knutson
I added this: area shape=rect coords=96,0,187,26 href=sslext:rewrite name='/member.do'/ (and I also have this in other areas of the same JSP page: sslext:link page=/member.do Log On/sslext:link) I get this error when I did that: !--- --E[ServletException

Re: [Poll] action mappings

2003-09-25 Thread Sgarlata Matt
When I am using design #3 my action mappings always specify that validate=false. Those methods that do require validation explicitly call the validate method of the bean. Those methods that do not require validation don't call the method. So no conditioning is needed in the form bean for design

RE: [Poll] action mappings

2003-09-25 Thread Shane Mingins
-Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Friday, 26 September 2003 8:55 a.m. To: Struts Users Mailing List Subject: Re: [Poll] action mappings When I am using design #3 my action mappings always specify that validate=false. Those methods that do

Re: SSLExt and useMap?

2003-09-25 Thread Max Cooper
Oops, I think you need to use the page attribute instead of name. Name will look for an attribute that it will convert to a String and use as the name of the action. The page attribute allows you to specify an action (or other URL) that it will use directly. -Mx - Original Message -

How do I populate a DynaValidatorForm?

2003-09-25 Thread Barry Volpe
With an Action Form we do the following: form = new UserForm(); form.setUserid(5); What is the equivalent for a DynaValidatorForm? Let's say my DynaValidatorForm is myForm Of course this does not work (compiler does not know what myForm is.) DynaValidatorForm dynaForm =

Re: How do I populate a DynaValidatorForm?

2003-09-25 Thread Mick Knutson
In the Action itself, there is a form object already created. Then this should work inside the action: ( ( DynaActionForm ) form ).set( Constants.USER_ID_KEY, 5); --- Thanks Mick Knutson http://www.baselogic.com +001(805) 563-0666 Office +001 (708) 570-2772 Fax --- - Original Message -

Re: How do I populate a DynaValidatorForm?

2003-09-25 Thread Mick Knutson
That was it. Thanks very much! --- Thanks Mick Knutson http://www.baselogic.com +001(805) 563-0666 Office +001 (708) 570-2772 Fax --- - Original Message - From: Barry Volpe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 2:16 PM

Re: Input form field values...

2003-09-25 Thread Adam Hardy
Yes it should clear as long as you have no parameters in the URL and as long as you have the action mapping scope set to request and not session. On 09/25/2003 07:52 PM Joseph William wrote: I did figure that out Adam. Thanks much! But, in the browser, when I hit the back button and then the

Re: How do I populate a DynaValidatorForm?

2003-09-25 Thread Barry Volpe
Hi Mick, This does not appear to be working. I was also wondering let's say in my struts-config I have two different DynaValidator forms defined. Both forms have the same property say units. I am not using a Constants. but how would it know which units needs to be populated? Thanks, Barry

Re: And now for something completely different... [OT]

2003-09-25 Thread Adam Hardy
Oh I see, Max, it sounds like you might be a Unix systems administrator yourself... ;) is it Friday yet? On 09/25/2003 10:28 PM Max Cooper wrote: What's with this?: Drug and alcohol abusers will vehemently deny their addiction, especially UNIX systems administrators... Are Unix Sys Admins

RE: How do I populate a DynaValidatorForm?

2003-09-25 Thread Wendy Smoak
Barry Volpe wrote: With an Action Form we do the following: form = new UserForm(); form.setUserid(5); What is the equivalent for a DynaValidatorForm? Let's say my DynaValidatorForm is myForm Of course this does not work (compiler does not know what myForm is.) DynaValidatorForm

Re: How do I populate a DynaValidatorForm?

2003-09-25 Thread Mick Knutson
Each JSP will have 1 DynaForm assigned to a given form. So the formA.units is different than forB.units in the DynaForm. So, when you submit a form, there is just 1 Dynaform that is submitted. Or in your case you want to show formA DynaForm with forma.units. --- Thanks Mick Knutson

log4j configuration question

2003-09-25 Thread David Erickson
A couple quick questions: 1) Using tomcat is it possible to configure log4j to only be functional for your particular webapp? Because I put the log4j jar into my web-inf/lib directory, built a log4j.properties and put it in /web-inf/classes and set log4j's rootlogger to debug and got log

Re: And now for something completely different... [OT]

2003-09-25 Thread Max Cooper
Well, I do some administration work on a few Unix servers from time to time, but I wouldn't really call myself a sysadmin. Oh no! I am in denial. :-) -Max - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, September

Re: [Poll] action mappings

2003-09-25 Thread Adam Hardy
Personally I'd rather declare that validation occurs in an extra mapping that have to code it in my action. You lose the whole automation with the input as well. So I have 2 mappings for one action - one for starting ( for when validation fails), and one for validation. On 09/25/2003 11:01

Going from https on /member.do, back to http on index.jsp?

2003-09-25 Thread Mick Knutson
How do I go from https on /member.do, back to http on index.jsp? Must I make an /index.do and just eliminate the index.jsp? --- Thanks Mick Knutson http://www.baselogic.com +001(805) 563-0666 Office +001 (708) 570-2772 Fax ---

Advantage of Map/List backed forms Vs Action Forms with array list

2003-09-25 Thread Mathew, Manoj
Hi Can anyone please tell me the advantages of Map/List backed forms over regular Action Map with array List or even a dyna action form with an arrayList thank you Manoj - To unsubscribe, e-mail: [EMAIL PROTECTED] For

how to tell invalid session vs session timed out

2003-09-25 Thread Warren Chen
Hi All, Is there any tool in Struts that can tell if an invalid session is caused by timeout or simply no session were ever created? (In my app, the loginAction creates a session and put some stuff into the session, in each subsequent request I'll check if session is valid, if not, send user

RE: Disabling Buttons on View

2003-09-25 Thread Shane Mingins
Hi Sorry if this is OT I have not used any of the JSTL tags which I am assuming c:set ... is?? So I downloaded the JSTL library and included the core library EL: %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % in my JSP The c:set ... is recognized :-) But the ...

RE: Disabling Buttons on View

2003-09-25 Thread Karr, David
-Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] I have not used any of the JSTL tags which I am assuming c:set ... is?? So I downloaded the JSTL library and included the core library EL: %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % in my JSP

RE: Disabling Buttons on View

2003-09-25 Thread Shane Mingins
-Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Friday, 26 September 2003 11:25 a.m. To: Struts Users Mailing List But the ... disabled=%=disable % ... is not found. What do you mean is not found? Are you getting an error message? If so, what's the

ActionErrors and Servlet Filters

2003-09-25 Thread Nate Drake
I have a Servlet Filter that checks that the user has permission to access the requested page. If the user does not, I want to send them back to home.jsp. In home.jsp, I want to use the html:errors tag to display an error message. In the filter I do this: ActionError error = new

RE: Value assignment to html:hidden field...

2003-09-25 Thread hari_s
I think it will be more simple with html-el:hidden value=${yourFormBean.yourVariable} property=yourProperty/ -Original Message- From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 5:25 PM To: Struts Users Mailing List Subject: Re: Value assignment to

Re: Going from https on /member.do, back to http on index.jsp?

2003-09-25 Thread Max Cooper
Creating an index.do is one option. If it is not marked as secure, sslext will write an absolute URL back to http:// for it. Many Struts users advocate that all requests should be served by Actions, even if the action merely forwards to a JSP. I think you can also use the secure attribute in the

Re: Going from https on /member.do, back to http on index.jsp?

2003-09-25 Thread Craig R. McClanahan
Max Cooper wrote: Creating an index.do is one option. If it is not marked as secure, sslext will write an absolute URL back to http:// for it. Many Struts users advocate that all requests should be served by Actions, even if the action merely forwards to a JSP. I actually have a more important

japanese in form

2003-09-25 Thread Amit Rana
Hi, I am having exactly same problem as in this thread http://www.mail-archive.com/[EMAIL PROTECTED]/msg38443.html i.e. Japanese in the form elements (textboxes) becomes garbage once form is re-shown. I have this tiles/struts application Japanese from properties or from form is displayed

RE: And now for something completely different... [OT]

2003-09-25 Thread Andrew Hill
snip This just strikes me as a very strange statement -- I don't get it. /snip Too much BSD will do that to you... -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, 26 September 2003 04:28 To: Struts Users Mailing List Subject: Re: And now for something

Re: japanese in form

2003-09-25 Thread Jason Lea
Try this link http://www.anassina.com/struts/i18n/i18n.html and look item number 7. The form data being submitted might not be being read as Shift_JIS or UTF-8 but instead the default ISO-8859-1 format. You need to set the character encoding of the request before Struts puts the request

uploading file

2003-09-25 Thread Kannan
Hi All! I'm using struts 1.1 , i'm creating a application based on struts commons-upload ,I'm following the struts upload example... I would like to upload a file into a perticular directory.. /webapp /MyApplication /WEB-INF /uploads/**

logic:iterate problem

2003-09-25 Thread MaFai
Hello, struts-user, [code] logic:iterate id=customer name=customers type=STB.Customer bean:write name=customer property=testb/ bean:write name=customer property=pps/ /logic:iterate [/code] customers is set by request.setAttribute pps is string value. testb is a int value If

logic:present tag problem

2003-09-25 Thread tarun.matai
Hi, I have a query if(a || b ) { do certain operation } a or b will be attributes present in the session object, how can i use logic:present tag to perform this operation. Regards, Tarun DISCLAIMER: This message contains

RE: logic:present tag problem

2003-09-25 Thread muzammil shahbaz
Under struts 1.0, try as follows: logic:present name=a scope=session do certain operation /logic:present logic:present name=b scope=session do certain operation /logic:present However, the code can be optimized by using logic:OR tag, which is not the part of this version. Regards, Muzammil

<    1   2