Re: [ActionForm] Returning from validate routine

2002-09-10 Thread Jim Crossley
The input can reference another struts action that is able to do the dynamic determination, e.g. input=/determinator.do?valid=no or some such thing. Jim - Original Message - From: Jerry Jalenak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 10, 2002 1:47 PM

REPOST: Something ate my submit request parameter

2002-08-17 Thread Jim Crossley
Help? Please? - Original Message - From: Jim Crossley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 10:39 AM Subject: Something ate my submit request parameter I just tried to upgrade from 1.1b1 to 1.1b2. In my jsp page, I have a nested form that includes

RESOLVED: Something ate my submit request parameter

2002-08-17 Thread Jim Crossley
of a property attribute. Is that behavior so bad? Jim - Original Message - From: Jim Crossley [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, August 17, 2002 10:08 AM Subject: REPOST: Something ate my submit request parameter Help? Please? - Original

Something ate my submit request parameter

2002-08-16 Thread Jim Crossley
I just tried to upgrade from 1.1b1 to 1.1b2. In my jsp page, I have a nested form that includes multiple submit buttons: html:submit value=Back/ html:submit value=Next/ html:submit value=Finish/ With b1, I used to get a request parameter named submit. With b2, I don't. My app

Re: Auto-Replies

2002-05-10 Thread Jim Crossley
] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: xml-xslt v jsp

2002-05-10 Thread Jim Crossley
Robert [EMAIL PROTECTED] writes: The question of 'if you should' is always up for grabs :-), but it comes closer to a 'yes' if you need to have multiple client types/outputs, such as HTML, PDF, WML, etc. If not, then it _may_ not be worth it to use. We've found that XSLT works very well

Re: Testing tool for JSP

2002-05-07 Thread Jim Crossley
[EMAIL PROTECTED] writes: Does anybody know how to test JSP using JTest which has Taglib or is there any other test tool available to test struts based JSPs. I like httpunit (http://www.httpunit.org) for complete end-to-end testing. -- Jim -- To unsubscribe, e-mail: mailto:[EMAIL

Re: Can Struts initialize my services at Startup ?

2002-05-03 Thread Jim Crossley
-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Now how does one do this?

2002-05-03 Thread Jim Crossley
Craig R. McClanahan [EMAIL PROTECTED] writes: In the Tomcat 4 distribution, there is an Application Developer's Guide document that describes some best practices at organizing your source code repositories for webapp development, and includes a nice prebuilt Ant build.xml file that

Re: Q: how do I do something after a forward?

2002-05-03 Thread Jim Crossley
Malcolm Dew-Jones [EMAIL PROTECTED] writes: dbh = get_database_connection() initialize_some_beans( dbh , other , stuff ); try { return (mapping.findForward(success)); } finally { close_connection_no_matter_what(); } Obviously the above does not work. Perhaps not so

Re: Embed bean:write inside html:link?

2002-05-03 Thread Jim Crossley
Shane Bouslough [EMAIL PROTECTED] writes: [...] logic:iterate id=foo name=fooList Foo=bean:write name=foo/br /logic:iterate [...] Foo=a href=/process.do?foo=XX/abr How can I embed the output of bean:write to be part of the value passed to the page= parameter

Re: Help with ActionErrors

2002-05-03 Thread Jim Crossley
Hi Brian. Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] writes: Is it possible to add a string to an ActionError instead having it get the string out of the properties file. I need to be able to give dynamic error messages that are changing. You could put this in your properties

Re: Now how does one do this?

2002-05-03 Thread Jim Crossley
In the nightly build, it's in server/lib. Chen, Dean (Zhun) [EMAIL PROTECTED] writes: The document keeps referencing catalina-ant.jar but I don't see it anywhere. I have Tomcat 4 Release version. The directory structure seems different from the documentation. Any one know where I can get

Re: How do I pass an ActionForward's path into a button's onclick () h andler

2002-05-02 Thread Jim Crossley
Or put this in your form: html:cancel/ And this in your Action: if (isCancelled(request)) return mapping.findForward(home); -- Jim Galbreath, Mark [EMAIL PROTECTED] writes: Try this: html:cancel value=Cancel onclick=javascript:location='/do/home' / Mark -Original

