SV: [OT] Display Tag Library problems with Weblogic 6.1

2004-10-05 Thread hermod . opstvedt
Hei When you get a class version error, it often means that you are running under a version og Java that is lower than the one used to compile the class. Hermod -Opprinnelig melding- Fra: Joe Germuska [mailto:[EMAIL PROTECTED] Sendt: 6. oktober 2004 06:04 Til: Struts Users Mailing List E

RE: [OT] Display Tag Library problems with Weblogic 6.1

2004-10-05 Thread David G. Friedman
Joe, Dumb question for you: Is the taglib line in your displaytag using jsp really <%@ taglib uri="http://displaytag.sf.net/"; prefix="display" %> Shouldn't it be something with a tld on it or be a local reference to a TLD defined in your webapp's web.xml file? For an old site using 1.0-rc1, I h

[OT] Display Tag Library problems with Weblogic 6.1

2004-10-05 Thread Joe Germuska
I'm trying for the first time to deploy the "displaytag" library to a Weblogic 6 server, and I'm getting an annoying error which I was not getting while developing locally under Tomcat 4. Since I know a lot of Struts users use displaytag, and since I'm not subscribed to that list, I thought I'

Re: How To Display Check Boxes in Struts?

2004-10-05 Thread jthompson
I should add that my previous post provides a mechanism for displaying your check-boxes and capturing the user's responses. You'll still need some code in your Action that processes the form to recover the selected responses, something like this: String[] sc = questionform.getSelectedCl

Re: How To Display Check Boxes in Struts?

2004-10-05 Thread jthompson
I'll assume you have an iteration in your JSP that goes like this: ... where "clients" corresponds to your collection of client beans. (ie you have a method in your form called 'getClients()' that returns a List.) The id "client" is the name I've made up for the bean that comes into sc

Re: How To Display Check Boxes in Struts?

2004-10-05 Thread lixin chu
something like this: )" value="x"/> --- Caroline Jen <[EMAIL PROTECTED]> wrote: > I am able to create check boxes using HTML. But, I > do > not know how to display check boxes in Struts. > > Here is what I plan to do: > > I have a JavaBean, which gets its properties > populated > through databa

How To Display Check Boxes in Struts?

2004-10-05 Thread Caroline Jen
I am able to create check boxes using HTML. But, I do not know how to display check boxes in Struts. Here is what I plan to do: I have a JavaBean, which gets its properties populated through database table query. For example, this JavaBean has three properties; lastName, title, emailAddress. And

RE: global forwards in module config files

2004-10-05 Thread David G. Friedman
Peter, In your web.xml, does your Struts ActionServlet have init params just like this: (per your mesage below) config /WEB-INF/struts-config.xml config/index /WEB-INF/index-config.xml If not, then how are you specifing your struts config .xml files to the Act

Re: linefeeds in html:textarea causes blank screen when submitted

