Interesting idea... I think if I wind up doing it I'd be more inclined
to offer it to Craig as an example for Shale first though. But in any
case, I just haven't had the time yet to do anything aside from a little
early exploration, so I don't know what I'm going to do first yet. I
still
Whats about a thread local variable to store the connection instead of
as instance variable ?
On 8/24/05, Gareth Evans [EMAIL PROTECTED] wrote:
Hi Paul,
How about using a DBCP, that way the connections are always there, a getting
a connection each time
you need to do a unit of work becomes
Larry Meadors wrote:
You can (and should) use the DAO pattern with Hibernate, too.
So true, plus a good DAO interface can decouple your database access
implementation and the rest of your app, so that you can switch from
hibernate to ibatis or plain jdbc or whatever without having to make
EXACTLY! :-D
I think Paul and I mis-communicated on the point of the iBATIS DAO earlier.
It is something very different from iBATIS SQL Maps.
One of the key principles of Object-Oriented programming is
encapsulation – the separation of an implementation and its public
interface. The DAO
Hi list,
I am new to Struts.
I am using Tomcat5.0 and Struts 1.1 to learn.
Of late I feel I should use an IDE.
Could any on suggest good IDE that would help me to
start building my applications a little easily and an accepted
Enterprise level IDE.
I want an IDE that would be easy to grasp and I
I suggest netbeans (http://www.netbeans.org/), which I think is easy to use
and complete. You could also easily use Eclipse, but you'd have to be
looking for plugins all the time.
On 8/24/05, Ayusman dikshit [EMAIL PROTECTED] wrote:
Hi list,
I am new to Struts.
I am using Tomcat5.0 and
Ok, Looks like at least a few other people have found Struts guilty here. I
have found a existing bug report 23372
http://issues.apache.org/bugzilla/show_bug.cgi?id=23372 that deals with this.
Basically Validator can handle indexed properties, but the indexed error
messages that it creates cannot
I'd suggest eclipse,
With a number of plugins,
sysdeo - for tomcat control
myeclipseide - for the jsp editing, struts management ... (as well as a whole
host of extra features)
http://www.eclipse.org/
Gareth
Ayusman dikshit wrote:
Hi list,
I am new to Struts.
I am using Tomcat5.0 and
Hi there.
I have a form that uses org.apache.struts.validator.LazyValidatorForm.
When I pre-populate this form before displaying it, I use code like
the following in the action:
final DynaBean dynaForm = (DynaBean)form;
dynaForm.set(displayName, test);
In my JSP, I have a html:text element
I'm in the process of building the Shale trunk and have one dependency
left to resolve. The build.properties calls for a build of the Tiles
standalone distribution. I have found what seems to be a Tiles distro
but cannot seem to build it without the Struts 1.3.0 core libraries
(which I cannot find
Hi again,
So now that I have a trivial login page working, I want to integrate tiles
in..:) I found this link:
http://jroller.com/page/dgeary?entry=shale_adds_tiles_integration
which seems pretty promising. But there's mention of a shale-tiles.jar but
no word about where to download it..?
Ah I think I actually found this .. Here it is:
http://cvs.apache.org/builds/jakarta-struts/nightly/sandbox/tiles-core/
Regards,
Geeta
Walton, Kaleb \(ISS Southfield\) [EMAIL PROTECTED] wrote on 08/24/2005
10:02:10 AM:
I'm in the process of building the Shale trunk and have one dependency
oops, sorry, please ignore this note.. My bad.. The jar is bundled right
into the struts-shale core library in the latest build..). Sorry for
wasting your time.
Geeta
[EMAIL PROTECTED] wrote on 08/24/2005 10:04:06 AM:
Hi again,
So now that I have a trivial login page working, I want to
Thanks! I must have been looking around in all the wrong places ;)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 10:07 AM
To: Struts Users Mailing List
Subject: Re: Tiles standalone implementation
Ah I think I actually found this
+1 for Sysdeo. It is excellent.
-Original Message-
From: Gareth Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 9:36 AM
To: Struts Users Mailing List
Subject: Re: editor for Tomcat and struts
I'd suggest eclipse,
With a number of plugins,
sysdeo - for tomcat control
IDEA from Jetbrains is the bomb.
Version 5.0.1 came out this week and just continues to amaze me.
Larry
On 8/24/05, Ayusman dikshit [EMAIL PROTECTED] wrote:
Hi list,
I am new to Struts.
I am using Tomcat5.0 and Struts 1.1 to learn.
Of late I feel I should use an IDE.
Could any on
Geeta
Did you try downloading from Cedric DuMoulins site?
http://www.lifl.fr/~dumoulin/tiles/doc/download.html
Martin-
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, August 24, 2005 10:04 AM
Subject: Shale and Tiles
What name did you use to pass this form from action to jsp?
Hubert
On 8/24/05, John Hutchinson [EMAIL PROTECTED] wrote:
Hi there.
I have a form that uses org.apache.struts.validator.LazyValidatorForm.
When I pre-populate this form before displaying it, I use code like
the following in
Hi Martin, that's just the tiles.jar, right? I needed the
shale-tiles.jar.. which I found within struts-shale-core-library/lib in
the latest cvs download.. (I'm not being ambitious just yet - so I'm not
building from source, just trying to use the jar files will do for
now..;))
Btw, in case
I have written a long time ago, the JavaUNIX API framework
http://www.xenonsoft.demon.co.uk/products/javaunix/
-Original Message-
From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED]
====
Hello,
How can I check for disk space on the server before
uploading a file on the
Martin,
Would that download even work? I followed your link and
it mentions it is from 2002. Doesn't Shale with tiles
REQUIRE the tiles standalone distribution in the 1.3 trunk
or nightly build?
I think you'll need the tiles-core from the tiles nightly
build:
You should try using the name you're using for the form when you pass
it from your action to your JSP.
final DynaBean dynaForm = (DynaBean)form;
dynaForm.set(displayName, test);
If you're using request.setAttribute(displayForm, dynaForm); then try
c:out value=${displayForm.map.displayName} /
Since we are on this tack, has anyone seen a Java program that uses
the NIO to do something like a unix tail command? There is supposed
to be one in chainsaw, but it really is just a simple polling app.
On 8/24/05, Pilgrim, Peter [EMAIL PROTECTED] wrote:
I have written a long time ago, the
I did'nt realise he wanted the nightly build
I was 'error'ing on the side of the released (builds without errors and has
passed unit, integration and regression test) package
Caveat emptor
Martin
- Original Message -
From: David G. Friedman [EMAIL PROTECTED]
To: Struts Users Mailing
FYI / HTHSB
Looks like it is the dreaded application server ClassLoader issue
again and this episode perfectly illustrates the best practice for logging
in Enterprise business software and for framework writers.
http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html
It is appears
Hello,
I have a Struts application that also uses Tiles for
header/sidebar/footer. In my header there is a common button for
switching languages. When this button is pressed I would like the
locale to be switched and the current page to be refreshed. The current
page may have been reached
[EMAIL PROTECTED] wrote the following on 8/24/2005 10:45 AM:
Btw, if anyone has successfully got tiles to work with shale, could you
please share your code? If I manage to do this I shall write this up so it
may help soembody else.. I don't think Tiles integration ought to be
difficult,
I was under the impression that the form bean itself is a 'gimmie' and
does not explicitly need to be set in the request scope (or any other
scope for that matter).
For example, the
html:text property=displayName size=25 /
tag works without needing the 'name' property, so somehow the
html:text
[EMAIL PROTECTED] wrote:
I don't think Tiles integration ought to be
difficult, right..?.. [..falls over laughing..]
Probably not :-) I think the main problem is that shale and standalone
tiles are both still evolving. I downloaded a build of shale about a
month ago and it's so out of date
Rick Reumann [EMAIL PROTECTED] wrote on 08/24/2005 11:30:55 AM:
[EMAIL PROTECTED] wrote the following on 8/24/2005 10:45 AM:
Btw, if anyone has successfully got tiles to work with shale, could
you
please share your code? If I manage to do this I shall write this up
so it
may help
Greg Reddin [EMAIL PROTECTED] wrote on 08/24/2005 11:36:39 AM:
Probably not :-) I think the main problem is that shale and standalone
tiles are both still evolving. I downloaded a build of shale about a
month ago and it's so out of date I'm not even trying to use it anymore.
Yeah. I
On my login page I put this code:
!-- set locale --
html:form action=/localeAction.do method=post
table width=770 border=0 cellspacing=1 cellpadding=1
tr
td align=right width=90% bgcolor=#bb
bean:message key=app.language/
nbsp;nbsp;
[EMAIL PROTECTED] wrote:
I wondered about that actually. I mean I know shale is still evolving
and
what not and seems like the shale-tiles.jar was created only like last
month or something, but in any case, if using it needed the tiles
standalone jar, why wasn't it (the tiles jar) bundled in
I do the same trick except that I put my locale selector in the page
header for all pages. To make this work, I write the current URL to a
hidden form field when rendering the locale selection form. The action
then knows which page to return to using this parameter. By having the
form
Greg Reddin [EMAIL PROTECTED] wrote on 08/24/2005 12:01:06 PM:
The internals of Tiles have been dramatically changed in the last week
and just yesterday David was working on changes to the Shale
integration. I'm not sure if those changes are complete and checked in
yet. So if you can
Hi everybody,
Im redesigning a webapp and I got a weird problem with a FormFile object.
Actually I got a FormFile into an ActionForm class, to make a better design
I want to store this FormFile into a File class and access it modifiying
the getters/setters content, the problem is when I want
On 8/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi again,
So now that I have a trivial login page working, I want to integrate tiles
in..:) I found this link:
http://jroller.com/page/dgeary?entry=shale_adds_tiles_integration
which seems pretty promising. But there's mention of a
Craig McClanahan [EMAIL PROTECTED] wrote on 08/24/2005 12:55:18 PM:
Besides being bundled inside the example webapp, nightly builds of
standalone tiles are available too:
http://cvs.apache.org/builds/struts/nightly/sandbox/tiles-core/
Yes, thank you Craig, I did manage to find that.
From: [EMAIL PROTECTED]
test.jsp has this:
%@ taglib uri=http://jakarta.apache.org/tiles; prefix=tiles %
Geeta, that caught my eye because it's not the right uri for Standalone
Tiles. It looks like there might be a problem with the build files-- the
wrong tld is getting included in
Wendy Smoak [EMAIL PROTECTED] wrote on 08/24/2005 01:35:38 PM:
From: [EMAIL PROTECTED]
test.jsp has this:
%@ taglib uri=http://jakarta.apache.org/tiles; prefix=tiles %
Geeta, that caught my eye because it's not the right uri for Standalone
Tiles. It looks like there might be a
A comment:
It seems like Maven's dependency management would be pretty useful for this
project. Every time I see where is the xxx.jar, I think Maven. Thoughts?
Jeremy J. Barth
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005
I am working on a new JSF project and I was wondering if I should include Shale
(specially
the view controller looks interesting).
But how stable is Shale at the moment? Can I include it and expect it to work?
And also
ready for a production environment in a month or two? Or should I wait x
[EMAIL PROTECTED] wrote:
now after a bit of fumbling, I get the following error:
javax.servlet.ServletException: Can't get definitions factory from
context.
Do you have TilesServlet configured in your web.xml? If it's not
configured the Tiles Definitions won't be loaded at startup.
Greg
On 8/24/05, Bjørn T Johansen [EMAIL PROTECTED] wrote:
I am working on a new JSF project and I was wondering if I should include
Shale (specially
the view controller looks interesting).
But how stable is Shale at the moment? Can I include it and expect it to
work? And also
ready for a
Greg Reddin [EMAIL PROTECTED] wrote on 08/24/2005 01:50:23 PM:
[EMAIL PROTECTED] wrote:
now after a bit of fumbling, I get the following error:
javax.servlet.ServletException: Can't get definitions factory from
context.
Do you have TilesServlet configured in your web.xml? If it's
Figured it out.
dynabean.map.prop
should be
dynabean.map.prop
Where dynabean is the name of your form from struts-config.
You can't actually use 'dynabean'.
On 8/24/05, John Hutchinson [EMAIL PROTECTED] wrote:
I was under the impression that the form bean itself is a 'gimmie' and
does
[EMAIL PROTECTED] wrote:
root cause
java.lang.NoSuchMethodError:
org.apache.tiles.DefinitionsFactory.getDefinition(Ljava/lang/String;Ljav
ax/servlet/ServletRequest;Ljavax/servlet/ServletContext;)Lorg/apache/til
es/ComponentDefinition;
Ok, now you're into the place where Tiles changes have
From: [EMAIL PROTECTED]
It seems like Maven's dependency management would be pretty useful for
this project.
Every time I see where is the xxx.jar, I think Maven. Thoughts?
For Geeta's project? That's up to her. :)
Standalone Tiles has both Maven and Ant build files. If you're building
I use the NOT EMPTY to do the testing. I have
%@ taglib uri=/WEB-INF/tld/c.tld prefix=c %
at the top of my JSP file.
But, I got an Internal Server Error 500 problem (The
log is shown after my code snippet.) I am unable to
see the problem with my c:when tag.
c:set var=logRows
Wendy Smoak [EMAIL PROTECTED] wrote on 08/24/2005 02:20:50 PM:
From: [EMAIL PROTECTED]
It seems like Maven's dependency management would be pretty useful for
this project.
Every time I see where is the xxx.jar, I think Maven. Thoughts?
For Geeta's project? That's up to her. :)
On 8/24/05, Caroline Jen [EMAIL PROTECTED] wrote:
I use the NOT EMPTY to do the testing. I have
snip/
javax.servlet.jsp.JspException: An error occurred
while evaluating custom action attribute test with
value ${NOT EMPTY log
Rows}: Encountered EMPTY, expected one of [},
snap/
Keywords, in
Hi guys...
I need to do something like this:
x = new SomeTag();
x.setContext(this.getContext());
x.doStarTag();
x.DoBody();
...
etc...
I´m not sure the way i should do that, has anybody ben dealing wit this before??
Thanks
Lucas
__
I may be mistaken with the version of EL you're using, but I use syntax
such as:
${!empty logRows}
Less typing and its easier on the eyes ;-)
Regards,
Kaleb
-Original Message-
From: Rahul Akolkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 2:29 PM
To: Struts Users
Found my own problem
In one of my include JSP
I have this html tag defined
html:img page= width=1 height=6/
This will trigger the Struts frmawork to execute
contextpath/index.jsp if you have this
html:img page= / in your JSP page
Wonder if this the way how struts work or this is a
bug.
---
Hi,
I am using the Struts Validator(Commons Validator) outside the Struts
framework, to do validation.
I would like to know how to validate an object when it has objects nested
within it, and I need to
validate the fields in those nested objects, too.
Precisely I intend to achieve the
On the surface at least, that seems to be how I would expect it to work...
I would think the tag renders as:
img src=/ width=1 height=6
...you might also see the context before that slash, I'm not sure... Since
you have defined a welcome page, and since this request would map to it,
it makes
Hello,
I am a newbie to struts. I'm reading 'The Complete Reference Struts'
to learn Struts and there are using ValidatorUtil. But it seems
deprecated and I would like to know what I should use instead.
Regards.
-
Pierre
Take a look at Validator.
See chapter 12 of Struts In Action:
http://www.manning.com/books/husted/chapters
Hubert
On 8/24/05, Pierre Thibault [EMAIL PROTECTED] wrote:
Hello,
I am a newbie to struts. I'm reading 'The Complete Reference Struts'
to learn Struts and there are using
I've never used Validator outside of Struts, but I do know I've
successfully referenced nested elements while validating, by using dot
notation. In your case, you can refer to fields a, b, obj.i,
obj.j, obj.obj.k.
Hubert
On 8/24/05, Ashutosh Satyam [EMAIL PROTECTED] wrote:
Hi,
I am using the
Gilbert,
SAX works on an event based model. Memory is not an issue unless *you* are
caching information as you receive events in your parser handler.
The parser starts reading the stream. Each time it encounters the beginning of
an element or an attribute, or the value of an element or
My file is something like that
ax/a
by/b
There is no root tags, and I cant modify this file. I would like to be
able to parse it without loading it entirely in memory (buffer) or
without make a copy of this file to add the root tags...
-Original Message-
From: [EMAIL PROTECTED]
Gilbert, Antoine wrote:
I want to read an xml file using a SAXReader combined with a
ParserHandler. The file have n o XML root, so I have to find how to add
it in the parsing processing. Assuming that the file can be pretty big,
how I can do it without at any time having the entire file in
I think you still forgot to attach it?
L.
Daniel Schaller wrote:
Sorry, forgot the Javascript file.
On 23/8/05 20:59, Daniel Schaller [EMAIL PROTECTED]
wrote (with possible deletions):
Hi,
Try the javascript in the attached file. Works brilliant for me:
The function you need to use
Hello,
I am a newbie to struts. I'm reading 'The Complete Reference Struts'
to learn Struts and there are using ValidatorUtil. But it seems
deprecated and I would like to know what I should use instead.
Regards.
-
Pierre
I downloaded Shale from SVN here:
http://struts.apache.org/shale/index.html#download and after creating the
proper build.properties for my system (just curious: how come there isn't
a sample build.properties included in the download..?) anyways, I got
past every error but one:
Seems like on
Hi,
whiny-bitch
PLEASE put [SHALE], [JSF], or [OFF-TOPIC GENERAL JAVA QUESTION I SHOULD
ASK ELSEWHERE] in the subjects of your posts relating to these topics!
As much as I would like to be able to spend time with Shale, JSF, and
off-topic general java questions that should be asked
On 8/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I downloaded Shale from SVN here:
http://struts.apache.org/shale/index.html#download and after creating the
proper build.properties for my system (just curious: how come there isn't
a sample build.properties included in the download..?)
Sorry, guilty as charged.. Won't happen again. Sorry again,
Geeta
Dave Newton [EMAIL PROTECTED] wrote on 08/24/2005 04:28:35 PM:
Hi,
whiny-bitch
PLEASE put [SHALE], [JSF], or [OFF-TOPIC GENERAL JAVA QUESTION I SHOULD
ASK ELSEWHERE] in the subjects of your posts relating to these topics!
Hey, how about prefixing your own message with [WHINY-BITCH]? It's so
much harder to filter for the tag in the text of the message.
:) LOL :)
Frank
On Wed, August 24, 2005 4:28 pm, Dave Newton said:
Hi,
whiny-bitch
PLEASE put [SHALE], [JSF], or [OFF-TOPIC GENERAL JAVA QUESTION I SHOULD
Sorry, I'm using web mail, and I keep sending responses directly to the sender
by accident.
Erik
-Forwarded Message-
From: [EMAIL PROTECTED]
Sent: Aug 24, 2005 4:26 PM
To: Gilbert, Antoine [EMAIL PROTECTED]
Subject: RE: [OT] Re: xmlparser simple question
Well, as I said, if you use
My dear whiny Toto, if you do not like [SHALE], [JSF], or [OFF-TOPIC
GENERAL JAVA QUESTION I SHOULD ASK ELSEWHERE] topics, maybe you should
start your own mailing list and call it, umm... may I suggest Struts
Users Mailing List? Oh gawd, the name is already taken.
Are we still in Kansas?
On
Frank W. Zammetti wrote:
Hey, how about prefixing your own message with [WHINY-BITCH]? It's so
much harder to filter for the tag in the text of the message.
I figure most people already have a filter on my email address for that ;)
Dave
Ok, found a solution to my own problem:
...
moduleConfigImpl = (ModuleConfigImpl)mapping.getModuleConfig();
if (moduleConfigImpl != null)
{
actionConfigs = moduleConfigImpl.findActionConfigs();
if (actionConfigs != null)
{
for (ActionConfig
Craig McClanahan [EMAIL PROTECTED] wrote on 08/24/2005 04:30:11 PM:
It sounds like you re-downloaded the source distro into a directory
that had an old copy. That means you won't have reflected the fact
that InvokeCommand was deleted yesterday. (If you'd been using the
SVN repository
Lucas Bern wrote:
Hi guys...
I need to do something like this:
x = new SomeTag();
x.setContext(this.getContext());
x.doStarTag();
x.DoBody();
...
etc...
I´m not sure the way i should do that, has anybody ben dealing wit this before??
Why would you want to instantiate / invoke a tag
On 8/24/05, Dave Newton [EMAIL PROTECTED] wrote:
Hi,
whiny-bitch
PLEASE put [SHALE], [JSF], or [OFF-TOPIC GENERAL JAVA QUESTION I SHOULD
ASK ELSEWHERE] in the subjects of your posts relating to these topics!
As much as I would like to be able to spend time with Shale, JSF, and
off-topic
On 8/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Craig McClanahan [EMAIL PROTECTED] wrote on 08/24/2005 04:30:11 PM:
It sounds like you re-downloaded the source distro into a directory
that had an old copy. That means you won't have reflected the fact
that InvokeCommand was deleted
Ok, Looks like at least a few other people have the same problem as me. I
have found a existing bug report 23372
http://issues.apache.org/bugzilla/show_bug.cgi?id=23372 that deals with this.
Basically Validator can handle indexed properties, but the indexed error
messages that it creates cannot
Josh Cronemeyer wrote:
Looks like at least a few other people have this same issue I do. I
have found a existing bug report 23372
http://issues.apache.org/bugzilla/show_bug.cgi?id=23372 that deals with this.
Basically Validator can handle indexed properties, but the indexed error
messages
Dave Newton wrote:
Feel free to assume we've all seen it three times now.
I meant four.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry,
Having troube getting my mail to the list. Just testing.
Pardons,
Josh Cronemeyer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Craig McClanahan wrote:
I just need to clarify one detail ... Shale is a Struts sub-project,
so such questions *are* on topic for this list.
I know--didn't mean to imply otherwise; sorry.
Dave
-
To unsubscribe, e-mail:
On Wed, Aug 24, 2005 at 05:13:28PM -0400, Dave Newton wrote:
Dave Newton wrote:
Feel free to assume we've all seen it three times now.
I meant four.
Dave
*hat in hand*
I'm having some problems with mutt or imapfilter or something. I'm getting
all the email I send to list list except
Josh Cronemeyer wrote:
I'm having some problems with mutt or imapfilter or something. I'm getting
all the email I send to list list except ones with the subject of this
thread. It is really weird.
Technology: Improving our lives one reboot at a time.
Dave
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
I just need to clarify one detail ... Shale is a
Struts sub-project, so such questions *are* on
topic for this list. Prefixing the subject with
[shale] is certainly appropriate, just like
prefixing a Tiles question with [tiles] would be.
I have two buttons for create and update and they are shown depending on
whether the userBean is new or not. The function userBean.isNew() depends
on whether the id is empty. UserBean is in request scope. Here is the JSF
code snippet.
h:inputHidden value=#{userBean.id} id=userBeanId /
Hi,
I have a class that extends HashMap. This class holds a collection of
different items plus a custom property 'total'.
This resultsMap is stuck into the request to pass it to the JSP page.
Inside the JSP page I am trying to output 'total' without having to
use a scriplet...
Does anyone know
Struts 1.2.7
(1)
The following tag can test the emptiness of the field.
html:errors property=username header=empty/
If I want to display a specific message when it is not empty
and display error message when it is empty,
what should be done in header=??? or something else
(2)
I have a message
I do have a problem I should solve: in the case where the only error in
errors is one I need to exclude, it does get excluded but I also get the
empty div which displays a big red box on my page. Fortunately, that
happens very rarely. I guess I could extend messagesPresent as well to
take
89 matches
Mail list logo