Re: OT: jstl equivalent of logic:present

2004-10-07 Thread Tim Penhey
Zoran Avtarovski wrote: I'm trying to find a way to use the isUserInRole method with the c:if tag. I tried But you can't use the isUserInRole method as an expression. I'd rather not have to cast the role into a page context string to test. Using the logic:present tag is more preferable. I only ask

Upgrading from 1.1 to 1.2.2 (or 1.2.3 when available) - is it painful?

2004-09-02 Thread Tim Penhey
I was going to wait for a bit before I switched, but I have come across a discrepancy in IE and firefox to do with the tag. I want to use the tag but the action param didn't come in 'till 1.2. The question really is: How painful is to to upgrade? What is the bare minimum I can get away wit

RE: jstl trouble

2004-06-20 Thread Tim Penhey
You should be able to use the where the id of the bean is the key that had been used to set the attribute. What were you using when your tag was trying to create a new instance? Tim > -Original Message- > From: Pavlikus [mailto:[EMAIL PROTECTED] > Sent: 20 June 2004 15:22 > To: [EMAIL

RE: Setting locale for the webapp

2004-06-17 Thread Tim Penhey
> -Original Message- > From: Pilgrim, Peter [mailto:[EMAIL PROTECTED] > Sent: 17 June 2004 09:53 > To: 'Struts Users Mailing List' > Subject: RE: Setting locale for the webapp > > > -----Original Message- > > From: Tim Penhey [mailto:[EMAIL

RE: Diff. b/w and

2004-06-17 Thread Tim Penhey
produces type tags whereas produces type tags. > -Original Message- > From: Asim Ghosh [mailto:[EMAIL PROTECTED] > Sent: 17 June 2004 08:57 > To: [EMAIL PROTECTED] > Subject: Diff. b/w and > > > hello guys, > > can any one tell me what is the diff. b/w and > > > Asim >

Setting locale for the webapp

2004-06-17 Thread Tim Penhey
I have a web application where I want to have the locale defined in the deployment descriptor somewhere. The web application acts as the GUI for a system that will be sold to clients. The clients will then have their own tomcat / DB instance running. I am using the struts I18N to allow multiple

DynaValdatorForms and java.util.Dates

2004-06-03 Thread Tim Penhey
Hi All, If I have a property that is a java.util.Date, how can I provide it with a default value of today? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Dynamic validation and dates

2004-06-03 Thread Tim Penhey
Does the DynaValidatorForm handle java.util.Date? If it does, how does it handle I18N for input? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: struts java script problem

2004-06-03 Thread Tim Penhey
Instead of having the tags just write the HTML, also include a // in here put your iterate tags whether they be JSTL or struts // then just use the standard javascript event handler to modify the pages. add onchange attributes to the form elements to call the javascript functions. Tim

RE: More problems with form beans

2004-06-02 Thread Tim Penhey
My own stupid fault. I had set the value="" for the in order to try to get around the problem I had before I changed the scope to request. Removed those and it now works ;-) Tim > -Original Message----- > From: Tim Penhey [mailto:[EMAIL PROTECTED] > Sent: 02 June 2004

More problems with form beans

2004-06-02 Thread Tim Penhey
Still working with the DynaValidatorForm. I am trying to test by directly going to the action and not passing in all the required parameters to make sure that the form validation is working (if I use my entry jsp the javascript validation catches the problems [as designed]), but being the paranoid

RE: Removing form bean from where ever it is saved

2004-06-01 Thread Tim Penhey
t; although an action mapping can change this by using the "attribute" > attribute. > > Hubert > > --- Tim Penhey <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I am trying to test some validation that I have set up for one of my > > actions.

Removing form bean from where ever it is saved

2004-06-01 Thread Tim Penhey
Hi All, I am trying to test some validation that I have set up for one of my actions. I am using the org.apache.struts.validator.DynaValidatorForm with a couple of Strings and an Integer. However in my test to check the required validation, it appears to be grabbing an existing form from some sc

RE: Tiles and changing the title based on content

2004-05-22 Thread Tim Penhey
That could work. BTW where is the advanced tiles PDF? The other possibility I suppose is to have the default layout use an include that specifies and it could be overriden in an extended tile definition to use ${item.name} but my question on that is the efficiency of having two li

RE: Tiles and changing the title based on content

2004-05-21 Thread Tim Penhey
gt; Subject: Re: Tiles and changing the title based on content > > > > > - Original Message - > From: "Tim Penhey" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Friday, May 21, 2004 4:59 PM > Subject

Tiles and changing the title based on content

2004-05-21 Thread Tim Penhey
I was wondering if there is any way to change the title based on the content of a tiles based page? I have a current JSP where the title is: ${item.name} Do people have any solutions to this? At the moment my layout has the following: Preferably a simple solution, oth

RE: Simple Validator regex needed

2004-05-20 Thread Tim Penhey
> From: Eric Dahnke [mailto:[EMAIL PROTECTED] > Sent: 20 May 2004 16:42 > > Hello list, > > The field should only accept numbers, spaces, dashes and periods. > > > mask > ^[0-9]*$ > > > I can't figure the regext syntax out, I've tried all the following: > > ^[0-9]\.\s-*$ > ^[0-9

RE: Tiles with javascript heavy pages

2004-05-20 Thread Tim Penhey
> From: Joe Germuska [mailto:[EMAIL PROTECTED] > Sent: 20 May 2004 15:51 > > At 3:13 PM +0100 5/20/04, Tim Penhey wrote: > > > From: Joe Germuska [mailto:[EMAIL PROTECTED] > >> Sent: 20 May 2004 14:47 > >> > >> You can put Javascript anywhere i

RE: Tiles with javascript heavy pages

2004-05-20 Thread Tim Penhey
> From: Joe Germuska [mailto:[EMAIL PROTECTED] > Sent: 20 May 2004 14:47 > > At 2:32 PM +0100 5/20/04, Tim Penhey wrote: > >I am thinking about using tiles to simplify some of my JSPs, but many of my > >pages are javascript heavy. All the js is either included or defined

Tiles with javascript heavy pages

2004-05-20 Thread Tim Penhey
I am thinking about using tiles to simplify some of my JSPs, but many of my pages are javascript heavy. All the js is either included or defined in the section, but I am curious to know how other people have defined their layouts. Do you end up defining a very small tile that defines the for ex