Author Login
Post Reply
user Digest 20 Jun 2008 13:32:01 -0000 Issue 8099
Topics (messages 187825 through 187853):
Replication problem Struts2 + Tomcat
187825 by: Ildefonso Montero
Error replicating sessions with Struts 2 framework java application
187826 by: Ildefonso Montero
Re: issue porting AppFuse basic to S2.1.2
187827 by: Giovanni Azua
187833 by: dusty
Struts2 annotation based TLD generation using Ant
187828 by: Dmitriy Kuznetsov
187829 by: Musachy Barroso
187830 by: Dmitriy Kuznetsov
187831 by: Musachy Barroso
Rest plugin and binary data
187832 by: Mike Watson
187834 by: Jeromy Evans
Re: validation and action names with slashes
187835 by: Roberto Nunnari
187838 by: Roberto Nunnari
187839 by: Roberto Nunnari
187846 by: Jeromy Evans
Re: [struts] validation and action names with slashes
187836 by: Dale Newfield
187837 by: Roberto Nunnari
[OT] What slows you down?
187840 by: Ted Husted
187841 by: Al Sutton
187842 by: stanlick.gmail.com
187843 by: Antonio Petrelli
187844 by: stanlick.gmail.com
187845 by: Roger Varley
187847 by: Dave Newton
187848 by: Ian Roughley
187849 by: Jim Kiley
187850 by: Musachy Barroso
187852 by: Dave Newton
187853 by: Jim Kiley
Re: Logging For SEVERE: Error filterStart
187851 by: Paul Zepernick
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_187825.ezm (zipped)Hi !
I´m trying to replicate an object stored in a session in the following
architecture:
Apache Balancer (50%)
/ \
Tomcat 5.5 Tomcat 5.5
The problem is that the replication of an object accesed by means of
session.getAttribute("name-of-object"), in a jsp page is not OK, instead of
session.getId() that is OK (the same identifier on both Tomcat's)
I need help !
Thanks is advance.
--
-----------------------------------------------------------------
Ildefonso Montero Pérez
ildefonso.montero{arroba}gmail.com
monteroperez{arroba}.us.es
-----------------------------------------------------------------

Attachment:
user_187826.ezm (zipped)Hi,
we are having a problem when balancing Tomcat session among to clusters.
Architecture is the following: Apache (A) balancing 50-50 over Tomcat (1) and
Tomcat (2).
We are working on a big application and we saw that the session is not
replicated properly because we are doing one request for each Tomcat
sequentially (see 50-50 balancing) and we have checked that a simple counter
that we created inside the session object (our own object) accesing using
session.getAttribute("name") the resulted pattern is:
Request 1 in T1, counter = 1
Request 2 in T2, counter = 2
Request 3 in T1, counter = 2
Request 4 in T2, counter = 3
Request 5 in T1, counter = 3
Request 6 in T2, counter = 4
Request 7 in T1, counter = 4
Request 8 in T2, counter = 5
...
so, the value of the counter is not replicated properly or we are accesing it
in a wrong way. Is interesting for us that the Session ID (session.getID())
shows the same ID in both Tomcats so, we guess the is the same but replication
of attributes values seems to be not replicated.
Could you please help us?
Than you in advance.
some details: Apache 2.2.3, used mod_proxy_ajp instead of mod_jk, so we did
not
configured workers.properties file, we customized httpd.conf file.
--
-----------------------------------------------------------------
Ildefonso Montero Pérez
ildefonso.montero{arroba}gmail.com
monteroperez{arroba}.us.es
-----------------------------------------------------------------

Attachment:
user_187827.ezm (zipped)Resolved ... in the web.xml struts filter was missing the newly required
"actionPackages" parameter.
Is this new to 2.1.2 or? I currently use 2.1.1 and did not have that
problem ...
regards,
Giovanni

Attachment:
user_187833.ezm (zipped)
It is part of the codebehind plugin, that is a dependency of appfuse.
Giovanni Azua-3 wrote:
>
> Resolved ... in the web.xml struts filter was missing the newly required
> "actionPackages" parameter.
>
> Is this new to 2.1.2 or? I currently use 2.1.1 and did not have that
> problem ...
>
> regards,
> Giovanni
>
> ---------------------------------------------------------------------
> 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_187828.ezm (zipped)
Struts2 TLD files are generated by maven. I will not use maven on current
project, so how to run the same task from Ant?
Probably, the following part of pom.xml allows maven to do it:
<plugin>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>maven-apt-plugin</artifactId>
<version>1.0.15</version>
<configuration>
uri=/struts-tags,tlibVersion=2.2.3,jspVersion=2.0,shortName=s,displayName="Struts
Tags",
outFile=${basedir}/target/classes/META-INF/struts-tags.tld,
description="To make it easier to access dynamic data;
the Apache Struts framework includes a library of custom
tags.
The tags interact with the framework's validation and
internationalization features;
to ensure that input is correct and output is localized.
The Struts Tags can be used with JSP FreeMarker or
Velocity.",
outTemplatesDir=${basedir}/src/site/resources/tags
<resourceTargetPath>target</resourceTargetPath>
<fork>false</fork>
<force>true</force>
<nocompile>true</nocompile>
<showWarnings>true</showWarnings>
<factory>org.apache.struts.annotations.taglib.apt.TLDAnnotationProcessorFactory</factory>
<target>1.5</target>
<includes>
<include>**/*.java</include>
</includes>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>execute</goal>
</goals>
</execution>
</executions>
</plugin>
I googled for a solution, or at least, docs, for a couple of days, but found
nothing.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187829.ezm (zipped)The Ant Apt task would be a way:
http://ant.apache.org/manual/CoreTasks/apt.html
musachy
On Thu, Jun 19, 2008 at 2:28 PM, Dmitriy Kuznetsov
<heaven-seven@(protected):
>
> Struts2 TLD files are generated by maven. I will not use maven on current
> project, so how to run the same task from Ant?
>
> Probably, the following part of pom.xml allows maven to do it:
>
> <plugin>
> <groupId>org.apache.myfaces.tobago</groupId>
> <artifactId>maven-apt-plugin</artifactId>
> <version>1.0.15</version>
> <configuration>
>
> uri=/struts-tags,tlibVersion=2.2.3,jspVersion=2.0,shortName=s,displayName="Struts
> Tags",
>
> outFile=${basedir}/target/classes/META-INF/struts-tags.tld,
> description="To make it easier to access dynamic data;
> the Apache Struts framework includes a library of custom
> tags.
> The tags interact with the framework's validation and
> internationalization features;
> to ensure that input is correct and output is localized.
> The Struts Tags can be used with JSP FreeMarker or
> Velocity.",
> outTemplatesDir=${basedir}/src/site/resources/tags
>
> <resourceTargetPath>target</resourceTargetPath>
> <fork>false</fork>
> <force>true</force>
> <nocompile>true</nocompile>
> <showWarnings>true</showWarnings>
>
> <factory>org.apache.struts.annotations.taglib.apt.TLDAnnotationProcessorFactory</factory>
> <target>1.5</target>
> <includes>
> <include>**/*.java</include>
> </includes>
> </configuration>
> <executions>
> <execution>
> <phase>compile</phase>
> <goals>
> <goal>execute</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> I googled for a solution, or at least, docs, for a couple of days, but found
> nothing.
> --
> View this message in context: http://www.nabble.com/Struts2-annotation-based-TLD-generation-using-Ant-tp18015219p18015219.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187830.ezm (zipped)
Musachy Barroso wrote:
>
> The Ant Apt task would be a way:
> http://ant.apache.org/manual/CoreTasks/apt.html
>
> musachy
>
>
Thanks. Could you please explain some details:
1. I found source code of TLDAnnotationProcessorFactory and some related
classes at
https://issues.apache.org/struts/secure/attachment/13234/WW-1392.zip
Is it good enough to generate TLDs? Or, maybe, you know where to get some
"official" or "stable" or, maybe, latest available variant?
2. Are there any things i would better know before i start - like external
dependencies, java versions and so on?
Best regards,
Dmitriy.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187831.ezm (zipped)Get it from here:
http://repo1.maven.org/maven2/org/apache/struts/struts-annotations/
musachy
On Thu, Jun 19, 2008 at 2:56 PM, Dmitriy Kuznetsov
<heaven-seven@(protected):
>
>
>
> Musachy Barroso wrote:
>>
>> The Ant Apt task would be a way:
>> http://ant.apache.org/manual/CoreTasks/apt.html
>>
>> musachy
>>
>>
>
> Thanks. Could you please explain some details:
>
> 1. I found source code of TLDAnnotationProcessorFactory and some related
> classes at
> https://issues.apache.org/struts/secure/attachment/13234/WW-1392.zip
> Is it good enough to generate TLDs? Or, maybe, you know where to get some
> "official" or "stable" or, maybe, latest available variant?
>
> 2. Are there any things i would better know before i start - like external
> dependencies, java versions and so on?
>
> Best regards,
> Dmitriy.
> --
> View this message in context: http://www.nabble.com/Struts2-annotation-based-TLD-generation-using-Ant-tp18015219p18015742.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187832.ezm (zipped)Hi Folks,
I'm trying to figure out how to return binary data from the REST plugin.
I'd like to be able to return images that are generated on the fly by
a REST request but looking at ContentTypeHandlerManager, it assumes
that we'll only ever want to return a string and so passes a
StringWriter as the output for implementers of
ContentTypeHandler.fromObject.
Am I missing something really obvious or do I need to 'tweak' this
behaviour and decide what type of writer to provide?
Thanks in advance.
Mike

Attachment:
user_187834.ezm (zipped)Mike Watson wrote:
> Hi Folks,
>
> I'm trying to figure out how to return binary data from the REST plugin.
>
> I'd like to be able to return images that are generated on the fly by
> a REST request but looking at ContentTypeHandlerManager, it assumes
> that we'll only ever want to return a string and so passes a
> StringWriter as the output for implementers of
> ContentTypeHandler.fromObject.
>
>
At first, don't create a custom ContentTypeHander.
Just have your Controller declare a StreamResult. The default
ContentTypeHandler will drop through for result processing by XWork (as
per a ServletRedirectResult).
eg. GET /namespace/image/21
@Result("stream", type = StreamResult.class, value="image")
class ImageController {
public InputStream getImage() {}
public String show() {
// create the stream
return "stream";
}
}
See StreamResult for how to set the Content-type and other properties.
One that works, you could (potentially) register a ContentTypeHandler
for each image content type you want to return (eg. register the jpg and
png extensions). The ContentTypeHandler should do nothing except return
a result name for XWork that is mapped to a StreamResult. The image
retrieval would have to be performed in the Controller rather than the
Handler though. There is probably a bit of work to do in the plugin to
handle binary results better though.
Hope that gets you started.
Jeromy Evans

Attachment:
user_187835.ezm (zipped)Anybody on this, please?
--
Robi
Roberto Nunnari wrote:
> Hello.
>
> I'd like to use declarative Action-alias field validation for
> several Actions/methods in my S2 webpapp.
>
> S2 let's me do in struts.xml elegant things like:
> <package name="admin" extends="tiles-default" namespace="/admin">
> ...
> <action name="*/*" method="{2}" class="mypkg.admin.{1}Action">
> .. my results..
> </action>
> ...
> </package>
>
> and then use it in my jsps:
> <s:url action="Category/create" namespace="/admin" id="newURL"/>
>
> ..but in order to add declarative validation, that would require
> a file named:
> CategoryAction/create-validation.xml
>
> but '/' is not a character allowed in filenames.
>
> How to go with this dilemma? Should I drop the slashes in
> action names and use more verbose and less flexible declarations
> in struts.xml, or is there a better way?
>
> Thank you!
>

Attachment:
user_187838.ezm (zipped)Oops.. little typo! Correction below, in context.
Maybe using a different separator in action name, like '!'
instead of '/' could help..
But now this leads me to a more general question:
Can action names containing '*' be mapped at all to Action-alias validation?
Thank you!
--
Robi
Roberto Nunnari wrote:
> Hello.
>
> I'd like to use declarative Action-alias field validation for
> several Actions/methods in my S2 webpapp.
>
> S2 let's me do in struts.xml elegant things like:
> <package name="admin" extends="tiles-default" namespace="/admin">
> ...
> <action name="*/*" method="{2}" class="mypkg.admin.{1}Action">
> .. my results..
> </action>
> ...
> </package>
>
> and then use it in my jsps:
> <s:url action="Category/create" namespace="/admin" id="newURL"/>
>
> ..but in order to add declarative validation, that would require
> a file named:
> CategoryAction/create-validation.xml
CategoryAction-Category/create-validation.xml
>
> but '/' is not a character allowed in filenames.
>
> How to go with this dilemma? Should I drop the slashes in
> action names and use more verbose and less flexible declarations
> in struts.xml, or is there a better way?
>
> Thank you!
>

Attachment:
user_187839.ezm (zipped)Hi guys.
From my tests here's what I found:
1) action names with '/' are not usable for declarative action-alias
validation because of java package name (and most probably filesystem )
incompatibilities
2) action names with wildcards and '!' (ie '*!*') are not usable for
declarative action-alias validation. No idea why.
3) action names with wildcards and '_' (ie '*_*') do work for
declarative action-alias validation.
So, for completeness and future reference (should it go into the wiki?),
here's how I configured struts.xml:
<action name="*_*" method="{2}"
class="mypkg.admin.{1}Action">
<result name="view" type="tiles">{1}View</result>
<result name="edit" type="tiles">{1}Edit</result>
<result name="input" type="tiles">{1}Edit</result>
<result name="success-redirect"
type="redirect-action">{1}_{2}</result>
</action>
and then use it in my jsps:
<s:url action="Category_create" namespace="/admin" id="newURL"/>
..and in order to add declarative validation, the above requires
a file named:
CategoryAction-Category_create-validation.xml
Best regards.
--
Robi
Roberto Nunnari wrote:
> Oops.. little typo! Correction below, in context.
>
> Maybe using a different separator in action name, like '!'
> instead of '/' could help..
>
> But now this leads me to a more general question:
> Can action names containing '*' be mapped at all to Action-alias
> validation?
>
> Thank you!
>
> --
> Robi
>
>
> Roberto Nunnari wrote:
>> Hello.
>>
>> I'd like to use declarative Action-alias field validation for
>> several Actions/methods in my S2 webpapp.
>>
>> S2 let's me do in struts.xml elegant things like:
>> <package name="admin" extends="tiles-default" namespace="/admin">
>> ...
>> <action name="*/*" method="{2}" class="mypkg.admin.{1}Action">
>> .. my results..
>> </action>
>> ...
>> </package>
>>
>> and then use it in my jsps:
>> <s:url action="Category/create" namespace="/admin" id="newURL"/>
>>
>> ..but in order to add declarative validation, that would require
>> a file named:
>> CategoryAction/create-validation.xml
> CategoryAction-Category/create-validation.xml
>
>
>>
>> but '/' is not a character allowed in filenames.
>>
>> How to go with this dilemma? Should I drop the slashes in
>> action names and use more verbose and less flexible declarations
>> in struts.xml, or is there a better way?
>>
>> Thank you!
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_187846.ezm (zipped)Roberto Nunnari wrote:
>
>
> 2) action names with wildcards and '!' (ie '*!*') are not usable for
> declarative action-alias validation. No idea why.
>
This works:
<action name="manageAccount!*" method="do{1}"
class="package.ManageAccountAction">
matches the XML validation:
ManageAccountAction-manageAccount!ChangePassword-validation.xml
where doChangePassword is the name of the method to be invoked in
ManageAccountAction
The following setting is important as the ! is just a separator char
(nothing special)
# disable the old (bang) XWorks2 notation of dynamic invocation of
actions. Wildcards are still permitted
struts.enable.DynamicMethodInvocation = false
My advice is not to use this feature of Struts2 and instead keep it
simple (follow the convention of the Convention plugin, even if not in
use yet).
regards,
Jeromy Evans.

