Duplication of code in Business objects and Action forms

2002-10-21 Thread Rajesh Kanade
Hi All I am new to Struts so please bear with me. We have started implementing a new product using struts. Now I do see that I need to have getter /setter methods declared on both my business objects as well as Action form. So for e.g if I had a User business object which encapsulates the e

RE: Form submission

2002-10-21 Thread Andrew Hill
Submit Forgot the syntax for doing it with the link tag, but very similar. -Original Message- From: Kyrre Lugg [mailto:kyrre.lugg@;tomra.no] Sent: Tuesday, October 22, 2002 16:50 To: Struts Users Mailing List Subject: Re: Form submission James Mitchell wrote: > Better question. What ar

Re: Form submission

2002-10-21 Thread Kyrre Lugg
James Mitchell wrote: Better question. What are you trying to do? I just want to replace the submit button with an anchor. Kyrre Lugg -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: tiles-definitions related XML parser exception

2002-10-21 Thread Andrew Hill
Yep. Fix your xml. -Original Message- From: Xue-Feng Yang [mailto:just4look@;yahoo.com] Sent: Tuesday, October 22, 2002 13:49 To: Struts Users Mailing List Subject: tiles-definitions related XML parser exception I just found the following exception in catalina.out. Any suggestion? Oct

tiles-definitions related XML parser exception

2002-10-21 Thread Xue-Feng Yang
I just found the following exception in catalina.out. Any suggestion? Oct 22, 2002 1:39:13 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 39 column 21: The content of element type "tiles-definitions" is incomplete, it must match "(definition)+". org.xml.sax.SAXParseExc

RE: attribute vs name on action in struts-config

2002-10-21 Thread James Mitchell
If I remember correctly, Craig answered this about 2 days ago. Although it may have been buried under an unrelated thread. I always use name="", so I've never hit this problem. Unless I'm mistaken, the attribute is YOU telling struts what name of the ActionForm is stored under in some scope, and

attribute vs name on action in struts-config

2002-10-21 Thread Tony Baity
hi, I did a little cut and paste with the example struts-config and came up with the following. I was chasing after ghosts all afternoon and night trying to find out why my form bean was not showing up finally, after about three dozen System.out.println lines i

Re: {Validator] Required Fields

2002-10-21 Thread Rob Leland
Rob Leland wrote: Jerry Jalenak wrote: Has Validator changed in its use of 'required'? I pulled down the 20021008 build a couple of weeks ago, and found that Validator is now 'requiring' all of my form fields even when I don't specify the required parameter. Looking a little further at the

Re: {Validator] Required Fields

2002-10-21 Thread Rob Leland
Jerry Jalenak wrote: Has Validator changed in its use of 'required'? I pulled down the 20021008 build a couple of weeks ago, and found that Validator is now 'requiring' all of my form fields even when I don't specify the required parameter. I did a quick check in the archives but didn't see anyt

RE: Weblogic6.1 + struts1.0 NoClassDefFoundError org.apache.strut s.ac tion.Action

