Author Login
Post Reply
user Digest 7 Apr 2008 03:50:35 -0000 Issue 7967
Topics (messages 185096 through 185123):
[OT] Re: Struts2 and <display:table> tag
185096 by: Dave Newton
185097 by: aum strut
185099 by: Alberto A. Flores
185100 by: aum strut
185101 by: Dave Newton
185102 by: aum strut
185105 by: Jeromy Evans
185108 by: Gabriel Belingueres
[S2] Date Validation
185098 by: Rodrigo Pereira
185106 by: Jeromy Evans
Re: Problem in ObjectFactory.buildResult? OGNLExceptions can halt setting of valid properties
185103 by: Guillaume Bilodeau
Re: Looking for example of JSON plugin
185104 by: Karr, David
Re: [OT] What do you code today?
185107 by: Martin Gainty
185109 by: Al Sutton
185115 by: Martin Gainty
185119 by: Jeromy Evans
185120 by: Wes Wannemacher
The requested resource (/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.
185110 by: ghan_java
Url-Parameters only set once
185111 by: Marc Ende
185113 by: Dave Newton
185116 by: Marc Ende
Multiple Result in one Page
185112 by: Frans Thamura
185121 by: Jeromy Evans
Re: [S2] Menu Tag Library struts-config.xml problem.
185114 by: sassien
Ognl expressions in Struts 2.1
185117 by: Márcio Gurgel
185118 by: Wes Wannemacher
185122 by: Márcio Gurgel
185123 by: Jeromy Evans
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_185096.ezm (zipped)--- aum strut <aum.struts@(protected):
> here is the exception which i am facing
>
>
java.lang.NoClassDefFoundError: *org/apache/commons/lang/UnhandledException
> *
So what does that exception tell you?
(I have very limited internet access today, so I can't look up the
requirements for displaytag. but do you have all the required libraries for
it?)
Dave

Attachment:
user_185097.ezm (zipped)yes i have already put the display tag jr file in my lib folder
only problem in my opinion is use of
<%@(protected)" %>
tag lib directiveas removing this directive will aslo remove the exception,
according to exceptin it is unable to find the class.
myself also trying to use the display tag first time with struts2 and i am
also not sure abot how to configure it with struts2.
On 4/5/08, Dave Newton <newton.dave@(protected):
>
> --- aum strut <aum.struts@(protected):
> > here is the exception which i am facing
> >
> >
java.lang.NoClassDefFoundError:
> *org/apache/commons/lang/UnhandledException
> > *
>
> So what does that exception tell you?
>
> (I have very limited internet access today, so I can't look up the
> requirements for displaytag. but do you have all the required libraries
> for
> it?)
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_185099.ezm (zipped)Please note:
java.lang.NoClassDefFoundError: *org/apache/commons/lang/UnhandledException
*
Indicates the classloader couldn't find a class (which one, you may ask?).
Looks like commons.lang couldn't find the UnhandledException class. Please
make sure you have all displaytag dependencies. You may want to consider
using maven2 to avoid these problems.
On Sat, Apr 5, 2008 at 1:52 PM, aum strut <aum.struts@(protected):
> yes i have already put the display tag jr file in my lib folder
> only problem in my opinion is use of
>
> <%@(protected)" %>
> tag lib directiveas removing this directive will aslo remove the
> exception,
> according to exceptin it is unable to find the class.
> myself also trying to use the display tag first time with struts2 and i am
> also not sure abot how to configure it with struts2.
>
>
> On 4/5/08, Dave Newton <newton.dave@(protected):
> >
> > --- aum strut <aum.struts@(protected):
> > > here is the exception which i am facing
> > >
> > >
java.lang.NoClassDefFoundError:
> > *org/apache/commons/lang/UnhandledException
> > > *
> >
> > So what does that exception tell you?
> >
> > (I have very limited internet access today, so I can't look up the
> > requirements for displaytag. but do you have all the required libraries
> > for
> > it?)
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
--
Alberto
http://www.linkedin.com/in/aflores

Attachment:
user_185100.ezm (zipped)i am using my eclipse for the development
everything was working ine before i tried to use the display tag
On 4/5/08, Alberto A. Flores <aaflores@(protected):
>
> Please note:
>
>
java.lang.NoClassDefFoundError:
> *org/apache/commons/lang/UnhandledException
> *
>
> Indicates the classloader couldn't find a class (which one, you may ask?).
> Looks like commons.lang couldn't find the UnhandledException class. Please
> make sure you have all displaytag dependencies. You may want to consider
> using maven2 to avoid these problems.
>
>
> On Sat, Apr 5, 2008 at 1:52 PM, aum strut <aum.struts@(protected):
>
> > yes i have already put the display tag jr file in my lib folder
> > only problem in my opinion is use of
> >
> > <%@(protected)" %>
> > tag lib directiveas removing this directive will aslo remove the
> > exception,
> > according to exceptin it is unable to find the class.
> > myself also trying to use the display tag first time with struts2 and i
> am
> > also not sure abot how to configure it with struts2.
> >
> >
> > On 4/5/08, Dave Newton <newton.dave@(protected):
> > >
> > > --- aum strut <aum.struts@(protected):
> > > > here is the exception which i am facing
> > > >
> > > >
java.lang.NoClassDefFoundError:
> > > *org/apache/commons/lang/UnhandledException
> > > > *
> > >
> > > So what does that exception tell you?
> > >
> > > (I have very limited internet access today, so I can't look up the
> > > requirements for displaytag. but do you have all the required
> libraries
> > > for
> > > it?)
> > >
> > > Dave
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > > For additional commands, e-mail: user-help@(protected)
> > >
> > >
> >
>
>
>
> --
> Alberto
> http://www.linkedin.com/in/aflores
>

Attachment:
user_185101.ezm (zipped)--- aum strut <aum.struts@(protected):
> i am using my eclipse for the development
> everything was working ine before i tried to use the display tag
...
The exception is telling you precisely what class is missing; this is a clue
as to what may be wrong.
Do you have *all* the libraries you need for using displaytag?
You can't just randomly add libraries to your application and expect it to
work: libraries have their own sets of dependencies. You almost certainly
don't have all the dependencies that displaytag requires.
Look up the dependencies for displaytag and make sure you have them all.
Here's the link:
http://displaytag.sourceforge.net/11/displaytag/dependencies.html
This is Java 101. I'd consider taking some time to learn the environment
within which you're attempting to program; it will almost certainly save time
and aggravation.
Dave

Attachment:
user_185102.ezm (zipped)thanks dave for the help iwill look in to this and will try to find out the
clue
On 4/5/08, Dave Newton <newton.dave@(protected):
>
> --- aum strut <aum.struts@(protected):
> > i am using my eclipse for the development
> > everything was working ine before i tried to use the display tag
>
> ...
>
> The exception is telling you precisely what class is missing; this is a
> clue
> as to what may be wrong.
>
> Do you have *all* the libraries you need for using displaytag?
>
> You can't just randomly add libraries to your application and expect it to
> work: libraries have their own sets of dependencies. You almost certainly
> don't have all the dependencies that displaytag requires.
>
> Look up the dependencies for displaytag and make sure you have them all.
> Here's the link:
>
> http://displaytag.sourceforge.net/11/displaytag/dependencies.html
>
> This is Java 101. I'd consider taking some time to learn the environment
> within which you're attempting to program; it will almost certainly save
> time
> and aggravation.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_185105.ezm (zipped)arum,
Read this *entire* page paying particular attention to point 2
"dependencies":
http://displaytag.sourceforge.net/11/install.html
A ClassNotFoundException always implies you're missing a jar in the
classpath.

Attachment:
user_185108.ezm (zipped)Seems you missed to add the Apache Commons Lang library jar file.
I have projects running with displaytag 1.1.1 and commons-lang 2.3.
(Don't know if the last 2.4 version work though.)
Gabriel
2008/4/5, Dave Newton <newton.dave@(protected)>:
> --- aum strut <aum.struts@(protected):
> > here is the exception which i am facing
> >
> >
java.lang.NoClassDefFoundError: *org/apache/commons/lang/UnhandledException
> > *
>
> So what does that exception tell you?
>
> (I have very limited internet access today, so I can't look up the
> requirements for displaytag. but do you have all the required libraries for
> it?)
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_185098.ezm (zipped)Hi,
how can I validate a datetime picker?
I have the following in my validation.xml file:
<field name="date">
<field-validator type="required">
<message key="errors.date.required"/>
</field-validator>
</field>
but I am getting this error message:
05/04/2008 14:53:41
org.apache.struts2.components.DateTimePicker format
SEVERE: Could not parse date
java.text.ParseException: Unparseable date: ""
If I comment this field validation, all the rest of my validation on this form work.
Does anybody have an idea what I am doing wrong?
Thanks,
Rodrigo Pereira

Attachment:
user_185106.ezm (zipped)Rodrigo Pereira wrote:
> Hi,
> how can I validate a datetime picker?
>
> ...
>
> SEVERE: Could not parse date
>
>
java.text.ParseException: Unparseable date: ""
>
>
>
I don't think that's caused by the validation.
That error occurs when the DatePicker attempts to set its current value
but the value is an invalid format. In this case it's blank.
My guess is that the params have been set on your action, validation is
invoked on the action, validation failed because the Date (or another
field) wasn't set, the input result was returned, the page was
redisplayed but the DatePicker failed to render itself because the date
value was null.
Use an s:property or s:date to see what the date value is after a
validation failure.
Hope that helps.

Attachment:
user_185103.ezm (zipped)
Hi Aaron,
I'm running into a similar problem - I'm using a ServletActionRedirectResult
instead of the JSONResult. Were you able to work around this? It seems
that it's been fixed in 2.1 (cf issue WW-2170) but it doesn't look like it
will reach GA anytime soon.
Cheers,
GB
Aaron Brown-4 wrote:
>
>
> Hi,
>
> I am attempting to configure a Result implementation using the @Result
> class annotation. As part of this configuration I am sending in a
> parameters list which contains a single property. Here is my annotation
> and simple class file:
>
> @Result(name = "success", value = "", type = JSONResult.class, params =
> {"enableSMD", "true"})
> public class DealJsonAction extends ActionSupport {
>
> @SMDMethod
> public String getName(String client) {
> return "testName";
> }
> }
>
> My problem is that the'enableSMD' property is not being set to true on
> the JSONResult.
>
> I have discovered this is happening because the ResultConfig object that
> is passed to ObjectFactory.buildResult() has a 'location' parameter in
> it. I am not sure where/why this location parameter is being stuck into
> the ResultConfig. Further, the buildResult() method calls
> OgnlUtil.setProperties and sets the 'throwPropertyExceptions' parameter
> to true. This is problematic.
>
> The JSONResult does not posses a field named 'location'. Therefore, the
> call to OgnlUtil.setProperties is throwing an exception when it attempts
> to set the location property. This exception causes the iteration over
> properties to stop (lines 71-77), and as a result the 'enableSMD'
> property is never set on the JSONResult.
>
> There is a large comment in ObjectFactory, lines 227 - 232, that
> comments on catching OGNL exceptions and logging them. The comment
> implies there is no issue catching these thrown exceptions and the code
> should be rethought in the future.
>
> In my case, however, the throwing of exceptions is subverting setting
> valid properties on the target object.
>
> I am relatively new to Struts 2, so perhaps I am simply overlooking a
> simple configuration step that might remove the 'location' parameter
> from the ResultConfig parameters map. Otherwise, it seems the handling
> of OGNL property setting needs some attention?
>
> Any help would be greatly appreciated.
>
> Thanks,
> Aaron Brown
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_185104.ezm (zipped)Never mind. I wouldn't mind seeing other examples, but I was able to
get the examples from the wiki page to work.
> -----Original Message-----
> From: Karr, David
> Sent: Saturday, April 05, 2008 8:27 AM
> To: Struts Users Mailing List
> Subject: Looking for example of JSON plugin
>
> I was interested in trying the JSON plugin. The Wiki page,
> although informative, isn't a complete example. Is there a
> good example somewhere that I can integrate into a test
> application to experiment with?

Attachment:
user_185107.ezm (zipped)Al-
Any pointers you can share on porting ?
M-
----- Original Message -----
From: "Al Sutton" <al.sutton@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Saturday, April 05, 2008 2:51 AM
Subject: Re: [OT] What do you code today?
> http://www.enterprise-password-safe.com/
>
> At the moment the code is under a major overhaul to use S2.1 (yes, 2.1)
and
> add some new features, hence my big interest in 2.1 :).
>
> Al.
>
> ----- Original Message -----
> From: "Ted Husted" <husted@(protected)>
> To: "Struts Users Mailing List" <user@(protected)>
> Sent: Friday, April 04, 2008 12:14 PM
> Subject: [OT] What do you code today?
>
>
> > While outward facing web application get the most publicity, I know
> > that most of us are heads-down on internally-facing applications
> > designed for fellow employees to use over the corporate intranet.
> >
> > I'm trying to put together a list of the typical types of applications
> > that enterprise developer write in real life. For example, my last
> > project involved a system to track drafting, granting, monitoring, and
> > enforcing water permits administered by a government agency. We would
> > create an initial record for a permit, and then add child records to
> > track progress through the workflow, and also update the master record
> > along the way. For management, a key item here is a tracking report,
> > which we exported to Word (using a third-party tool) for better
> > formatting. For engineers, a key item was a flexible search system to
> > quickly find a master or child record. Other interesting features are
> > workflows where one task leads to another. When we completed one task
> > (child record), the next is often implied, and so we had a workflow
> > that would default the next task to work on when a current task was
> > closed. Another interesting requirement was that sometimes master
> > items were merged under another uber-master-item, becoming, in effect,
> > child items themselves. In most cases, the application simply exposed
> > business models that we designed into the database, so the application
> > has little business logic of its own. Most of the workflows were
> > designed to find, list, edit, or view one database entity or the
> > other.
> >
> > So, if anyone else is up for sharing, I'd be interested in hearing
> > what sort of things other people are doing these days. (If your not
> > comfortable posting the list, feel free to mail me direct.)
> >
> > -Ted.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_185109.ezm (zipped)It's a port from a combination of S1.3, actions, and servlets, so it's been
a big jump.
There aren't that many hurdles once you're familiar with the S2 way of doing
things. S2 has made life a lot easier, the UI codebase a lot smaller, and is
generally a good move.
----- Original Message -----
From: "Martin Gainty" <mgainty@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Sunday, April 06, 2008 4:54 AM
Subject: Re: [OT] What do you code today?
> Al-
>
> Any pointers you can share on porting ?
>
> M-
> ----- Original Message -----
> From: "Al Sutton" <al.sutton@(protected)>
> To: "Struts Users Mailing List" <user@(protected)>
> Sent: Saturday, April 05, 2008 2:51 AM
> Subject: Re: [OT] What do you code today?
>
>
>> http://www.enterprise-password-safe.com/
>>
>> At the moment the code is under a major overhaul to use S2.1 (yes, 2.1)
> and
>> add some new features, hence my big interest in 2.1 :).
>>
>> Al.
>>
>> ----- Original Message -----
>> From: "Ted Husted" <husted@(protected)>
>> To: "Struts Users Mailing List" <user@(protected)>
>> Sent: Friday, April 04, 2008 12:14 PM
>> Subject: [OT] What do you code today?
>>
>>
>> > While outward facing web application get the most publicity, I know
>> > that most of us are heads-down on internally-facing applications
>> > designed for fellow employees to use over the corporate intranet.
>> >
>> > I'm trying to put together a list of the typical types of applications
>> > that enterprise developer write in real life. For example, my last
>> > project involved a system to track drafting, granting, monitoring, and
>> > enforcing water permits administered by a government agency. We would
>> > create an initial record for a permit, and then add child records to
>> > track progress through the workflow, and also update the master record
>> > along the way. For management, a key item here is a tracking report,
>> > which we exported to Word (using a third-party tool) for better
>> > formatting. For engineers, a key item was a flexible search system to
>> > quickly find a master or child record. Other interesting features are
>> > workflows where one task leads to another. When we completed one task
>> > (child record), the next is often implied, and so we had a workflow
>> > that would default the next task to work on when a current task was
>> > closed. Another interesting requirement was that sometimes master
>> > items were merged under another uber-master-item, becoming, in effect,
>> > child items themselves. In most cases, the application simply exposed
>> > business models that we designed into the database, so the application
>> > has little business logic of its own. Most of the workflows were
>> > designed to find, list, edit, or view one database entity or the
>> > other.
>> >
>> > So, if anyone else is up for sharing, I'd be interested in hearing
>> > what sort of things other people are doing these days. (If your not
>> > comfortable posting the list, feel free to mail me direct.)
>> >
>> > -Ted.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>> > For additional commands, e-mail: user-help@(protected)
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_185115.ezm (zipped)Agreed!
O/T
I'm writing a small text-processor search utility and came across this
interesting TestCase
using StringTokenizer I want to see if I can use a delimiter only when that
delimiter is embedded in the discovered string
referencing the StringTokenizer JavaDoc from MIT
http://tns-www.lcs.mit.edu/manuals/java-api-old/
java.util.StringTokenizer.html
so if I find all McCLANAHAN.. this TestCase works as McCLANAHAN characters
are alphabetic and non-whitespace
The whitespace characters do'nt work though and trip up StringTokenizer as
in this example
delimiter="'"; //as in single tickmark
find all occurences of O'Halloran
I wonder if there is a workaround so Irish names will not trip up whitespace
delimiters???
Erin Go Bragh!
Martin-
----- Original Message -----
From: "Al Sutton" <al.sutton@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Sunday, April 06, 2008 3:36 AM
Subject: Re: [OT] What do you code today?
> It's a port from a combination of S1.3, actions, and servlets, so it's
been
> a big jump.
>
> There aren't that many hurdles once you're familiar with the S2 way of
doing
> things. S2 has made life a lot easier, the UI codebase a lot smaller, and
is
> generally a good move.
>
> ----- Original Message -----
> From: "Martin Gainty" <mgainty@(protected)>
> To: "Struts Users Mailing List" <user@(protected)>
> Sent: Sunday, April 06, 2008 4:54 AM
> Subject: Re: [OT] What do you code today?
>
>
> > Al-
> >
> > Any pointers you can share on porting ?
> >
> > M-
> > ----- Original Message -----
> > From: "Al Sutton" <al.sutton@(protected)>
> > To: "Struts Users Mailing List" <user@(protected)>
> > Sent: Saturday, April 05, 2008 2:51 AM
> > Subject: Re: [OT] What do you code today?
> >
> >
> >> http://www.enterprise-password-safe.com/
> >>
> >> At the moment the code is under a major overhaul to use S2.1 (yes, 2.1)
> > and
> >> add some new features, hence my big interest in 2.1 :).
> >>
> >> Al.
> >>
> >> ----- Original Message -----
> >> From: "Ted Husted" <husted@(protected)>
> >> To: "Struts Users Mailing List" <user@(protected)>
> >> Sent: Friday, April 04, 2008 12:14 PM
> >> Subject: [OT] What do you code today?
> >>
> >>
> >> > While outward facing web application get the most publicity, I know
> >> > that most of us are heads-down on internally-facing applications
> >> > designed for fellow employees to use over the corporate intranet.
> >> >
> >> > I'm trying to put together a list of the typical types of
applications
> >> > that enterprise developer write in real life. For example, my last
> >> > project involved a system to track drafting, granting, monitoring,
and
> >> > enforcing water permits administered by a government agency. We would
> >> > create an initial record for a permit, and then add child records to
> >> > track progress through the workflow, and also update the master
record
> >> > along the way. For management, a key item here is a tracking report,
> >> > which we exported to Word (using a third-party tool) for better
> >> > formatting. For engineers, a key item was a flexible search system to
> >> > quickly find a master or child record. Other interesting features are
> >> > workflows where one task leads to another. When we completed one task
> >> > (child record), the next is often implied, and so we had a workflow
> >> > that would default the next task to work on when a current task was
> >> > closed. Another interesting requirement was that sometimes master
> >> > items were merged under another uber-master-item, becoming, in
effect,
> >> > child items themselves. In most cases, the application simply exposed
> >> > business models that we designed into the database, so the
application
> >> > has little business logic of its own. Most of the workflows were
> >> > designed to find, list, edit, or view one database entity or the
> >> > other.
> >> >
> >> > So, if anyone else is up for sharing, I'd be interested in hearing
> >> > what sort of things other people are doing these days. (If your not
> >> > comfortable posting the list, feel free to mail me direct.)
> >> >
> >> > -Ted.
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> > For additional commands, e-mail: user-help@(protected)
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_185119.ezm (zipped)
I've been working on a system for a law firm that allows them to quickly
generate legal documents. Users complete a Q&A process and a PDF pops
out at the end. The logic is more sophisticated than it sounds though.
It's now evolved into a records management system and document
management system as once generated as document have a particular
life-cycle or legal purpose. The system plugs into the Alfresco ECMS
which is an impressive little open source project.
We originally started with Struts 2.0.1. Some of the challenges have
been managing the massive increase in scope and the view and workflow
tailoring requested by every new corporate client. At my last count
this application had over 100 actions in struts.xml.
Lessons learned: I've been scared-for-life and won't ever use FOP again
(http://xmlgraphics.apache.org/fop/).
My pet project involves data mining and analysis. I've been using
Struts2.1 as a SOA framework where the actions output a response as
json, xml, an html fragment or html page depending on how it was
requested. Struts does an excellent job at that. The RIA is build upon
YUI. The biggest challenge with this project is dealing with large
datasets. Every operation hits a bottleneck, from javascript being too
slow to the servers having insufficient [insert any resource]. It's a
constant juggle between optimzing algorithms and reoganizing resources.
I have new appreciation for what Sergey Brin & Larry Page achieved in
the years before they had money or resources.
Lessons learned: Don't bite off more than you can chew
Ted Husted wrote:
> While outward facing web application get the most publicity, I know
> that most of us are heads-down on internally-facing applications
> designed for fellow employees to use over the corporate intranet.
>
> I'm trying to put together a list of the typical types of applications
> that enterprise developer write in real life. For example, my last
> project involved a system to track drafting, granting, monitoring, and
> enforcing water permits administered by a government agency. We would
> create an initial record for a permit, and then add child records to
> track progress through the workflow, and also update the master record
> along the way. For management, a key item here is a tracking report,
> which we exported to Word (using a third-party tool) for better
> formatting. For engineers, a key item was a flexible search system to
> quickly find a master or child record. Other interesting features are
> workflows where one task leads to another. When we completed one task
> (child record), the next is often implied, and so we had a workflow
> that would default the next task to work on when a current task was
> closed. Another interesting requirement was that sometimes master
> items were merged under another uber-master-item, becoming, in effect,
> child items themselves. In most cases, the application simply exposed
> business models that we designed into the database, so the application
> has little business logic of its own. Most of the workflows were
> designed to find, list, edit, or view one database entity or the
> other.
>
> So, if anyone else is up for sharing, I'd be interested in hearing
> what sort of things other people are doing these days. (If your not
> comfortable posting the list, feel free to mail me direct.)
>
> -Ted.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>

Attachment:
user_185120.ezm (zipped)I've been quiet on this one, but since I finally had a breakthrough
today, I feel like talking about it :)
I started a pet project that I've been toying around in my head for a
while. As a parent, I coach a few elementary and junior high sports. It
is a volunteer thing, and if offered pay, I would refuse it (the schools
need the money more than I do). The biggest complaint that parents have
though is that they feel like we don't provide enough information, etc.
Sometimes I want to tell the parents that complain to shove it :), but
as a parent myself, I feel the same way about teachers, so I try to do a
better job each season. Since I setup a wordpress/phpBB site a while
back (which I haven't been too diligent about updating), I thought about
doing something similar. Having dealt once with wordpress/phpBB, I have
vowed to never do it again.
In an attempt to "eat-my-own-dog-food," I decided to do this all from
scratch with s2 and friends. So, I'm creating a site that is centered
around managing a team. The goal is to make a resource for parents and
fans to discuss the teams and athletes. It will mostly be a knock-off of
other blogs and forums, but it will provide some extra functionality for
whichever sport is being managed. So, stats, pictures and videos can be
uploaded. A schedule can be viewed (and managed by coaches). Coaches can
blog about the various events (matches, tournaments, etc.). And, users
can post in a forum (polls, regular forums).
The fun part - The site is struts 2.1.?-SNAPSHOT based using Maven,
Spring, Hibernate (JPA), SiteMesh, Acegi, and Prototype/JQuery (haven't
decided yet). I'm using the codebehind plugin and other than acegi, I've
hardly written any configuration at all! It's wonderful. The
breakthrough I had was that I've created something like 40 entities so
far and just began work on s2 actions. I was crossing my fingers that my
generic dao, codebehind and spring autowire would allow me to code by
convention and that things would work properly. Imagine my surprise when
I had my first action working in less than a few hours! When I'm done, I
may yank the guts out and post an integrated blog/forum project to
sourceforge as an example of s2/spring/sitemesh/jpa with hints of AJAX,
but that's a ways out...
-Wes

Attachment:
user_185110.ezm (zipped)
hi , i tried to add new jsp in struts2-blank application, iand i have
configer it into sturts.xml
but it's
<package name="ems" extends="struts-default" namespace="/ems">
<default-interceptor-ref name="crudStack" />
<action name="list" class="action.EmsAction" method="list">
<result>/emsitem/emsList.jsp</result>
<interceptor-ref name="basicStack" />
</action>
<action name="edit" class="action.EmsAction">
<result>/emsitem/editItem.jsp</result>
<interceptor-ref name="params" />
<interceptor-ref name="basicStack" />
</action>
but when i try run these jsp on server , it not responded me ..
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_185111.ezm (zipped)Hi,
I've got a list with several items which are linked to a details-action.
If I klick on an item after the restart of the webapp a link like
http://.../details.action?id=123
is called. Everything is fine. I can see the correct details site.
When I go back and klick on another item (with another id)
the old id is called from the database and shown.
Within the action I've declared an
private String id;
with the getters and setters.
The logic (retrieval data from the database) is done in the execute
method.
Is there any caching or do I have to set id manually to null?
Or do I have to do the processing in the prepare-method?
Thanks for your help
Marc

Attachment:
user_185113.ezm (zipped)--- Marc Ende <mlists@(protected):
> I've got a list with several items which are linked to a details-action.
> If I klick on an item after the restart of the webapp a link like
> http://.../details.action?id=123
> is called. Everything is fine. I can see the correct details site.
> When I go back and klick on another item (with another id)
> the old id is called from the database and shown.
Without any further info it's hard to say what the problem might be.
Actions are instantiated per-request, unless you've mis-configured a
Spring-defined action.
Depending on how you're creating the links (and how your application is laid
out) you may be getting URL parameters you're not expecting in your link;
<s:url...> has an "includeParams" attribute you might want to look at.
I'm sure there are more possibilities, but we might need more info in order
to help.
Dave