2004-10-05 Thread Shinobu Kawai
Hi Ted, > Actually the registration example does not work for me if I use linefeeds in > the textarea (but does work if > I don't use linefeeds) That's peculiar. > Any other thoughts? What does the output HTML look like? And which browser are you using? If you do the same with plain old HTML,

RE: unterminated.tag Exception

2004-10-05 Thread Phani
Ok, My Code snippet looks like this. <%=item%> view I have a map, & for each key in the map I hav

Re: linefeeds in html:textarea causes blank screen when submitted

2004-10-05 Thread Ted Anagnost
Actually the registration example does not work for me if I use linefeeds in the textarea (but does work if I don't use linefeeds) Any other thoughts? - Original Message - From: "Shinobu Kawai" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October

Iterate tag issue with an array

2004-10-05 Thread Mick.Knutson
I have a DTO that may contain a Guarantor[]. Here is my code that keeps giving me an "null java.lang.ArrayIndexOutOfBoundsException" when I do not have a Guarantor[0]  

RE: unterminated.tag Exception

2004-10-05 Thread Erez Efrati
What are you trying to accomplish with the "+key"? Erez -Original Message- From: Phani [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 06, 2004 1:24 AM To: [EMAIL PROTECTED] Subject: unterminated.tag Exception I am getting the jsp.error.unterminated.tag exception because of the follo

Re: unterminated.tag Exception

2004-10-05 Thread Wendy Smoak
From: "Phani" <[EMAIL PROTECTED]> > I am getting the jsp.error.unterminated.tag exception > because of the following line. > > + key>view > > Can I get any help. You can't write "+key" like that. I assume you're trying to add the 'key' property of your form bean to the link. I do something simi

Re: Struts not mapping checkboxes into String[] property

2004-10-05 Thread Wendy Smoak
From: "Freddy Villalba A." <[EMAIL PROTECTED]> > I've also created a String[] > property called "elementsId" inside my actionForm class. I've even added the > properties for that form inside Struts' xml descriptor. Are you using a dynamic form, or do you have get/set methods written in the form b

unterminated.tag Exception

2004-10-05 Thread Phani
I am getting the jsp.error.unterminated.tag exception because of the following line. view Can I get any help. Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --

Struts not mapping checkboxes into String[] property

2004-10-05 Thread Freddy Villalba A.
Hello, I have the following piece of code in a jsp that generates a search results' table. € There is a delete button that invokes the "delete" action for deleting those elements whose checkbox was selected. In order

Application specific Exception Handling

2004-10-05 Thread Ralf Schneider
Hi, I try to implement an application specific exception handling. Therefor I created a class that extends ExceptionHandler and my own Exception class that has variables for holding an error code and the filename where the exception occured. When I generate a NullPointerException I generate a

Re: Application.Resources file visibility

2004-10-05 Thread Adam Hardy
Hi TR, I assume you are not in the action? Otherwise you would use MessageResources.getMessage() On 10/05/2004 08:43 PM El Toro wrote: All, I'm upgrading an existing struts application. The application extends the TilesRequestProcessor->RequestProcessor and overrides the processRoles() method.

Re: Internationalizing a Struts project

2004-10-05 Thread Craig McClanahan
On Tue, 5 Oct 2004 16:31:14 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi there. > > I'm working on i18n of a Struts based project. All references I find about this > topic deal with using messages depending on the user's locale. Has anyone ever > experienced problems with national sp

unterminated.tag Exception

2004-10-05 Thread Phani
Hi, I got an exception like this. I am running JBoss server. org.apache.jasper.JasperException: /analytics/varAssumptionsFiles.jsp(95,59) jsp.error.unterminated.tag It seems one of the tag has not been terminated. My Question is how do we debug JSP pages: I mean how can I track in which line of

Re: Search engine friendly URLs

2004-10-05 Thread Mark Lowe
I was talking bollocks (now i've tried it) works.. Ideally in a tag file like this,, /WEB-INF/tags/cleanLink.tag <%@ tag isELIgnored="false" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %> <%@ taglib uri="http

validating inputs using struts

2004-10-05 Thread yacout dadoun
Hi, I'm using jsp/jstl in my pages, and i'd like to validate the inputs using the struts validator. I have configured the application.properties file, the struts-config.xml, created a form bean (testForm.java) that extends the validatorForm and a form action (testAction.java)and even configured

FormFile Casting problem

2004-10-05 Thread john cho
Hi, I did read in File using StrutsForm bean and put that into the HashMap. Now, when I try to get it out of the hashMap with like, 1. FormFile file = (FormFile)uploadForm.get("uploadedFile") 2. HashMap map = new HashMap(2); 3. map.put("uploadedFile", file); 4. FormFile file = (FormFile)has

global forwards in module config files

2004-10-05 Thread Peter Werno
Hello, I am just in the course of moving from 1.0.x to 1.2 and the new version should make heavy use of the modules that came with 1.1. Now here is my problem: I want to store a global forward in any module's config file named "moduleHome" where "module" would be replaced with the actual module n

Internationalizing a Struts project

2004-10-05 Thread Hiran.Chaudhuri
Hi there. I'm working on i18n of a Struts based project. All references I find about this topic deal with using messages depending on the user's locale. Has anyone ever experienced problems with national special characters (such as currency symbols for sterling or euro? Hiran ---

menu doesnot working

2004-10-05 Thread aha_swaha
hi folks, i have got a problem in struts, i have used for a simple tree menu design and defined the but the output doesnot come instead it throws the expection like [ServletException in:/Rendering/sampleNavigation.jsp] Cannot find bean sampleNavigation in any scope' could you pls gimme a solu

Re: Array? ArrayList? or .....?

2004-10-05 Thread Jeff Beal
http://struts.apache.org/faqs/newbie.html#multiple talks briefly about doing this. It doesn't discuss the issue of arrays vs. ArrayList, but the example is using arrays, so I assume that's the recommended approach. Also, and just an FYI, the HTML you've included is invalid. INPUT elements are

Re: Array? ArrayList? or .....?

2004-10-05 Thread Wendy Smoak
From: "Caroline Jen" <[EMAIL PROTECTED]> > I have to get all the "e-mail addresses" of those who > are selected (if a client puts a check mark in the > check box). Therefore, I cannot predict ahead of time > how many e-mail addresses will be read by my web > application (servlet) after the form is

Re: Validation in Struts for Required fields

2004-10-05 Thread Caroline Jen
To add to the list: 5. the validator-rules.xml and validation.xml must be in the AppName/WEB-INF directory. 6. Make sure that there is a proper version of the commons-validator.jar file. 7. there is in the .jsp to turn on the validation and to show warning messages in red 8. validation plug-in

Array? ArrayList? or .....?

2004-10-05 Thread Caroline Jen
I am creating check boxes in a JSP. I am showing the HTML code to make it simple to illustrate my question. code: Check As Many As You Wish John Doe Jane Doe // followed by tens of thousands of tags I have t

Re: Validator

2004-10-05 Thread Vinicius Carvalho
David G. Friedman wrote: I haven't used the validator in a while but I have a 3 questions for you: 1. If, as you say, the Javascript tag isn't being enclosed in .. tags, then you need to verify that your validation file is loaded AND that you have the correct form name in your . I've had that prob

Application.Resources file visibility

2004-10-05 Thread El Toro
All, I'm upgrading an existing struts application. The application extends the TilesRequestProcessor->RequestProcessor and overrides the processRoles() method. Part of the enhancements I am trying to build requires me to pull some values from the application resource file. I'm using the inherit

Re: Enhancement requests

2004-10-05 Thread Joe Germuska
At 2:23 PM -0500 10/5/04, Hubert Rabago wrote: http://issues.apache.org/bugzilla/ Actually, in general, I think it's better to have some discussion on the lists before filing bugs or enhancement requests, unless the issue is very clear. In this case, I'm not sure which dirty work David is sugges

Re: Enhancement requests

2004-10-05 Thread Hubert Rabago
http://issues.apache.org/bugzilla/ On Tue, 5 Oct 2004 14:21:50 -0500, David Suarez <[EMAIL PROTECTED]> wrote: > How does one go about requesting an enhancement to Struts? > > For my particular problem today it seems like Struts could handle all > the dirty work for me if it used a version of bea

Re: tag

2004-10-05 Thread Addy Kapur
Yes it is. On Tue, 5 Oct 2004 10:47:17 +1000, Yakov Belov <[EMAIL PROTECTED]> wrote: > I presume it is the struts tag for the standard html : > > > > - Original Message - > From: "Phani" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 05, 2004 10:36 AM > Subject

Enhancement requests

2004-10-05 Thread David Suarez
How does one go about requesting an enhancement to Struts? For my particular problem today it seems like Struts could handle all the dirty work for me if it used a version of bean utils that could be registered "per request". Struts could then set the Locale and then populate all of the fields

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
I am using 0% JSTL right now so I can't introduce it now on this project unfortunately, too last minute. I guess the equivalent would be to write it out using the struts bean:write and manually write the INPUT html. Thanks for the feedback...djsuarez -Original Message- From: [EMAIL

Re: textbox format date & i18n date handling

2004-10-05 Thread Hubert Rabago
Hi David, If you need this functionality in several forms and several fields, you may want to evaluate using FormDef for this. http://formdef.dev.java.net Among the sample applications is locale.war which shows you a form that includes date and currency fields with formats that change depending

Internationalize Submit Button

2004-10-05 Thread David Suarez
Nesting the tag works for submit. I was hoping this would work for html:text as well but it doesn't unfortunately. This is a sample of what it looks like for i18n submit: Regards...djsuarez Date: Tue, 05 Oct

RE: textbox format date & i18n date handling

2004-10-05 Thread bmf5
I don't have time for a long response but have you considered the fmt:formatDate tag of JSTL? "David Suarez" <[EMAIL PROTECTED]

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
Thanks for the quick responses! Is there anything more generic that can be done? Till now I have been setting the fields directly into the "real" bean classes so to do the below I would need to replicate the properties on the form and then move them over to the real bean classes afterwards (wh

Re: Servlet action is not available.

2004-10-05 Thread Rick Reumann
WOLips wrote the following on 10/5/2004 2:20 PM: First, please try to remember not to reply to a message in a thread and change the subject (it will screw up how a lot of e-mail clients sort threaded e-mails). i do this for months, how can you recognize this? I believe it works on the fact that d

Internationalize Submit Button

2004-10-05 Thread Zoltan Vekony
Hi, I would like build a Struts-form like this: ... I have the following entries in properties file: search.for=Search for: search.for.title=Search for book title Question: Is is possible to setup the submit button like: valueKey="search.submit" (analogous title/titleKey) to have

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Rick Reumann wrote: Michael McGrady wrote the following on 10/5/2004 1:40 PM: He cannot use a basic DispatchAction, Rick, since he wants to use multiple buttons. He needs multiple buttons with the same value. Since the value of the name parameter in the HTML is completely decoupled from all of

Re: Validation in Struts for Required fields

2004-10-05 Thread Erik Weber
Somehow we lost the list on a couple of posts. OK, so, these are the things I assume you have checked so far: 1) you have an html:select tag with property = "reportType", and the default option's value is "" 2) your ActionForm extends one of the proper types (such as ValidatorForm) and has the pr

Re: Servlet action is not available.

2004-10-05 Thread WOLips
- Original Message - From: "Rick Reumann" <[EMAIL PROTECTED]> To: "struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, October 05, 2004 7:46 PM Subject: Re: Servlet action is not available. > WOLips wrote the following on 10/5/2004 1:16 PM: > > > but i still get this error : >

Re: multiple submit buttons on a form

2004-10-05 Thread Rick Reumann
Michael McGrady wrote the following on 10/5/2004 1:40 PM: He cannot use a basic DispatchAction, Rick, since he wants to use multiple buttons. He needs multiple buttons with the same value. Since the value of the name parameter in the HTML is completely decoupled from all of my solutions, he is

RE: textbox format date & i18n date handling

2004-10-05 Thread Hiran.Chaudhuri
Hi, Tim. This is right. But also make sure the locale dependent date parsing is done in the action class then, since - I'm not sure whether the validator package can cover localized dateformats - only the controller classes know about the user's locale and therefore the dateformat that should be

RE: textbox format date & i18n date handling

2004-10-05 Thread Slattery, Tim - BLS
> 1) I have a java.util.Date field that needs to be displayed > in a textbox. IMHO the way to do this is to have a read/write property in your bean that delivers and accepts a string. Both can use SimpleDateFormat class to convert between the string and the underling Date class. -- Tim Slatte

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
I guess this got kicked back for some reason. Please see below: Multiple related questions: 1) I have a java.util.Date field that needs to be displayed in a textbox. In bean:write there are formatting methods to have the date display using a MM/dd/ for example. however I don't see the sam

Re: Servlet action is not available.

2004-10-05 Thread Rick Reumann
Ricardo Andres Quintero wrote the following on 10/5/2004 12:47 PM: u should kick him!! thats terrible i dont know how we can live with this... I must be missing the joke:)... live with 'what' ? -- Rick - To unsubscribe, e-mail: [EM

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
struts lover wrote: Hello Everyone, I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as required by LookupDispatchAction. I also w

Re: Servlet action is not available.

2004-10-05 Thread Ricardo Andres Quintero
u should kick him!! thats terrible i dont know how we can live with this... On Tue, 05 Oct 2004 13:46:20 -0400, Rick Reumann wrote > WOLips wrote the following on 10/5/2004 1:16 PM: > > > but i still get this error : > > > > HTTP Status 404 - Servlet a

Re: Servlet action is not available.

2004-10-05 Thread Rick Reumann
WOLips wrote the following on 10/5/2004 1:16 PM: but i still get this error : HTTP Status 404 - Servlet action is not available type Status report message Servlet action is not available description The requested resource (Servlet action is not available

Re: Redirecting and getting the original URL

2004-10-05 Thread Craig McClanahan
On a Servlet 2.4 container (such as Tomcat 5.x), the server will store the "original" path-related information as a set of request attributes with well known names: javax.servlet.forward.request_uri javax.servlet.forward.context_path javax.servlet.forward.servlet_path javax.servlet.forward

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Rick Reumann wrote: struts lover wrote the following on 10/5/2004 10:12 AM: I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as requ

Re: Validation in Struts for Required fields

2004-10-05 Thread Erik Weber
In your JSP, where are your selects? Are you using html:select tags to produce them? Erik Priya Jotwani wrote: Hi , I have a JSP Page where I have two dropdowns displaying default values. Before submitting that page, the user should select something from these two dropdowns and if he doesn't sel

Re: Servlet action is not available.

2004-10-05 Thread WOLips
thank you for answer. i addes these jars to "myStrutsApp1\WEB-INF\lib" and it worked. commons-beanutils.jar commons-collections.jar commons-digester.jar commons-fileupload.jar commons-logging.jar commons-validator.jar jakarta-oro.jar struts.jar Sako. - Original Message - From: "Ric

Validation in Struts for Required fields

2004-10-05 Thread Priya Jotwani
Hi , I have a JSP Page where I have two dropdowns displaying default values. Before submitting that page, the user should select something from these two dropdowns and if he doesn't selects, there should be an error message displayed on the top saying "This field is required". This is what I a

Re: Servlet action is not available.

2004-10-05 Thread Ricardo Andres Quintero
Did u configure the servlet controller in your app web.xml? On Tue, 5 Oct 2004 19:16:24 +0200, WOLips wrote > hi, > i have struts.jar in "myStrutsApp1\WEB-INF\lib" > and even in "tomcat\bin" > > the code is an example from the net, which i thing it must run. > > but i still get this error : > --

Re: Servlet action is not available.

2004-10-05 Thread Ricardo Andres Quintero
Did u configure the servlet controller in your app web.xml? On Tue, 5 Oct 2004 19:16:24 +0200, WOLips wrote > hi, > i have struts.jar in "myStrutsApp1\WEB-INF\lib" > and even in "tomcat\bin" > > the code is an example from the net, which i thing it must run. > > but i still get this error : > --

Servlet action is not available.

2004-10-05 Thread WOLips
hi, i have struts.jar in "myStrutsApp1\WEB-INF\lib" and even in "tomcat\bin" the code is an example from the net, which i thing it must run. but i still get this error : HTTP Status 404 - Servlet action is not available type Status report message Ser

Re: [OT] RE: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Durham David R Jr Contr 805 CSPTS/SCE wrote: The reason is that I may want to change this page without having to go to every place it is linked to do so. Does that qualify as a "splash" screen? HA HA - Dave Well, you live and learn, Dave. I had never heard of "splash screens" before. LOL

RE: input form

2004-10-05 Thread Robin Mannering
Hi All, Just tried it out as defined in the struts link below and it works a treat... You don't need to instantiate an instance of the form, as this has already been done for you by the Struts framework before the Action is reached, and you don't need to set the form as a request attribute. My

RE: input form

2004-10-05 Thread Freddy Villalba A.
Thanx Allen! Your explanations is clear enough. -Mensaje original- De: Fogleson, Allen [mailto:[EMAIL PROTECTED] Enviado el: martes, 05 de octubre de 2004 18:30 Para: 'Struts Users Mailing List' Asunto: RE: input form Freddy, You want to use the formName that you gave in the struts-con

RE: input form

2004-10-05 Thread Robin Mannering
Hi All, Just chewing over this problem myself since it was brought up. The solution is here I believe, yet to implement it but I'm sure it'll work. http://struts.apache.org/faqs/newbie.html#prepopulate Hope this helps, not sure if it repeats what has been said already. Robin -Original M

RE: Tiles inheritance

2004-10-05 Thread Fogleson, Allen
Honestly pretty much like regular OO inheritance. If you define values in the "subclassed" tile then they replace the ones in the parent, if you do not then the parents value is used. Al -Original Message- From: Wylie van den Akker [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2

JSPC and struts problem

2004-10-05 Thread David Gagnon
Hi all, I'm trying to compile JSP from my webapp and run into this Null Pointer problem. It's seem that MessageResources.java can't be loaded has is (need to be loaded in the webapp environment) I'm running Struts 1.1. I'm pretty sure this should work .. do I need to update my struts version?

RE: input form

2004-10-05 Thread Fogleson, Allen
Wendy, True enough, the original question though revolved around prepopulating the form from the DB before getting to the view of the submitting page so that initial page would have data pre-populated. :) Al -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: input form

2004-10-05 Thread Fogleson, Allen
Freddy, You want to use the formName that you gave in the struts-config.xml in general. Here is a short example. Assume TestForm is an actionform named "testForm" in the struts-config.xml. In the action class you would do something like this public Actionforward execute(...) { . . .

Re: input form

2004-10-05 Thread Wendy Smoak
From: "Freddy Villalba A." <[EMAIL PROTECTED]> > I have a similar question: when you say create the action form and put it > into request scope... I suppose you refer to the same ActionForm that will > be used when, say, saving that prepopulated form again (the changes you've > made). Struts will

Tiles inheritance

2004-10-05 Thread Wylie van den Akker
Can anyone explain to me strait how tiles inheritance model actually works? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: good book about struts

2004-10-05 Thread Robert Barksdale
+1 for Ted Husted's Struts in Action On Tue, 5 Oct 2004 10:48:41 -0400, Ricardo Andres Quintero <[EMAIL PROTECTED]> wrote: > How much u know about Struts? > I read programming Jakarta Struts of chuck Cavaness, OReally. > It is a very very nice book if u dont know anything about Struts. > > On Tu

Re: back button

2004-10-05 Thread andy wix
Hi, Just for the record the following javascript works (in the body tag of the html page): It's not pretty, but it works. Regards, Andy _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/

RE: good book about struts

2004-10-05 Thread Ricardo Andres Quintero
How much u know about Struts? I read programming Jakarta Struts of chuck Cavaness, OReally. It is a very very nice book if u dont know anything about Struts. On Tue, 5 Oct 2004 16:45:44 +0100, Robin Mannering wrote > Hi, > > Can't say which is best as I have only read Struts in Action: Ted > Hu

RE: good book about struts

2004-10-05 Thread Robin Mannering
Hi, Can't say which is best as I have only read Struts in Action: Ted Husted. I find it invaluable as a reference and very easy to read ! I recommend it. Nice extra chapters too, especially the chapter on replacing JSPs with Velocity templates Robin -Original Message- From: Ye, Y

good book about struts

2004-10-05 Thread Ye, Young
Hi Struters, I am working in a project which use struts. I would like to buy a book about struts. But there are many of them in the market. Can you recommend the one which you think is best? Thanks a lot - To unsubscribe, e-ma

Re: problem parsing validation-rules depends="" with jboss

2004-10-05 Thread Erik Weber
Do you have Struts 1.1 around? Can you deploy any of the example webapps from that dist? How about the examples from your dist? Sorry, I know it's not much help. But it looks like ValidatorAction is trying to instantiate a StringTokenizer with a null String, so I was just trying to narrow it do

RE: input form

2004-10-05 Thread Freddy Villalba A.
Hi, Allen... I have a similar question: when you say create the action form and put it into request scope... I suppose you refer to the same ActionForm that will be used when, say, saving that prepopulated form again (the changes you've made). Right? Then, what I'm not really sure is this: should

introduce Struts and Tapestry

2004-10-05 Thread WOLips
Hello, I have to introduce and compare between (using Struts and Tapestry) and another Web Application technologies to a customer. I thought maybe anybody can link me to read the most important advantages from using Struts and Tapestry. My duty is not to program with them, its just to tell WHY

Redirecting and getting the original URL

2004-10-05 Thread Jacob Weber
Hello. In my Struts application, I have an action which forwards to a second action. The "redirect" parameter is set to false, so the browser's URL doesn't change. I'd like to get the original URL that the user requested (the one that's in his browser). But request.getServletPath() and the vari

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
[EMAIL PROTECTED] wrote: 1. He authored that WIKI and 2. That WIKI now directly links to his homepage, so why make the OP suffer redirection? Dennis Because indirection decouples the link and leaves me free to change my site, Dave

Re: multiple submit buttons on a form

2004-10-05 Thread Rick Reumann
struts lover wrote the following on 10/5/2004 10:12 AM: I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as required by LookupDisp

Re: problem parsing validation-rules depends="" with jboss

2004-10-05 Thread Rick Reumann
I'm still stumped. I stopped server, deleted all temp files, re-deployed, and get the same error with jboss3.2.5 (listed below) What I find odd is if I remove all the rules that have depends="" in them and redploy with the modified validation-rules then everything is fine. Very frustrating. 11

RE: Load-on-startup init servlet

2004-10-05 Thread DGraham
Or, extend ActionServlet and put your code after the call to super.init(): -- public class fooServlet extends ActionServlet{   public fooServlet () {     super();   }   public void init() throws ServletException {     super.init();     // do something here;   } } -- Don't forget to update web.

RE: Load-on-startup init servlet

2004-10-05 Thread Hiran.Chaudhuri
Hi, Denis. To get your servlet loaded after the Struts ActionServlet, simply use 2 (assumed that your ActionServlet is loaded with 1=. This simply tells Tomcat to load your servlet after the ActionServlet. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Else

Re: Load-on-startup init servlet

2004-10-05 Thread Denis Avdic
So I can call MessageResources.getMessageResources("blah") in the init() method? Is there an order I have to load the servlets in web.xml in order for that to work? (if I remember correctly, ActionServlet actually loads those resources, right?) On Tue, 5 Oct 2004 07:49:02 -0700 (PDT), Varun Garg

[OT] RE: multiple submit buttons on a form

2004-10-05 Thread Durham David R Jr Contr 805 CSPTS/SCE
> The reason is that I may want to change this page > without having to go to every place it is linked > to do so. Does that qualify as a "splash" screen? HA HA - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Load-on-startup init servlet

2004-10-05 Thread Varun Garg
MessageResources res = MessageResources.getMessageResources("ApplicationResources"); If you are using the property file name ApplicationResources in the root folder. In the init method of the servlet that you are loading at startup, you can do whatever you want. public void init(ServletC

RE: multiple submit buttons on a form

2004-10-05 Thread DGraham
Never mind, I misread Davids post. Dennis [EMAIL PROTECTED] 10/05/2004 10:31 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject RE: multiple submit buttons on a form 1. He authored that W

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Hi, David, that is a good question, which Steve Raeburn once solved by changing the link. The reason is that I may want to change this page without having to go to every place it is linked to do so. Just "decoupling", as they say. In fact, since Steve changed the link, I have changed the pag

RE: multiple submit buttons on a form

2004-10-05 Thread struts lover
LOL :)) --- Durham David R Jr Contr 805 CSPTS/SCE <[EMAIL PROTECTED]> wrote: > > > http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions > > Mike, why not link directly to the Struts related > stuff from the wiki. > Or are you trying to drum up business for your flash > skills? ;) >

RE: multiple submit buttons on a form

2004-10-05 Thread DGraham
1. He authored that WIKI and 2. That WIKI now directly links to his homepage, so why make the OP suffer redirection? Dennis "Durham David R Jr Contr 805 CSPTS/SCE" <[EMAIL PROTECTED]> 10/05/2004 10:24 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts U

RE: multiple submit buttons on a form

2004-10-05 Thread Durham David R Jr Contr 805 CSPTS/SCE
> http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions Mike, why not link directly to the Struts related stuff from the wiki. Or are you trying to drum up business for your flash skills? ;) - Dave - To unsubscribe,

Re: multiple submit buttons on a form

2004-10-05 Thread struts lover
Thanks Michael very much. I will go through it. If I dont understand anything, will come back :). Thanks again. --- Michael McGrady <[EMAIL PROTECTED]> wrote: > Lucky you, Struts Lover, this has already been done. > See > http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions > . Yo

Load-on-startup init servlet

2004-10-05 Thread Denis Avdic
I am trying to set up a start up sequence for my app but I have never set up something like that. Basically I want to initialize some classes with attributes found in my resources file. How would I go about doing this? I set up my web.xml file to load a servlet on startup, but I am not sure how

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Lucky you, Struts Lover, this has already been done. See http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions . You can get everything you want without the incredibly heavy load of having LookupDispatchAction create a reverse map of your entire ApplicationResource.properties file

multiple submit buttons on a form

2004-10-05 Thread struts lover
Hello Everyone, I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as required by LookupDispatchAction. I also want internationaliza

Re: Loosing session while redirecting

2004-10-05 Thread Erik Weber
I don't know any reason why a redirect should be the cause of session "breaking", though I admit I haven't used a redirect from HTTP to HTTPS in the middle of a user's workflow (only at the very beginning -- by using the CONFIDENTIAL transport-guarantee in web.xml). Is your test browser accepti

  1   2   >