Re: Iterate Problem

2002-04-26 Thread Jim Crossley
. If anyone has figured this out, please post a solution. Thanks, Mark -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: default forward/

2002-04-26 Thread Jim Crossley
the action.xml were past without maching. Has this someone realized so far? thanks, Rainer -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Problems setting form properties

2002-04-25 Thread Jim Crossley
=/ResetPasswordQuestions.jsp / forward name=success path=/gln/ResetPasswordNewPassword / /action Carl -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim

Re: html:select how to use it?

2002-04-24 Thread Jim Crossley
Here is Mark's example refactored to use the html:options tag. html:select property=ccExpYear html:option value=0Year/html:option html:options name=listExpYears/ /html:select -- Jim Galbreath, Mark [EMAIL PROTECTED] writes: Here's a simple example of how I retrieve a List of years to

Re: How to have two form fields populate the labelProperty of the options tag?

2002-04-19 Thread Jim Crossley
even possible and I'll have to use the iterate tag over my collection and then make the option names from bean:write tags ?? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim

Re: 1001st time this question gets asked

2002-04-19 Thread Jim Crossley
Shawn Catoe [EMAIL PROTECTED] writes: With the same set up, just the slashes added to the action's path attribute, input attribute, and on the form tag attribute, I am getting the same error. Anyone have any other thoughts on this? Thanks, Shawn Catoe !-- Process a login. --

Re: 1001st time this question gets asked

2002-04-19 Thread Jim Crossley
Jim Crossley [EMAIL PROTECTED] writes: form action=/login.action method=get name=loginForm That won't work. For the above action, your jsp should contain this: html:form action=/login If you insist on not using struts tags, the equivalent is this: form action=/YourWebAppName/login.do

Re: form beans and empty strings vs null?

2002-04-12 Thread Jim Crossley
] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: proper/best way to create a true reset after some validation comes back

2002-04-12 Thread Jim Crossley
of free games. -Jack Handey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: Token : URGENT : Dont understand please help

2002-04-12 Thread Jim Crossley
istokenvalid and it returns false Can anyone explain me !!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands

Re: Re[2]: proper/best way to create a true reset after some validation comes back

2002-04-12 Thread Jim Crossley
] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Re[4]: proper/best way to create a true reset after some validation comes back

2002-04-12 Thread Jim Crossley
] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Preselecting an Option within a Select

2002-04-05 Thread Jim Crossley
the form? Is there any way to add Selected to the html:options tag? There shouldn't be a need to do this. -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Preventing Caching of all pages

2002-04-04 Thread Jim Crossley
_ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim

Re: How to Generate .xls file from struts app.

2002-04-02 Thread Jim Crossley
(); response.setContentType(application/vnd.ms-excel); -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: BeanUtils/RequestUtils Populate question

2002-04-02 Thread Jim Crossley
Hi Jon. This would happen if your formbean was in request scope (specified in struts-config.xml), but I wouldn't expect it to happen in session scope. Do you have a reset method defined on the formbean? Could it be causing problems? -- Jim Jon.Ridgway [EMAIL PROTECTED] writes: Hi All, I

Re: Automatically reloading defination file of Tiles

2002-04-01 Thread Jim Crossley
Sanjay Choudhary [EMAIL PROTECTED] writes: Is there a way to configure so that if we make any change in application defination files for Tiles, it can get automatically be reloaded. Right now I have to reboot the web server every time I make changes to it and at times its really

Re: Hi Folks, 2 questions about Actions and their instance

2002-04-01 Thread Jim Crossley
[EMAIL PROTECTED] writes: [...] So here's my 2 question(s): 1. I then assume that perform() is synchronized No. If all data objects are local to the perform method, there's no reason for it to be synchronized. If the data objects referred to in perform are shared, then their access

Re: Accessing ActionServlet from Action class

2002-03-29 Thread Jim Crossley
Bhaskar Gopalan [EMAIL PROTECTED] writes: Hi, is there anyway to access the ActionServlet from inside a formBean or Action class? Both Action and ActionForm have a protected member called servlet, to which all subclasses have access. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

