Upgrade problems from 1.2.4 to 1.2.7

2005-11-05 Thread Tim Christopher
Hi, I've read the upgrade notes on the Wiki and have followed all the instructions, including updating the validation.xml file. When run with the 1.2.4 version of Struts it runs run but now I have upgraded I always get a message saying the servlet is unavailable when trying to view a page. The e

Re: Struts Unit Tests / Alternative getUserPrincipleCall

2005-04-05 Thread Tim Christopher
rPrincipal(user); Note: TestPrincipal is a simple Java class that implements Principal and contains one method called getName(). Tim Christopher On Apr 5, 2005 11:16 AM, Tim Christopher <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know how to code a response to > reques

Struts Unit Tests / Alternative getUserPrincipleCall

2005-04-05 Thread Tim Christopher
in the request. Any help appreciated. Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts Security

2005-04-02 Thread Tim Christopher
that sounds very messy and would means that the role attribute on the action is pointless. Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Validation - Mask

2005-03-23 Thread Tim Christopher
I'm not a a development machine so can't test this now but you could try using: ^[~\$]+$ .. Also failing that you could always opt for something like ^[0-9a-zA-Z]* listing valid inputs, as opposed to a value you don't want. Tim Christopher On Wed, 23 Mar 2005 16:37:47 -0800,

Re: Iterate a character array

2005-03-23 Thread Tim Christopher
e, so I'd imagine you'd need something like: private String[] char; public getChar() { return char;} public setChar(String[] char) { this.char = char;} Tim Christopher On Mon, 21 Mar 2005 23:18:43 -0500, Victor Grazi <[EMAIL PROTECTED]> wrote: > > I am trying to iterate throu

Re: BeanUtils.copyProperties Cannot find...

2005-03-17 Thread Tim Christopher
idocs/index.html Hope that helps. Tim Christopher On Thu, 17 Mar 2005 09:34:24 -0600, Scott Purcell <[EMAIL PROTECTED]> wrote: > Hello, > I want to try and use the BeanUtils.copyProperties and I cannot seem to find > it. I have spent the last 10 minutes at Jakarta downloading diff

LookupDispatchAction (Bug?)

2005-03-15 Thread Tim Christopher
alue for the dispatch parameter). Does anyone know how I can fix this? Any help would be much appreciated. Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tiles:insert and tiles:put an attribute and the import it to request scope

2005-03-08 Thread Tim Christopher
his attribute from > somepage.jsp. How can this be achieved? > thank you! > > > --- Tim Christopher <[EMAIL PROTECTED]> wrote: > > Not sure if this is what you're asking but here's a > > quick example that > > shows how to access the information st

Re: tiles:insert and tiles:put an attribute and the import it to request scope

2005-03-08 Thread Tim Christopher
layout.jsp # - # Extract from content.jsp # Hope that helps, Tim Christopher On Mon, 7 Mar 2005 10:55:49 -0800 (PST), Jonathan M Z <[EMAIL PROTECTED]> wrote: > dear folks, > I know that I can insert an

Re: Using a CSS file

2005-03-07 Thread Tim Christopher
What's the advantage of using @import over link? Is it just for readability, or is there another reason for it?... As from what I can remember @import doesn't work with Netscape 4.x. Tim Christopher On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:

Re: Using a CSS file

2005-03-04 Thread Tim Christopher
>> Off the top of my head I don't remember style being an attribute for the html:link tag... I'd recommend you included a 'cssStyle' global forward in your Struts config file then use something like: JSP: Struts-config.xml: Tim Christopher On Fri,

Re: Remove Tiles Component

2005-03-03 Thread Tim Christopher
I think the variable (msgs) needs to be passed through by the layout page. I think this allows the other JSP inserted the same layout page to access the variable. I could easily be wrong about that but hopefully someone with more Tiles knowledge than me can prove me right / wrong Tim

Re: CSS and Tiles

2005-02-28 Thread Tim Christopher
I use the following to load my CSS files: Note: If you do not use sslext then use html:rewrite instead of sslext:rewrite. This method requires the path to the CSS file to be stored within the struts config file so it can be easily updated, i.e: . Hope that helps. Tim Christopher

Re: RequestURI (Action not JSP)

2005-02-28 Thread Tim Christopher
I don't seem to be able to extract it within the display:table tag itself, no matter how I nest different "s and 's... However as tables are only on a relatively small number of pages I'm not sure this is the best way, also it loo

Re: Queries and Paging

2005-02-28 Thread Tim Christopher
/example-paging.jsp The table in the above example is created with just 6 lines of code! I must admit I only downloaded it yesterday but IMO it's very easy to use and my best discovery since Log4j! Tim Christopher ---