Attachment:
user_187836.ezm (zipped)Roberto Nunnari wrote:
>> ..but in order to add declarative validation, that would require
>> a file named:
>> CategoryAction/create-validation.xml
>>
>> but '/' is not a character allowed in filenames.
Did you actually try putting the validation file at
CategoryAction/create-validation.xml (i.e.: in a subdirectory)?
If that works, or if can be made to work, is that a reasonable solution
for you?
-Dale

Attachment:
user_187837.ezm (zipped)Hi Dale.
Thank you for your answer. See my comments below.
--
Robi
Dale Newfield wrote:
> Roberto Nunnari wrote:
>>> ..but in order to add declarative validation, that would require
>>> a file named:
>>> CategoryAction/create-validation.xml
Oops.. little typo! That should read:
CategoryAction-Category/create-validation.xml
>>>
>>> but '/' is not a character allowed in filenames.
>
> Did you actually try putting the validation file at
> CategoryAction/create-validation.xml (i.e.: in a subdirectory)?
Given the above correction, your suggestion is not possible
because the '-' character is not valid in java package names.
>
> If that works, or if can be made to work, is that a reasonable solution
> for you?
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_187840.ezm (zipped)Since it's friday, let me pose a question to the group ...
Even with rock-solid frameworks like Apache Struts, it still seems
like web application development takes longer than it should. Some
frameworks, like Ruby on Rails, speak directly to "time to market"
concerns and have been gathering many followers.
But why does web application still seem so difficult or so
time-consuming? Are there time bandits that still suck days or weeks
out of your development schedule? Are there time gremlins that
"nickel-and-dime" you every hour of every day? Is there anything more
that frameworks like Apache Struts can do to help? Or are just there
intractable problems with web development itself?
Thoughts? :)
-Ted.