Re: Accessing ActionServlet from Action class

2002-03-29 Thread Jim Crossley
the ActionServlet, so can I access the ExtendedActionServlet from MyAction class? Any help would be highly appreciated. --Ajay -Original Message- From: Jim Crossley [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 6:23 AM To: Struts Users Mailing List Subject: Re: Accessing

Re: about ArrayList

2002-03-29 Thread Jim Crossley
Kumari, Ramana [EMAIL PROTECTED] writes: My question is not really related to Struts, but i thought i could ask you guys about this so that i can get some answer this might help some developers. Maybe, but it's still not an appropriate list topic. So My question is if i have an ArrayList

Re: help with select tag once again

2002-03-29 Thread Jim Crossley
. If you have received this email in error destroy it immediately. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim

Re: error

2002-03-28 Thread Jim Crossley
Hi Jose. The name property should refer to an actual name, not a class. The name you should use will be the one referred to in the name attribute specified in the corresponding action tag in struts-config.xml. -- Jim Jose Casas [EMAIL PROTECTED] writes: Does anybody know what this error

Re: error

2002-03-28 Thread Jim Crossley
=/failure.jsp / /action /action-mappings /struts-config what did i do wrong? Thanks for your help. Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL PROTECTED] -Original Message- From: Jim Crossley [SMTP:[EMAIL

Re: error

2002-03-28 Thread Jim Crossley
- From: Jim Crossley [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:43 PM To: Struts Users Mailing List Subject:Re: error What you have looks correct to me, Jose. What are you trying to pull up in the browser: the JSP or the Action? The error you're

Re: error

2002-03-28 Thread Jim Crossley
someone else on the list can clarify better than I can, but everything I'm saying is already said well-enough in the user guide, IMHO. Thanks for trying. Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL PROTECTED] -Original Message- From: Jim Crossley [SMTP

Re: error

2002-03-28 Thread Jim Crossley
) 277-3112 [EMAIL PROTECTED] -Original Message- From: Jim Crossley [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:40 PM To: Struts Users Mailing List Subject:Re: error Jose Casas [EMAIL PROTECTED] writes: I know how all that works

Re: returning the selected value from an html:select

2002-03-27 Thread Jim Crossley
of the select with the choice made. --josef --- Jim Crossley [EMAIL PROTECTED] wrote: Here's how I would do it. Change the name of the existing method that returns a collection and add a method to get the vname: public Collection getVnameList(){ return new DBAccess().getVendorNames

Re: AW: struts get and set methods in formbeans

2002-03-26 Thread Jim Crossley
I don't think that's correct. As long as you refer to the password property in your JSP, you may use getPassword/setPassword, regardless of the name of the data member they encapsulate. In other words, it's not the name of the private data member that determines the names of your public

Re: returning the selected value from an html:select

2002-03-26 Thread Jim Crossley
In your formbean, you need to distinguish between the value selected and the values able to be selected. You've accounted for the latter. You need another method to account for the former. The property referred to in your bean:define (returning a Collection) should not be the same property

Re: returning the selected value from an html:select

2002-03-26 Thread Jim Crossley
} Then change your bean:define property to vnameList. That should do the trick. -- Jim josef richberg [EMAIL PROTECTED] writes: That I understand. What I don't understand is how to do that. How can I reference the value chosen in the select? The id is tied to the bean. --josef --- Jim

Re: Pass parameters between Action classes

2002-03-25 Thread Jim Crossley
Hi Enrigue. Enrique Rodriguez [EMAIL PROTECTED] writes: When can i get the paremeters from it??? Only When I'm in a JSP? I Attach my example. Please take a look. You seem to be confusing attributes with parameters. They're not the same thing. You're calling setAttribute in Action1 but

Re: Pass parameters between Action classes

2002-03-23 Thread Jim Crossley
Lasterra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: How do I pre-select an element from a select list?

2002-03-21 Thread Jim Crossley
do I set in this form object, to have it preselect an element in the select list? Thanks. Scott Danzig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail

Re: setting 'selected' in html:select

2002-03-17 Thread Jim Crossley
] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Redirecting to login page when session expires

2002-03-17 Thread Jim Crossley
of looking in the session for something indicating a successful login is the same. -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: html:select / html:option question

2002-02-26 Thread Jim Crossley
-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jim Crossley http://www.lads.com/~jim -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: how to use an images for submit, cancel button etc

2002-02-22 Thread Jim Crossley
I don't think you need the onclick events for html:image tags. I *think* they're all going to submit your form anyway. So in your action, you'll need to look at the request to see which button the user pressed. Image inputs are tricky though, because instead of just their name (or value, I

Re: Why don't tiles cascade?

2002-02-21 Thread Jim Crossley
Cedric Dumoulin [EMAIL PROTECTED] writes: An export attribute with a value of true would essentially cause the tile to inherit the context of its parent[s]. I am agree with such feature. But, should we propose 'export' or 'import' (parent attribute) ;-). It depends on your