Re: AW: Struts Approach

2005-02-28 Thread Tim Christopher
rt or on a different web site - Google wasn't much help :-( Tim Christopher On Sun, 27 Feb 2005 16:26:35 -0500, Mike Millson <[EMAIL PROTECTED]> wrote: > On Sat, 2005-02-26 at 11:26, Tim Christopher wrote: > > > > I'm also a little concerned that my domain object (Custome

Re: AW: Struts Approach

2005-02-26 Thread Tim Christopher
concerned that my domain object (Customer.java) is also my DTO - is this good practice? Thanks for all your help so far, Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts Approach

2005-02-25 Thread Tim Christopher
little confused! :os Any help would be appreciated. Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Question on conditionally changing action is html:form

2005-02-25 Thread Tim Christopher
Depending on what the two actions do it may be worth exploring the DispatchAction class. http://struts.apache.org/api/org/apache/struts/actions/DispatchAction.html Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [OT] [FUN] Software that works!

2005-02-24 Thread Tim Christopher
> A car salesman knows when he is lying ;-) I had to check for it on Google... Guess I'm not that old yet ;o) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help with Struts-Logic Tag

2005-02-24 Thread Tim Christopher
e telling it to look up this value. Hope that helps you a bit. Tim Christopher On Thu, 24 Feb 2005 17:51:35 +0800, Richard Reyes <[EMAIL PROTECTED]> wrote: > Hi Tim/Guys, > > the 2nd option is not working. > > can you elaborate on the first one? > > how do i declare the u

Re: [OT] [FUN] Software that works!

