Thank you Timothy, I've suspected something like that. Of course
anyone can read Date from String but the question was is this behavior
a bug or a feature.
Musachy:
s:datetimepicker has attribute displayFormat but not format. Of
course it's not user friendly format thus I can't really use it in
Hi,
I'm french and I want to display date using struts2 taglib. So I wrote
the following code in my jsp :
s:date name=parameters.event.date format=EEE dd MMM
nice=false /
and the result is :
lun. 01 d?c. 2008
Because I'm french, I get the char '?' instead of 'é'
When using
just for infomation, the struts version i use is 1.2
Regards
Elyes
-- Forwarded message --
From: elyes sallem [EMAIL PROTECTED]
Date: 2008/12/2
Subject: populate pb of the selected Item
To: Struts Users Mailing List user@struts.apache.org
Hello,
i have a page, in which there
I'm developping a web based application using struts. There, i need to handle
sessions and other relevant stuff. can somebody plz let me know all about
this with essential examples. I was googling and still unable to find
relavant solution. since im not using a action mapping class, it is hard to
Few findings:
http://struts.apache.org/2.0.14/docs/type-conversion.html
at section Built in Type Conversion Support documentation says:
XWork will automatically handle the most common type conversion for
you. This includes support for converting to and from Strings for each
of the following:
--- On Wed, 12/3/08, mthalis wrote:
I'm developping a web based application using struts. There, i need to
handle sessions and other relevant stuff. can somebody plz let me
know all about this with essential examples. I was googling and still
unable to find relavant solution. since im not
--- On Tue, 12/2/08, Andreas Mähler wrote:
Normally, you would go for the ordinary
s:select-Tag [1], but I am not using it, because it
is buggy[2]. You can also do it by hand like I
do:
[2] https://issues.apache.org/struts/browse/WW-2758
Just as a point of clarification for the original
Hmm, I'm not sure I understand the question at all.
1) What version of struts are you in? Since you are referring to needing to
understand how to use Sessions I assume struts 2, since struts 1 would be
obvious, the action class has a request object you can get the session from.
2) What do you
I should be more explicit. When I say I recommend avoiding using sessions with
struts2 of course I meant I recommend avoiding implementing SessionAware. When
Possible I try to do it the way I outlined using session scoped spring
injections. (makes testing a whole lot easier too)
Al
--- On Wed, 12/3/08, Fogleson, Allen wrote:
In the case of using Sessions with Struts2 - by the way I
would recommend avoiding this - [...]
Why?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
--- On Wed, 12/3/08, Fogleson, Allen wrote:
I should be more explicit. When I say I recommend avoiding
using sessions with struts2 of course I meant I recommend
avoiding implementing SessionAware. When Possible I try to
do it the way I outlined using session scoped spring
injections. (makes
I knew I was going to get that question...
IMHO - I don't like tying myself down to Sessions. One of the nicest things
about struts2 was that it got rid of that so I can test easily outside of a web
container. Also I have found that 99% of the time I don't even need the
session, I need a
:)
As I just said in my reply. YMMV.
I tend to do a lot of Struts2/Spring and have an bunch of core code that I put
into the code base to start with. Its sort of like the ant vs maven debate :)
Al
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
--- On Wed, 12/3/08, Fogleson, Allen wrote:
IMHO - I don't like tying myself down to Sessions.
Hmm, I guess my opinion is that in S2's case you're really only tied to a Map,
but I understand where you're coming from.
Dave
-
Taking a look to this
https://issues.apache.org/struts/browse/WW-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
I understand the notify is going to be called anyway, either the
validation it's ok or not. Then the only way to avoid the notification
is using javascript to
Hi,
I would like to check if my unit equal to percent cahr (%) to replace it by
%25 in my url in order to allow to get this value during the auto decoding
url by my browser.
In use the folling code :
s:if test=%{unit} == '%'
// Special code here to replace % by %2( in my url
/s:if
But it does
http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html
--- On Wed, 12/3/08, Craftyman [EMAIL PROTECTED] wrote:
From: Craftyman [EMAIL PROTECTED]
Subject: S:If test with percent car
To: Struts Users Mailing List user@struts.apache.org
Date: Wednesday, December
Thanks for your quick answer
2008/12/3 Dave Newton [EMAIL PROTECTED]
http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html
--- On Wed, 12/3/08, Craftyman [EMAIL PROTECTED] wrote:
From: Craftyman [EMAIL PROTECTED]
Subject: S:If test with percent car
To:
Hello,
I'm wondering if the older style velocity tags of the following form are
still supported:
- #tag( *tagname* label='login.submit' align=right ) - where *tagname *is
something like TextField, Password or Submit.
I have a hunch that there is some special configuration that is necessary
Struts implements some magic so velocity can use the struts tags:
http://struts.apache.org/2.0.14/docs/velocity-tags.html
I think for that magic to work you need to use the #sXYZ format.
musachy
On Wed, Dec 3, 2008 at 11:35 AM, carlo latasa [EMAIL PROTECTED] wrote:
Hello,
I'm wondering if
Hello musachy,
Thanks for the reply. I've read that link (along with lots of other docs on
struts.apache.org) and was looking for a way to get the old tags to work. My
client has an application that has hundreds and hundreds of .vm files all
using that older syntax. I'd really like to avoid
These are the classes you might want to look at:
core/src/main/java/org/apache/struts2/views/DefaultTagLibrary.java
core/src/main/java/org/apache/struts2/views/velocity/*
As far as I know, only the struts tags work with that syntax, but it
is very easy to add new tags.
musachy
On Wed, Dec 3,
Hello,
I'm trying to get my Velocity Tags to use a properties file for labels.
This is so my .vm files can make calls like this:
#stextfield( label='member.username.label' name=username size=25)
Where the label would come from the properties file entry with the name
of :
thus far Struts is committed to dojo but this commitment is bound by including
struts2-dojo-plugin-2.1.2.jar..
can you offer any suggestions on implementing (other JS libraries) Prototype
to a struts-Prototype.plugin
Thanks!
Martin Gainty
__
If you are using 2.1, you can use the builtin ajax validation which is
not tied to Dojo:
http://struts.apache.org/2.0.14/docs/ajax-validation.html
musachy
On Wed, Dec 3, 2008 at 4:13 PM, dusty [EMAIL PROTECTED] wrote:
It seems like you are committed to the dojo route so the validation is an
hi all!
I use jquery framework and I need to turn off dojo because I'm having many
bugs.
How I can make this?
Thanks!!!
I tried s:head theme=sample / but don't work.
On Wed, Dec 3, 2008 at 11:34 PM, Danilo Barsotti [EMAIL PROTECTED]wrote:
hi all!
I use jquery framework and I need to turn off dojo because I'm having many
bugs.
How I can make this?
Thanks!!!
You'll have to write a Struts plugin for JQuery first
http://www.nabble.com/Custom-Tags-for-Struts2-td14289600.html
HTH
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of
hi there,,
is there a way to redirect from
http://localhost:8080/cimeng/kuga http://localhost:8080/cimeng/beceel
to
http://localhost:8080/cimeng/ goog_1228353173619profile.action?name=kuga
how to take the name kuga
for profile.action?name=kuga
thanks
--
Kurniawan
Meruvian
BlueOxygen Workspace
--- On Wed, 12/3/08, Danilo Barsotti [EMAIL PROTECTED] wrote:
I use jquery framework and I need to turn off dojo because
I'm having many bugs.
How I can make this?
What kinds of errors are you getting, under what circumstances, and which
version of Struts? We have a couple S2.0.11 apps
I use 2.1.3-SNAPSHOT with JQuery without issue. Just don't include the
plugin. Are you by chance using another framework like Appfuse with Struts?
newton.dave wrote:
--- On Wed, 12/3/08, Danilo Barsotti [EMAIL PROTECTED] wrote:
I use jquery framework and I need to turn off dojo because
You may want to look at the ActionMapper interface.
See here
http://www.nabble.com/URL-Mapper-Best-Pracitices-Question-td19523090.html#a19533299
Jeremy's response
and here:
http://www.nabble.com/Custom-URL-in-Struts-2-td12160278.html#a12166651
talks about the difference between
Yes its working now.
Thank you very much.
On Tue, Dec 2, 2008 at 4:11 PM, Lukasz Lenart
[EMAIL PROTECTED]wrote:
2008/12/2 Faraz Ali [EMAIL PROTECTED]:
My struts version is struts 2.0.11.2.
Below is my decorators.xml file:
decorators defaultdir=/decorators
excludes
+1 on SessionAware. It doesn't get much easier than:
public void setSession(MapString, Object stringObjectMap) {
}
to mock for testing.
Session use as a design pattern is a different issue. Struts2's conversion
and parameter handling makes it pretty easy to make each transaction as
lt;s:form action=myAction/#p gt;
...
Kibo wrote:
Hi konference
I use Struts 2.0. I need submit form with anchor. I know that stuts tag
form dont support atribute anchor, but how do I do it?
describe:
I have long form. I have two submit buttons inside.
First button has label
Hi All,
How to add a anchor href to a tree node? I tried few options but none
working.
I first tried like below:
s:iterator value=*myList* status=*stat*
s:url id=*myUrl* action=*MyAction*
s:param name=*action*7/s:param
/s:url
s:treenode theme=*ajax* id=*%{#stat.index}* label=s:a
Hi All,
I have defined few constants in interface and enum. Now i want to access
these in my jsp. How to do this? Because when i am trying to do %=, its
saying that expressions are not allowed. How to do this in very struts2
style?
--
Best Regards,
Faraz Ali
37 matches
Mail list logo