Attachment:
user_187841.ezm (zipped)Web Design :). I can code it in a few days, but getting it to look
pretty so that users don't complain, thats a b**ch.
Seriously though, one of the things we could do is a something link Suns
blueprints or a cookbook of code recepies where we have pages which show
and explain the code solutions to common problems.
I know there are some bits and bobs around, and there are some sample
webapps, but it would be nice to have thinks like the the
S2/Spring2/JPA/Ajax page at
http://struts.apache.org/2.0.11.1/docs/struts-2-spring-2-jpa-ajax.html
in one place along with some others.
Al.
Ted Husted wrote:
> Since it's friday, let me pose a question to the group ...
>
> Even with rock-solid frameworks like Apache Struts, it still seems
> like web application development takes longer than it should. Some
> frameworks, like Ruby on Rails, speak directly to "time to market"
> concerns and have been gathering many followers.
>
> But why does web application still seem so difficult or so
> time-consuming? Are there time bandits that still suck days or weeks
> out of your development schedule? Are there time gremlins that
> "nickel-and-dime" you every hour of every day? Is there anything more
> that frameworks like Apache Struts can do to help? Or are just there
> intractable problems with web development itself?
>
> Thoughts? :)
>
> -Ted.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187842.ezm (zipped)I think a web page generator from action/model would be a huge shot in the
arm. Of course it would need to be gussied up a bit, but doing these by
hand is a leach on time. I recall a product back in the day that would
generate pages from db tables. Perhaps it's now open source and could be
leveraged? And then there is the persistence nightmare -- but I have found
Db4o solves that problem quite nicely.
Scott
On Fri, Jun 20, 2008 at 7:07 AM, Al Sutton <al.sutton@(protected):
> Web Design :). I can code it in a few days, but getting it to look pretty
> so that users don't complain, thats a b**ch.
>
> Seriously though, one of the things we could do is a something link Suns
> blueprints or a cookbook of code recepies where we have pages which show and
> explain the code solutions to common problems.
>
> I know there are some bits and bobs around, and there are some sample
> webapps, but it would be nice to have thinks like the the
> S2/Spring2/JPA/Ajax page at
> http://struts.apache.org/2.0.11.1/docs/struts-2-spring-2-jpa-ajax.html in
> one place along with some others.
>
> Al.
>
>
> Ted Husted wrote:
>
>> Since it's friday, let me pose a question to the group ...
>>
>> Even with rock-solid frameworks like Apache Struts, it still seems
>> like web application development takes longer than it should. Some
>> frameworks, like Ruby on Rails, speak directly to "time to market"
>> concerns and have been gathering many followers.
>>
>> But why does web application still seem so difficult or so
>> time-consuming? Are there time bandits that still suck days or weeks
>> out of your development schedule? Are there time gremlins that
>> "nickel-and-dime" you every hour of every day? Is there anything more
>> that frameworks like Apache Struts can do to help? Or are just there
>> intractable problems with web development itself?
>>
>> Thoughts? :)
>>
>> -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)
>
>
--
Scott
stanlick@(protected)