Attachment:
user_185116.ezm (zipped)Hello Dave,
I've found a solution for that. The spring-action was standard-scoped
and in cause of that it didn't accept the
id parameter a second time.
I think it's a little bit strange that it's impossible to set an
property again when it's done before.
Marc
Dave Newton schrieb:
> --- Marc Ende <mlists@(protected):
>
>> I've got a list with several items which are linked to a details-action.
>> If I klick on an item after the restart of the webapp a link like
>> http://.../details.action?id=123
>> is called. Everything is fine. I can see the correct details site.
>> When I go back and klick on another item (with another id)
>> the old id is called from the database and shown.
>>
>
> Without any further info it's hard to say what the problem might be.
>
> Actions are instantiated per-request, unless you've mis-configured a
> Spring-defined action.
>
> Depending on how you're creating the links (and how your application is laid
> out) you may be getting URL parameters you're not expecting in your link;
> <s:url...> has an "includeParams" attribute you might want to look at.
>
> I'm sure there are more possibilities, but we might need more info in order
> to help.
>
> Dave
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_185112.ezm (zipped)hi all,
I am try to develop a web apps using Struts2, and the presentation we use
ExtJS.
in ExtJS, we have a form that represent 1 table, and several grid, around
2-3 table grids.
so, in my mind the grid = one result...
after trying several model, i see that every form or table grid need 1
result
in my case above, we need 3-4 result
for me, creating 4 results for 1 page is an annoying job and make my
struts.xml become blowup and dirty.
any idea guys?
F

