Setting values of nested collection

2004-09-29 Thread Danielle Boukovska
Hi all I have a problem with setting the values on a hierarchy of nested properties. I have an ActionForm which has a property A of type HashMap. A is keyed on Strings, and each value of A is a Collection (ArrayList). This collection contains objects of type B. I am trying to iterate through the

ImageButtonBean & LookupDispatchAction

2004-09-29 Thread Ben
Hi Anyone knows any example on how to use ImageButtonBean in LookupDispatchAction? Or can someone give me an example implementation? Thanks. Regards, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

JPetStore question?

2004-09-29 Thread struts Dude
Hi, Just curious, did anyone use JPetStore as a prototype to implement a real online store?? What's your experience of it? Excellent practice? JPetStore seems to have high review and top-notch ... Plus, it's using Struts, so I am going to dive in and study its source. Just curious about the exp

AW: Struts and Quartz Scheduler

2004-09-29 Thread Thomas Vogt
You need a class to be executed as Job public final class BerechnungsJob implements Job { /* (Kein Javadoc) * @see org.quartz.Job#execute(org.quartz.JobExecutionContext) */ public void execute(JobExecutionContext context) throws JobExecutionException { ... }

Re: Seeking advice for buying a Struts book

2004-09-29 Thread joe a.
I got my first app up by following the tutorial in Jakarta Struts Live It taught me how to use the validation framework to get enterprise level form validation up and running. It took me a while to get it right, but I think I would have been hopeless without it ! On Wed, 29 Sep 2004 14:58:50 +1

Struts and Quartz Scheduler

2004-09-29 Thread Barnett, Brian W.
Has anyone here integrated Quartz with Struts? I'm having a hard time finding examples on this combination. I'm using the latest version of Quartz, 1.4.2, and I'm initializing it in web.xml like this: QuartzInitializer

Re: Global Forward and tag

2004-09-29 Thread Tom Holmes Jr.
That was the trick! All I had to do was remove the ".." and replace it with "/" and that was it. Thanks. Tom Stephen Houston wrote: Try removing the ".." from the path in the forward. We use with the forward parameter, however we always define the path for the global forward

Re: image challenge?

2004-09-29 Thread Michael McGrady
Brian Lee wrote: Check out the gmail.com link for attach file. It gives the functionality through a link. If you can figure that out then you can replace the link text with an image. BAL Hi, Brian, Not sure what you are saying here. Are you saying there is another solution? Not sure what I

RE: Global Forward and tag

2004-09-29 Thread Stephen Houston
Try removing the ".." from the path in the forward. We use with the forward parameter, however we always define the path for the global forward as starting with a "/", e.g. -Original Message- From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED] Sent: 30 September 2004 00:53 To: Steph

Re: Seeking advice for buying a Struts book

2004-09-29 Thread Sebastian Hennebrueder
I liked the book Struts Survival Guide which is available here http://www.objectsource.com/ It is not a basic book but provides solutions for typical problems. Regards Sebastian www.laliluna.de - To unsubscribe, e-mail: [EMAIL PRO

Global Forward and tag

2004-09-29 Thread Tom Holmes Jr.
I have a global forward in my struts-config.xml file defined as: I have a jsp page with a struts form. I do have an as defined: This works fine in the JSP page, but when I call the action: http://www.mydomain.net/membership_address.do Th

RE: image challenge?

2004-09-29 Thread Brian Lee
Check out the gmail.com link for attach file. It gives the functionality through a link. If you can figure that out then you can replace the link text with an image. BAL From: Michael McGrady <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: image challenge? Date: T

Deploying struts

2004-09-29 Thread Sanghamitra Roy
I have Tomcat 3.3.1. I have downloaded the struts 1.2.2 and unzipped to the directory C:\struts. I have copied over the "struts-examples.war" files in the directory C:\struts\jakarta-struts-1.2.2\dist\webapps to the $TOMCAT_HOME\webapps directory as well as unjarred them to $TOMCAT_HOME\webap

