RE: Upgrading to struts 1.3.5, nested tags are broken

2007-03-07 Thread Lance Semmens
22 To: Struts Users Mailing List Subject: Re: Upgrading to struts 1.3.5, nested tags are broken On 3/7/07, Lance Semmens <[EMAIL PROTECTED]> wrote: > We are in the process of upgrading to struts 1.3.5, I have followed the > upgrade guide at http://wiki.apache.org/struts/StrutsUpgrade

RE: Upgrading to struts 1.3.5, nested tags are broken

2007-03-07 Thread Lance Semmens
g List' Subject: RE: Upgrading to struts 1.3.5, nested tags are broken Instead of using investor.name use record.name Try this will work -Original Message- From: Lance Semmens [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 2:54 PM To: 'user@struts.apache.org'

Upgrading to struts 1.3.5, nested tags are broken

2007-03-07 Thread Lance Semmens
We are in the process of upgrading to struts 1.3.5, I have followed the upgrade guide at http://wiki.apache.org/struts/StrutsUpgradeNotes12to13. Most of the nested tags now seem to be broken. For example: The following exception is thrown: javax.servlet.jsp.JspExcep

RE: Logging to db

2006-11-21 Thread Lance Semmens
It would be easy enough to do by writing a custom javax.servlet.Filter. You would map your Filter to "*.do" in web.xml. Alternatively you could configure a JDBC appender in log4j for "org.apache.struts.action.RequestProcessor" at level "debug" although you might find a bit too much junk is bein

RE: session maintenance in struts webapp

2006-11-21 Thread Lance Semmens
You could either do it client side in javascript setTimeout("confirmSessionExpire()", timeoutPeriod); Or you could have a serverside thread and use DWR's amazing reverse ajax to push alerts to the client(s) that are about to expire. Reverse ajax is part of DWR2.0 and is not yet productio

RE: can not reach the jsp file