2002-10-21 Thread Yao Rong
Thanks! I download struts-example.war. It can be deloyed and works without any problem on Weblogic Server 6.1 SP2. But my problem still exists. I checked startweblogic.cmd and struts-config.xml and found nothing wrong. Any ideas? -Original Message- From: Daniel Jaffa [mailto:jaffad@;cou

[Tiles]New tiles user with questions..

2002-10-21 Thread Jeff_Mychasiw
Greetings: I am in the early stages of converting some of my page to use tiles framework. I am hoping that the conversion will go smooth as many of my pages are build with reusable includes, however I have the several jsp:include files that depend on an input parameter. I h

Re: [ANNOUNCE] SVT 0.5.0-beta released

2002-10-21 Thread Shinya Kasatani
> I don't understand why you think this is better. With validation.xml, all my > validation requirements are in one place; I don't have to look a number of > java form files to find out what they are. And if any of them change I only > have to edit one file, and restart struts; without needing to r

Re: Book Opinions

2002-10-21 Thread Peter A. J. Pilgrim
Vincent Stoessel wrote: I highly recomend Mastering Jakarta Struts by James Goodwill. It breaks all the struts components and proceeds to build a sample application for you step by step. The last chapers deal with the jakarta tag libraries in detail with an example for each tag. That alone made it

javascript with a href

2002-10-21 Thread Michael Burke
When I click on the edit, delete bid or Accept Bid links in the logic tags below nothing happens. Any suggestions why? %@ taglib uri="/bean" prefix="bean" %> <%@ taglib uri="/html" prefix="html" %> <%@ taglib uri="/logic" prefix="logic" %> <%@ taglib uri="/template" prefix="template" %>

re. i18n

2002-10-21 Thread Vernon Wu
I saw the following statement in today mail archive. Also keep in mind that the locality is stored in session. This means you cannot switch languages while using the same session. The best way to test is by setting your language, close and reopen your browser. This stat

RE: Error while initializing ActionServlet

2002-10-21 Thread Kevin . Bedell
This is a lttle bit funky. Assuming you are using 1.1beta2, it turns out that the particular ServletException is thrown in the ActionServlet in only 1 place - which is in this method: protected ApplicationConfig initApplicationConfig (String prefix, String path) throws ServletE

Re: Sub-App navigation confusion

2002-10-21 Thread Eddie Bush
You'll have to define them in each app for now :-( I have this exact same situation. 1.1 final will be all about "seperatism of modules" (each module will behave like it's own independent application). The idea is that, this being the first release with modules, we should first learn how to m

Re: Using Struts with XML-RPC (or JAXB?) [Scanned for known viruses]

2002-10-21 Thread Kevin . Bedell
Karen - Following is a re-post from a similar thread about a week ago where I laid out one potential solution for this problem - assuming I understand your issue correctly. Following is a description and some code I used for setting up communications between Struts and Axis for SOAP communicat

Using Struts with XML-RPC (or JAXB?)