Attachment:
user_187843.ezm (zipped)2008/6/20 Ted Husted <husted@(protected)>:
> But why does web application still seem so difficult or so
> time-consuming?
IMHO it's the presence of too many layers of applications. For a
simple thing like a search result you have to do (for example in
Struts 1):
- the JSP page
- the DAO
- the service that calls the DAO
- the domain objects
- the action that calls the service, and the ActionForm
- the configuration of the action
- then go again to JSP pages to link actions together
There are pieces that can be avoided, but the structure almost remains this one.
I think that approaches like NakedObjects [1] and Roma Framework [2]
could help avoiding this tedious work.
Anyway there is always some work for adaptation on your particular
case, many times they seem to be a unique case that cannot be put in
the general vision of the framework, so you stick on coding it with
simple frameworks (like Struts 1) or no frameworks at all.
Just my 2 eurocents
Antonio
[1] http://www.nakedobjects.org/
[2] http://romaframework.xwiki.com/

Attachment:
user_187844.ezm (zipped)That's pretty accurate! You know, these reoccurring cycles could be
patterned into framework base classes now that Java support generics. Db4o
works fine in this manner and needs no 2D mappings at all. In fact, I have
a single class that handles all persistence/search behaviors for all my
actions. This persistence tier is largely transparent on my sites and I
never really think about it. My life is centered around modeling the domain
with POJOs (pronounced fun and easy) and of course arm wrestling the darn
pages and tags!
P.S. Pages and tags suck
Scott
On Fri, Jun 20, 2008 at 7:24 AM, Antonio Petrelli <
antonio.petrelli@(protected):
> 2008/6/20 Ted Husted <husted@(protected)>:
> > But why does web application still seem so difficult or so
> > time-consuming?
>
> IMHO it's the presence of too many layers of applications. For a
> simple thing like a search result you have to do (for example in
> Struts 1):
> - the JSP page
> - the DAO
> - the service that calls the DAO
> - the domain objects
> - the action that calls the service, and the ActionForm
> - the configuration of the action
> - then go again to JSP pages to link actions together
>
> There are pieces that can be avoided, but the structure almost remains this
> one.
> I think that approaches like NakedObjects [1] and Roma Framework [2]
> could help avoiding this tedious work.
> Anyway there is always some work for adaptation on your particular
> case, many times they seem to be a unique case that cannot be put in
> the general vision of the framework, so you stick on coding it with
> simple frameworks (like Struts 1) or no frameworks at all.
>
> Just my 2 eurocents
> Antonio
>
> [1] http://www.nakedobjects.org/
> [2] http://romaframework.xwiki.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Scott
stanlick@(protected)

