html:option tag

2005-04-21 Thread IVAN CORVILLO
Hi there, Is it possible to pre-select a value from a dropdownlist htm:option tag? Thanks Iván Corvillo Iconic, SL Molinot 53 Pol.Ind.El Camí Ral 08860 Castelldefels Tel: 902 195 962 / 93 419 54 45 Fax: 93 636 21 42 [EMAIL PROTECTED]

[OT] xdoclet actionforms

2005-04-21 Thread Nils Liebelt
Hi, I am using the webdoclet module to generate my struts-config.xml. It works very nice for my action classes. But for some reason I doesn't parse the tags in my Form classes. I can't see the form bean definitions in the struts config after building. I ran Ant in debug and I saw that finds the

[OT] xdoclet actionforms

2005-04-21 Thread Nils Liebelt
Hi, I am using the webdoclet module to generate my struts-config.xml. It works very nice for my action classes. But for some reason I doesn't parse the tags in my Form classes. I can't see the form bean definitions in the struts config after building. I ran Ant in debug and I saw that finds the

Re: html:option tag

2005-04-21 Thread Erik Weber
Yes, form field values (generated by the Struts tags) are synced with corresponding ActionForm field values when the page is rendered. So you can override the ActionForm's reset method to specify initial values. But typically you only want to do this when you are showing a fresh add form, not

RE: HTML:tags in a Tag