2002-10-21 Thread Karen Choi
I am stuck on a rather vexing Struts problem... It sounds simple enough. I need to read some values from a form bean, then parse those values into a valid xml document (must conform to schema I've been provided with) then send that document to a defined service endpoint (another servlet). I kn

Re: & building columns

2002-10-21 Thread Adam Sherman
Arron Bates wrote: > is not mandatory, but if one is not used, a > or an is required. At least one of them has > to be there. Why?... because the following nested tags look up to > these tags to get the reference to the bean that you're nesting > against. The <*:form> tags will use the form bean

RE: Error while initializing ActionServlet

2002-10-21 Thread James Mitchell
I just ran the test suite for 3.2, 4.0 and 4.1 and only experienced failure for 3.2. (but then my 4.0 was 4.0.6) Can you retry your test with ant's -debug switch? May are may not provide further detail. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org > -Or

RE: Error while initializing ActionServlet

2002-10-21 Thread Vikas Malla
I am using tomcat 4.0.3 and ant 1.5 with struts 1.1b2. What should be the right combination? Any ideas? Thanks. [EMAIL PROTECTED] wrote: http://strutstestcase.sourceforge.net/faq.htm You know, it's possible I spoke too soon. The error I was thinking of was the first on in the faq ( http:/

Re: & building columns

2002-10-21 Thread Adam Sherman
Arron Bates wrote: What about a Set? List and Map implementations only. Only because the properties for getting at an item in a collection needs a key. int's for lists and arrays, and objects (strings) for the mapped collections. Set is just a bunch, and there's no way in an iteration for the sy

Re: & building columns

2002-10-21 Thread Adam Sherman
Arron Bates wrote: What about a Set? List and Map implementations only. Only because the properties for getting at an item in a collection needs a key. int's for lists and arrays, and objects (strings) for the mapped collections. Set is just a bunch, and there's no way in an iteration for the sy

RE: Error while initializing ActionServlet

2002-10-21 Thread Kevin . Bedell
http://strutstestcase.sourceforge.net/faq.htm You know, it's possible I spoke too soon. The error I was thinking of was the first on in the faq ( http://strutstestcase.sourceforge.net/faq.htm ) which is actually: "Missing configuration resource for path /WEB-INF/struts-config.xml"? O

RE: Error while initializing ActionServlet

2002-10-21 Thread Vikas Malla
In the snippet below, app.home = my folder which has the WEB-INF directory, one level up from WEB-INF, Thanks. [EMAIL PROTECTED] wrote: This is a common error. When using StrutsTestCase you need to have the pat

Re: Error while initializing ActionServlet

2002-10-21 Thread Vikas Malla
Looking at this snippet, is my version of httpclient.jar old? i dont know why would the test examples work and not my application though. 2002-10-21 17:51:24,486 [main] INFO httpclient.wire - << "

Sub-App navigation confusion

2002-10-21 Thread Peterkofsky, Don
We have what should be a fairly common situation: several sub-applications corresponding to different business unit functions, and a global navigation "header" that navigates among these different sub-applications (Unit1, Unit2, etc.). The navigation header is defined in a global template, and so

RE: Error while initializing ActionServlet

2002-10-21 Thread Kevin . Bedell
This is a common error. When using StrutsTestCase you need to have the path: ' /WEB-INF/struts-config.xml' on your class path. That is, it looks literally for the directory /WEB-INF on the classpath. Modify your class path to add the directory directly above 'WEB-INF' to your classpath and it

[OT] Working with File System

2002-10-21 Thread Jacob Hookom
Hey All, If we are storing large amounts of files on the server, is it acceptable (performance wise) to be querying directories straight from the file system? I realize Tomcat does this for directory browsing, but I don't know if it will scale well enough that I would need to cache the results?

RE: Delete/remove jsessionId

2002-10-21 Thread Heligon Sandra
The jsessionId is saved in a file on my computer, I would like to make as if it were the first time that I launched the application on my machine and no cookie exist on my machine. I use Tomcat as web server, I would like to be a new user without session created. I do not want to make modification

RE: How to add a pre-action

2002-10-21 Thread Howard Miller
I'd just like to thank everybody who replied to this one. I have got a lot of information, and have successfully sorted out what I want to do. And it feels right!!! Thanks very much everybody!! Howard Miller On 21 Oct 2002 at 10:25, [EMAIL PROTECTED] wrote: > > We use pre-actions for all of

RE: Error while initializing ActionServlet

2002-10-21 Thread Vikas Malla
ant-1.5. James Mitchell <[EMAIL PROTECTED]> wrote:What version of Ant are you using? James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org > -Original Message- > From: Vikas Malla [mailto:malla6um@;yahoo.co.in] > Sent: Monday, October 21, 2002 5:11 PM > To: St

Last for words with forwarding can someone please help me out here

2002-10-21 Thread Smith, Johnathan M.
I have a action that changes some values in the form bean and then forwards to a action. 1) If my first action is set to request scope and my 2nd action is also set to request scope the 2nd action does not see the form bean changes 2) If my first action is set to session scope and my 2nd action

RE: off topic - paged lists

2002-10-21 Thread Shekhar Jain
Try the dotj grid from www.dotjonline.com It has soom good basic functionality SHekhar -Original Message- From: Howard Miller [mailto:me@;howardmiller.co.uk] Sent: Monday, October 21, 2002 11:14 AM To: Struts Users Mailing List Subject: Re: off topic - paged lists Good point! Thanks fo

RE: How to add a pre-action

2002-10-21 Thread Mohan Radhakrishnan
Hi, I am doing just that. Hope it works. Thanks. bye, Mohan -Original Message- From: Dave Derry [mailto:dderry@;acm.org] Sent: Monday, October 21, 2002 4:52 PM To: Struts Users Mailing List Subject: Re: How to add a pre-action In addition to Phil's advice, if I understand you correct

Struts Features

2002-10-21 Thread Podhigai Thendral
Can anyone send me a link to the list of features provided by Struts framework ? I have searched for it in the apache site but could not find one. -Thendral -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: How to add a pre-action

2002-10-21 Thread Mohan Radhakrishnan
Hi, input="/a/bookSearch.jsp" Could you explain what this parameter means ? We have a similar requirement. bye, Mohan > Here is a simple example showing one way to deal with this type of > thing. There are no doubt lots of other ways to handle this. > > Use case: library search. User

