Re: JSF or Struts Classic (was Vs)

2005-09-21 Thread Craig McClanahan
On 9/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > I would like to hear what a component is. Definitions can differ. JSF > hides the strict definition of component quite well, here is one, done > indirectly (JSF 1.1 spec, chapter 1.2.2): > > === cut here === > Component writers are respon

Re: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Wendy Smoak
From: "Archana Soni" <[EMAIL PROTECTED]> <%@ taglib uri="/tags/struts-html" prefix="html" %> The application is working fine with just omitting the first line of the jsp ( <%@ taglib ...). But as soon as I add it, it gives the NullPointerexception Is this a Servlet 2.3 or better container?

RE: Bean association with form

2005-09-21 Thread rahul
this might work - > -Original Message- > From: Michael Oliver [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 22, 2005 4:37 AM > To: 'Struts Users Mailing List' > Subject: Bean association with form > > > I have an Form called MappingElement, > > From

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Archana Soni
This is my Welcome.jsp file content <%@ taglib uri="/tags/struts-html" prefix="html" %> Welcome http://yahoo.com";>Yahoo

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Laurie Harper
Erm, yes? You were complaining that validator wasn't being invoked after you switched to sub-classing ActionForm directly / implementing validate() yourself. I was just pointing out that it's not expected to be in that case. L. Francisco Antonio Vieira Souza wrote: Everything you said IS her

Re: Refreshing the application properties

2005-09-21 Thread Laurie Harper
At least w/ Tomcat (versions I've used, anyway, don't know about 5.5) it will serialize the sessions to disk then reload them. No idea about Oracle App Server. L. Jadeler wrote: When a server does redeploy the application, doesnt it kick current users sessions? I've read of hot deployments b

Re: DynaActionForm and html:hidden

2005-09-21 Thread Martin Gainty
K- corrections are prefixed by 'Note correction' in both the JSP and struts-config.xml.. Hi All, I am trying to find a way to populate a DynaActionForm after the form has been submitted. For example, I have the following: public class MyBean implements serializable { public String name,

Re: JSF or Struts Classic (was Vs)

2005-09-21 Thread Michael Jouravlev
On 9/21/05, Ted Husted <[EMAIL PROTECTED]> wrote: > On 9/21/05, Siva Jagadeesan <[EMAIL PROTECTED]> wrote: > > > 1. is it difficult to switch from Struts to JSF for Struts-enabled ;-) > > > developer. How steep is the learning curve? > > > > There is going to be initial learning curve for sure. BUT

Re: url validation

2005-09-21 Thread Martin Gainty
Stephen URL Validation is covered here in this document http://struts.apache.org/userGuide/dev_validator.html HTH, Martin- - Original Message - From: "Stephen Souness" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 21, 2005 8:14 PM Subject: url validation Can anyone point me to an

Re: Validating Indexed Properties

2005-09-21 Thread Kishore Senji
> public class DevicePartMeasurementTO implements Serializable { > > > > private int devicePartsTypeID; > > private String devicePartsType; > > private float prWave; > > private float impedance; > > private String threshold; > > > > public DevicePartMeasurementTO() > > { > > > > } > > getters a

url validation

2005-09-21 Thread Stephen Souness
Can anyone point me to an explanation of how the url validation should work? I'm using struts 1.2.7, have url validation enabled for some fields and they are consistently being rejected. I just want to be able to have a consistent check on websites that are being entered into the form, so tha

Re: JSF or Struts Classic (was Vs)

2005-09-21 Thread Ted Husted
On 9/21/05, Siva Jagadeesan <[EMAIL PROTECTED]> wrote: > > 1. is it difficult to switch from Struts to JSF for Struts-enabled ;-) > > developer. How steep is the learning curve? > > There is going to be initial learning curve for sure. BUT IT IS WORTH it. > Struts and JSF are totally in different p

Re: Refreshing the application properties

2005-09-21 Thread Jadeler
When a server does redeploy the application, doesnt it kick current users sessions? I've read of hot deployments before and cant remember if that will maintain the current session for the user. Do you know how to do this in Oracle App server? --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Jad

Bean association with form

2005-09-21 Thread Michael Oliver
I have an Form called MappingElement, >From struts-config.xml I have an Action that opens a jsp page with a form on it and populates the MappingElement bean with data. >From EditMappingElement.java public ActionForward execute(ActionMapping mapping, ActionForm form, H

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Murray Collingwood
Hi Kathir I did raise this possibility however Archana was satisfied that his ActionServlet mapping was correct, and from my look at the code it didn't look wrong, just a little non-standard to my liking. However, he said he made the change and the error remains. Kind regards mc On 21 Sep

Re: multiple struts-config.xml issues with CactusStrutsTestCase

2005-09-21 Thread Carl Smith
Your solution works perfectly. Thank you Kishore. Kishore Senji <[EMAIL PROTECTED]> wrote:I think by default the CactusStrutsTestCase reads the /WEB-INF/struts- config.xml only. If you have multiple config files you would have to set the appropriate config file in your test method. For eg: publ

Re: [OT] Re: Please Unsubscribe

2005-09-21 Thread Dave Newton
James Mitchell wrote: Yes, there's a moderator. I'm picturing one of those disembodied god/dess voices saying that then congratulating me on my lawn or something. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [OT] Re: Please Unsubscribe

2005-09-21 Thread James Mitchell
Yes, there's a moderator. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] Skype: callto://jmitchtx On Sep 21, 2005, at 12:49

Re: How to Debug my Struts Application + tomcat + myeclipse 4.0?

2005-09-21 Thread James Mitchell
Not luck, it's a paid for product and so is expected to do so. I don't use MyEclipse (even when my client bought me a license) because I stay several versions ahead of what's available for MyEclipse. I use the latest stable nightlies of what makes up the Web Tools product. To be fair tho

[OT] Direct-to-DOM validation

2005-09-21 Thread Michael Jouravlev
I like IceSoft's "Direct-to-DOM" buzzword ;-) The question is probably better suited for Commons mailing list, but because it is Struts-related, I will ask it here. Have anyone tried or have heard of projects which display client-side validation messages directly in the page instead of popping up

Re: DynaActionForm and html:hidden

2005-09-21 Thread Jason King
document.forms[0]["mybean.name"].value = "myname" ; will work [EMAIL PROTECTED] wrote: I haven't tried it, however, I would have to see if JavaScript would handle it. I am updating the hidden field using javascript, so I am not sure if it would like: document.forms[0].myBean.name.value = "myn

Re: [Shale] Clay and Acegi

2005-09-21 Thread Siva Jagadeesan
Gary at last I made it work. the problem is , my Shale Preprocessor was not including "*.htm" so it was rejecting and sending web sever with 403. After I included it , it is working like a charm. Probably I will do a small write out on how to get Shale/Clay/Acegi working . Thanks for you

Validating Indexed Properties

2005-09-21 Thread Jones, Jason (Ann Arbor)
Hello all, I am fairly new to Struts, and have my first application working from a db and navigation standpoint. The last piece I am trying to get working is the validation for my forms, many of which have indexed properties based on DTOs. I user a LazyValidationForm, though I probably didn't n

Re: DynaActionForm and html:hidden

2005-09-21 Thread kandryc
I haven't tried it, however, I would have to see if JavaScript would handle it. I am updating the hidden field using javascript, so I am not sure if it would like: document.forms[0].myBean.name.value = "myname"; ... ... ~K Quoting Michael Jouravlev <[EMAIL PROTECTED]>: > Are you saying that

Struts and mod_jk weird behaviour

2005-09-21 Thread C.F. Scheidecker Antunes
Hello all, I have a struts apps that work great if I connect to http://localhost:8080/App My Tomcat also has two other apps http://localhost:8080/servlets-examples and http://localhost:8080/jsp-examples. However both the servlets-examples and jsp-examples work perfectly with mod_jk but my

Re: DynaActionForm and html:hidden

2005-09-21 Thread Michael Jouravlev
Are you saying that combination of nested properties and dynaform does not work for nested fields? Have you tried this: Michael. On 9/21/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to find a way to populate a DynaActionForm after the form has been > submitted. Fo

Re: JSF Vs Struts

2005-09-21 Thread Siva Jagadeesan
> 1. is it difficult to switch from Struts to JSF for Struts-enabled ;-) > developer. How steep is the learning curve? There is going to be initial learning curve for sure. BUT IT IS WORTH it. Struts and JSF are totally in different paradiam. Struts is Action oriented and JSF is component oriented

DynaActionForm and html:hidden

2005-09-21 Thread kandryc
Hi All, I am trying to find a way to populate a DynaActionForm after the form has been submitted. For example, I have the following: public class MyBean implements serializable { public String name, address; public MyBean() { name = new String(); address = new String(); }

Re: Very Simple Struts HTML tag question

2005-09-21 Thread Randy Shepherd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bad randy.. google before you speak. On Sep 21, 2005, at 12:04 PM, Randy Shepherd wrote: I realize that it is non-standard HTML, but I was wondering if the Struts HTML input tag has an equivalent to the autocomplete parameter. Non-Standard HTML:

Re: JSF Vs Struts

2005-09-21 Thread Greg Reddin
On Sep 21, 2005, at 1:40 PM, Wojciech Ciesielski wrote: 1. is it difficult to switch from Struts to JSF for Struts-enabled ;-) developer. How steep is the learning curve? I have not found it terribly difficult, but I've certainly not gone very far with it yet either. I think JSF contains a

Very Simple Struts HTML tag question

2005-09-21 Thread Randy Shepherd
I realize that it is non-standard HTML, but I was wondering if the Struts HTML input tag has an equivalent to the autocomplete parameter. Non-Standard HTML: size="22" autocomplete="off"> Struts HTML ??=?? /> Thanks in advance! Randy ---

AW: Again: I18n problems

2005-09-21 Thread R. Markham
Hi Martin, I don't think it is the problem of Struts the problem lays at Tomcat. Try to experiment with Tomcat config File. In German we have to use the UTF Code directly or the Hex Code for the German special Charater. Regards Richard -Ursprüngliche Nachricht- Von: Martin Kindler [ma

JSF Vs Struts

2005-09-21 Thread Wojciech Ciesielski
Hi there, I am quite experienced with Struts - I've started learning it when JSF where just in development phase... Right now JSF became java standard - and it's supported by tools like MyEclipse and Exadel Studio. So - I've got two questions: 1. is it difficult to switch from Struts to JSF for

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Francisco Antonio Vieira Souza
Everything you said IS here. Laurie Harper escreveu: If you are just using an ActionForm subclass you wrote, Validator isn't used so the behaviour you're now seeing is correct. If you want to use Validator, your ActionForm class needs to extend ValidatorForm or ValidatorActionForm rather than

Re: [Shale] Clay and Acegi

2005-09-21 Thread Siva Jagadeesan
Yah I guess it is something to do with my web server setup. I will check it. On 9/21/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > >I tried renaming login.html to login.htm. But it does not get rendered. I > am > >getting blank page. I am not sure if I am missing anything. Yes i have > >changed

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Laurie Harper
If you are just using an ActionForm subclass you wrote, Validator isn't used so the behaviour you're now seeing is correct. If you want to use Validator, your ActionForm class needs to extend ValidatorForm or ValidatorActionForm rather than ActionForm; if you want to include a validate() method

Re: Refreshing the application properties

2005-09-21 Thread Laurie Harper
Jadeler wrote: Is there a way to refresh the application properties without redeploying or restarting a web app? I havent found a way to do this. If you're using Tomcat, you can configure the context to be reloadable, which will cause Tomcat to re-deploy to webapp when anything on the clas

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Francisco Antonio Vieira Souza
ActionError(...) is deprecated in Struts 1.2.7 rahul escreveu: try this errors.add("usuario", new ActionError("login.usuario.requerido")); -Original Message- From: Francisco Antonio Vieira Souza [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 8:30 PM To: Struts Users

Re: [Shale] Clay and Acegi

2005-09-21 Thread Gary VanMatre
>Gary I looked at Rolodex example. I think this method is useful for more >nested components rite? But for this simple case do you think it is a good >practise to use this method? Ya, I agree. The runtime option should be a special case. In the rolodex example I'm using the id attribute with CS

Struts DateFormat / Locale problem after rebooting WebSphere AppServer

2005-09-21 Thread Silvija Cardzic-Mrsa
Hi, My struts application is installed on a WebSphere Application Server. AppServer and OS is installed in english language version. In the struts application I'm setting the locale to german, for formatting date and time values and saving to database - it works fine so far. After rebooting th

Re: [Shale] Clay and Acegi

2005-09-21 Thread Gary VanMatre
>I tried renaming login.html to login.htm. But it does not get rendered. I am >getting blank page. I am not sure if I am missing anything. Yes i have >changed Clay-template-suffix to *.html I think this is a tomcat config thing. My guess is the the defaut servlet is doing this but I'm not a tomc

AW: Again: I18n problems

2005-09-21 Thread Martin Kindler
Thanks Michael, that works! Martin > -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. September 2005 18:34 > An: Struts Users Mailing List; [EMAIL PROTECTED] > Betreff: Re: Again: I18n problems > > > On 9/21/05, Martin Kindler <[EM

[OT] Re: Please Unsubscribe

2005-09-21 Thread Dave Newton
Tim Kettering wrote: I cannot unsubscribe from this list because the unsubscribe link keeps thinking any mail I send to it is spam! So will a list moderator please take me off the list. Thanks! Good lord, there's a moderator?! Dave --

Please Unsubscribe

2005-09-21 Thread Tim Kettering
I cannot unsubscribe from this list because the unsubscribe link keeps thinking any mail I send to it is spam! So will a list moderator please take me off the list. Thanks! The original message was received at Wed, 21 Sep 2005 11:31:12 -0400 - The following addresses had perma

Re: Again: I18n problems

2005-09-21 Thread Michael Jouravlev
On 9/21/05, Martin Kindler <[EMAIL PROTECTED]> wrote: > I've got a problem with using non-ISO-8859 characters (they are UTF-8) in my > Struts application. > When I am using property-Strings in the resource bundle with cyrillic > letters and use them they get mangled. > They are mangled when I use t

Re: [Shale] Clay and Acegi

2005-09-21 Thread Siva Jagadeesan
Gary I looked at Rolodex example. I think this method is useful for more nested components rite? But for this simple case do you think it is a good practise to use this method? On 9/21/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > >I am trying to setup Acegi security for my project. > > > > >

Again: I18n problems

2005-09-21 Thread Martin Kindler
I've got a problem with using non-ISO-8859 characters (they are UTF-8) in my Struts application. When I am using property-Strings in the resource bundle with cyrillic letters and use them they get mangled. They are mangled when I use the JSTL fmt:message tag as well as when I am importing them in m

RE: Please help! I have been looling at this problem for two days

2005-09-21 Thread Kam Lung Leung
Hi Wojciech, Yes, I forgot to put jbossall-client.jar. Now I can see the print out. Thank so much. Kam Lung Leung Struts Users Mailing List wrote: > > What's the appserver? Jboss or Tomcat? > > It seems that you do not have libraries containing javax.ejb.* packages in > server lib direct

Re: How to validate in Struts 1.2.7

2005-09-21 Thread Michael Jouravlev
On 9/21/05, Francisco Antonio Vieira Souza <[EMAIL PROTECTED]> wrote: > Ok, thanks but those examples were developed with Struts 1.1, and I am > afraid something has changed in Struts 1.2.7 Not much. Download MailReader Demo application and check out how username and password are validated. By th

Re: [Shale] Clay and Acegi

2005-09-21 Thread Siva Jagadeesan
I tried renaming login.html to login.htm. But it does not get rendered. I am getting blank page. I am not sure if I am missing anything. Yes i have changed Clay-template-suffix to *.html shale org.apache.shale.faces.ShaleApplicationFilter shale /* clay-template-suffix .html On 9/21/05,

Re: passing JavaBeans through an ActionForm?

2005-09-21 Thread Michael Jouravlev
On 9/21/05, Koen Jans <[EMAIL PROTECTED]> wrote: > Here's my problem; > > A user has several accounts, represented by AccountBean objects, all > having a unique accountId. > > Now, i have a form where the user can select one of his accounts to edit > through a radio button selection. For the associ

RE: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread rahul
try this errors.add("usuario", new ActionError("login.usuario.requerido")); > -Original Message- > From: Francisco Antonio Vieira Souza [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 21, 2005 8:30 PM > To: Struts Users Mailing List > Subject: Re: Help - I cannot validate a simple

Re: [Shale] Clay and Acegi

2005-09-21 Thread Gary VanMatre
> >I am trying to setup Acegi security for my project. > > > >I have these following files. > > > >1) good.html -- Protected Resource > >2) login.html -- Unprotected Resource > > > >login.html is a standard html that has > > > > > >When I access good.html , acegi filter redirects it to login.html.

Re: How to Debug my Struts Application + tomcat + myeclipse 4.0?

2005-09-21 Thread Dave Newton
I don't know if I'm just lucky or something (judging from the legacy code I've been dealing with lately I find it unlikely :( but when using MyEclipse and Tomcat 5.5.something I've accidentally set breakpoints in both JSP and Java files and been suddenly dumped into the debugger without having

Re: [Shale] Clay and Acegi

2005-09-21 Thread Gary VanMatre
>I am trying to setup Acegi security for my project. > >I have these following files. > >1) good.html -- Protected Resource >2) login.html -- Unprotected Resource > >login.html is a standard html that has > > >When I access good.html , acegi filter redirects it to login.html. Clay >filter identifie

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Francisco Antonio Vieira Souza
I really dont get it, I might be being so stupid not figuring out what is going on wrong here, but I dont. Clearing a little. I decided not to use DynaForm and go back to the usual ActionForm and gave up using Client-side validation. When I implement the validate method of the Bean (as it is

Re: [Shale] clay templating

2005-09-21 Thread Gary VanMatre
> Gary VanMatre wrote: > > >Maksimenko Alexander wrote: > > > > > >>yes it will work too but needs useless duplications of jsfid in mapping > >>element (I afraid of duplications ;)) > >> > >> > >> > >In this case the last one registered would win. We have the same thing with > JSF compon

[Shale] Clay and Acegi

2005-09-21 Thread Siva Jagadeesan
I am trying to setup Acegi security for my project. I have these following files. 1) good.html -- Protected Resource 2) login.html -- Unprotected Resource login.html is a standard html that has When I access good.html , acegi filter redirects it to login.html. Clay filter identifies that it ne

Re: How to Debug my Struts Application + tomcat + myeclipse 4.0?

2005-09-21 Thread James Mitchell
You must give tomcat a startup option before you can do that. Here's how I run tomcat in a console, and debug separately with Eclipse $cd tomcat-5.5.11/bin $./catalina.sh jpda start & tail -f ../logs/catalina.out -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mento

Re: [Shale] clay templating

2005-09-21 Thread Maksimenko Alexander
Gary VanMatre wrote: Maksimenko Alexander wrote: yes it will work too but needs useless duplications of jsfid in mapping element (I afraid of duplications ;)) In this case the last one registered would win. We have the same thing with JSF components and managed beans? why it's

Re: Struts-Config /Resources

2005-09-21 Thread James Mitchell
http://wiki.apache.org/struts/StrutsReloadingConfig -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] Skype: callto://jmitchtx O

Struts-Config /Resources

2005-09-21 Thread M. Imran
Dear All, I am using myeclipse+JBoss, whenever I add Action or edit my ApplicationResources I have to restart my jboss server to changes taking place, is it normal or something can be done to avoid server restart. Regards, Imran

RE: MessageResources

2005-09-21 Thread Holshausen, Ron
Sorry, that should be the first time the resource is *accessed* :-) -Original Message- From: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sent: 21 September 2005 19:01 To: Struts Users Mailing List Subject: RE: MessageResources Hi David, Message resources are typically loaded by the class

RE: MessageResources

2005-09-21 Thread Holshausen, Ron
Hi David, Message resources are typically loaded by the class loader's getResource method. So this could change with different containers and JDK versions, but in my experience it is either loaded at start-up or the first time the resource is loaded. -Original Message- From: Harland, Davi

MessageResources

2005-09-21 Thread Harland, David
When you create a MessageResources object is it getting the resources from what was stored in memory on startup or directly from the file? This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may n

Re: Validation of input field requires SQL. Better to put it in Form or in Action?

2005-09-21 Thread Jeff Beal
In general, ActionForm validation is limited to the most basic input validation, mostly making sure that incoming strings can be parsed into a specific type. If you need to issue a SQL query to ensure valid data, that sounds like a business logic operation, and probably makes more sense in the Act

Re: [Shale] clay templating

2005-09-21 Thread Gary VanMatre
Maksimenko Alexander wrote: > > > yes it will work too but needs useless duplications of jsfid in mapping > element (I afraid of duplications ;)) > In this case the last one registered would win. We have the same thing with JSF components and managed beans? > why it's not possible just while

Re: How to Debug my Struts Application + tomcat + myeclipse 4.0?

2005-09-21 Thread Praveen Kumar
Hi In Eclipse there is DEBUG option in DEBUG-->Remote-->Create New --->give portno and other options --> Add BreakPoint In your (java file ) and you can watch the variable values --> press F8 for next line execution . the application should be in running mode in tomcat. Regards prave

Re: Help - I cannot validate a simple form with 2 fields

2005-09-21 Thread Niall Pemberton
On the client side validation it looks like you have spelt the javascript method name wrong in the form's onsubmit event. You can easily check the client side by seeing what javascript has been generated for the page by viewing the source. For the sever side I can't see anything obviously wrong. P

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Murugesan, Kathiresan \(Cognizant\)
mc, did you check the web.xml file contains an entry for ActionServlet Mapping. The looks like the ActionServlet is not getting initiated and some other servlets in the jetty server is disturbed and throwing the NullPointerException Regards Kathir. From:

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Murugesan, Kathiresan \(Cognizant\)
--- Begin Message --- mc, did you check whether the web.xml has the ActionServlet mapping? Regards Kathir. From: Murray Collingwood [mailto:[EMAIL PROTECTED] Sent: Wed 9/21/2005 5:14 PM To: Struts Users Mailing List Subject: RE: Null Pointer exception when usi

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Murray Collingwood
Can you post your jsp form? On 21 Sep 2005 at 17:12, Archana Soni wrote: > Global-forwards are not necessary to be defined. It will work even without > it. And the URL pattern can be anything (even other than *.do). Important is > that it should be mapped with some servlet name. > > So I guess c

Re: Custom data-type classes, howto

2005-09-21 Thread Murray Collingwood
Hi David html forms can only support a limited number of types, textbox, textarea, radio, checkbox, selection box, and then some variations like password and file. As far as I am aware you can't pass a person object and expect Struts to work out the form...maybe there is some technology that doe

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Archana Soni
Global-forwards are not necessary to be defined. It will work even without it. And the URL pattern can be anything (even other than *.do). Important is that it should be mapped with some servlet name. So I guess changing these will not have any impact. Still I did the correction you suggested. And

Re: Custom data-type classes, howto

2005-09-21 Thread David Delbecq
Sorry I was not clear. Am not asking how to display it in the JSP. This part is quite straightforward. What am wondering is how does struts manage the submission of form by user. If I take the simple example where parameter[0] is to be holder a String and parameter[1] to be the holder of a Person.

Re: Custom data-type classes, howto

2005-09-21 Thread Murray Collingwood
On reading this I initially thought you had an array of objects where each object was a group of objects such as a file, an int, a string etc. Then I wondered whether your array of objects was just that, the first object a file, the second object an int, the third object a string etc. Obvio

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Murray Collingwood
struts-config.xml Global-forwards are the application entry points. You don't have any defined. Mine look like this: web.xml Your servlet mapping is weird, normally you would specify something like: action *.do Maybe, I'm still thinking in Struts 1.2.7 (having no

How to Debug my Struts Application + tomcat + myeclipse 4.0?

2005-09-21 Thread ojay78
[EMAIL PROTECTED], how can I debug my Struts application? I'm using myeclipse 4.0 for development and Tomcat 5.5.9? I'm new in Struts + tomcat development. Does anyone can give me a tutorial that shows me how to debug my webapp? Thanks OJAY

Re: MailReader demo app is rewritten with Struts Dialogs

2005-09-21 Thread Ted Husted
On 9/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Source is available (of course, what did I compile it from ;-) ), but > I need to beatify it a little, add javadocs, stuff like that. I could do that as part of a code review. Helps keep me focussed :) -Ted. -

Re: How to validate in Struts 1.2.7

2005-09-21 Thread Francisco Antonio Vieira Souza
Ok, thanks but those examples were developed with Struts 1.1, and I am afraid something has changed in Struts 1.2.7 Harland, David escreveu: Go to this address and download the sample application code. http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764544373,descCd-download_code.html In t

RE: How to validate in Struts 1.2.7

2005-09-21 Thread Harland, David
Go to this address and download the sample application code. http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764544373,descCd-download_code.html In the chapter 12 directory is a lot of examples of how to use the struts validator correctly. Regards Dave. -Original Message- From: Fra

Re: passing JavaBeans through an ActionForm?

2005-09-21 Thread David Delbecq
Koen Jans a écrit : >Here's my problem; > >A user has several accounts, represented by AccountBean objects, all >having a unique accountId. > >Now, i have a form where the user can select one of his accounts to edit >through a radio button selection. For the associated ActionForm, i see >two opti

Re: How to validate in Struts 1.2.7

2005-09-21 Thread Francisco Antonio Vieira Souza
Thanks a lot my friend, but consider using DynaForm, how could I do that? David Delbecq escreveu: This will help you :) don't forget to add validate=true in your struts-config.xml public class MyForm extends ActionForm { public static int MAX =100; private Integer value; public I

RE: passing JavaBeans through an ActionForm?

2005-09-21 Thread Holshausen, Ron
Hi Koen, I typically try to keep my action forms as simple as possible, so I would go with the former approach. This leaves a clearer separation between your presentation objects and business objects. One place where this is important is in clustered environments, as action forms are typically st

Re: [Shale] clay templating

2005-09-21 Thread Maksimenko Alexander
Gary VanMatre wrote: That is only true for things defined as "component". Things defined as "component" are top-level. That really means that they are an entry in the Map that caches the digested XML file. When you use the jsfid for an "element", it kind of works like and a java

passing JavaBeans through an ActionForm?

2005-09-21 Thread Koen Jans
Here's my problem; A user has several accounts, represented by AccountBean objects, all having a unique accountId. Now, i have a form where the user can select one of his accounts to edit through a radio button selection. For the associated ActionForm, i see two options to represent the selected

Re: How to validate in Struts 1.2.7

2005-09-21 Thread David Delbecq
This will help you :) don't forget to add validate=true in your struts-config.xml public class MyForm extends ActionForm { public static int MAX =100; private Integer value; public Integer getValue() { return value; } public void setValue(Integer value) { t

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Archana Soni
I am attaching my web.xml and struts-config.xml files -Original Message- From: Murugesan, Kathiresan (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 12:37 PM To: Struts Users Mailing List Subject: RE: Null Pointer exception when using struts html tag library in

How to validate in Struts 1.2.7

2005-09-21 Thread Francisco Antonio Vieira Souza
Considering that nobody saw my big previous message about this subject. I ask you all, does anyone could provide me any example of validation in Struts 1.2.7? (since until now I had no success) ___ Novo Yah

RV: struts modules and sitemesh

2005-09-21 Thread Cesar Villar
Hello!!! I'm developing a strut web application with several modules. When i tried to integrate all the modules with sitemesh It didn't work. I mean, when i click on a link of a module it doesn't work because struts doesn't find the action asociated with the jsp. Curs Struts-config.xml But

Re: [OT] Re: JDeveloper 10.1.3 Early Access

2005-09-21 Thread Christian Bollmeyer
Hi, I think what you mean is a feature named 'Local History' that has been around in Eclipse for quite some time. The new release has a much improved built-in CVS client (10.1.2 still used the CVS binaries which is optional now) and supports other SCMs (ClearCase, Perforce, Dimensions at the time

[shale] commandLink and commandButtons have to be clicked twice

2005-09-21 Thread Holshausen, Ron
Hi List, I am experiencing a curious phenomenon when using the Shale Dialog Manager. I have a JSF based portlet that opens a new window when a user clicks a button on it's edit page. I start a new dialog flow in this window. Everything works fine, except all actionCommands and actionLinks have

RE: Please help! I have been looling at this problem for two days

2005-09-21 Thread Vijaya S
Hi, In your code "mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 5:06 AM To: Struts Users Mailing List Subject: Please help! I have been looling at this problem for two days Importance: High Hi, I have a class named UserLoginForm that extend ActionForm. I also have a UserL

Custom data-type classes, howto

2005-09-21 Thread David Delbecq
Hello, I'm seeking for help/documentation pointers on how to manage custom data-types in struts. Am wanting to know if it's possible to manage complex data-type (that is data-types which need more than one field to be displayed / filled) All this considering my form contains an array named paramet

RE: Null Pointer exception when using struts html tag library in jsp file

2005-09-21 Thread Murugesan, Kathiresan \(Cognizant\)
--- Begin Message --- Also check do you have ActionServlet mapping in your web.xml. if you have all the struts related mapping then check with your control flow in Jetty server. That may have some servlet chain during invocation and may cause the exception. Regards Kathir.