2005-02-23 Thread Tim Christopher
't think NaDa runs with just DOS installed though :'( Tim Christopher On Wed, 23 Feb 2005 23:19:33 -0500, James Mitchell <[EMAIL PROTECTED]> wrote: > It mean "nothing" in Spanish. So you just installed "nothing", which the > website actually says in quite

Re: AW: Hiding pages under WEB-INF

2005-02-23 Thread Tim Christopher
Oops... I slightly misread the last post, though most of what I said is still relevant. Here's the link I mentioned: http://www.junlu.com/msg/143431.html And to answer your question about site statistics: As all requests for resources will go through an action (see link) you could for example inc

Re: AW: Hiding pages under WEB-INF

2005-02-23 Thread Tim Christopher
I'd have to say not really ;o) ... Though I'm sure you could probably prevent hotlinking and whatever else if you did. Personally I don't think its worth the bother. Note: If you put resources that the user requires behind the WEB-INF folder (i.e. JS, CSS, images, etc.) you will have to write so

Re: Tiles - a reality check (contains many details) - Am I using this thing right?

2005-02-22 Thread Tim Christopher
e definition of .public.welcome in the tiles configuration file. Tim Christopher On Tue, 22 Feb 2005 13:58:12 -0800, Scott Piker <[EMAIL PROTECTED]> wrote: > > When using tiles this way, does this mean that any forward I define in > > my struts-config.xml should be a va

Re: JSP only page flow

2005-02-22 Thread Tim Christopher
If you want people to be stuck into going though: link1 > link2 > link3, etc... Then check out http://www.livinglogic.de/Struts/demoApp.html . I've not used it before as I've never had the need but it made it's way into my bookmarks by sounding interesting :o) On Tue, 22 Feb 2005 16:42:09 -

Re: [Test] Why am I not seeing this message? It doesn't bounce...

2005-02-22 Thread Tim Christopher
'. This filter includes files in your sent folder, so you should see all your postings. Tim Christopher On Tue, 22 Feb 2005 14:02:47 -0500, N G <[EMAIL PROTECTED]> wrote: > Any ideas why I can see this message in the archives, but

Re: Help with Struts-Logic Tag

2005-02-22 Thread Tim Christopher
Try using: Where user = Konstants.SESSION_USER_KEY, or maybe even: Tim Christopher On Tue, 22 Feb 2005 19:40:36 +0800, Richard Reyes <[EMAIL PROTECTED]> wrote: > Hello Guys, > > I have this tag ... > > href="routes-login.rr" /> >

Re: efficient building of menu item in jsp

2005-02-21 Thread Tim Christopher
splaying the correct ones - ie. req:isUserInRole etc. and make sure your CSS knowledge is up-to-date. Tim Christopher On Mon, 21 Feb 2005 18:26:20 -0800, jonathan zhang <[EMAIL PROTECTED]> wrote: > Hi folks, > I wish to construst a menu in jsp, and the menu has the following > char

Re: problem with Application

2005-02-21 Thread Tim Christopher
ot;errors.required" means that it should replace {0} with the value of the key for arg0. In this case the value for this key is "Password". Thus the final error message you will see is "Password is required". Hope that solves your problem. Tim Christopher On Mon, 21

Re: Please show me an example of Struts client side javascript validation for Array

2005-02-21 Thread Tim Christopher
+0800, Anthony Hong <[EMAIL PROTECTED]> wrote: > Exactly. I have two fields with the same name in the same form. > Do you know how to define the validation rules? > > > On Mon, 21 Feb 2005 15:04:59 +, Tim Christopher > <[EMAIL PROTECTED]> wrote: > > You

Re: Struts and iBATIS

2005-02-21 Thread Tim Christopher
s from a database.properties file. I'm all ok with that, but I don't see where a name for this datasource is defined. Going back to the pet store example it refers to the datasource in the web.xml file as jdbc/jpetstore1 but I can't find any element with that name in the configu

Re: a *simple* tiles tutorial

2005-02-21 Thread Tim Christopher
ideas it mentions are available to download at the bottom of the page. Tim Christopher On Mon, 21 Feb 2005 15:32:15 -0500, David Johnson <[EMAIL PROTECTED]> wrote: > All > > I'm searching for (as the title suggests) a simple Tiles tutorial. > > I have found the one by

Re: Please show me an example of Struts client side javascript validation for Array

2005-02-21 Thread Tim Christopher
You have two fields with the same name in the same form? Sorry if I've misunderstood. On Mon, 21 Feb 2005 15:35:25 +0800, Anthony Hong <[EMAIL PROTECTED]> wrote: > I have two fields with same name > > > > Could I use validation.xml to config validation for customerName field? > How to write i

Re: Struts and iBATIS

2005-02-21 Thread Tim Christopher
In the old one the datasource refers to in the server.xml file. Can anyone suggest how can make the second one equilivent, or make it so I can remove the information from the server.xml file to somewhere within my project. ## Old ## ## New ## Tim Christopher On Sun,

Struts and iBATIS

2005-02-20 Thread Tim Christopher
XML config file (ie. it's looking, but can't find the statement), or if it looking in an empty object - though I'm guessing (hoping) that fixing the first null pointer error should make it all work fine. Any help / sugge

Re: [NEED] tutorials about Security in Struts

2005-02-16 Thread Tim Christopher
he following links hopefully some of them may prove to be useful to you: http://www.manning-source.com/books/franciscus/franciscus_chp7.pdf http://www.atmo.arizona.edu:8080/doc/JDBCRealm-howto.html http://cymulacrum.net/writings/secfil/t1.html Tim Christopher On Wed, 16 Feb 2005 16:00:59 +0700, Pha

Re: FW: error in java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei

2005-02-16 Thread Tim Christopher
> java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei Not sure if this is anything you don't already know but your application is having problems finding the class file that should be located at: org.apache.struts.taglib.html.MessagesTei FYI: That file can be found in the

Re: Struts Menu and SSLEXT

2005-02-13 Thread Tim Christopher
s work. Also when I include an Item nested within a Menu it causes an error whilst the server is loading. Any ideas anyone? On Sun, 13 Feb 2005 13:51:13 +0000, Tim Christopher <[EMAIL PROTECTED]> wrote: > Hi, > > Can someone tell me if Struts-Menu is compatible with SSLEXT? >

Struts Menu and SSLEXT

2005-02-13 Thread Tim Christopher
rrect action? Cheers, Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts Security

2005-02-11 Thread Tim Christopher
me part of my application incorrectly, then I'd really appreciate some of your input. Thank you in advance (once again), Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Application Security

2005-02-08 Thread Tim Christopher
All works fine now - cheers :o) On Tue, 08 Feb 2005 21:55:03 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > JDBC driver jar files belong in $TOMCAT_HOME/common/lib (I think that's > what you are asking). > > Erik > > > Tim Christopher wrote: > > >Turn

Re: Application Security

2005-02-08 Thread Tim Christopher
avid G. Friedman <[EMAIL PROTECTED]> wrote: > Tim, > > Have you tried using any command line tools to get to your datastore? > Knowing that could rule out permissions issues on the database site as well > as the connection host/port/URL. > > Regards, > David > > -

Re: Application Security

2005-02-08 Thread Tim Christopher
5 12:07:16 -0500, David G. Friedman <[EMAIL PROTECTED]> wrote: > Tim, > > Have you also updated your web.xml and Tomcat conifgurations? > > -Original Message- > From: Tim Christopher [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 08, 2005 12:05 PM > T

Re: Application Security

2005-02-08 Thread Tim Christopher
ame from from the request > and then look up the user details wherever they are stored... > request.getUserPrincipal().getName() > > The actual form elements required are, as you say, plain html - but is there > any need for special tags since the action your posting to is fixe

Application Security

2005-02-07 Thread Tim Christopher
ast majority of Struts applications. Cheers for any help / suggestions. Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: sslext

2005-02-07 Thread Tim Christopher
ags/struts-html" prefix="html"%> as done in most Struts books? Cheers, Tim Christopher On Mon, 7 Feb 2005 15:57:10 -, Niall Pemberton <[EMAIL PROTECTED]> wrote: > There are notes on upgrading from Version 1.1 to Version 1.2.4 here: > > http://wiki.apac

Re: sslext

2005-02-07 Thread Tim Christopher
r version of struts or download the > appropriate version of sslext for the version of struts you're using. > > Niall > > - Original Message - > From: "Tim Christopher" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Monday,

sslext

2005-02-06 Thread Tim Christopher
this file instead (assuming of course that's even the one it wants). Any help / suggestions appreciated. Tim Christopher struts-config.xml - To unsubscri

Re: ActionError / ActionMessage

2005-02-04 Thread Tim Christopher
o swiftly, given the interest > in smooth migrations) towards simply removing ActionError and > ActionErrors, as they are the cause of way too much confusion. > > Joe > > At 2:10 AM +0100 2/4/05, Laurent wrote: > >Tim Christopher wrote: > >>Hi, > >> > &

Re: ActionError / ActionMessage

2005-02-03 Thread Tim Christopher
Am I right in thinking that HtmlTag relates to the element? >> http://struts.apache.org/api/org/apache/struts/taglib/html/HtmlTag.html If so does anyone know why locale is now deprecated? On Fri, 04 Feb 2005 02:10:31 +0100, Laurent <[EMAIL PROTECTED]> wrote: > Tim Christophe

ActionError / ActionMessage

2005-02-03 Thread Tim Christopher
Hi, Can anyone let me know when an ActionError should be used in place of an ActionMessage, or visa versa. It seems like the ActionMessage is preferred as it does not encourage markup to be placed within the resources file. Does this mean I should always use the ActionMessage, or does the Action

Re: Error Pages

2005-02-02 Thread Tim Christopher
Cheers for the suggestion, but that wasn't it :o( I've noticed though that if the location of the error page is a *.do file that exists, then it always shows the above error (and fails to load the page)... If the requested page is a *.jsp then it doesn't show the error page, however the page stil

Error Pages

2005-01-30 Thread Tim Christopher
Hi, I'm trying to setup custom error pages using Tomcat but keep on getting the following error: [EMAIL PROTECTED]: Exception Processing ErrorPage[errorCode=404, location=/errors/404.do] ClientAbortException: java.net.SocketException: Software caused connection abort: socket write error

XDoclet

2005-01-29 Thread Tim Christopher
Hi, What does everyone think of using XDoclet to build Struts / Tiles / Validator configuration files? Is it likely to make life seem like it's worth living, or is a few hours spent trying to learn it going to drive me mad? :o) Cheers for your feedback! Tim Christ

Re: Blocking direct access to JSPs

2005-01-29 Thread Tim Christopher
ument AGAINST it? > > > > My compelling argument FOR it has always been that WEB-INF is where > > application artifacts that are not complete web artifacts belong. When > > writing in Struts (pseudo-MVC er Model II or whatever you like to call > > it), JSP is NOT we

Blocking direct access to JSPs

2005-01-28 Thread Tim Christopher
t;pages/*" (removing the initial / character), though this blocks access to the entire web module. Any help / feedback appreciated. Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts Security

2005-01-27 Thread Tim Christopher
llow access to any of the roles > mentioned. > > Mohan > > -Original Message- > From: Tim Christopher [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 27, 2005 9:41 AM > To: Struts Users Mailing List > Subject: Re: Struts Security > > Just a quick questi

Re: Struts Security

2005-01-26 Thread Tim Christopher
ally builds the > > menu for them which isn't that difficult to set up. I use it in a > > tile so I only insert it 1 time. > > > > Just some ideas. > > > > > > > > Craig McClanahan wrote: > > > >> On Sun, 23 Jan 2005 18:39:50 +0

Re: Struts Security

2005-01-23 Thread Tim Christopher
>> I then have a number of menu options that should only be made >> visible to users with certain roles; > > Try Struts menu. I have looked at the Struts Menu ( http://struts-menu.sourceforge.net/ ) and I think I'll probably give it a go! Does anyone else here have any experience using the Struts

Struts Security

2005-01-23 Thread Tim Christopher
an additional role to access a resource (update in the jsp, and in the xml file) - is there a way around this? Thank you in advance, Tim Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]