Delete/remove jsessionId

2002-10-21 Thread Heligon Sandra
I would like to test my application but I don't know how to initialise again the environment. When I start my application, the URL contains a jsessionid (jsessionid=CD334A6F202487AE30A9E72EFFA17FE1). How is it possible to start with no session ? Do I ha

RE: Form submission

2002-10-21 Thread Brandon Goodin
I should be a bit clearer. Basically what i am saying is that as long as you have request parameters and you are pointing at an action who's form bean has getter/setter properties that match the request parameters you can always capture the form data. Brandon Goodin -Original Message- Fro

RE: Form submission

2002-10-21 Thread Brandon Goodin
Yes, if you have a query string appended to a url that points to an action (i.e. *.do) the request parameters will be mapped to the associated action's form bean. Brandon Goodin -Original Message- From: Kyrre Lugg [mailto:kyrre.lugg@;tomra.no] Sent: Monday, October 21, 2002 5:13 PM To: [

RE: Submit button look

2002-10-21 Thread James Mitchell
You will need to use http://www.open-tools.org > -Original Message- > From: Heligon Sandra [mailto:sandra.heligon@;nextream.fr] > Sent: Monday, October 21, 2002 11:57 AM > To: '[EMAIL PROTECTED]' > Subject: Submit button look > > > > How is it possible to modify the look of a s

RE: Form submission

2002-10-21 Thread James Mitchell
Better question. What are you trying to do? (e.g. prevent the form from submitting when a user hits the enter/return key???) James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org > -Original Message- > From: Kyrre Lugg [mailto:kyrre.lugg@;tomra.no] > Sent: M

Re: Error while initializing ActionServlet

2002-10-21 Thread Howard Miller
Your not using some ancient version of struts are you? I'm thinking it could be something to do with DTD versions. Just guessing though Have you checked the container logs to see if there is anything strange? HM On 21 Oct 2002 at 22:11, Vikas Malla wrote: > > It gives me no errors. > The co

Submit button look

2002-10-21 Thread Heligon Sandra
How is it possible to modify the look of a submit button ? There is no image property associated to the html:submit tag. Login Sandra -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Delete/remove jsessionId

2002-10-21 Thread Viktors Stepanovs
Hi Sandra What Do you meen "initialise again the environment" ? if you meen that you need reinit stuts-config.xml you can use"org.apache.struts.tiles.actions.ReloadDefinitionsAction" if you need new HttpSession request.getSession(true) and you have new session. if need that URL didn't contain "js

RE: Error while initializing ActionServlet

2002-10-21 Thread James Mitchell
What version of Ant are you using? James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org > -Original Message- > From: Vikas Malla [mailto:malla6um@;yahoo.co.in] > Sent: Monday, October 21, 2002 5:11 PM > To: Struts Users Mailing List; [EMAIL PROTECTED] > Subjec

Re: How to add a pre-action

2002-10-21 Thread Phil Steitz
Mohan Radhakrishnan wrote: Hi, I am doing something similar but I have a doubt. I show selection parameters with the following action mapping. The html:form action for that is mainscreen.action. type="com.hcl.smartmanage.web.action.ReportParameterAction" name="reportP

Re: JDK 1.4 and struts

2002-10-21 Thread Umberto Nicoletti
On Sun, 2002-10-20 at 05:21, email wrote: > > There were a couple of messages the other day concerning Struts failing > to work correctly under the 1.4 JDK. I'd like to add some evidence to that. > > Sun's 1.4 JDK (at least the Linux version) seems to have serious > problems w/ the classpath. Aft

RE: ChoiceFormat for message formatting?

2002-10-21 Thread Karr, David
> -Original Message- > From: Andy Kriger [mailto:akriger@;greaterthanone.com] > Sent: Monday, October 21, 2002 9:21 AM > > Can ChoiceFormat be used to format messages in the app > properties file? > > For example, the validator error.maxlength is > {0} can not be greater than {1} charact

Form submission

