Hi
Is there a way to include value for textfield tag in struts2 , Im trying the
following :
But I get tld error..
Please let me know how I could use jsp tag in the textfield tag, or let me
know an alternative...
Thanks in Advance,
Tauri.
--
View this message in context:
http://w
I am using Struts 2. I want to open the page in the new window when I click
on an icon. I am using tag and giving action by tag.
i.e., ,/s:url>
This way it is opening an action in same page. I want it in the new window
like in HTML tag we can do it by link .
What
mraible wrote:
I tried [EMAIL PROTECTED] value="text('key')"/]
I've already found that in 2.0.x this OGNL expression executed
getText(String) but in 2.1.x it only matches the method "text(String)".
I'm not sure when that changed in the OGNL implementation, but the new
form seems correct as it's
I tried [EMAIL PROTECTED] value="text('key')"/] and that doesn't seem to work
either. I don't have a struts.xml or struts.properties in my project. I
tried putting the i18n bundle in all packages using it at the Action level
(ActionName.properties), but that didn't work either. Creating a
src/main
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 based format
DateFormat.SHORT via XWorkBasicConverter. For my locale this turns out to
be dd/MM/yy. This is not the format I want.
DateTimeP
Hi,
What are the most popular classes to be used in Struts?
Thanks
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi Matt,
is it only the @s.text tag that isn't working? eg. is @s.property working?
I've suspected there's a problem with the text tag and i18n tag not
finding some resource bundles in the S2.1.1 branch but haven't had a
chance to investigate. There's several related issues in JIRA and I
rec
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, I have:
[EMAIL
"as your build process copies them to the right place on the classpath. I
don't think there's a way to have them in a different folder than the .class
files though"
I don't really have a formal build process for now. So what's in my
/WEB-INF/src folder is going to be in my /WEB-INF/classes folder
goelshek wrote:
For Struts 2:
Does anyone know if it is possible to put the validation.xml for an Action
in a folder other than where the action resides? If I have a 100 java
classes in my action package, I would like their *-validation.xmls to be in
a separate folder such that all .java's are t
manishbel wrote:
Hello,
I am trying to use the Preparable but having some problems while the page is
being rendered. I will try my best to explain the problem, please ask if you
need more information as i might not be able to accurately explain the
problem as i am pretty new to struts2.
Scenar
Neither Commons Validator nor Struts knows how to process XML requests
like that out of the box. Assuming Struts 1, the answer is that you will
have to write your own logic to populate the form bean from the XML
request, after which validation can be performed the same as you would
with a regul
lbastil wrote:
Thank you for the help.
But I could not get it to work.
Here is a code sample from the Action Class:
private Set traegerPermissions;
The class TraegerPermissions itself have another collection:
private Collection einrichtungen;
And both TraegerPermission an
There are examples in the showcase application.
musachy
On Wed, Apr 9, 2008 at 8:55 PM, Jiang, Jane (NIH/NCI) [C]
<[EMAIL PROTECTED]> wrote:
> Is there a complete working example for the tabbedPanel tag? I found
> this example in the tag reference document. How do I set up the result
> for Aj
I hope you have long legs because you're trying to climb 2 very steep
mountains simultaneously
1st) subscribe to tomcat-users list..the folks that answer your question
eat/live and breathe TC 24/7
http://tomcat.apache.org/lists.html#tomcat-users
then of course you'll want to look at getting your T
Hello. To preface I am very new to using Apache. I am attempting to
experiment locally, however I cannot connect to local host nor the
127.0.0.1 directly. I am looking to try and get the "IT works!" Apache
screen to display, but to no avail thus far. I have verified that my
host config file in wind
For Struts 2:
Does anyone know if it is possible to put the validation.xml for an Action
in a folder other than where the action resides? If I have a 100 java
classes in my action package, I would like their *-validation.xmls to be in
a separate folder such that all .java's are together and all .
Is there a complete working example for the tabbedPanel tag? I found
this example in the tag reference document. How do I set up the result
for AjaxTest.action? I loaded the dynamic contents in that action and
directed it to the jsp that displays that content. The action was
invoked, but the ta
the synchronized is not needed
Adam Hardy wrote:
Actually I use it in a static method on a utility class, and call
SimpleDateFormat inside a synchronized block.
Brad A Cupit on 09/04/08 13:51, wrote:
Consider placing the SimpleDateFormat as a local variable
exactly right
or, consider using
Actually I use it in a static method on a utility class, and call
SimpleDateFormat inside a synchronized block.
Brad A Cupit on 09/04/08 13:51, wrote:
Consider placing the SimpleDateFormat as a local variable
exactly right
or, consider using a ThreadLocal
or, consider using commons-lang's Fas
If you dont mind using freemarker you can always use
exception-interceptor.html
http://struts.apache.org/2.x/docs/exception-interceptor.html
M--
- Original Message -
From: "Rajeev Sharma" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, April 09, 2008 1:59 PM
Subject:
ResultTypes are illustrated here
http://struts.apache.org/2.x/docs/result-types.html
Is there anything specific you were looking for?
Tak/
Martin-
- Original Message -
From: "Ian Meikle" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, April 09, 2008 1:40 PM
Subject:
Hi Jeromy,
Thanks for the help. I tried to do the same thing with an xml file.
Instead of using failed.jsp, I returned an xml file failed.xml with some
hard coded error message and error code.
What if the file upload interceptor returned "input" for some other
reason? I would be returning the err
Hi Lukasz,
Thanks very much for that. This has given me the info I needed.
Regards
Ian
CSC Solutions Norge AS
Registered Office: Sandsliåsen 57, 5254 Sandsli, Norway
Registered in Norway No: 958 958 455
---
> Well this give me some info, but for example
> it does not explain what all the valid values of the "type" attribute are
> and what each value means.
>
> Is this documented anywhere ?
Look into the struts2-core.jar and find struts-default.xml, that will
give more information, then you can loo
Well this give me some info, but for example
it does not explain what all the valid values of the "type" attribute are
and what each value means.
Is this documented anywhere ?
Regards
Ian
All this is linked right from the Core Developers Guide at
http://struts.apache.org/2.x/docs/guides.html. Click the result types link
and there you go.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
> From: Ian Meikle <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mail
Hi,
Can anyone point me to where the seperate sections of the struts.xml file
is described ?
I am specifically looking at what the valid values in the element are ?
Many thanks
Ian
---
>> Consider placing the SimpleDateFormat as a local variable
exactly right
or, consider using a ThreadLocal
or, consider using commons-lang's FastDateFormat
http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/
FastDateFormat.html
Brad Cupit
Louisiana State University - UIS
e-
Consider placing the SimpleDateFormat as a local variable (within the
method) to avoid non-thread safe operations (guaranteed by the jvm spec).
Brad A Cupit wrote:
the static SimpleDateFormat (assuming this code is in an S2 Action that
is instantiated per request) is not thread safe.
http://j
the static SimpleDateFormat (assuming this code is in an S2 Action that
is instantiated per request) is not thread safe.
http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html#sy
nchronization
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Zoran Avtar
This line:
should read:
The first from instructs the container to evaluate the expression as EL.
The second form instructs the tag to evaluate the expression as OGNL.
You must be using struts < 2.0.10 as the first form is no longer
permitted within struts tags.
Assuming your deployments
Rajeev Sharma wrote:
When I try to upload a file which is bigger then the max allowed size,
the file upload interceptor returns "input" and the control does not
come to the execute method of my action class. In this case I can
redirect the result to some JSP, to some other action etc, but how do
Also, consider to inject the format in your IoC container (Guice,
Spring, etc).
Zoran Avtarovski wrote:
We had the same issue and went with writing a new converter (shown below).
And then created a xwork-conversion.properties file pointing to it.
Z.
private final static SimpleDateFormat D
hi...
i am using tag lib in struts 1.3.5, I am in a
requirement that we need to give the names of the html form components
dynamically...(ie)
if i say
above code goes inside an interation
the html outputs as
hi
try it
View Your Account
My english is not good
hope this can help you
gordian
On Wed, Apr 9, 2008 at 6:00 PM, ancatdubher <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I use the Struts 2 tag to generate my URLs.
> For example to generate the URL /account/view.action, I do:
>
>
> View
Hi,
I use the Struts 2 tag to generate my URLs.
For example to generate the URL /account/view.action, I do:
View Your Account
But each click on this URL inserts an extra "namespace" prefix into the
generated URL.
I mean, after clicking 5 times on the "View Your Account" link, my addres
37 matches
Mail list logo