2006-11-17 Thread Lance Semmens
scrap that idea... I was being a stupid head. cdms is your context path which it ok. -Original Message- From: Lance Semmens [mailto:[EMAIL PROTECTED] Sent: 17 November 2006 13:01 To: 'Struts Users Mailing List' Subject: RE: can not reach the jsp file > The URL that I ask

RE: can not reach the jsp file

2006-11-17 Thread Lance Semmens
he jsp file No , I am using firefox. I can see no exception or warning in log file(tomcat's log). My platform is Tomcat 5.5 on Debian Linux, I develope and test my code in Netbeans IDE. Ken 於 五,2006-11-17 於 10:22 +,Lance Semmens 提到: > hmm... are you using IE? > You may need to turn o

RE: can not reach the jsp file

2006-11-17 Thread Lance Semmens
ss. My struts-config.xml is as following : The URL that I ask my browser to browse is : http://localhost:8080/cdms/ShowDocs.do Help ! what do I go wrong ? Ken 於 四,2006-11-16 於 15:16 +,Lance Semmens 提到: > I think you're missing a '/' > > > To kee

RE: custom tag for localization

2006-11-17 Thread Lance Semmens
Not exactly what you asked for but LocaleAction can set the locale then redirect to a page. http://struts.apache.org/1.x/struts-extras/apidocs/ -Original Message- From: Mahmoud Saeed(RSW) [mailto:[EMAIL PROTECTED] Sent: 14 November 2006 23:30 To: user@struts.apache.org Subject: custom t

RE: RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-17 Thread Lance Semmens
Any help? Shawn ------ From: Lance Semmens <[EMAIL PROTECTED]> To: 'Struts Users Mailing List' Date: Tue, 14 Nov 2006 09:51:00 + Subject: RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form The only thing I ca

RE: can not reach the jsp file

2006-11-16 Thread Lance Semmens
I think you're missing a '/' To keep your webapp a bit cleaner, perhaps consider -Original Message- From: Ken Hu [mailto:[EMAIL PROTECTED] Sent: 16 November 2006 09:03 To: user@struts.apache.org Subject: can not reach the jsp file Dear All: I'm doing a simple strus test, but all I ca

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
ean as the formbean and java.util.Map as the contained object for a given property, and the framework does populate new records into the contained map for me. -ed On 11/15/06, Lance Semmens <[EMAIL PROTECTED]> wrote: > I realize your field names have to comply with the struts

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
ed HTML to see what format the field names are as an example. HTH, -ed On 11/14/06, Lance Semmens <[EMAIL PROTECTED]> wrote: > The least messy way is to post to an addRecord action which adds a blank > record to your form. Form must be in session scope. This requires a page > red

RE: Dynamically adding row!

2006-11-15 Thread Lance Semmens
ed HTML to see what format the field names are as an example. HTH, -ed On 11/14/06, Lance Semmens <[EMAIL PROTECTED]> wrote: > The least messy way is to post to an addRecord action which adds a blank > record to your form. Form must be in session scope. This requires a page > red

RE: Validation + multiple Submit buttons

2006-11-14 Thread Lance Semmens
A JS free application? You can assume today's browsers have javascript, the web would break otherwise. Sure there are some cross platform issues but to go JS free is a tall order and will limit you to a clunky UI. If JS free is your direction, you could wrap your back button in a that posts to

RE: setInput method of ActionMapping

2006-11-14 Thread Lance Semmens
A possible solution might be to 1. Set validate="false" for your action. 2. Configure forwards for each of your error pages 2. Explicitly call form.validate() in your action 3. Call saveErrors() if validation fails 4. Redirect to the appropriate forward Lance. -Original Message- From: N

RE: how to add edit/add/delete functionality

2006-11-14 Thread Lance Semmens
I found this by googling struts crud http://www.learntechnology.net/struts-crud.do -Original Message- From: santas [mailto:[EMAIL PROTECTED] Sent: 14 November 2006 12:03 To: user@struts.apache.org Subject: how to add edit/add/delete functionality Hi all i am new to struts can anybody g

RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-14 Thread Lance Semmens
ike I want however I then loose the ability to only get the checked value put into my action form after the page is submitted. ---- From: Lance Semmens <[EMAIL PROTECTED]> To: 'Struts Users Mailing Lis

RE: Dynamically adding row!

2006-11-14 Thread Lance Semmens
The least messy way is to post to an addRecord action which adds a blank record to your form. Form must be in session scope. This requires a page redraw so is less responsive but this is the approach I often use. If you add a row to your table using javascript, struts will not automatically pop

RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form

2006-11-13 Thread Lance Semmens
A couple of things to check 1. Is your get action using the same form as your post action? 2. Do the names of the checkboxes in the html match your form? 3. Where are you resetting the checkboxes? I'm hoping you're doing it by overriding ActionForm.reset(). -Original Message- From: Garner

RE: without writing a in the resultant HTML

2006-11-10 Thread Lance Semmens
resultant HTML On 11/10/06, Lance Semmens <[EMAIL PROTECTED]> wrote: > 1. Can I use struts tags (eg ) without wrapping them in an > (I'm pretty sure the answer is no). > > 2. Can I wrap my tags in but somehow not output to the > resultant HTML. > > I was hoping

without writing a in the resultant HTML

2006-11-10 Thread Lance Semmens
Hi, I'm wanting to use the struts tags to render my inputs. The only problem is that my JSP page only draws a small section of the form (perhaps a single ) and is called via AJAX. So, I have 2 questions: 1. Can I use struts tags (eg ) without wrapping them in an (I'm pretty sure the answer is

RE: How to make dropdown box editable.

2006-11-06 Thread Lance Semmens
Dojo has a control that sounds like what you're after. http://dojotoolkit.org/ go to: see it in action --> form widgets --> form tour and look at the "state" field. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 26 October 2006 14:30 To: user@struts.apache.or

RE: [OT] Identify file type

2006-11-03 Thread Lance Semmens
On your upload form, your property that maps to your file upload input should be of type org.apache.struts.upload.FormFile. Then save the FormFile .getFileData() and FormFile.getContentType() to the database. -Original Message- From: Vijay Venkataraman [mailto:[EMAIL PROTECTED] Sent: 03

RE: [OT] Identify file type

2006-11-03 Thread Lance Semmens
On your upload form, your property that maps to your file upload input should be of type org.apache.struts.upload.FormFile. Then save the FormFile .getFileData() and FormFile.getContentType() to the database. -Original Message- From: Vijay Venkataraman [mailto:[EMAIL PROTECTED] Sent: 03

Re: How to call a method from struts tag

2006-06-23 Thread Lance Semmens
can do that without using java scriptlets in my JSP. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lance Semmens Marketpipe Limited a. 7 Soho Square, London

Re: Accessing LazyValidatorForm properties with EL

2006-06-23 Thread Lance Semmens
Here's a better solution: Extend LazyValidatorForm to implement java.util.Map (perhaps BeanValidatorForm, which LazyValidatorForm extends from, should do this?) Then you could access ${myForm.myProperty} in the JSTL. Lance Semmens wrote: Use LazyDynaForm.getMap() eg ${myForm.map.myPro

Re: Accessing LazyValidatorForm properties with EL

2006-06-23 Thread Lance Semmens
l commands, e-mail: [EMAIL PROTECTED] -- Lance Semmens Marketpipe Limited a. 7 Soho Square, London W1D 3QB, UK t. +44 20 7297 8401 f. +44 20 7297 8427 e. [EMAIL PROTECTED] w. www.marketpipe.com - To unsubscribe, e-mail: [EM

Re: Request parameters in action forward

2006-06-21 Thread Lance Semmens
--- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lance Semmens Marketpipe Limited a. 7 Soho Square, London W1D 3QB, UK t. +44 20 7297 8401 f. +44 20 7297 8427 e. [EMAIL PROTECTED] w. www.marketpipe.com

Re: Validator rules not loaded

2006-05-02 Thread Lance Semmens
Thanks, I had thought of this workaround too. I just wanted to highlight the potential security issue when the validator rules fail to load. Vinit Sharma wrote: Hi, You can store the dtd file on you local dir and refer its path from the rules xml file. HTH On 5/2/06, Lance Semmens <[EM

Validator rules not loaded

2006-05-02 Thread Lance Semmens
this, my app works fine except there are now no rules being applied to my forms which poses a *slight* security issue. ** -- Lance Semmens Marketpipe Limited a. 7 Soho Square, London W1D 3QB, UK t. +44 20 7297 8401 f. +44 20 7297 8427 e. [EMAIL PROTECTED] w. www.marketpipe.com

Collection display / save

2005-08-15 Thread Lance Semmens
I'm wanting to display a page with rows (1 for each bean in a collection) with input fields that are saved on submit. I'm pretty new to struts but have a rough idea of what should happen: Display Action 1. Create the ActionForm 2. Populate form collection (database) 3. Save form on session

Modularizing struts-config.xml

2005-08-12 Thread Lance Semmens
Is there any way to break up struts-config.xml into multiple xml files? I'd like to be able to logically group my form and action mappings in separate files. Lance Semmens Software Engineer Swebtec 12 Hurlingham Business Park Sulivan Road London SW6 3DU Tel: 020

Actions forwarding to actions

2005-07-26 Thread Lance Semmens
I'm a newbie to struts and I'm maintaining what I consider to be spaghetti code. There actions which forward to other actions and I'm getting lost a bit lost at times. As a rule, should an action be all encompassing and therefore not need to forward to another action? -

Invalid dates / numbers etc on forms

2005-07-13 Thread Lance Semmens
Is there a standard way of handling invalid user input in date / number fields etc. I can forsee 2 possible solutions. 1. Declare date properties on your form as java.lang.Strings and validate / parse them explicitely. 2. Declare date properties as java.util.Dates, have struts parse dates, check fo