2002-10-21 Thread Kyrre Lugg
Excuse me if I'm off topic here: Can one capture form data even if the request is not caused by a form submit button? Kyrre Lugg -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Error while initializing ActionServlet

2002-10-21 Thread Vikas Malla
It gives me no errors. The console validates my xml without any problems. What else can be the reason? Howard Miller <[EMAIL PROTECTED]> wrote:Errr it means what is says... there is an error in your struts-config.xml file. The best advice I can give is to get hold of Struts Console at...

Re: [ANNOUNCE] SVT 0.5.0-beta released

2002-10-21 Thread Dave Derry
- Original Message - From: "Shinya Kasatani" <[EMAIL PROTECTED]> > Hello, > > I am pleased to announce that I have released a first version of SVT > (Struts Validation Toolkit). > SVT is a form validation framework for Struts. > > You can write a simple validating code in Java, rather tha

Re: & building columns

2002-10-21 Thread Adam Sherman
Arron Bates wrote: The object I've put in the request is a List, therefore I'm iterating over it, and not one of its properties. Should I wrap it in a Bean? Yup. In theory only you could use "this/" as the property for the list, but BeanUtils will throw a fit when the property "[5].sublist[2]" i

Réf. : Re: ActionForm and ArrayList

2002-10-21 Thread Arnaud . PASQUIERS
Thanks for your help. But I have the same problem with a String[]... When I retrieve my array, after submitting my form, its size is 0. Do you know where I can find a real example? (My purpose is to update an array of object (not Java objet but custom object) via a html:form and ActionForm)

RE: Submit button look

2002-10-21 Thread Heligon Sandra
I am not sure but I believe that I must replace the line Login by something like that: and in the ActionForm that is associated to that page, protected boolean m_loginPressed = false; public int getLogin() { m_loginPressed = true; return 0; } public boolean isL

ApplicationResources and 1.1b2

2002-10-21 Thread ajTreece
Morning folks... I have recently upgraded from 1.1b1 to 1.1b2 and ran into a couple of problems. The first was logging, but I found the solution in the archives which was to use the newly released Commons Logging jar. The problem I'm having now is with messages via ApplicationResources.propert

Re: Best Practice for optaining GLOBAL_ERRORS

2002-10-21 Thread Vincent Stoessel
Hi, Doesn't just using automatically pull all the ActionErrors out for you? Dennis Muhlestein wrote: I want to display errors with By the input field for the property. That is fine and works ok. At the top of my form, I'd like to display any Global Errors. I've added That works too, but it

off topic - paged lists

2002-10-21 Thread Howard Miller
Sorry this is a bit off topic, but if anybody knows etc. Has anybody come across a taglib like the taglib for showing paginated lists. BUT, I need it to display the output of arbitrary sql queries. That is where the column headings are not known at run-time? It would probably have to acce

RE: JDK 1.4 and struts

2002-10-21 Thread Jerry Jalenak
+1 I've been running Struts 1.1b2 on Win-NT (service pack 6), RedHat 7.2, and RedHat 7.3 - all with J2SDK 1.4.0_01 - and have had no classpath issues. I often complete a module on my Win-NT system, drag it to my Linux test box, drop it in the web app and test without making any changes Jerry

struts Newbie - login screen

2002-10-21 Thread deepank
Hi, This question is not exclusive to Struts but i am hopeful Stuts must be having a solution for this. Once i authenticate a user and store his user information in session, i dont want that the login screen should appear again, unless ofcourse the user logs out or the session expires. As of now

RE: How to add a pre-action

2002-10-21 Thread Jeff_Mychasiw
We use pre-actions for all of our pages. I too would like more examples of this type of thing. I can't say if this is the best way or not, but we are in mid construction of out first Struts app and have have found that certain situations keep appearing. Most of our pages look like the Master- det

RE: Best Practice for optaining GLOBAL_ERRORS

2002-10-21 Thread James Higginbotham
Hey Dennis, long time no talk! Well, not sure if there is a better way, but here is what we do: (removes the import).. I guess you could write a custom tag to create one of the html:errors tag instances, set the property name to the GLOBAL_ERROR constant, and delegate to it.. Thus, you could