Attachment:
user_185121.ezm (zipped)I'm not completely sure what you mean but two things come to mind:
- the s:action tag is useful for pages that need to be assembled using
the results from multiple actions. If each each outputs a component of
the view, you can uses Tiles or Sitemesh to assemble a page on the
server-side that invokes numerous actions. You can then reuse the
components and design actions around each data model instead of each page.
- as you're using ExtJS, you can use the same pattern as described
above, but invoke each action XHR. The page can be assembled via ExtJS
on the client-side with your actions returning data or html fragments as
appropriate.
Frans Thamura wrote:
> hi all,
>
> I am try to develop a web apps using Struts2, and the presentation we use
> ExtJS.
>
> in ExtJS, we have a form that represent 1 table, and several grid, around
> 2-3 table grids.
>
> so, in my mind the grid = one result...
>
> after trying several model, i see that every form or table grid need 1
> result
>
> in my case above, we need 3-4 result
>
> for me, creating 4 results for 1 page is an annoying job and make my
> struts.xml become blowup and dirty.
>
> any idea guys?
>
> F
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.7/1361 - Release Date: 5/04/2008 7:53 AM
>

Attachment:
user_185114.ezm (zipped)
oh, I thought it was talking about upgrading from struts 1.x to 2.x using
struts-menu...
All right then, I'll try to follow the "using struts menu outside of Struts"
docmentation...
thanks, sassien
Laurie Harper wrote:
>
> That's talking about upgrading from 1.x to 2.x of Struts Menu isn't it?
> I had a quick look at their Getting Started docs, and I think you would
> want to follow the "Using Struts Menu outside of Struts" documentation.
> The only thing I see that's Struts 1 specific is the plug-in
> configuration in struts-config.xml (a configuration file that is not
> used in Struts 2).
>
> L.
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_185117.ezm (zipped)Hi all,
I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
I was setting a value in a checkbox like this:
<s:checkBox value="${currentRow.id}"/> inside a displayTag iterator.
I read this link https://issues.apache.org/struts/browse/WW-2107 and
understood the situation.
But, is there another way to set a value in my checkBox?
<display:table requestURI="/usuario/pesquisar.action" name="listUsuPesquisa"
list="listUsuPesquisa" export="false" class="list" pagesize="15" uid="item">
<display:column title='<input type="checkbox" name="selectAll"
id="selectAll" value="" onclick="checkAll()"/>'>
<s:checkbox name="checkBox" id="checkBox" value="cdUsuario" fieldValue="${
item.id}" theme="simple" onclick="confirmAllChecked()" />
</display>
*Exception*
According to TLD or attribute directive in tag file, attribute fieldValue
does not accept any expressions
Tanks a lot!
Have a nice week!