Attachment:
user_187845.ezm (zipped)On Friday 20 June 2008 15:07:17 Al Sutton wrote:
> Web Design :). I can code it in a few days, but getting it to look
> pretty so that users don't complain, thats a b**ch.
>
That shouldn't be my problem. I'm a developer not a graphic designer. What
would be nice though, would be if it were easier to label and tag everything
in sight in the generated HTML and then we could simply lob the HTML over the
fence to a graphic designer - which is the route proposed by
http://www.csszengarden.com.
Just my $0.02 worth.
Regards

Attachment:
user_187847.ezm (zipped)--- On Fri, 6/20/08, Antonio Petrelli <antonio.petrelli@(protected):
> IMHO it's the presence of too many layers of applications.
+1
The most productive environment I've worked in is Lisp (and Smalltalk, I guess). Config, code, HTML, everything was generated from Lisp. I had usable IDE assistance *everywhere*, including across layers.
I'm now playing games with annotations, even *more* games with code generation (both during build and runtime; codegen has always been one of my guilty pleasures), and ways of doing the development itself (literate programming with cross-language weaving) to reduce the amount of time I have to spend switching paradigms, but it's ultimately still in my face on *some* level, even when I don't have to think about it all the time.
The other big issue? The sheer number of options for essentially every single layer :(
> Just my 2 eurocents
Yanno, with the current exchange rate...
Dave

Attachment:
user_187848.ezm (zipped)
stanlick@(protected):
> I think a web page generator from action/model would be a huge shot in the
> arm. Of course it would need to be gussied up a bit, but doing these by
> hand is a leach on time. I recall a product back in the day that would
> generate pages from db tables.
The is a company in Brazil that has a product like this (can't remember
their name now). Met the folks last Oct and helped them see how s2 could
be leveraged as another action framework - they were using JSF and s1.
There is also J2EE Spider that is open source, and also Brazilian in origin.
Although, I have to say, this approach is great for admin or pure
data-to-tables apps, but most customs apps I write are not this
simplistic when it comes to middle and data tiers.
> Perhaps it's now open source and could be
> leveraged? And then there is the persistence nightmare -- but I have found
> Db4o solves that problem quite nicely.
>
> Scott
>
> On Fri, Jun 20, 2008 at 7:07 AM, Al Sutton <al.sutton@(protected):
>
>
>> Web Design :). I can code it in a few days, but getting it to look pretty
>> so that users don't complain, thats a b**ch.
>>
>> Seriously though, one of the things we could do is a something link Suns
>> blueprints or a cookbook of code recepies where we have pages which show and
>> explain the code solutions to common problems.
>>
>> I know there are some bits and bobs around, and there are some sample
>> webapps, but it would be nice to have thinks like the the
>> S2/Spring2/JPA/Ajax page at
>> http://struts.apache.org/2.0.11.1/docs/struts-2-spring-2-jpa-ajax.html in
>> one place along with some others.
>>
>> Al.
>>
>>
>> Ted Husted wrote:
>>
>>
>>> Since it's friday, let me pose a question to the group ...
>>>
>>> Even with rock-solid frameworks like Apache Struts, it still seems
>>> like web application development takes longer than it should. Some
>>> frameworks, like Ruby on Rails, speak directly to "time to market"
>>> concerns and have been gathering many followers.
>>>
>>> But why does web application still seem so difficult or so
>>> time-consuming? Are there time bandits that still suck days or weeks
>>> out of your development schedule? Are there time gremlins that
>>> "nickel-and-dime" you every hour of every day? Is there anything more
>>> that frameworks like Apache Struts can do to help? Or are just there
>>> intractable problems with web development itself?
>>>
>>> Thoughts? :)
>>>
>>> -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_187849.ezm (zipped)With Struts 2 I've got testability right down the spine of the application.
There's very little Java I can write that I can't test. And testing really
does speed up your application development cycle, as I'm sure the pros here
know.
The stuff I can't test is what slows me down: JSP, and the gap between my
JSP and my Struts actions. There are times where I've screwed up the wiring
between them, and can't for the life of me figure out why. I don't have a
JSP debugger, and JSPs don't generate log statements (wow, wouldn't it be
awesome if they could?). So tracking that down is time-consuming for me.
CSS doesn't slow me down nearly as much as it used to thanks to Firebug.
Honestly, otherwise, right now I'm working on converting an old ColdFusion
app to Struts 2 and the most time-consuming part is figuring out what the
hell the previous CF programmer wanted when he wrote his code.
jk
On Fri, Jun 20, 2008 at 7:43 AM, Ted Husted <husted@(protected):
> Since it's friday, let me pose a question to the group ...
>
> Even with rock-solid frameworks like Apache Struts, it still seems
> like web application development takes longer than it should. Some
> frameworks, like Ruby on Rails, speak directly to "time to market"
> concerns and have been gathering many followers.
>
> But why does web application still seem so difficult or so
> time-consuming? Are there time bandits that still suck days or weeks
> out of your development schedule? Are there time gremlins that
> "nickel-and-dime" you every hour of every day? Is there anything more
> that frameworks like Apache Struts can do to help? Or are just there
> intractable problems with web development itself?
>
> Thoughts? :)
>
> -Ted.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187850.ezm (zipped)I would have to say: people. It doesn't matter how good frameworks
are, for "some" reason, "some" people decide to write their own
frameworks, and they do a terrible job at it. I always land on these
companies :). Some examples I have seen in my current and last
company:
1. Custom MVC (makes me want to cry)
2. Custom SMTP library
3. Custom FTP library
4. Custom persistence library
5. Custom ajax framework!!!!
musachy
On Fri, Jun 20, 2008 at 7:43 AM, Ted Husted <husted@(protected):
> Since it's friday, let me pose a question to the group ...
>
> Even with rock-solid frameworks like Apache Struts, it still seems
> like web application development takes longer than it should. Some
> frameworks, like Ruby on Rails, speak directly to "time to market"
> concerns and have been gathering many followers.
>
> But why does web application still seem so difficult or so
> time-consuming? Are there time bandits that still suck days or weeks
> out of your development schedule? Are there time gremlins that
> "nickel-and-dime" you every hour of every day? Is there anything more
> that frameworks like Apache Struts can do to help? Or are just there
> intractable problems with web development itself?
>
> Thoughts? :)
>
> -Ted.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187852.ezm (zipped)--- On Fri, 6/20/08, Jim Kiley <jhkiley@(protected):
> I don't have a JSP debugger, and JSPs don't generate
> log statements (wow, wouldn't it be awesome if they
> could?).
AFAIK they can, although I'll often just use a println. What environment are you using that you don't have a JSP debugger, though?
> the most time-consuming part is figuring out what the
> hell the previous CF programmer wanted when he wrote
> his code.
He wanted to not be programming in ColdFusion.
Dave