Re: & building columns

2002-10-21 Thread Adam Sherman
Sri Sankaran wrote: > The value of the property attribute must be (in v1.1) something that > implements the Map or List interface. I see that your > getInformationSessionsIterator() method returns an Iterator. I had tried it with a getInformationSessionArray(), which didn't work either. See belo

RE: How to determine the last row in a collection

2002-10-21 Thread Tuan H. Le
Adam, Thanks for your quick response! In my case, I'm not sure your suggestion would work. Here's the logic that I'd like to implement within if it's the last row dispay else display My collection is an ArrayList, and it's pretty straight forward to achieve this logic by using array i

Re: off topic - paged lists

2002-10-21 Thread Eddie Bush
I haven't heard of anything. ... but I would recommend against using ResultSet. Close all your result sets/connections etc as soon as you retrieve and process. If you need to keep results in something like ResultSet and do so between actions, you may search for CachedRowSet. It will not requ

off topic - paged lists

2002-10-21 Thread Howard Miller
Sorry this is a bit off topic, but if anybody knows etc. Has anybody come across a taglib like the taglib for showing paginated lists. BUT, I need it to display the output of arbitrary sql queries. That is where the column headings are not known at run-time? It would probably have to acce

Re: Struts and Tiles and bean:message

2002-10-21 Thread Cedric Dumoulin
This question has already been asked. It should be in the struts archives ;-) Here is a solution: * Specify the resource key in your . This will create a tile's attribute. * Retrieve the tiles attribute value, and use it. o Tiles attribute are stored in the tile context. You

RE: Accessing a collection in a Form bean with

