Jeromy Evans - Blue Sky Minds wrote:
>
> mraible wrote:
>> I'm using 2.1.1-SNAPSHOT of the sitemesh and rest plugins.
>> FreeMarker/SiteMesh is working fine. However, I'm unable to use i18n tags
>> in
>> my decorator. In src/main/resources/com/company/app/package.properties, I
>> have:
>>
>> we
Kelly Graus wrote:
Hi Jeromy,
I'm using struts 2.0.11. My resource bundle is in the WEB-INF/classes
directory. My action extends ActionSupport, and implements ModelDriven
and preparable. I couldn't get the ModelDriven stuff to work
correctly, and at some point when I was playing around with i
Hi Jeromy,
I'm using struts 2.0.11. My resource bundle is in the WEB-INF/classes
directory. My action extends ActionSupport, and implements ModelDriven
and preparable. I couldn't get the ModelDriven stuff to work
correctly, and at some point when I was playing around with it, the
text sta
Jeromy Evans wrote:
mraible wrote:
I tried FreeMarker this morning and discovered that the problem
exists there
too. Grrr. I've experienced Struts 2 being eliminated as a web framework
candidate on a couple projects because of this. Kindof annoying.
So what do you really want? My guess
mraible wrote:
I'm using 2.1.1-SNAPSHOT of the sitemesh and rest plugins.
FreeMarker/SiteMesh is working fine. However, I'm unable to use i18n tags in
my decorator. In src/main/resources/com/company/app/package.properties, I
have:
webapp.name=Foo
webapp.tagline=Bar
In my decorators/default.ftl,
Hi Kelly,
By coincidence I'm investigating this precise issue at the moment and
have discussed it in the strust-dev list within the last 24 hours. The
algorithm to find keys in s:text differs from s:textfield which causes
inconsistent behaviour -sometimes-.
Some questions:
Which version of
oscar perez wrote:
HI all,
I am using appfuse as start-up application for one project.
The problem is that when I upgraded from struts 2.0.11.1 to 2.1.1 my test
cases are no longer working as ActionContext.getContext() returns null.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg29571.html
mraible wrote:
Following up months later as this has come up again now that 2.1 is close to
release. The current version does log messages for invalid properties, but
it doesn't blow up for invalid properties which is more of what I'm looking
for.
Hi Matt,
I'm not convinced that you really w
Hi all!
I got this error: ReferenceError: validateForm_frmExcl is not defined when
a form to be validated is inside a
I read some solutions that Musashi and Jeromy wrote about this, but I still
getting the error..
Includding that there's a new attribute (separateScripts) into struts 2.1
dojo ta
I'm not familiar with that plugin, however it uses YUI and ajax file
uploads via YUI are really simple. If you take a moment to read this
page you'll understand it a little better:
http://developer.yahoo.com/yui/connection/
My guess from the error below is that you're missing the afile:head ta
Hi,
I am looking at the example provided on this link:
http://struts.apache.org/2.x/docs/annotationworkflowinterceptor.html
I couldn't find annotationWorkflow in my struts-default.xml
I get an error from framework:
2008-04-11 18:04:58.817 ERROR [StandardContext3638]: Exception
Hi Marcio,
You are correct. Doing so will change the theme for the whole application.
There is another way to just change the theme for specific buttons. (Check a
previous reply to my question by Sharath)
eg:
previous reply:
Hi Akash,
Put 'theme=simple' this will solve your problem.
*sigh*
I confused the s:form method attribute and used it to specify the method to
call on the action, not the HTTP form submit method. Everything's working
now. Definitely not my brightest moment.
Thanks a bunch,
GB
Laurie Harper wrote:
>
> Guillaume Bilodeau wrote:
>> Hi guys,
>>
>> I'm
Hi Akash,
I think that is not a good idea just change the theme.. Doing that you're
gona lose some functionality.. Like validation, etc..
There's a way, overwriting the xhtml theme (I made this in a project, and
it's working).
Do the following steps:
1 - Unzip the struts 2 core jar;
2 - Copy tem
Hello,
I'm trying to use the key attribute in the s:textfield tag to display a
label from my resource bundle. I have a single application resource bundle
that I am able to access with the s:text tag, so I know the resource bundle
is working. However, when I use the key attribute, I just get an
Edit your struts.xml to reflect the following:
http://struts.apache.org/dtds/struts-2.0.dtd";>
...
...
The behavior should be more as you expect after that. You will lose things
like the label property on textfields though. In that case you just type it
outside like:
...
U
Hi Akash,
Put 'theme=simple' this will solve your problem.
--Sharath.
akash agrawal <[EMAIL PROTECTED]> wrote:
Hi,
s:submit creates a row for a button. I have two buttons and two submit appears
on two different row. How do I put them on the same row? Can anyone give an
example?
Hi,
s:submit creates a row for a button. I have two buttons and two submit appears
on two different row. How do I put them on the same row? Can anyone give an
example?
Thanks,
-Akash
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spa
The injected sessionMap is sufficient if all you need to do is get, set and
remove session attributes. For other things like invalidating the session,
you should implement ServletRequestAware and retrieve the session using the
injected HttpServletRequest.
As you can see from the source code, the
Thank you very much. I found the source code and looked at it and now I
understand perfectly. I can't believe I missed all that info the SessionMap
object. So then once you have a sessionMap I assume that that the
sessionMap is the only thing you need for accessing the request, clearing
the sess
Hi All,
I tried Ajax fileupload program from below link,
http://www.struts2.org/ajax-file-upload-in-struts2-using-ajax-file-upload-plugin/#comment-100
When I tried to access, I'm getting below error message
FreeMarker template error!
Error on line 27, column 20 in te
Is there a way to specify welcome page through struts-configration like when
a request comes to my application can I redirect him to login.do ?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.ya
I suggest you have a look at the source code for the
org.apache.struts2.dispatcher.SessionMap, this is what gets injected to your
SessionAware action. As you'll see it's simply a class that implements the
java.util.Map interface and wraps a HttpSession. Calls to the get, put and
remove methods a
As a followup to my own posting: Sorry for not reading properly, of
course your problem does not really relate to output formatting.
Guillaume is right here IMO, for a fixed Date format a custom
TypeConverter should be the way to go, as long as the datepicker does
not work for you.
Regards,
Rene
> A good opensource option is Poseidon for UML (http://www.gentleware.com/).
> The community edition is free but that edition doesn't include Java->UML.
Poseidon and ArgoUML share a common codebase. Argo does Java -> UML,
and I think the community edition of Poseidon does as well, but I'm
possib
You might want to read here:
http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html
Cheers,
Rene
akinss wrote:
>
> I'm trying to use a textfield tag for date input. I need to format this
> in
> the form dd/MM/ HH:mm:ss
>
> The teaxtfield tag formats the date to a Locale base
>> Would it not be perhaps safer and more efficient (and reduce the
>> possibility of clustered session replication issues) to simply
>> get the session yourself and set the
>> attributes directly into it?
the Map passed in when you implement SessionAware is just a wrapper
around the real session.
Thank you all for your help. I think we have it resolved and it was indeed
the WLCookieName parameter (JSESSIONID) in the weblogic plugin that was set
incorrectly. This has led to heavy discussion however with regards to this
question:
Is it really a good idea to implement the SessionAware interfa
--- Chris Pat <[EMAIL PROTECTED]> wrote:
> I have a reset() that generates a random number. However
> after the first page view the same number persists. How
> do I stop this caching by the server?
Assuming it's actually a caching issue, google for tomcat +caching.
This is a generic HTTP iss
Then I guess it would be a good excercice to refactor that database
access code into a DAO to decouple your actions from the DB.
2008/4/11, Peter Theissen <[EMAIL PROTECTED]>:
> No, no dependencies at all. It should just do
> the cleanup every day.
> However, I would like to use my certain action
I wonder if specifying HttpServletResponse.SC_FORBIDDEN would make a
difference because the HttpServletResponse has those constants and that is
in the method signature for the Action class.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: ryan webb <[EMAIL PROT
Antonio Petrelli wrote:
2008/4/11, Jeromy Evans <[EMAIL PROTECTED]>:
I can stop feeling dirty for buying EA.
LOL! Anyway I agree with you, Enterprise Architect is a great piece of
software, I use it in my everyday job and it's fast, reliable and great for
documentation (though I did
oh yes, yes, it would include those parameters in the request, but I'd
have to figure out some OGNL that would add actionErrors and fieldErrors
as parameters for the redirect, then if my Action-being-redirected-to
extends ActionSupport the setters should automatically be called.
I think this would
> I doubt that this filter/interceptor approach to executing a task
> periodically would be a good idea:
>
> What if it is take too long? What happens to the current user request?
> What if it just time out?
Agree, you're right (btw, i meant context listener when i wrote filter -
sorry).
But s
2008/4/11, Jeromy Evans <[EMAIL PROTECTED]>:
>
> I can stop feeling dirty for buying EA.
LOL! Anyway I agree with you, Enterprise Architect is a great piece of
software, I use it in my everyday job and it's fast, reliable and great for
documentation (though I did not use it for reverse engineer
Sorry, of course i meant servlet context listener, not servlet filter
> However, I would like to use my certain action
> methods, since they already contain all the
> funtionalities for DB acces.
Then i guess it would be a smart way by letting spring inject the DBA object
into your action(s
Antonio Petrelli wrote:
2008/4/11, Jeromy Evans <[EMAIL PROTECTED]>:
A good opensource option is Poseidon for UML (http://www.gentleware.com/).
The community edition is free but that edition doesn't include Java->UML.
Err... Poseidon is not open source.
Anyway, I think that NetBeans i
No, no dependencies at all. It should just do
the cleanup every day.
However, I would like to use my certain action
methods, since they already contain all the
funtionalities for DB acces.
Thanks
Peter
I would have thought of implementing the clean up service as servlet filter
outside struts. O
I doubt that this filter/interceptor approach to executing a task
periodically would be a good idea:
What if it is take too long? What happens to the current user request?
What if it just time out?
Typical periodic clean up tasks are better performed when nobody is
using the system (or at least w
I've been doing periodic tasks in my web app: I'm using Spring and
setting a periodic task to execute is kind of straightforward, but has
nothing to do with Struts 2.
2008/4/11, Peter Theissen <[EMAIL PROTECTED]>:
> Hello,
>
> I now searched a while to get an idea how to implement
> a DB clean up
the @Resource annotation is included in Java SE 6. If you can't move to
Java 6 and have to use Java 5, the annotation can be found in
common-annotations.jar
(note that a Java EE 5 app can still run in the Java SE 6 JRE)
as per the DB clean up service, if you're using Spring for DI you could
proba
I would have thought of implementing the clean up service as servlet filter
outside struts. Or doing the same within an interceptor.
Are there any dependencies that would need the clean up service to be bound
to a session context?
- Frank
> -Original Message-
> From: [EMAIL PROTECTED
2008/4/11, Jeromy Evans <[EMAIL PROTECTED]>:
> A good opensource option is Poseidon for UML (http://www.gentleware.com/).
> The community edition is free but that edition doesn't include Java->UML.
Err... Poseidon is not open source.
Anyway, I think that NetBeans is pretty nice:
http://www.netbea
it won't go from bytecode to UML but I've used JAD (and JadClipse) to go
from bytecode to Java:
http://www.kpdus.com/jad.html
http://jadclipse.sourceforge.net/
As far as UML is concerned, I saw this non-free tool yesterday, which
looked pretty interesting (especially the roundtrip feature):
http:
Ashish Kulkarni wrote:
Hi
Is there any decent Open Source tool out there which can be used to do
reverse engineering of Java code,
If not open source then some thing which really works,
Any input would be really appreciated
Ashish
I'm not sure whether you want bytecode to java or java to u
Hello,
I now searched a while to get an idea how to implement
a DB clean up service with Struts2. The best link I found
was the following one:
following
http://www.javabeat.net/javabeat/ejb3/articles/timer_services_api_in_ejb_3_0_2.php
What I dont understand is how to get the session context.
Guillaume Bilodeau wrote:
Hi guys,
I'm using Struts 2.0.11 for a standard web application and using annotations
all the way. I have the following action, with some fields and getters /
setters omitted for brevity:
@ParentPackage("default")
@Results( {
@Result(name = "input", ty
Hi
Is there any decent Open Source tool out there which can be used to do
reverse engineering of Java code,
If not open source then some thing which really works,
Any input would be really appreciated
Ashish
I have my struts application devleoped in websphere stdio where it run
properly
but when i run it on tomcat5.0 i show problem "CAN'T FIND MESSAGE RESOURCE
KEY UNDER MESSAGE RESOURCE"
BUT when i run it on tomcat4.0 it run properly but that time shows database
error class not found
--
View this
Ian Meikle wrote:
Hi Jeromy,
Thanks for the info.
Several of the interceptors require configuring, for example the Scope
interceptor.
The example provides some examples of this. However it seems that the only
way to configure a interceptor is to redefine an interceptor stack.
Is this correct
Hi!
How and where can I catch a
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException
to inform the user?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
Hi Jeromy,
Thanks for the info.
Several of the interceptors require configuring, for example the Scope
interceptor.
The example provides some examples of this. However it seems that the only
way to configure a interceptor is to redefine an interceptor stack.
Is this correct ?
Can I not just use
2008/4/10, hardik pandya <[EMAIL PROTECTED]>:
>
> Hello All,
>
> I get this error, when I click on submit button to Action Class
>
> *404 Not Found :
> Servlet error:* Parsing error processing resource path
> /WEB-INF/cfg/struts-config.xml
Did you validate your struts-config.xml against the DTD?
53 matches
Mail list logo