Re: img tag

2002-02-21 Thread Jim Crossley
Are you including the taglib descriptor in the jsp page? View the source in the web browser to get a better idea of what's going on. Post examples of what you're experiencing if you want better help. Henry Lu [EMAIL PROTECTED] writes: How to specify the src property in the img tag in a

Re: Development Environment

2002-02-21 Thread Jim Crossley
Dave Wellman [EMAIL PROTECTED] writes: Quick question, what is the preferred development environment that you are all using, Linux - Emacs, VIM, Windows - JBuilder, VisualAge? Xemacs (using JDEE ECB) on both Linux and Windows. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

Re: Why don't tiles cascade?

2002-02-20 Thread Jim Crossley
in a config file is a beautiful thing. It's such a beautiful thing that I want to do it even for files beneath the top tier of defined tiles. -- Jim Cedric Jim Crossley wrote: Apparently it's not possible to access attributes of any tiles other than your immediate parent. IMHO

Re: ActionForm and default values

2002-02-20 Thread Jim Crossley
It's pretty simple, I think. 1) The formbean is passed to the action's perform method by the Struts controller. 2) The action populates the formbean (ReportDataForm) from the value object (ReportData). 3) The action returns the appropriate ActionForm to render the view. 4) The view

Re: ActionForm and default values