Re: FW: R: Detecting the previous JSP

2004-09-29 Thread Frank W. Zammetti
Gnan, can you post the HTML that is generated by this? I.e., what you see when you do View Source in your browser... I have a hunch what's going on, but I need to see that to be sure... Shabada, Gnaneshwer wrote: All. I am posting again so that someone can shed some light on this.. I am trying

Re: The Original Web Page Cannot Be Found (HTTP 404) After Validation is Turned On

2004-09-29 Thread Gabriel França Campolina
Try put the /ContentMgmt.do On Wed, 29 Sep 2004 12:00:31 -0700 (PDT), Caroline Jen <[EMAIL PROTECTED]> wrote: > I have action mapping in the struts-config.xml like > this: > >path="/ContentMgmt" // the path for a link >type="org.dhsinfo.content.SelectPage" >scope=

RE: FW: R: Detecting the previous JSP

2004-09-29 Thread Shabada, Gnaneshwer
All. I am posting again so that someone can shed some light on this.. I am trying to submit an action from a button thru a Javascript function. My Javascript code is : function callDelete() { document.forms[0].action="/deleteRegistration"; document.forms[0].submit(); > JS

RE: inline conditional expression with JSTL EL

2004-09-29 Thread David G. Friedman
Dan, Just don't forget to turn JSP 2.0 on for all JSP's OR on for selective JSP's using the in-page call: <%@ page isELIgnored="false" %> It definitely works for me on a per-jsp basic in Tomcat 5.0.28 when I tested it this week under Eclipse v3.X. :) Good luck, David -Original Message-

The Original Web Page Cannot Be Found (HTTP 404) After Validation is Turned On

2004-09-29 Thread Caroline Jen
I have action mapping in the struts-config.xml like this: The .frame.Content is defined in the tiles-def.xml to display a drop-down menu based on the data obtained from the action servlet SelectPage.java. This drop-down menu is included in the 'editTitleForm'. The Submit butt

Re: inline conditional expression with JSTL EL

2004-09-29 Thread Dan Allen
YES!!! The missing link to JSTL has been added! I'm excited...now I guess I just need to migrate to JSP 2.0. Dan On Wed, 29 Sep 2004 15:59:30 -0400, David G. Friedman <[EMAIL PROTECTED]> wrote: > Dan, > > If you are using a JSP 2.0 container, here is a snippet from a post I made > in the last

RE: within , how to use?

2004-09-29 Thread Nadia Kunkov
Thanks! I'll try that. Nadia -Original Message- From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 2:43 PM To: Struts Users Mailing List Subject: RE: within , how to use? I understand now. first create a bean-form that it has as many properties a

RE: within , how to use?

2004-09-29 Thread Nadia Kunkov
Thanks to all of you. I'll try your suggestions and let you know. Nadia -Original Message- From: Fogleson, Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 3:47 PM To: 'Struts Users Mailing List' Subject: RE: within , how to use? Optionally, What I have often done wi

Multiple validation in a DispatchAction

2004-09-29 Thread Charles . Gouin-Vallerand
Hi, I upload a file in which I read information to fill a Collection of ValidatorForm object. The file is stocked in a DynaValidatorForm, who is called in the ActionMapping of the struts-config. The Collection of Form is fill in the DispatchAction of the ActionMapping. I validate the DynaValida

RE: inline conditional expression with JSTL EL

2004-09-29 Thread David G. Friedman
Dan, If you are using a JSP 2.0 container, here is a snippet from a post I made in the last few days on how to use the "? :" conditional statement: JBoss v4.0 says it (like Tomcat 5.X.X) supports JSP 2.0. So you can use the standard Struts release and simply type in the ${expression} syntax from

Re: inline conditional expression with JSTL EL

2004-09-29 Thread Jeff Beal
Dan Allen wrote: Does anyone know if there are plans for (or if an existing library is floating around) that allows inline conditional expressions in the POSIX style? An example would look something like the following: I realize it is possible to use c:choose tags for such a condition, but often

RE: within , how to use?

2004-09-29 Thread Fogleson, Allen
Optionally, What I have often done with DTO's is populate the action form from the DTO and place the action form in the appropriate scope for use by the page. Assuming that almost everything is a call to an action you can do this in the action class just prior to forwarding to the view. It gets ri

RE: within , how to use?

2004-09-29 Thread Ricardo Andres Quintero
I understand now. first create a bean-form that it has as many properties as u want to show. then declare it in the struts-config at top of the file. then, in the action declaration, with the atribute name, tell that this action uses the bean-from u declered previously. then in the action that call

RE: within , how to use?

2004-09-29 Thread Ricardo Andres Quintero
I understand now. first create a bean-form that it has as many properties as u want to show. then declare it in the struts-config at top of the file. then, in the action declaration, with the atribute name, tell that this action uses the bean-from u declered previously. then in the action that call

RE: within , how to use?

2004-09-29 Thread Ricardo Andres Quintero
I understand now. first create a bean-form that it has as many properties as u want to show. then declare it in the struts-config at top of the file. then, in the action declaration, with the atribute name, tell that this action uses the bean-from u declered previously. then in the action that call

RE: within , how to use?

2004-09-29 Thread Ricardo Andres Quintero
I understand now. first create a bean-form that it has as many properties as u want to show. then declare it in the struts-config at top of the file. then, in the action declaration, with the atribute name, tell that this action uses the bean-from u declered previously. then in the action that call

inline conditional expression with JSTL EL

2004-09-29 Thread Dan Allen
Does anyone know if there are plans for (or if an existing library is floating around) that allows inline conditional expressions in the POSIX style? An example would look something like the following: I realize it is possible to use c:choose tags for such a condition, but often times a simple

RE: within , how to use?

2004-09-29 Thread David G. Friedman
Nadia, Since you're talking DTO and not an input form bean, I recommend putting your myBeanName object in the "request" scope using the method request.saveAttribute() to store it. You should then be able to access it using html:text and the name="myBeanName" parameter a bit like this: Without

RE: within , how to use?

2004-09-29 Thread Nadia Kunkov
OK. I obviously don't know enough to use the tags properly even though I've been playing with struts for a week or two. My biggest problems are with the presentation. The bean myBeanName is the DTO object and not an action form so it's not specified in the struts-config.xml. The action form

RE: FW: R: Detecting the previous JSP

2004-09-29 Thread Shabada, Gnaneshwer
tried that too..and worse is doesn't take a name attribute.. function callDelete() { alert("call delete"); document.forms[0].action="/deleteRegistration"; alert("call delete again"); document.forms[0].submit(); > JS error } -Original Message- From: Fr

group of radio buttons generated dynamically

2004-09-29 Thread Shyam Anand
Hi, I know this question has been asked before. I searched the archives and found mails describing the problem I have.However, I wasn't able to find any code example , which would make my life easier. Well, I have a scenario in which I need to generate a group of radio buttons dynamically eg. qu

Re: within , how to use?

2004-09-29 Thread Ricardo Andres Quintero
Hello Nadia I dont know why you use instead of use did u configure myBeanName in the struts-congig.xml? does the action of the html:form use the bean-form myBeanName? On Wed, 29 Sep 2004 15:03:02 -0400, Nadia Kunkov wrote > Hi, newbie question again. > I'm trying to use within tag. > > He

Re: within , how to use?

2004-09-29 Thread Ricardo Andres Quintero
Hello Nadia I dont know why you use instead of use did u configure myBeanName in the struts-congig.xml? does the action of the html:form use the bean-form myBeanName? On Wed, 29 Sep 2004 15:03:02 -0400, Nadia Kunkov wrote > Hi, newbie question again. > I'm trying to use within tag. > > He

RE: within , how to use?

2004-09-29 Thread David G. Friedman
Nadia K., If "myBeanName" is the ActionForm associated with your Action, just use: If "myBeanName" is a bean you manually saved in the session or request and isn't listed as the form for your action (using the name="" attribute in the action mapping), then you can try: For more details, see

RE: within , how to use?

2004-09-29 Thread Slattery, Tim - BLS
> Hi, newbie question again. > I'm trying to use within tag. You can't. You cannot nest tags. Use the el tags instead. > Here is how I use it with just plain HTML and it works: > or name="somename" value= ' property="id"/> ' DON'T assign a value in your

FW: FW: R: Detecting the previous JSP

2004-09-29 Thread Shabada, Gnaneshwer
oh no, it's Client side. My browser gives Javascript error saying "Object does't support this property or method" on the submit line. I am starting to wonder, bcuz I've used this kind of calls in other non-struts apps so many times..or am making any obvious mistake on my JSP? -Original Messa

within , how to use?

2004-09-29 Thread Nadia Kunkov
Hi, newbie question again. I'm trying to use within tag. Here is how I use it with just plain HTML and it works: or etc. I'd like to use or I tried but that's not right. Could you help me with this? Also, is having the bean in a session or request with data from the database and then

FW: R: Detecting the previous JSP

2004-09-29 Thread Shabada, Gnaneshwer
Frank, Thanks again. I ran around into another problem trying to implement this delete functionality. My member details (single delete) screen actually has 3 buttons for Update, Delete, Cancel. On this JSP my default action is /update in the form tag. But when I display my Delete button I am sayin

Re: Show / Hide table

2004-09-29 Thread Varun Garg
If you are talking about client side then use div tags and toggle visibity and innerHTML. to hide a div- div11.innerHTML=''; div11.style.display = 'none'; to show a div- div11.style.display = ''; div11.innerHTML=detailsString; where detailString contains the content to show. If its is server sid

Re: Show / Hide table

2004-09-29 Thread Wendy Smoak
From: "JUTTIGA PHANIDHAR" <[EMAIL PROTECTED]> > Can anyone let me know how to display or hide a table > based on the choice of a radio button. > Initially both the tables will be hidden and one among > them will be displayed on the click of a radio button. With or without a form submit, or does it

JSTL and Tiles

2004-09-29 Thread CRANFORD, CHRIS
I have a JSP which uses JSTL to define a variable. This same JSP uses tiles:insert to include a page segment that also needs to be able to have visibility to its parent JSTL variable. How can I pass that variable to the inserted tiles page and have it update the variables value so that the remain

[OT] Re: Show / Hide table

2004-09-29 Thread Bill Siggelkow
Wrap the table in a : Then call an JS function from your radio button (using something like an onclick listener). function showTable() { document.getElementById("tableDiv").style.display = "inline"; } function hideTable() { document.getElementById("tabl

Re: Detecting the previous JSP

2004-09-29 Thread Jeff Beal
Shabada, Gnaneshwer wrote: Hi. Is there any way in Struts I could determine dynamically what JSP/screen/action am coming from when I am in a certain screen. I have a scenario where I can delete users from a result list page or a member details page. I want to use one action to do both. But to code

Show / Hide table

2004-09-29 Thread JUTTIGA PHANIDHAR
Hi, Can anyone let me know how to display or hide a table based on the choice of a radio button. Initially both the tables will be hidden and one among them will be displayed on the click of a radio button. Thanks. __ Do You Yahoo!? Tired of spam?

Re: multi box and required validation

2004-09-29 Thread Anand M S
I'm using org.apache.struts.validator.DynaValidatorForm for form type in struts-config.xml, i do not have sub class, so there is no overrriden method for reset. Form is in request scope, i guess it's fine. It's loading validation rules and validation is working correctly for other fileds on the

How change the mainlayout of tiles on the fly

2004-09-29 Thread Gabriel França Campolina
Hi folks, I'd like know How I change the mainlayout of tiles on the fly, Can I do this?How??? . . . . . . . Please helpme -- Gabriel França Campolina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Refresh problem

2004-09-29 Thread Jeff Beal
andy wix wrote: Hi, Ah, that will be why... I use a link to submit. Is there any way to force this to happen without a form? Thanks, Andy _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger

Re: Seeking advice for buying a Struts book

2004-09-29 Thread Bill Siggelkow
Patience grasshopper ... Varley, Roger wrote: Is there a "definitive" resource anywhere for Struts tips, patterns and example code for common problems/questions ( possibly something like O'Reillys Cookbook books). Whilst you may be right that many of the googled solutions are bad solutions, the pro

Re: multi box and required validation

2004-09-29 Thread Wendy Smoak
> if i don't > select any one of the checkboxes and submit, it did not rise error message, > it suppose to give error message as it is required field. One more thing... what does your 'reset' method look like? Any chance you're UN-checking a box and expecting it to fail? Without reset, the value

Re: multi box and required validation

2004-09-29 Thread Wendy Smoak
From: "Anand M S" <[EMAIL PROTECTED]> > if i don't > select any one of the checkboxes and submit, it did not rise error message, > it suppose to give error message as it is required field. Where do you expect the error message to appear? What do you have in the JSP? Are you sure validation is tu

RE: Refresh problem

2004-09-29 Thread andy wix
Hi, Ah, that will be why... I use a link to submit. Is there any way to force this to happen without a form? Thanks, Andy _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger --

Re: R: Detecting the previous JSP

2004-09-29 Thread Jorge
I think that information should be passed to the action via form properties (using html:hidden input tag on your pages) On Wed, 29 Sep 2004 18:05:57 +0200, Amleto Di Salle <[EMAIL PROTECTED]> wrote: > Hi, > As i wrote before may be the solution is to use DispatchAction. > > BR > /Amleto > > >

RE: Refresh problem

2004-09-29 Thread Paul McCulloch
The tag will (or should!) render a hidden field, on your html form, containing the token value. Paul > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 29, 2004 5:18 PM > To: [EMAIL PROTECTED] > Subject: Refresh problem > > > Hi, > > I have a

Re: multi box and required validation

2004-09-29 Thread Anand M S
Hi Wendy here is the piece of code struts.config.xml: validation.xml: JSP: I'm using tag to create checkboxes dynamically, i removed logic tag here for readability, it's creating checkboxes, but if i don't select any one of the checkboxes and submit, it did not rise error messag

Refresh problem

2004-09-29 Thread andy wix
Hi, I have a screen which lists some names in a table and has a delete option which calls an action to delete the associated name and then the view page shows the updated list. If you do a delete and then select refresh on the browser, the resulting request is for another delete which is clearly

Re: multi box and required validation

2004-09-29 Thread Wendy Smoak
From: "Anand M S" <[EMAIL PROTECTED]> > I'm using multibox and thats required fileds, i'm using required validation > in calidation.xml, but it's not working, ann ideas? You need to post the relevant bits of the JSP, validation.xml and explain what you mean by "it's not working". Are you getting

RE: Problems with Multi Page (wizard) Validation using DynaValidatorForm and the "page=" attribute

2004-09-29 Thread Mark Songhurst
DOH! I didn't upgrade my validator-rules.xml file from 1.1 to 1.2.4. This previous post to this mailing list solved the problem: http://www.mail-archive.com/[EMAIL PROTECTED]/msg11592.html Many thanks to those who responded to my original post. Mark. -Original Message- From: Mark Songh

R: Detecting the previous JSP

2004-09-29 Thread Amleto Di Salle
Hi, As i wrote before may be the solution is to use DispatchAction. BR /Amleto -Messaggio originale- Da: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED] Inviato: mercoledì 29 settembre 2004 18.00 A: '[EMAIL PROTECTED]' Oggetto: RE: Detecting the previous JSP Frank, Thanks for your inpu

RE: Problems with Multi Page (wizard) Validation using DynaValidatorForm and the "page=" attribute

2004-09-29 Thread Mark Songhurst
Thanks for the feedback! Much appreciated. I realised that in my JSP page(s) I had the element declared before my form element: The ordering of first, with nested inside would seem important and I guess, make sense - the hidden property page belongs to the form submitted to my DynaValidat

Re: Seeking advice for buying a Struts book

2004-09-29 Thread gus
I strongly recommend the book "Jakarta Struts" by O'Reilly. This book clears up a whole bunch on how the framework all comes together and also offers insight on some of the more advanced features of struts. It's a good book to skim over and then later use as a reference when you have questions on

Re: Question about Struts ActionForm scope and clustering

2004-09-29 Thread brenmcguire
When you declare that a form-bean connected to an action is used with scope "session" means that an instance of that form bean will be put inside the session space, i.e. the one you take calling: request.getSession() Then, the form bean is put inside the session scope of the web server that interac

RE: Detecting the previous JSP

2004-09-29 Thread Shabada, Gnaneshwer
Frank, Thanks for your input. Thought I'd forward this back to the mailing list so that others can view.. Coming back to my problem. I would call the same action from two screens because, they both are delete functionality. It's just I need to determine in my deleteAction class if its a multiple

multi box and required validation

2004-09-29 Thread Anand M S
Hi I'm using multibox and thats required fileds, i'm using required validation in calidation.xml, but it's not working, ann ideas? Thanks in advance Anand _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join

Re: Rendering javascript using Action

2004-09-29 Thread brenmcguire
Are you going to get an external HTML page and putting your own code to it? In this case you can do that very easily using a wrapping JSP page and a tag library from the Jakarta Taglibs project: http://jakarta.apache.org/taglibs/doc/io-doc/intro.html Take a look to the "io:request" and "io:http" ta

RE: Seeking advice for buying a Struts book

2004-09-29 Thread Rudi Doku
Have you looked at Struts for Dummies? It's not a good bad book to start with. Several good examples with detailed explanation. --- "Varley, Roger" <[EMAIL PROTECTED]> wrote: > > > > > > I know what you are saying, Langdon, but warn you > that a lot of those > > solutions on the Googling are

Question about Struts ActionForm scope and clustering

2004-09-29 Thread Wong, Cindy
All, I'm not sure if I am contacting the right list but this is the problem that I am facing: I am trying to convert a series of registration pages over to Struts. The web server that I am using is JBoss 3.2 and it will eventually be implemented on a cluster. What I want to know is what the sc

R: Detecting the previous JSP

2004-09-29 Thread Amleto Di Salle
Hi, you can use org.apache.struts.actions.DispatchAction instead of Action. See Struts documentation. I never used it, but if i remember correctly there was a bug ("recursive call") related to it. BR /Amleto Di Salle -Messaggio originale- Da: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED

Re: Seeking advice for buying a Struts book

2004-09-29 Thread Michael McGrady
Varley, Roger wrote: I know what you are saying, Langdon, but warn you that a lot of those solutions on the Googling are really poor solutions. I am sure you know that already. Is there a "definitive" resource anywhere for Struts tips, patterns and example code for common problems/questi

Re: Error reading text from ApplicationResources.properties

2004-09-29 Thread Rudi Doku
Thanks Duncan, I sorted out the problem. I'm also new to JDeveloper 10g. I refered to some online JDeveloper struts tutorials as well as Struts for Dummies, which, by the way, is a really good book for Newbies. --- Duncan Mills <[EMAIL PROTECTED]> wrote: > In this case I suspect the problem is t

Re: [NEWBIE] Local forward with html:link?

2004-09-29 Thread fjalvingh
I have no issue with the action: it indeed has no knowledge about the actual views being used which is OK. It means I'm able to re-use actions if I want to. The JSP pages however seem to know way to much about navigation. They know this because they directly refer to an action path. This seems to

Detecting the previous JSP

2004-09-29 Thread Shabada, Gnaneshwer
Hi. Is there any way in Struts I could determine dynamically what JSP/screen/action am coming from when I am in a certain screen. I have a scenario where I can delete users from a result list page or a member details page. I want to use one action to do both. But to code my action easier I want t

Re: Error Handling in Struts

2004-09-29 Thread Kranti Parisa
Priya, onclick of the button u r getting the error na.. just have alook in the struts-config file that which action class is calling while u r clicking that button.. go to that class and find out the if condition loop where that validation is placed... i think there is some code .. which is ch

Re: Advice on adding/updating products to an online store?

2004-09-29 Thread Vic Cekvenich
Gupta wrote: person who have no background in java and need to develop Here is just the thing: http://developer.sun.com/prodtech/javatools/jscreator/index.jsp Also google on Sun'd PetStore on how to use EJB w/ above. .V ps: People that have development background should use http://ibatis.com/jp

Re: Problems with Multi Page (wizard) Validation using DynaValidatorForm and the "page=" attribute

2004-09-29 Thread Matt Bathje
Mark - not sure if this is your problem, but based on what you pasted in here, your JSP page is missing an All of your code seems correct to me. The only other thing I think could possibly be wrong is if you have a separate "loader" action for your page 1 form, and that has the scope set to re

Re: The Value of a Property in a Drop-Down Menu

2004-09-29 Thread Matt Bathje
Caroline Jen wrote: My Collection, PageBeans (plural), generates a drop-down list like this: -Select- Each individual bean, PageBean (singular), in the Collection has two properties; name and groupID. I want to display 'name' in the drop down list. However, I want the 'value' of 'groupID' to b

Re: Error Handling in Struts

2004-09-29 Thread James Mitchell
Depending on which version of Struts you are using, use requiredif or validwhen. See the online documentation for further details. http://struts.apache.org/userGuide/dev_validator.html -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx

Re: Advice on adding/updating products to an online store?

2004-09-29 Thread Anant D Agarwal
Return Receipt Your Re: Advice on adding/updating products to an online store? document :

RE: ServletException using html:link tag

2004-09-29 Thread Jeroen Breedveld
Hi, || -Original Message- || From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] || Sent: woensdag 29 september 2004 15:10 || To: Struts Users Mailing List || Subject: Re: ServletException using html:link tag || || || || If I'm understanding your problem and if you have a ||

Re: Error Handling in Struts

2004-09-29 Thread Erik Weber
Where is the complication? During validation? If so, perhaps using requiredif/validwhen rules would help. This way, the validator can be told to forego validation on the second field if the value of the first field passes some test (matches some value). A common example of this is where you hav

RE: XML Parse Error in Validation.xml

2004-09-29 Thread Gupta, Sahil
>but I'm not using the validation.xml Remove the loading of the validation xml from the struts-config.xml or the web.xml whereever you set it to load from. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 9:51 AM To: Struts Users M

XML Parse Error in Validation.xml

2004-09-29 Thread ChaChaNY
Hi all I'm using the 1.2.4 distribution of Struts (upgraded from 1.2.2 because of the known issues). I'm using the distribution exactly as it came, and I see that validation.xml is causing problems. I'm getting the following error. It's pretty obvious why this is happening as all the elements are

Re: ServletException using html:link tag

2004-09-29 Thread bmf5
"Jeroen Breedveld" <[EMAIL PROTECTED]> wrote on 09/29/2004 08:40:56 AM: > Hi all, > > I'm trying to create a link to an action using the Struts' html:link tag > like this: > > scope="request">test2 > > However when I load the jsp containing this l get the following > exception: > > [Servle

RE: Error Handling in Struts

2004-09-29 Thread Gupta, Sahil
Turn the validation off on the second dropdown. -Original Message- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 9:39 AM To: Struts Users Mailing List Subject: Re: Error Handling in Struts How u r getting the error message.. urself has done something f

RE: Error Handling in Struts

2004-09-29 Thread Priya Jotwani
I am getting it from the application.properties file. It's the code which is already in place.I have to just do some modifications. -Original Message- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 7:09 PM To: Struts Users Mailing List Subject: Re: Error

Re: Error Handling in Struts

2004-09-29 Thread Kranti Parisa
How u r getting the error message.. urself has done something for it.. is that error message u r getting is a javascript alert?? or u r getting that frm application.properties file??? i mean java side??? On Wed, 29 Sep 2004 18:55:19 +0530, Priya Jotwani <[EMAIL PROTECTED]> wrote: > Hi, > > I hav

The Value of a Property in a Drop-Down Menu

2004-09-29 Thread Caroline Jen
My Collection, PageBeans (plural), generates a drop-down list like this: -Select- Each individual bean, PageBean (singular), in the Collection has two properties; name and groupID. I want to display 'name' in the drop down list. However, I want the 'value' of 'groupID' to be submitted when u

Problems with Multi Page (wizard) Validation using DynaValidatorForm and the "page=" attribute

2004-09-29 Thread Mark Songhurst
Hi! I'm having great pains getting DynaValidatorForm to validate only the "page=" attributed field elements in my validation.xml file. It's the usual scenario: one DynaValidatorForm which is completed over several JSP pages. I want validation to occur as each page is submitted, using the Validat

Error Handling in Struts

2004-09-29 Thread Priya Jotwani
Hi, I have a JSP Page which has two dropdown fields. If the user selects something from first dropdown and doesn't selects anything from the second dropdown, it displays me an error message saying "This field is required". But now I have a scenario wherein, on selecting a particular value from

Re: Need Help: Hiding the information on a search result screen

2004-09-29 Thread Erik Weber
Create a wrapper class or companion class for your product beans. If it's a wrapper class, each instance contains a reference to a product. If it's a companion class, perhaps you have a couple of maps, with the keys in both maps being product ID, and the value in one being the product, while th

Re: Error reading text from ApplicationResources.properties

2004-09-29 Thread Duncan Mills
In this case I suspect the problem is that the basename attribute in the tag does not have the full path to the file. e.g. it should be something like basename="myapp.view.resources.ApplicationResources" Regards Duncan Mills Jeff Beal wrote: Rudi Doku wrote: Hello, I'm new to struts. I have a

Re: Error reading text from ApplicationResources.properties

2004-09-29 Thread Jeff Beal
Rudi Doku wrote: Hello, I'm new to struts. I have added the following string to teh ApplicationResources.propertiesfile : topic.label=Topic I am trying to display this label on the page without very much success. My page looks like this: <%@ page contentType="text/html;charset=UTF-8" language="java

Re: How to use tiles:get together with html:img

2004-09-29 Thread Phong Nguyen Thanh
I did remove the flush attribute below, but got the same result. Phong. On Wed, 29 Sep 2004, James Mitchell wrote: try removing the flush attribute -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017

ServletException using html:link tag

2004-09-29 Thread Jeroen Breedveld
Hi all, I'm trying to create a link to an action using the Struts' html:link tag like this: test2 However when I load the jsp containing this l get the following exception: [ServletException in:/WEB-INF/jsp/repository/collection-resource-search-results.jsp] Cannot cast to Map for name=SearchAct

Re: Advice on adding/updating products to an online store?

2004-09-29 Thread DGraham
Return Receipt Your Re: Advice on adding/updating products to an online store? document :

Re: How to use tiles:get together with html:img

2004-09-29 Thread James Mitchell
try removing the flush attribute -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Phong Nguyen Thanh" <[EMAIL PROTECTED]> To: "Struts Users

Re: Advice on adding/updating products to an online store?

2004-09-29 Thread Amit Gupta
Hello guys, Can we prepare a list of URLs of resources that can be useful to person who have no background in java and need to develop struts application. A comprehensive FAQ is also proposed. Take care Amit Gupta Mobile:9891062552 Email: [EMAIL PROTECTED] A request - given the barrage of spam t

Advice on adding/updating products to an online store?

2004-09-29 Thread struts Dude
Hi, Just a question on what's the usual practice or the easiest way of adding/updating a product to an online store. 1. Is the usualy practice using web services where a registered supplier login and send an XML file with images serialized as binary data to add a new product or update product? Alt

  1   2   >