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
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
in the
request.
Any help appreciated.
Tim Christopher
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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,
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
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
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]
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
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
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:
>>
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,
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
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
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
/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
---
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
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]
little confused! :os
Any help would be appreciated.
Tim Christopher
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
> 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]
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
'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
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
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
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
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 -
'. 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
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" />
>
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
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
+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
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
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
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
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,
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
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
> 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
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?
>
rrect action?
Cheers,
Tim Christopher
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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
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
>
> -
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
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
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]
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
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,
this file instead (assuming of course that's even the one
it wants).
Any help / suggestions appreciated.
Tim Christopher
struts-config.xml
-
To unsubscri
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,
> >>
> &
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
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
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
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
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
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
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]
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
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
>> 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
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]
62 matches
Mail list logo