2002-02-20 Thread Jim Crossley
at this point? As long as you have the name attribute set correctly for the appropriate action element of struts-config, the formbean will always exist! The controller servlet creates it for you. -- Jim -Original Message- From: Jim Crossley [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002

Re: ActionForm and default values

2002-02-20 Thread Jim Crossley
Ian Beaumont [EMAIL PROTECTED] writes: This means that in the action for the select item I need to get hold of the form bean for the next page I'm going to so I can populate it. You'll need to pass the ID of the selected item to the action. So your selection view will have something like

Re: How Do I trigger an actionForm reset from an Action

2002-02-20 Thread Jim Crossley
[EMAIL PROTECTED] writes: Could someone give a code snippet that I can use to invoke the reset method on an actionForm from my Action code? public class YourAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form,

Re: Struts support for body background image??

2002-02-19 Thread Jim Crossley
The only problem with that is that you have to account for your context path somewhere, and you probably shouldn't do that in your resources properties file. You'd have to do something like this: body background=%=request.getContextPath()%bean:message key='mybackground'/ Kinda gross, huh?

Why don't tiles cascade?

2002-02-19 Thread Jim Crossley
Apparently it's not possible to access attributes of any tiles other than your immediate parent. IMHO, this restricts my ability to partition my presentation code into simple, reusable chunks. Here's a semi-practical example. Consider this snippet from a definitions file... definition

Re: Why don't tiles cascade?

2002-02-19 Thread Jim Crossley
. layout.jsp needs to store it so it can be accessed by header (e.g., session.setAttribute()). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Crossley Sent: Tuesday, February 19, 2002 12:39 PM To: Struts Users Mailing List Cc: James CE Johnson Subject

Dynamic resources

2002-02-08 Thread Jim Crossley
Is it possible to dynamically set the resource.properties file? I'm thinking that would be a clever way to customize a user's look and feel. We have a portal application that, for example, displays different images depending on who's logged in. It would be nice if the JSP pages could always

Re: Dynamic tiles (attn: Cedric)

2002-02-07 Thread Jim Crossley
One more question... ComponentDefinition definition = DefinitionsUtil.getDefinition(mapping.findForward(success).getPath(), request, getServlet().getServletContext()); definition.putAttribute( title, Overloaded

Derived tiles inherit controllerClass?

2002-02-07 Thread Jim Crossley
In the tiles definition file, when one definition extends another, the parent's controllerClass does not seem to be inherited by the child. Is that by design or a bug? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Derived tiles inherit controllerClass?

2002-02-07 Thread Jim Crossley
I see. I had a look at the source and another question occurred to me. When a child overrides the controllerClass of the parent, would we expect only the child's to execute, or would all inherited controllers chain together? Cedric Dumoulin [EMAIL PROTECTED] writes: It's a bug. Jim

Re: HTML tags - WHY?

2002-02-07 Thread Jim Crossley
That is certainly the biggie. Coupla others: - Transparently inserts context path prefix. - Automatically encodes html-specific characters Krueger, Jeff [EMAIL PROTECTED] writes: One thing is it will populate the tag with the value from your formBean. Jeff -Original

Re: HTML tags - WHY?

2002-02-07 Thread Jim Crossley
Care to give an example of a particularly pointless tag? [EMAIL PROTECTED] writes: Maybe I should rephrase the question. I understand what the tags are for when related to form items and even hyperlinks (allowing forwards), but what is the point of duplicating the others? -- To

Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
I've just started using Tiles, and I really like it. I want to be able to overload my attributes in my struts actions prior to forwarding to the tiles definitions, but I'm having some trouble. I found this message in the archives:

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
, if not, there is a problem with install Cedric Jim Crossley wrote: I've just started using Tiles, and I really like it. I want to be able to overload my attributes in my struts actions prior to forwarding to the tiles definitions, but I'm having some trouble. I found

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
Cedric Dumoulin [EMAIL PROTECTED] writes: tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is ready to run. So you can try the mentioned url test directly on it, and it should run. If not, let me know. This runs: http://localhost:8080/tiles-doc/test/testStrutsAction.jsp

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
to speed quickly and the docs are a bit overwhelming (I'm not complaining, mind you :-). -- Jim Jim Crossley [EMAIL PROTECTED] writes: Cedric Dumoulin [EMAIL PROTECTED] writes: tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is ready to run. So you can try the mentioned url

Re: Dynamic tiles (attn: Cedric)

2002-02-06 Thread Jim Crossley
/TestActionTileAction.java Hope this help, Cedric Jim Crossley wrote: Cedric Dumoulin [EMAIL PROTECTED] writes: tiles-doc.jar is shipped with Struts1.1 previous than 15 jan, and is ready to run. So you can try the mentioned url test directly on it, and it should run. If not, let me

Re: html:form always wants form bean

2001-04-22 Thread Jim Crossley
Nested properties already provide for "objects as members of the form". See http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-summary.html#doc.Properties Chris Butler wrote: Has there been any interest in allowing ActionForms to have objects as members of the form?

Re: html:form always wants form bean

2001-04-22 Thread Jim Crossley
So what would the value of your 'property' attribute be??? html:form action="lot.do" name="id" type="java.lang.String" html:text property="??"/ /html:form Ted Husted wrote: I'm curious... For that to work, what property of java.lang.String should the html:text tag reference? I'm

Why do I get this stacktrace?

2001-04-20 Thread Jim Crossley
Whenever I recompile one of the classes beneath WEB-INF/classes, instead of reloading because it noticed a change, Tomcat 3.2.1 generates the following stacktrace. Can anyone tell me why? java.lang.ClassCastException: org.apache.struts.util.PropertyMessageResources at

Re: Another bean:iterate question

2001-04-18 Thread Jim Crossley
I've received that error before when I forgot to include the taglib directive for the logic library. That would prevent the "field" bean from being created and result in the error you're seeing. "Brett G. Palmer" wrote: I've been working on this bean:iterate ... problem for some time now.

Re: Update on caching lists.

2001-04-18 Thread Jim Crossley
Then don't call removeAttribute. Just call setAttribute to replace the value of your key. Your app server's session implementation will (or should) manage synchronization. Of course, one or two of your clients might get a slightly stale list, but you can't help that. At least, they'll never

Actions forwarding to Actions

2001-04-18 Thread Jim Crossley
I think I found a bug or, as Larry Wall might say, it would be difficult to interpret it as a feature. :-) I have an Action that occasionally needs to forward its request to another Action. So the forward element in its corresponding action element has a path with a suffix of "do" instead of

Re: Actions forwarding to Actions

2001-04-18 Thread Jim Crossley
from there, too. Jim Crossley wrote: I think I found a bug or, as Larry Wall might say, it would be difficult to interpret it as a feature. :-) I have an Action that occasionally needs to forward its request to another Action. So the forward element in its corresponding action element has

Re: Bean-applet support?

2001-04-14 Thread Jim Crossley
"Craig R. McClanahan" wrote: You might ask your staff to look inside the "commercial" pacakges they are using - they would probably be fascinated to find that the web server inside IBM's WebSphere is actually Apache (for example). Not to get too off-topic, but IBM didn't stop with Apache.

Re: logic:iterate questions

2001-04-14 Thread Jim Crossley
See below. "Craig R. McClanahan" wrote: 2) I have a bean that has a collection of Phone objects, accessible via its getPhones() method. Shouldn't I be able to return EITHER a Phone[] or a java.util.Collection? The following element works fine when a Collection is returned, but I get