2005-04-21 Thread Paul McCulloch
In doEndTag() I have some code like: String includeFile = /shared/tagsupport/somepage.jsp?somearg= + someargval; pageContext.include(includeFile ); return EVAL_PAGE; And that's it. What isn't working for you? Paul -Original Message- From: David Whipple [mailto:[EMAIL PROTECTED]

RE: Reg. JSTL expression.

2005-04-21 Thread Ashutosh Satyam
Try this instead c:if test=${param.MODE == 'Primary'} // // /c:if Hope this helps. Regards, Ashutosh -Original Message- From: Iyanu, Rajasekaran [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 2:59 PM To: Struts Users Mailing List Subject: Reg. JSTL

Re: Validation's disappearing messages

2005-04-21 Thread Niall Pemberton
You seem to be returning null from the ActioForm's validate method - should be returning the ActionErrors - otherwise they won't get stored in the request under the appropriate key. Niall - Original Message - From: Marsh-Bourdon, Christopher [EMAIL PROTECTED] Sent: Thursday, April 21,

RE: Validation's disappearing messages

2005-04-21 Thread Marsh-Bourdon, Christopher
Niall Thanks, that was an oversight that only happened in my quick mock-up. I now return the errors object, there is still no change is the request objects or output. Cheers Christopher Marsh-Bourdon -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 21 April

for input formatting

2005-04-21 Thread Riyaz Mansoor
hi guys. i would like to standardize some fields on a submitted form. eg: FirstName field shud be first letter capital and the rest simple regardless of whatever Case the submitted text is. am NOT looking to validate against a mask but rather format it transparently what is the best way to do

Re: Validation's disappearing messages

2005-04-21 Thread Niall Pemberton
You don't appear to have validate=true on your /testMessages action mapping in the struts-config.xml. Niall - Original Message - From: Marsh-Bourdon, Christopher [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Thursday, April 21, 2005 10:47 AM Subject: RE:

struts 1.3 dev with validator 1.2 dev

2005-04-21 Thread Riyaz Mansoor
Hi guys sort of a repost - more details using Validator 1.2 (nightly build) on struts 1.3 dev build keep getting this error during validation. and not just for required but all checks. error is printed on the tomcat log standard out. further the action to which the form is submitted is executed

Re: struts 1.3 dev with validator 1.2 dev

2005-04-21 Thread Niall Pemberton
The method signature on these validators has changes - you need to deploy the updated validator-rules.xml with your app Niall - Original Message - From: Riyaz Mansoor [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, April 21, 2005 10:57 AM Subject:

Re: HTML:tags in a Tag

2005-04-21 Thread Dakota Jack
The coding of Tag classes is actually not a very difficult thing to learn. I recommend you take a look at the source from Abey Mullassery's image tags in commons sandbox to see how you can do all this. It really is not hard. After about ten minutes study and ten minutes coding, I had

Reg. Forward and set-property.

2005-04-21 Thread Iyanu, Rajasekaran
Hi, This is regarding the forward declarations of the action mapping tags in Struts-config xml, For instance, in the below tag, a property is defined for pagetitle. forward name=NameOfForward className=SubClassOfActionForward path=TileEntry set-property

RE: struts 1.3 dev with validator 1.2 dev

2005-04-21 Thread Marsh-Bourdon, Christopher
Hello again Thank you Niall for your suggestion, again it was a mistake with my quick muck/mock-up. However, the issue still occurred. After a fair amount of investigation, I have managed to work out that it was down to the fact that the html:errors and html:messages could not find the

RE: [OT] xdoclet actionforms

2005-04-21 Thread Aron Gombas
Hi Nils! Have you tried to give a name to your formbean like this: * * @struts.form name=addUserForm * It might help... Aron Gombas 3NF Corporation www.3nf.com -Original Message- From: Nils Liebelt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 9:03 AM To: 'Struts

RE: AJAX: Whoa, Nellie!

2005-04-21 Thread David Suarez
I must have missed getting across what I was trying to convey... Basically the below was a proof-of-concept to show the same code that would be added to taglibs could be added to a javascript library and be freely distributed which would resolve the issues at hand. Then only the implementers

Re: AJAX: Whoa, Nellie!

2005-04-21 Thread Vic Cekvenich (netsql)
Craig McClanahan wrote: The 3000 or so people that are here want to be able to ask questions about using Struts IMO, using Struts with client side technologies such as .js, dojo and ajax is on topic. .V - To unsubscribe, e-mail:

Pagination

2005-04-21 Thread Rafael Taboada
Hi folks, i'm again :) with my list of customers. I could do my CRUD approach. So thank u for ur help. My question is if there is some approach to do pagination with struts. I don't know, maybe a plugin, extention... Thanks again -- Rafael Taboada

Re: [OT] xdoclet actionforms

2005-04-21 Thread Nick Heudecker
The validator tags must be on the setter methods, not the getters. On 4/21/05, Nils Liebelt [EMAIL PROTECTED] wrote: Hi, I am using the webdoclet module to generate my struts-config.xml. It works very nice for my action classes. But for some reason I doesn't parse the tags in my Form

[OT] Re: AJAX: Whoa, Nellie!

2005-04-21 Thread DGraham
The point is that few, if any, of the 140+ posts in the thread are DIRECTLY related to struts. The majority are in the arena of discussing the merits/pitfalls AJAX-related technologies. And to be honest, I think all salient points have been made. I think we can all agree that the horse is

RE: Reg. JSTL expression.

2005-04-21 Thread Karr, David
What do you get when you add the following right before the c:if (including the square brackets): [c:out value=${param.MODE}/] -Original Message- From: Iyanu, Rajasekaran [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 2:29 AM To: Struts Users Mailing List Subject: Reg.

RE: [OT] xdoclet actionforms

2005-04-21 Thread Fogleson, Allen
Nils, In your @struts.form you need to give it a name like... @struts.form name=accountForm Al -Original Message- From: Nils Liebelt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 2:03 AM To: 'Struts Users Mailing List' Subject: [OT] xdoclet actionforms Hi, I am using

Re: Pagination

2005-04-21 Thread Gaet
have a look to struts-layout and its collection tags http://struts.application-servers.com/doc/index.html hope it helps - Original Message - From: Rafael Taboada [EMAIL PROTECTED] To: Struts List user@struts.apache.org Sent: Thursday, April 21, 2005 3:10 PM Subject: Pagination Hi

RE: Pagination

2005-04-21 Thread Abdullah Jibaly
take a look at Displaytag: http://displaytag.sourceforge.net/ -Original Message- From: Rafael Taboada [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 8:11 AM To: Struts List Subject: Pagination Hi folks, i'm again :) with my list of customers. I could do my CRUD approach. So

Re: DynaActionForm: ArrayIndexOutOfBoundsException

2005-04-21 Thread gdeschen
Oh man... I'm slightly confused this morning... perhaps an espresso is required ! I have been reading and searching based on the links below... however I am stuck. For the time being this is what I have done; upgraded to : - Struts 1.2.4 - BeanUtils 1.7 - Collections 3.1 - Digester 1.6 -

Struts Radio button

2005-04-21 Thread Neil Meyer
Hi All, I'm trying to do the following using the struts radio button. Please advise. INPUT TYPE=RADIO NAME=pizzasize VALUE=S smallBR INPUT TYPE=RADIO NAME=pizzasize VALUE=M CHECKED mediumBR INPUT TYPE=RADIO NAME=pizzasize VALUE=L largeP I want to use the following but check one

RE: Struts Radio button

2005-04-21 Thread Jay Burgess
I think this write-up from Ted Husted explains it nicely: http://husted.com/struts/tips/016.html Jay | Jay Burgess [Vertical Technology Group] | Essential Technology Links via RSS | http://www.vtgroup.com/ -Original Message- From: Neil Meyer [mailto:[EMAIL PROTECTED] Sent:

Re: Struts Radio button

2005-04-21 Thread Erik Weber
I think that my answer to another post earlier this morning applies here, so I have pasted it: . . . Form field values (generated by the Struts tags) are synced with corresponding ActionForm field values when the page is rendered. So you can override the ActionForm's reset method to specify

Re: DynaActionForm: ArrayIndexOutOfBoundsException

2005-04-21 Thread Hubert Rabago
You need to use an ActionForm subclass for your form-bean. The Lazy-flavored form bean was added after 1.2.4. If you're unable to upgrade from 1.2.6, consider adding it directly to your code base for now. You can get it here:

html:link invalid for DTD???

2005-04-21 Thread Scott Purcell
Hello, I am creating a new site, and I am having trouble interpreting an error message: I have a jsp page with the following html:img in it. html:img page=/images/shop.gif border=0/ and this shows the image with the context and all is happy. As soon as I try and create this shop image into a

How to get form from JSP

2005-04-21 Thread Billy Ng
Hi all, Is there a way to get the ActionForm obj in the JSP instead of using bean:define tag Thanks! Billy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DynaActionForm: ArrayIndexOutOfBoundsException

2005-04-21 Thread gdeschen
Thanks Hubert ! Perhaps the wiki: http://wiki.apache.org/struts/StrutsCatalogLazyList is not correct or I am interepting it falsely, It has this note in the section LazyDynaBean/LazyValidatorForm: N.B. Solutions here require Struts 1.2.4 and Bean Utils 1.7.0 - Glenn Hubert Rabago [EMAIL

Re: html:link invalid for DTD???

2005-04-21 Thread gdeschen
What does the Action Mapping look like for /welcome ? Scott Purcell [EMAIL PROTECTED] 21/04/2005 12:07 PM Please respond to Struts Users Mailing List To: user@struts.apache.org cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) Subject:html:link invalid

RE: How to get form from JSP

2005-04-21 Thread Wiebe de Jong
The form is already defined as a bean. You can access it using the name you gave it in your struts-config file. i.e. form-bean name=myForm ... Wiebe -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 9:16 AM To: Struts Users Mailing List Subject:

logic:iterate problem...

2005-04-21 Thread Lucas Bern
Hi all... I get this exception trying to render options with logic iterate tag... javax.servlet.jsp.JspException: Cannot create iterator for this collection My action just get a List form a Srevice layer and store it in session scope under Globales.AreaPersonal.MODULOS_KEY. logic:iterate

Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread Dick Starr
I am using Tomcat 5.0.18 and Firefox 1.0.3. A client opens several windows accessing the same web application. When using the IE 6 browser, Tomcat 5 creates one JSESSIONID cookie for each window. Every thing works fine. When using the Firefox browser, Tomcat 5 creates only one JSESSIONID cookie

Re: DynaActionForm: ArrayIndexOutOfBoundsException

2005-04-21 Thread Hubert Rabago
I stand corrected. It *should* work, since, as the wiki says, Struts 1.2.4 will wrap the LazyDynaBean in a BeanValidatorForm automatically. I don't have time to look into it right now, though. Maybe someone else can see what the problem is. Hubert On 4/21/05, [EMAIL PROTECTED] [EMAIL

Re: Reg. Forward and set-property.

2005-04-21 Thread Joe Germuska
The property should be set on your ActionForward, and you should be able to do this: ActionForward f = mapping.findForward(NameOfForward); SubClassOfActionForward scoaf = (SubClassOfActionForward) f; if (!(TitleForThePage.equals(scoaf.getPageTitle)) throw new IllegalStateException(What did I do

Re: html:link invalid for DTD???

2005-04-21 Thread Dave Newton
Scott Purcell wrote: As soon as I try and create this shop image into a link like so. html:link action=/welcome html:img page=/images/shop.gif border=0/ /html:link I get this error message: org.apache.jasper.JasperException: /jsp/welcome.jsp(34,7) Attribute action invalid for

Re: logic:iterate problem...

2005-04-21 Thread Erik Weber
I think your List reference is probably null. Also, have you looked at html:options and html:optionsCollection? Erik Lucas Bern wrote: Hi all... I get this exception trying to render options with logic iterate tag... javax.servlet.jsp.JspException: Cannot create iterator for this collection My

RE: html:link invalid for DTD???

2005-04-21 Thread Scott Purcell
It is very simple as I am just getting underway with some preliminaries. global-forwards forward name=welcome path=/welcome.do redirect=true / forward name=home path=home.do redirect=true / /global-forwards action-mappings action path=/welcome forward=/jsp/welcome.jsp /

Re: logic:iterate problem...

2005-04-21 Thread Lucas Bern
I would like to get a null pointer exception or a can not set bean to null when my list is null... I use to solve this kind of problem with html:options and html:optionsCollection but what i have to do in this page is very complex for this tags... thanks for your answer Erik Lucas Erik

Re: logic:iterate problem...

2005-04-21 Thread Erik Weber
Hmm I didn't even notice that. However, this is the section of code that throws that Exception (from 1.2.4 src): /** * Construct an iterator for the specified collection, and begin * looping through the body once per element. * * @exception JspException if a JSP exception has

Re: logic:iterate problem...

2005-04-21 Thread Jeff Beal
From http://struts.apache.org/userGuide/struts-logic.html#iterate: collection: A runtime expression that evaluates to a collection %=Globales.AreaPersonal.MODULOS_KEY% probably evaluates to a String. What you need is name='%=Globales.AreaPersonal.MODULOS_KEY%' On 4/21/05, Lucas Bern [EMAIL

Re: logic:iterate problem...

2005-04-21 Thread Lucas Bern
Great! it works fine... thanks Jeff and Erik. Lucas Jeff Beal [EMAIL PROTECTED] wrote: From http://struts.apache.org/userGuide/struts-logic.html#iterate: collection: A runtime expression that evaluates to a collection probably evaluates to a String. What you need is name='' On 4/21/05, Lucas

Re: html:link invalid for DTD???

2005-04-21 Thread Jeff Beal
Have you tried removing the slash so you just have 'action=welcome'? I can never remember when the slash is required and when it is not allowed, but I think that for action names you don't use the slash. -- Jeff On 4/21/05, Scott Purcell [EMAIL PROTECTED] wrote: As soon as I try and create

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread Michael Jouravlev
I guess you cannot do this. I don't think that it is possible to start new Firefox window in separate process. And cookies are bound to the process. This is the implementation detail, but I guess all browser vendors bind cookies to the process. This is not Tomcat issue. Anyway, relying on session

Re: html:link invalid for DTD???

2005-04-21 Thread gdeschen
The slash is okay in the action. Where is exactly this snippet of code in the welcome.jsp?: html:link action=/welcome html:img page=/images/shop.gif border=0/ /html:link Jeff Beal [EMAIL PROTECTED] 21/04/2005 01:10 PM Please respond to Struts Users Mailing List To:

RE: html:link invalid for DTD???

2005-04-21 Thread Scott Purcell
The code snippet lives between the html:form tags / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 12:56 PM To: Struts Users Mailing List Subject: Re: html:link invalid for DTD??? The slash is okay in the action. Where is exactly

RE: html:link invalid for DTD???

2005-04-21 Thread gdeschen
LOL... apologies... I meant in which page is the link? Scott Purcell [EMAIL PROTECTED] 21/04/2005 02:01 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List user@struts.apache.org cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)

Re: ActionMessage and resource bundle

2005-04-21 Thread Joe Germuska
The MessageResources bundle which contains a key definition is considered a view-level choice, not a property of the ActionMessage itself. As such, you control the resolution when the message is rendered, probably using html:messages with the bundle attribute. See

AW: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread Leon Rosenberg
Just define multiple hosts. Cookies are stored per host; host is the mid-part of the uri. So if you have two virtual servers like: xxx.mydomain.net and zzz.mydomain.net the jsessionid wouldn't be shared. So in your case, if you have control over the dns server, you could define 1000 hosts for

AW: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread Leon Rosenberg
Just define multiple hosts. Cookies are stored per host; host is the mid-part of the uri. So if you have two virtual servers like: xxx.mydomain.net and zzz.mydomain.net the jsessionid wouldn't be shared. So in your case, if you have control over the dns server, you could define 1000 hosts for

RE: How to get form from JSP

2005-04-21 Thread Greg Pelly
The ActionForm is stored in the request with the same name as the form-bean's name. If you have a form bean: form-bean name=loginForm type = project.struts.form.LoginForm / You can get the form in the JSP like this: % project.struts.form.LoginForm

Looking for a file *I* posted...

2005-04-21 Thread Frank W. Zammetti
On Feb. 28th, I posted a sample of doing multiple uploads, as seen in this message: http://www.mail-archive.com/user@struts.apache.org/msg22400.html I am in need of that sample, but I do not seem to have it anywhere. Does anyone here have a copy by any chance? Thanks all! -- Frank W.

Instance of org.apache.struts.action.Action class. Share instance

2005-04-21 Thread Grzegorz Stasica
hi, Am I correct that only one Action instance is being created by the server?. I mean all users/threads share the same instance? Base on this I surmise that if I extend Action like that: public abstract class MyAction extends Action { protected static final IAuthorizer auth=new MyAuthorizer();

Re: Instance of org.apache.struts.action.Action class. Share instance

2005-04-21 Thread Leon Rosenberg
hi, Am I correct that only one Action instance is being created by the server?. I mean all users/threads share the same instance? yes Base on this I surmise that if I extend Action like that: public abstract class MyAction extends Action { protected static final IAuthorizer auth=new

Re: Instance of org.apache.struts.action.Action class. Share instance

2005-04-21 Thread Leon Rosenberg
hi, Am I correct that only one Action instance is being created by the server?. I mean all users/threads share the same instance? yes Base on this I surmise that if I extend Action like that: public abstract class MyAction extends Action { protected static final IAuthorizer auth=new

Possible to go to named anchor via ActionForward?

2005-04-21 Thread Jim Coble
I have a JSP page in my application that consists of several lines of explanatory text (a screen's worth or so) followed by a form. When the user submits the form, the ActionForm validate method is called and, if there are errors, the user is returned to the same JSP page where html:errors

AW: Possible to go to named anchor via ActionForward?

2005-04-21 Thread Leon Rosenberg
Aehm, script document.location.href = document.location.href+'#errors'; /script At the bottom of your document? I mean, you should remind yourself, that an anchor in your document has nothing to do with the forward. It's like renaming the class file if you need to call method B() of the object

AW: Possible to go to named anchor via ActionForward?

2005-04-21 Thread Leon Rosenberg
Aehm, script document.location.href = document.location.href+'#errors'; /script At the bottom of your document? I mean, you should remind yourself, that an anchor in your document has nothing to do with the forward. It's like renaming the class file if you need to call method B() of the object

RE: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread Dick Starr
Thanks for the responses. Currently I store the following in session: user name (display it in my tiles header and use it in my tile definition with c:if's to not display toolbar menus when no user has logged in), operator id (to get the user's id from within crud maintenance classes as part of

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread Leon Rosenberg
Maybe I'm understanding you wrong, but your multiple windows are all used by the same user, right? In this case user name and operation id should be the same for all 'vsessions' (virtual sessions between one browser window and the webserver). The only thing differs between vsessions is your

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread Leon Rosenberg
Maybe I'm understanding you wrong, but your multiple windows are all used by the same user, right? In this case user name and operation id should be the same for all 'vsessions' (virtual sessions between one browser window and the webserver). The only thing differs between vsessions is your

Re: Possible to go to named anchor via ActionForward?

2005-04-21 Thread Joe Germuska
If you are returning a redirecting action forward, it shoul be no problem to append an anchor -- but if your ActionForward results in a RequestDispatcher forward (as in the default case), then the anchor would probably cause the dispatcher to choke. The problem is that errors are normally

Re: Possible to go to named anchor via ActionForward?

2005-04-21 Thread Jeff_Caswell
Jim, I have used: a href=myActionName.do#tabSetTabTitle/a in the jsp succesfully to position action output with anchors. I have not tried it but possibly something like: /forward forward name=failure path=/myfunctionDisplay.do#errors /forward Hope this helps. -Jeff Is there any way I can

Re: Pagination

2005-04-21 Thread Rafael Taboada
Hi folks. Thanks for ur help. Those projects are so cool... But i have built all my jsp and used taglibs... If I decide to use this tags. Does it mean I have to rebuild my jsps?. -- Rafael Taboada - To unsubscribe, e-mail:

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread K.C. Baltz
Do you have the option of using URL-rewriting instead of cookies for your session tracking? If you've used c:url or html:link etc for all your addresses, you should be able to just switch it on. Then, each time a user hit a link that didn't have the jsessionid encoded, they'd receive a new

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-21 Thread Michael Jouravlev
This would work until they leave application, browse somewhere else, and then return back to original app by typing location directly in the address bar. This is why I do not like stateless: because they are stateless. On 4/21/05, K.C. Baltz [EMAIL PROTECTED] wrote: Do you have the option of

Re: [OT] [Friday] Re: AJAX: Whoa, Nellie!

2005-04-21 Thread Vic Cekvenich (netsql)
[EMAIL PROTECTED] wrote: I think all salient points have been made. Agree. It's almost friday: http://www.moronland.com/image.php?media=Apple%20Weed .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [OT] [Friday] Re: AJAX: Whoa, Nellie!

2005-04-21 Thread Erik Weber
Heh. Normally I hate stuff like this, but for some reason, that one was so silly it just cracked me up. Must be because I just woke up. :) Erik Vic Cekvenich (netsql) wrote: [EMAIL PROTECTED] wrote: I think all salient points have been made. Agree. It's almost friday:

500 No input attribute for mapping path /Logon

2005-04-21 Thread T. B.
Hi all, I am trying to deploy a simple struts on resin 2.1.12 and got this error when accessing my port http:my home port/myApp/Logon.do The error is: 500 No input attribute for mapping path /Logon The mappings in struts-config.xml are as followed: . global-forwards !--

form field formatting

2005-04-21 Thread Riyaz Mansoor
hi guys. for all whose interested. all that is needed is 2 files; 1) formatter-rules.xml (of type validation-rules.xml). add file to ValidatorPlugin resource path 2) java class containing methods to execute of course, validating n formatting r very different things. but its small work and

Re: 500 No input attribute for mapping path /Logon

2005-04-21 Thread Lucas Bern
Hi! I think the input attribute must be setted with the value of the page where the errors of validation will be displayed... I mean. action path=/Logon type=logon.LogonAction name=logonForm scope=request validate=true input=yourErrorPage/ I wish it helps you Lucas T. B. [EMAIL PROTECTED]

Re: 500 No input attribute for mapping path /Logon

2005-04-21 Thread Michael Jouravlev
You have validate set to true, thus Struts tries to locate error/input page and cannot find it, because input attribute is not defined. rant input must be renamed to error. /rant Michael. On 4/21/05, T. B. [EMAIL PROTECTED] wrote: Hi all, I am trying to deploy a simple struts on resin

Re: 500 No input attribute for mapping path /Logon

2005-04-21 Thread T. B.
Ah ah! It turns out that I should change parameter=/pages/Login.jsp/ to input=/pages/Login.jsp/ Thanks all for spotting that! Thong --- Michael Jouravlev [EMAIL PROTECTED] wrote: You have validate set to true, thus Struts tries to locate error/input page and

Action call another action?

2005-04-21 Thread Yen
Hi, I have an action which save the data into the database, after the saving, I would like to forward to the listing page, where I have another action doing the listing. Should I repeat the same listing method (method list) in the save action itself..? Or, is there any better way? Thanks for

Re: Action call another action?

2005-04-21 Thread Erik Weber
That's the way I do it. If your Actions are light, as they should be, it doesn't add a lot of code. Some redundant code is not a bad thing, it can make things clearer. If you were to chain actions, then you'd be going through the entire request processor chain again. I think that Struts 1.3,

Re: Action call another action?

2005-04-21 Thread Erik Weber
Let me just make sure I'm being clear, since you appear to use separate Actions whereas I typically use one. I do it like this: execute( . . .) { //switch case view: getDelegate().doViewStuff(); break; case save: getDelegate().doSaveStuff(); getDelegate().doViewStuff(); break;

Re: Action call another action?

2005-04-21 Thread Yen
The problem is, I use ValueList for the listing page, it will automaticaaly append the action=add when selecting the next/previous page. so, after I add the record, it will go to the listing page (return (mapping.findForward(afflist))), at the same time, it will append the action=add (base on

problem with logic:iterate

2005-04-21 Thread Kade Jeevan Kumar
Hi i have for(int i=0; i vec.size(); i++) { if(i=5) { // do some thing } } how can i use the same code in logice:iterate Help me out with example. -Thnx in Advance Jeevan