time
portion to zero (Hours, minutes, seconds, milliseconds). For the the endDate
you would add one day to the calendar.
You range expression then gives you the 24 hour period that is considered
"Dec 20, 2009" for a user in that timezone.
Hope that helps.
On Wed, Sep 30, 2009 at 5:18 AM
Hello,
Can anyone give me some 'best practice' advice for dealing with dates in
an international app (Struts2).
We are based in the UK and have an application running locally that
stores dates within action classes as java.util.Date.
These dates are sometimes passed to the application via query
Hello all,
I have a rather strange validation problem.
I have a field agencyCommRate declared as a BigDecimal.
I need to validate that a value between 0.0 and 100.0 is entered and
assumed the following validation rules would work.
Values outside the range are picked up correctly.
However, w
Thanks for all the feedback on this post!
Having seen the post from Martin regarding
I've now also seen the equivalent declaration in struts.properties :
struts.action.extension=action
But most probably know that I guess.
Thanks also for the heads up on the deprecated
org.apache.struts2.di
Please excuse if this question has been answered before. I can't find
any direct reference to it.
How would I configure Struts2 to treat .htm requests in the same way as
.action requests.
I freely admit I do not understand how
org.apache.struts2.dispatcher.FilterDispatcher identifies betwee
Hello,
I have a question relating to serving international content that I hope
someone can help with.
It is kind of leaning towards an SEO question, but it does relate to
Struts in terms of how I can use Struts 2 to control page direction
because of language selection.
In terms of SEO, I a
Wow! Thanks for all this great feedback and ideas regards this problem.
I'm sorry I cannot add any useful prompts to help you develop a plugin
Wes as Spring and it's methods for injection are something I know
nothing about. I have to admit, injection is not something I fully
understand and a
thoughts on this subject.
Robin Mannering wrote:
Just wondering if the below thread has gone any further.
After creating another thread on the same subject at an earlier date,
we discussed using the EJB plugin here:
http://cwiki.apache.org/S2PLUGINS/ejb3-plugin.html
However, having started to use
Just wondering if the below thread has gone any further.
After creating another thread on the same subject at an earlier date, we
discussed using the EJB plugin here:
http://cwiki.apache.org/S2PLUGINS/ejb3-plugin.html
However, having started to use this plugin so that I can reference
statele
Hi,
I recently implemented a login mechanism but did it slightly differently
after recommendations from this mailing list to use an interceptor.
Each action/page that requires a validated login is directed via a
Interceptor.
The sole purpose of the interceptor is to verify the existence of
Hello,
Platform : Struts 2, EJB 3.0, Glassfish 2.1
I'm having trouble using the Freemarker equivalent of the JSP Struts 2
Select Tag.
I need to convert:
into the Freemarker equivalent.
userTypes is an application defined attribute. I have checked the
existence of the attribute within th
Thanks for the example. I shall download the source and give it a go.
Thanks again.
Nathan Schulte wrote:
Robin Mannering mtndesigns.co.uk> writes:
Can you please tell me how you obtained the EJB plugin and a short
example of using it.
I would prefer to use this if possi
Can you please tell me how you obtained the EJB plugin and a short
example of using it.
I would prefer to use this if possible.
Nathan Schulte wrote:
Robin Mannering wrote:
Is there anybody that is using Struts2 as the 'frontend' to an EJB 3
'backend' and what solut
ally
create a plugin that removes the need to do that in your execute
method. The EJB spec added those annotations, so I'd like to figure
out a way to honor them (cleanly).
-Wes
On Wed, Jul 15, 2009 at 10:37 AM, Robin Mannering wrote:
Hi Wes,
I found a resource on the web that
in the plugin.
If you have troubles, bring them to the list, we'll help.
2. Create an object factory implementation that creates actions using
your container's semantics. Again, if you have troubles, bring 'em
back here, we'll help you.
-Wes
On Wed, Jul 15, 2009 at 9:48 AM, R
we see much traffic on
here from ejb users. Would anyone else be interested in an
ObjectFactory based plugin? If so, would any of you also want it to
work with Spring? The interceptor-based solution works good because it
doesn't interfere with object-creation-based plugins like
spring/guice/etc.
Hello,
Platform : Struts 2, EJB 3.0, Glassfish 2.1
I wish to obtain a reference to an EJB using injection.
This works fine within a servlet, but from within a Struts2 action
class, all references to injected EJB variables hold a 'null' reference.
I've included a portion of my action class be
Hello,
Struts 2.1.6
I wish to ensure a user is logged into an application before allowing
him/her to execute certain tasks.
Would using an Interceptor be a good way to go?
My idea is to retrieve session data in the intercept() method of the
interceptor and verify a certain attribute is held
ag support, but it may be
similar to Freemarker in that some tags are in-line tags, some are
block tags, and decisions were made at some point to try and cover the
most common use-case.
If that's the case then you'll probably have to loop over the field
names of interest.
Dave
Robin
I'm having trouble translating into
Velocity. Any other ideas?
Dave Newton wrote:
Robin Mannering wrote:
From the documentation at
http://struts.apache.org/2.1.6/docs/velocity-tags.html, I see the
format is:
#s**tag **(...) ... #end
However, I'm having difficult using the tags.
Hi all
I've recently switched from Struts 1.x to Struts 2.1.6 and would like to
continue using velocity to render the view.
I also wish to take advantage of the Struts 2 tag library by using
velocity directly.
From the documentation at
http://struts.apache.org/2.1.6/docs/velocity-tags.html
6, unless I'm missing something, it's just using the default
constructor, so I very much doubt its a construction problem.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Sun, July 17, 2005 12:02 pm, Robin Mannering said:
> Sure
he 'root cause'
can we see the contents of your
web.xml
index.jsp
struts-config.xml
M-
- Original Message - From: "Robin Mannering"
<[EMAIL PROTECTED]>
To:
Sent: Sunday, July 17, 2005 9:55 AM
Subject: ActionServlet failing to load
Hi all,
I'm having a bizarr
Hi all,
I'm having a bizarre problem upon application startup where the
ActionServlet is failing to load.
This only happens on our deployment server, and the ActionServlet loads
normally whilst on our dev machine.
Does anyone have on ideas on the below error? I'd be very grateful for any
heaimsgroup.com/?l=struts-user&m=109636066026332&w=2
> -Original Message-----
> From: Robin Mannering [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 20, 2004 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: Bean Constants and JSP EL
>
>
> Hi,
>
> Wonder
Hi,
Wondering if anyone has encountered this before and perhaps a solution :)
I have constants defined in a regular Java bean class. ie.
public static final String STATUS_DRAFT = "draft";
The bean has request scope in the page, no problem there, but I can't reference this
constant value u
Sorry,
Missed a bit on my cut and paste,
Last line og log4j.properties should have read:
log4j.appender.file2.layout.ConversionPattern=%d{dd-MMM HH:mm:ss} %-5p %t%x [%C{1}.%M]
%m%n
-Original Message-
From: Robin Mannering
Sent: 06 October 2004 15:44
To: 'Struts Users Mailing
Hi Laurent,
I use log4j and the following log4j.properties file to achieve this.
It gets the framework logging to one file (ie. struts) and my application logging to
another file
Can change the levels for each as desired as Struts put out a hefty chunk at debug
level... but very useful...
");
}
-----Original Message-
From: Robin Mannering [mailto:[EMAIL PROTECTED]
Sent: 05 October 2004 17:55
To: Struts Users Mailing List
Subject: RE: input form
Hi All,
Just chewing over this problem myself since it was brought up.
The solution is here I believe, yet to implem
Hi All,
Just chewing over this problem myself since it was brought up.
The solution is here I believe, yet to implement it but I'm sure it'll work.
http://struts.apache.org/faqs/newbie.html#prepopulate
Hope this helps, not sure if it repeats what has been said already.
Robin
-Original M
Hi,
Can't say which is best as I have only read Struts in Action: Ted Husted.
I find it invaluable as a reference and very easy to read ! I recommend it. Nice
extra chapters too, especially the chapter on replacing JSPs with Velocity
templates
Robin
-Original Message-
From: Ye, Y
t: RE: ActionError and JSP display
At 1:45 PM +0100 10/5/04, Robin Mannering wrote:
>Hi,
>
>
>I was intending to use ,
>specifying the property for display, but it still doesn't allow me
>to test for it's existence.
>
>
>What I'd like to do is test if an er
t to create the
HTML table row and cell at all.
Is there a way to do this ?
Thanks
Robin
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Jeff Beal
Sent: 05 October 2004 13:40
To: [EMAIL PROTECTED]
Subject: Re: ActionError and JSP display
Robin Mannering wrote:
> H
Hi,
Platorm is : Tomcat 5, Struts 1.1
Context: HTML Form submissions and validation.
I'm trying to conditionally test for the existince of error messages by their keys.
And I'd then like to show the error with HTML formatting around it.
Basically, using tags, I'd like to do the same as the fol
recognises the internal HTML links in association with the HTML page name - myPage.jsp
(due to the use of the element).
Is there a way round this, other than removing the from the doc as this
is not an option?
Robin Mannering
Java Web Developer - Legal & Finance
Tel:01491 418957
35 matches
Mail list logo