Re: html:option

2001-04-11 Thread Jim Crossley
If you change staffIds to a Collection, i.e. staffIds.entrySet(), I *think* this will work: % Set set = staffIds.entrySet(); % html:select property="staffId" html:options collection="set" property="key" labelProperty="value"/ /html:select Anthony Martin wrote: I can't figure out the struts

logic:iterate questions

2001-04-09 Thread Jim Crossley
Two questions, please. 1) Why do I have to include the 'name' attribute of logic:iterate when inside an html:form element? It seems gross to have the same string in both the JSP page and the form-bean element in struts-config.xml. 2) I have a bean that has a collection of Phone objects,

Re: Newbie question #3

2001-04-06 Thread Jim Crossley
html:text name="user" property="employee.department" size="16" maxlength="20" / Alex Colic wrote: Hi, I am porting one of my web apps to the struts infrastructure. I have a few questions that should get me on the right track. I hope someone out there can help. On one of my pages I am

Re: troubles with Tomcat

2001-04-06 Thread Jim Crossley
http://jakarta.apache.org/struts/installation-tc.html ntrgiang wrote: Hi, thanks for reading my message When I test some JSP pages, I use Tomcat as my JSP container (without Apache)and everything is OK. But in the real world if I want to deploy my application on the web, how can I use

How cool is what?

2001-04-05 Thread Jim Crossley
While "walking through the example application", I came across this quote: "When we've introduced these type of mappings before, and mentioned that the struts-config.xml was parsed when the ActionServlet was initialized. But we should make it clear that when the Struts digester parsed this

Re: How cool is what?

2001-04-05 Thread Jim Crossley
I don't disagree that DECLARATIVE logic is pretty cool. I'm simply interested in a practical example so I can see how to do it using the Struts framework. Where do you put the declarations? In struts-config.xml? Is there a required or recommended format? How do you access the properties of

Re: html:submit tag question

2001-04-05 Thread Jim Crossley
I *think* this is the struts equivalent: html:submit property="%=Constants.SEARCH%" bean:message key="searchResource.search"/ /html:submit You may be able to get by without the property attribute, though. "Nanduri, Amarnath" wrote: Hi all, Is it possible to convert the below HTML

Re: Communicating with EJB's from Action

2001-03-29 Thread Jim Crossley
How about a slight variation on #1? interface BusinessBeanThingie {} class YourActionForm implements BusinessBeanThingie {} class YourSessionBean { YourSessionBean(BusinessBeanThingie bbt) {} } Because YourActionForm implements BusinessBeanThingie, you can pass it to your session bean in your