Attachment:
user_185118.ezm (zipped)Your problem isn't OGNL in parameters, you are using EL in your
examples. By default, EL expressions are disabled, but you could easily
switch your expressions to OGNL. I'm guessing that if you use '%'
instead of '$' it will probably work. If your action has a getItem(),
and the returned object has a getId(), then %{item.id} should work, and
if the %{ and } may not even be necessary.
${ triggers EL expression parsing, but this is done by the app server,
if the TLD specifies that the attribute accepts EL (which struts tags do
not by default, unless you change the TLD which isn't advisable).
%{ forces OGNL expression. OGNL expression evaluation happens within the
tag's code, so the app server knows nothing about this step. Thus, the
TLD file's directives have nothing to do with this parsing. Many of the
Struts 2 tag's attributes will attempt to parse parameters as OGNL by
default, but %{ will force parsing.
-Wes
On Sun, 2008-04-06 at 21:19 -0300, Márcio Gurgel wrote:
> Hi all,
>
> I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
> I was setting a value in a checkbox like this:
> <s:checkBox value="${currentRow.id}"/> inside a displayTag iterator.
>
> I read this link https://issues.apache.org/struts/browse/WW-2107 and
> understood the situation.
> But, is there another way to set a value in my checkBox?
>
> <display:table requestURI="/usuario/pesquisar.action" name="listUsuPesquisa"
> list="listUsuPesquisa" export="false" class="list" pagesize="15" uid="item">
>
> <display:column title='<input type="checkbox" name="selectAll"
> id="selectAll" value="" onclick="checkAll()"/>'>
> <s:checkbox name="checkBox" id="checkBox" value="cdUsuario" fieldValue="${
> item.id}" theme="simple" onclick="confirmAllChecked()" />
> </display>
>
> *Exception*
> According to TLD or attribute directive in tag file, attribute fieldValue
> does not accept any expressions
>
> Tanks a lot!
> Have a nice week!

Attachment:
user_185122.ezm (zipped)Hi all!
Wes, tanks for your explanation, it was helpful.
I tryed to use %{ - %{item.id} inside my display:table, but it still
doesn't work.
The iterated object is a bean, the attribute "cd" has a getCd()
Folow the generated html:
<input name="checkBox" value="" id="checkBox"
onclick="confirmaAllChecked()" type="checkbox">
2008/4/6, Wes Wannemacher <wesw@(protected)>:
>
> Your problem isn't OGNL in parameters, you are using EL in your
> examples. By default, EL expressions are disabled, but you could easily
> switch your expressions to OGNL. I'm guessing that if you use '%'
> instead of '$' it will probably work. If your action has a getItem(),
> and the returned object has a getId(), then %{item.id} should work, and
> if the %{ and } may not even be necessary.
>
> ${ triggers EL expression parsing, but this is done by the app server,
> if the TLD specifies that the attribute accepts EL (which struts tags do
> not by default, unless you change the TLD which isn't advisable).
>
> %{ forces OGNL expression. OGNL expression evaluation happens within the
> tag's code, so the app server knows nothing about this step. Thus, the
> TLD file's directives have nothing to do with this parsing. Many of the
> Struts 2 tag's attributes will attempt to parse parameters as OGNL by
> default, but %{ will force parsing.
>
> -Wes
>
>
>
> On Sun, 2008-04-06 at 21:19 -0300, Márcio Gurgel wrote:
> > Hi all,
> >
> > I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
> > I was setting a value in a checkbox like this:
> > <s:checkBox value="${currentRow.id}"/> inside a displayTag iterator.
> >
> > I read this link https://issues.apache.org/struts/browse/WW-2107 and
> > understood the situation.
> > But, is there another way to set a value in my checkBox?
> >
> > <display:table requestURI="/usuario/pesquisar.action"
> name="listUsuPesquisa"
> > list="listUsuPesquisa" export="false" class="list" pagesize="15"
> uid="item">
> >
> > <display:column title='<input type="checkbox" name="selectAll"
> > id="selectAll" value="" onclick="checkAll()"/>'>
> > <s:checkbox name="checkBox" id="checkBox" value="cdUsuario"
> fieldValue="${
> > item.id}" theme="simple" onclick="confirmAllChecked()" />
> > </display>
> >
> > *Exception*
> > According to TLD or attribute directive in tag file, attribute
> fieldValue
> > does not accept any expressions
> >
> > Tanks a lot!
> > Have a nice week!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_185123.ezm (zipped)In addition to Wes' comment, as you're using display:table and have used
the uid attribute, the current row of the table is placed into the
PageContext.
You can access the page context in OGNL via #attr, so your expression
becomes this:
<s:checkbox name="checkBox" id="checkBox" value="cdUsuario" fieldValue="%{#attr.item.id}" theme="simple" onclick="confirmAllChecked()" />
Wes Wannemacher wrote:
> Your problem isn't OGNL in parameters, you are using EL in your
> examples. By default, EL expressions are disabled, but you could easily
> switch your expressions to OGNL. I'm guessing that if you use '%'
> instead of '$' it will probably work. If your action has a getItem(),
> and the returned object has a getId(), then %{item.id} should work, and
> if the %{ and } may not even be necessary.
>
> ${ triggers EL expression parsing, but this is done by the app server,
> if the TLD specifies that the attribute accepts EL (which struts tags do
> not by default, unless you change the TLD which isn't advisable).
>
> %{ forces OGNL expression. OGNL expression evaluation happens within the
> tag's code, so the app server knows nothing about this step. Thus, the
> TLD file's directives have nothing to do with this parsing. Many of the
> Struts 2 tag's attributes will attempt to parse parameters as OGNL by
> default, but %{ will force parsing.
>
> -Wes
>
>
> On Sun, 2008-04-06 at 21:19 -0300, Márcio Gurgel wrote:
>
>> Hi all,
>>
>> I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
>> I was setting a value in a checkbox like this:
>> <s:checkBox value="${currentRow.id}"/> inside a displayTag iterator.
>>
>> I read this link https://issues.apache.org/struts/browse/WW-2107 and
>> understood the situation.
>> But, is there another way to set a value in my checkBox?
>>
>> <display:table requestURI="/usuario/pesquisar.action" name="listUsuPesquisa"
>> list="listUsuPesquisa" export="false" class="list" pagesize="15" uid="item">
>>
>> <display:column title='<input type="checkbox" name="selectAll"
>> id="selectAll" value="" onclick="checkAll()"/>'>
>> <s:checkbox name="checkBox" id="checkBox" value="cdUsuario" fieldValue="${
>> item.id}" theme="simple" onclick="confirmAllChecked()" />
>> </display>
>>
>> *Exception*
>> According to TLD or attribute directive in tag file, attribute fieldValue
>> does not accept any expressions
>>
>> Tanks a lot!
>> Have a nice week!
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>