Attachment:
user_187853.ezm (zipped)On Fri, Jun 20, 2008 at 9:29 AM, Dave Newton <newton.dave@(protected):
> --- On Fri, 6/20/08, Jim Kiley <jhkiley@(protected):
> > I don't have a JSP debugger, and JSPs don't generate
> > log statements (wow, wouldn't it be awesome if they
> > could?).
>
> AFAIK they can, although I'll often just use a println. What environment
> are you using that you don't have a JSP debugger, though?
>
Well it's possible that I'm just a dope on both of these points.
>
> > the most time-consuming part is figuring out what the
> > hell the previous CF programmer wanted when he wrote
> > his code.
>
> He wanted to not be programming in ColdFusion.
>
>
So say we all.
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187851.ezm (zipped)
Another tidbit of information.The startup error only happen when maping an action result of type "jasper". If I take out the type, the server starts just fine with the jasper plugin jar. Is there something else I need to setup in the configuration
to tell it about the jasper result type? Is there any way to get the actual error that caused the filter not to start?
Thanks,
Paul
From: Paul Zepernick [mailto:pzepernick@commercebenefitsgroup.com]
Sent: Thursday, June 19, 2008 9:07 AM
To: 'Struts Users Mailing List'; 'newton.dave@yahoo.com'
Subject: RE: Logging For SEVERE: Error filterStart
I have downloaded jasper reports 2.0.5 and put all necessary depenendencies (as far as I can tell from this
http://www.jasperforge.org/jaspersoft/opensource/business_intelligence/jasperreports/requirements.html) in the lib folder. Does anyone know how to possibly generate a class not found error or something so I can figure out exactly what is missing?
Paul
From: Paul Zepernick [mailto:pzepernick@commercebenefitsgroup.com]
Sent: Wednesday, June 18, 2008 4:23 PM
To: 'Struts Users Mailing List'; 'newton.dave@yahoo.com'
Subject: RE: Logging For SEVERE: Error filterStart
Thanks Dave. I will review the jar dependencies for Jasper. Right now I have installed the plugin and the jasper 1.3 jar. I had tried DEBUG already but there was a TON of information to try and sift through and I did not get any kind of stack trace.
Thanks,
Paul Zepernick
Information Technology
-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com]
Sent: Wednesday, June 18, 2008 4:19 PM
To: Struts Users Mailing List
Subject: Re: Logging For SEVERE: Error filterStart
You *could* set the default log level to DEBUG, but stand back.
My initial assumption, however, would be that you're missing Jasper dependencies, as you say "the jar" and there's around a half-dozen, give or take.
Dave
--- On Wed, 6/18/08, Paul Zepernick <pzepernick@commercebenefitsgroup.com> wrote:
> From: Paul Zepernick <pzepernick@commercebenefitsgroup.com>
> Subject: Logging For SEVERE: Error filterStart
> To: "'user@struts.apache.org'" <user@struts.apache.org>
> Date: Wednesday, June 18, 2008, 3:37 PM
> How do we correctly setup logging in log4j to capture the
> problem causing the SEVERE: Error filterStart? We are
> trying to add in jasper reporting. We dropped in the jar
> and receive this error when we configured a jasper result.
> We have the log4j.properties in the classpath and have the
> root logger configured to go to the console. We are
> seeing other messages from log4j. Any advice on how I can
> get the error causing the filter start to better diagnose
> the problem?
>
> Thanks,
>
> Paul Zepernick
> Information Technology
>
>
> The information contained in this transmission contains
> confidential information that is legally privileged. This
> information is intended only for the use of the individual
> or entity named above. The authorized recipient of this
> information is prohibited from disclosing this information
> to any other party unless required to do so by law or
> regulation and is required to destroy the information after
> its stated need has been fulfilled.
> If you are not the intended recipient, you are hereby
> notified that any disclosure, copying, distribution, or
> action taken in reliance on the contents of these documents
> is strictly prohibited. If you have received this
> information in error, please notify the sender immediately
> by return email and arrange for the return or destruction
> of these
> documents.---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
The information contained in this transmission contains confidential information that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from
disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of these documents is strictly prohibited. If you have received this information in error, please notify the
sender immediately by return email and arrange for the return or destruction of these documents.
The information contained in this transmission contains confidential information that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from
disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of these documents is strictly prohibited. If you have received this information in error, please notify the
sender immediately by return email and arrange for the return or destruction of these documents.
The information contained in this transmission contains confidential information that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of these documents is strictly prohibited. If you have received this information in error, please notify the sender immediately by return email and arrange for the return or destruction of these documents.