2002-10-21 Thread Karr, David
> -Original Message- (B> From: Itagaki, Masaki [mailto:[EMAIL PROTECTED]] (B> Sent: Monday, October 21, 2002 11:45 AM (B (B> This is just fine. Now, I have another AddressForm member of (B> a string array (B> for multiple phone numbers, as "phones" (String[]) and need (B> to displa

RE: How to determine the last row in a collection

2002-10-21 Thread Taylor, Jason
you can use the bean:size tag to get the size of your collection, then do a logic:equals comparing the indexId of each row with the page scope variable obtained from the bean:size tag via scriplet reference (kind of a hack, probably a better way using JSTL)... -Original Message- From: Tuan

RE: struts Newbie - login screen

2002-10-21 Thread Sri Sankaran
What's wrong if the user navigates back and views the login screen? Your application can just discard the earlier session and re-initialize. Don't try to circumvent standard browser behavior. Sri -Original Message- From: deepank [mailto:deepank@;sasken.com] Sent: Monday, October 21,

ChoiceFormat for message formatting?

2002-10-21 Thread Andy Kriger
Can ChoiceFormat be used to format messages in the app properties file? For example, the validator error.maxlength is {0} can not be greater than {1} characters. This will produce ' can not be greater than 1 characters' I am trying to use the ChoiceFormat to work so this can be grammatically cor

validator questions

2002-10-21 Thread Andy Kriger
1) Is it possible to override the validator error message when a field fails validation? For example, I have a required field that is missing. I display the default error message at the top of the page. I would also like to change the color of the form field label red. Can I do something like to o

Accessing a collection in a Form bean with

2002-10-21 Thread Itagaki, Masaki
I have a problem in accessing a collection (String array) that is in a form (Bbean when is use tag. Say, I have AddressForm, which has (B"name" (String) and "address" (String) as members. After my action servlet (Bputs an array of the AddressForm in a request object (named as (B"r_addresses"),

Re: How to determine the last row in a collection

2002-10-21 Thread Adam Sherman
Tuan H. Le wrote: if it's the last row dispay else display Do you have some HTML to illustrate this? Might be possible to work around the issue. A. -- Adam Sherman Software Developer Teach and Travel Inc. +1.613.241.3103 -- To unsubscribe, e-mail:

Re: Book Opinions

2002-10-21 Thread Vincent Stoessel
I highly recomend Mastering Jakarta Struts by James Goodwill. It breaks all the struts components and proceeds to build a sample application for you step by step. The last chapers deal with the jakarta tag libraries in detail with an example for each tag. That alone made it worth it for me. Before

RE: Struts and Tiles and bean:message

2002-10-21 Thread Chen, Gin
Hi David, That was the intended use of page.title. But I wanted to try to keep within the "struts standards" and define all msgs within my application resource file. Are you saying that there is no way to do an indirect mapping? I mean cant I pull out the value of page.title ("order.status.

Re: Struts and client side features

2002-10-21 Thread V. Cekvenich
Code you want to emit would be something like: <%FormBean fb = (FormBean)session.getAttribute("FormBean"); AnotherBean p = fb.getAnotherBean(); Hashtable h = p.getAllPropSubtypes(); Enumeration e = h.keys(); for(; e.hasMoreElements(); ) { String s = (String)e.nextElement(); out.println("a"+s+" =

contextRelative in local forward

2002-10-21 Thread Armin_Sproll
Hello all, I try to change our struts configuration to use sub-applications. The forward from the default application to the sub-application seems to be working fine. However, I can't seem to be able to get to a jsp file outside the sub-application action. I am always getting an error from Tomcat

Re: Error while initializing ActionServlet

2002-10-21 Thread Howard Miller
Errr it means what is says... there is an error in your struts-config.xml file. The best advice I can give is to get hold of Struts Console at... http://www.jamesholmes.com/struts/console/ This should sort you out! Howard Miller On 21 Oct 2002 at 20:51, Vikas Malla wrote: > > I was abl

RE: & building columns

2002-10-21 Thread Sri Sankaran
The value of the property attribute must be (in v1.1) something that implements the Map or List interface. I see that your getInformationSessionsIterator() method returns an Iterator. Also, the method corresponding to a property of 'informationsessionsiterator' *must* be 'getInformationsession

RE: i18n

2002-10-21 Thread Jeff Born
I have three ApplicationResources.properties files. ApplicationResources.properties ApplicationResources_es.properties ApplicationResources_ru.properties and the following line in the struts-config.xml file: I can restart Tomcat 4.1 after resetting the region via Control Panel->Regional Settin

Re: Struts and client side features

2002-10-21 Thread V. Cekvenich
A good practices is to write a JSP tag that emits JavaScript. The JavaScript can contain an array list that comes from a bean. Commonly used on dependent options Collections tag. .V Heligon Sandra wrote: In a Struts application, is it possible to modify a JSP page without call the server. My

Re: How to add a pre-action

2002-10-21 Thread Phil Steitz
Mohan Radhakrishnan wrote: Hi, Flow : login.jsp -> mainscreen.jsp[ jsp:includes a left panel showing report parameters] The parameters are chosen by the user. Forward to the same mainscreen.jsp which is shown again with the left panel hidden (uses layers) and the report shown in

Re: & building columns

2002-10-21 Thread Adam Sherman
Still doesn't work as I think it should. The following JSP: I checked the Object to verify: InformationSessionManager manager = new InformationSessionManager(); ContainerBean container = new ContainerBean(manager.getCurrent()); request.setAttribute("currentSchedule

Re: contextRelative in local forward

2002-10-21 Thread Eddie Bush
There should no longer be issues surrounding path matching in modules. That was my very first commit. The scenario that that commit fixed would be like: /moduleA.do <--- an action that starts with /module <-- a different module's name was causing control to be shifted to the other mo

Re: struts Newbie - login screen

2002-10-21 Thread Howard Miller
Someone correct me if I am wrong, but nothing can help you. The browser will recover the page out of its cache and you'll get whatever you saw last. If you are writing a server-side application, I would stop and think very carefully before using Javascript - on principal if nothing else!! Remem

RE: Accessing a collection in a Form bean with

2002-10-21 Thread Itagaki, Masaki
David (B (B>I think your "bean:define" element needs to reference the bean created in (B>your loop. Try the following: (B (B> (B (BThank you for your suggestion. Actually I've thught the same thing and have (Btried that, but it did not work (same result). Specifying the name as a bean (Bn

OT: Presentaiton layer

2002-10-21 Thread V. Cekvenich
One day W3.org will release xforms tag to replace the forms tag. Here me now, listen to me later. Here is a plug in for IE: http://www.FormsPlayer.com With great links. Exciting. Also http://jxforms.cybernd.at/ is also ok. .V -- To unsubscribe, e-mail:

Error while initializing ActionServlet

2002-10-21 Thread Vikas Malla
I was able to run the MockStrutTestCase example. I was trying to run my application using CactusStrutTestCase but this is the error I am getting: [junit] Testcase: testSuccessfulLogin took 0.611 sec [junit] FAILED [junit] Error while initializing ActionServlet: Parsing error pro

Weblogic6.1 + struts1.0 NoClassDefFoundError org.apache.struts.action.Action

2002-10-21 Thread Yao Rong
I got a strange problem: I develop a web application on Weblogic 6.1 SP2 and I use apache struts 1.0. But when myJsp.jsp request myAction.class, NoClassDefFoundError occurs: org.apache.struts.action.Action is not found. FYI, I have struts.jar in mywebapp/WEB-INF/lib and my application works well o

Re: How to add a pre-action

2002-10-21 Thread Dave Derry
In addition to Phil's advice, if I understand you correctly you are asking how you can differentiate two different behaviors in the same action class. When action is /mainscreen then ReportParameterAction should do one thing (or nothing) but when action is /report then ReportParameterAction should

{Validator] Required Fields

2002-10-21 Thread Jerry Jalenak
Has Validator changed in its use of 'required'? I pulled down the 20021008 build a couple of weeks ago, and found that Validator is now 'requiring' all of my form fields even when I don't specify the required parameter. I did a quick check in the archives but didn't see anything immediately. Has

RE: ChoiceFormat for message formatting?

2002-10-21 Thread Karr, David
So you get that exception with "{1,number,integer}", but you get the SAME exception when you just use "{1}"? This is about the time that I set up my debugger so I can see the actual call to the "format" method. > -Original Message- > From: Andy Kriger [mailto:akriger@;greaterthanone.com]

Re: Struts Tags inside a Tag????

2002-10-21 Thread Cedric Dumoulin
Where do you put your nested tags ? Remember that you can nest a tag only inside of the body of another tag (if the surrounding tag tld accept it): You CAN'T put a tag as the value of another tag's attribute: These are part of jsp specification. Hope this help, Cedric S

RE: Submit button look

2002-10-21 Thread James Mitchell
I don't understand your question. Can you restate it? James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org > -Original Message- > From: Heligon Sandra [mailto:sandra.heligon@;nextream.fr] > Sent: Monday, October 21, 2002 12:06 PM > To: 'Struts Users Mailing Li

Re: Weblogic6.1 + struts1.0 NoClassDefFoundError org.apache.strut s.action.Action

2002-10-21 Thread Daniel Jaffa
I have also deployed weblogic 6.1 sp2 with struts 1.0 Make sure that you web app is working correctly. Try removing struts, put a jar file in /web-inf/lib and see if you can call a class from your jsp page. If you can you should be able to weblogic to work. Also make sure that struts.jar is no

RE: ChoiceFormat for message formatting?

2002-10-21 Thread Andy Kriger
I'm getting 'java.lang.IllegalArgumentException: Cannot format given Object as a Number' when I use the message format below. I tried simplifying to just {1} characters instead of {1,number,integer} but no luck -Original Message- From: Karr, David [mailto:david.karr@;attws.com] Sent: Monda

i18n

2002-10-21 Thread Jeff Born
I've been playing around with i18n and Struts and have gotten it to work via changing my Regional Settings and restarting Tomcat. However it is my understanding I should be able to update the Tools->Internet Options->Languages->Add... Add a Language and then move it up in priority. I've tested this

Struts and Tiles and bean:message

2002-10-21 Thread Chen, Gin
Hi all, I have an application that defines a specific value in my resource properties file as: order.status.title=Order Status Since I am using tiles in my application. My main layout file cannot use: because it is being used for other pages as well. Therefore,

  1   2   >