Chris,
now I can format my output to the forms. But why is it this strange way.
I had expected that the formatting is
much easier for the textfields...
thank you very much
Marc
Chris Pratt schrieb:
Maybe try:
s:text name=format.currency id=model.currency
s:param
I'm not crazy about the tag libraries that are included with Struts 2,
I've just learned ways to make them work. In this case, what the
work-around is doing is formatting the value and storing it on the
value stack, then referencing it from the textfield for it's value.
It works, but like you
Ignore this. The problem was caused by an unbalanced div tag elsewhere in
the form.
On Tue, Apr 29, 2008 at 5:27 PM, Jukka Välimaa [EMAIL PROTECTED]
wrote:
Hi,
I'm using struts ajax tag tabbedPanel inside a form. I have the following
problem: the tabbedpanel renders outside the form in
Hi
I ve checked all required getters and setters million times but still
nothing.
If i just remove following line from Action-conversion.properites
datePeriodFilterParameters.cos.dateFrom=MyConverter
and change datatype of dateFrom property to String binding is succesfull
and inside execute
Is there a way to do this programmatically rather than declaratively?
Thanks!
Hello Laurie,
thanks for your answer. I don't know if that will help me, but I'll try it out.
Does it make sense to insert
interceptor-ref name=workflow
param name=includeMethodssave/param
/interceptor-ref
in my struts.xml ? Will validate() then be called ?
Volker
Volker
Hi,
I am trying to build a simple login application using struts, spring and
hibernate. I have created a registration page.
When I submit the registration information (i.e. username and password),
Null values are sent for the username and password to the Dao.
Please see below the details
1.
Hi
In my case i also noticed that convertToString method is not called...
So now i have 2 problems:
1) convertFromString is called but convertToString is never called for
datePeriodFilterParameters.dateTo property
2) none of convertFromString and convertToString is called for
Hi all,
I've been struggling trying to get working the s:include with the nested
s:params but I have to give up. It really puzzles me..
My problem is that I have no idea on how to access the parameters from the
included file.
There is a fine example in the struts 2 documentation (
Jakub Milkiewicz wrote:
Hi
In my case i also noticed that convertToString method is not called...
So now i have 2 problems:
1) convertFromString is called but convertToString is never called for
datePeriodFilterParameters.dateTo property
2) none of convertFromString and convertToString is
Environment
Java5
Jboss 4.0.5 and WAS 6.1 Express
Struts 2.1.1
Tiles 2.0.5
Code
added
sx:head /
and
sx:datetimepicker name=endDate displayFormat=dd.MM./
Issue
When I insert not-valid date value (i.e. aaa) and set focus to other
textfield, I get 01.01.1970 to the textfield.
I have read
What would be the desired behavior when a non-date value is entered?
1/1/1970 corresponds to a 'zero' value for dates. This seems like a
sensible response.
On Wed, Apr 30, 2008 at 8:36 AM, Inkwon Hwang [EMAIL PROTECTED]
wrote:
Environment
Java5
Jboss 4.0.5 and WAS 6.1 Express
Struts 2.1.1
oscar perez wrote:
Hi all,
I've been struggling trying to get working the s:include with the nested
s:params but I have to give up. It really puzzles me..
My problem is that I have no idea on how to access the parameters from the
included file.
There is a fine example in the struts 2
Hi Jim,
Thanx for your reply.
Desired options could be:
1. leave entered value - validation is done on server side
2. remove entered value - validation is done on server side
It seems weird that suddenly the field has value 01.01.1970 eventhough it
makes sense for developers but it doesn't for
Thank you for your response;
The Bean is attached and what I invoke from a JSP, the way.
bean:define id=beanSerie name=BEAN_SERIE_CIR
type=com.trapsatur.web.comun.view.BeanResultado/
html:select property=Serie styleClass=txCircuitoSelect
html:options name=beanSerie property=codigo
Thank you for your response;
The Bean is attached and what I invoke from a JSP, the way.
bean:define id=beanSerie name=BEAN_SERIE_CIR
type=com.trapsatur.web.comun.view.BeanResultado/
html:select property=Serie styleClass=txCircuitoSelect
html:options name=beanSerie property=codigo
Hello,
I am new to Struts 2, so please bear with me.
I am looking at implementing a custom StrutsTypeConverter. I want it to
be a global converter (no just specific to an Action). If I'm
understanding it correctly, to implement this I create an
xwork-conversion.properties file, and the
I had the same (or similar) problem, it's caused be the CheckboxInterceptor
not properly handling arrays of checkboxes when none are selected.
I submitted a patch for this issue
https://issues.apache.org/struts/browse/WW-2339 WW-2339 but I don't think
anyone has looked at it yet.
wild_oscar
Exception starting filter action2
2008/04/29 00:59:30 | at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles
from upstair Infomtion, I think it's the problem of filter named action2
Xml files couldn't be found by the filter.
try 2 heck the struts.xml
This should help you
http://struts.apache.org/2.0.11.1/docs/how-do-we-repopulate-controls-when-validation-fails.html
FAQ:How do we repopulate controls when validation fails .
You can use the Preparable interface to load the data from the database.
Validation does not (by default config) run on
Asleson, Ryan wrote:
Hello,
I am new to Struts 2, so please bear with me.
I am looking at implementing a custom StrutsTypeConverter. I want it to
be a global converter (no just specific to an Action). If I'm
understanding it correctly, to implement this I create an
read the struts.xml files, and phrase it
On Wed, Apr 30, 2008 at 5:50 AM, Volker Karlmeier [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello struts freaks,
i would like to implement a rights management for my application. Therefore
I need to retrieve a list of
There is no RegistrationAction Code here.
I think it mostly something wrong in Action.
just print the username password value in the Action, it's no
relation with DAO.
the following is some sample demo for download. Wish it's useful for U
http://www.learntechnology.net
luck,
oscar perez wrote:
Hi Jeromy,
thanks for your quick reply. This was actually my workaround (i.e. to use
s:set to put the values into the value stack). I wanted to use s:param since
nesting the params into the s:include keep things tidy.
PS: s:action is dangerous, s:include makes things difficult
Hi,
How would I define a dispatch action in struts1 ... in struts.xml while
migrating?
newton.dave wrote:
--- Sandy143 [EMAIL PROTECTED] wrote:
With this we will not have ... struts1 config file right
struts-config.xml would be completely modified to struts.xml. Am I on the
right
I have read much about how to access the session from actions and
interceptors, but I still have some confusion about the proper way to do
this so that my session values will be available and replicated properly in
a cluster environment. Specifically, if a user is logged in and making
requests,
but EL is not allowed in Struts tags.
when I use # or $ I get the actual string (not the value).
m...any idea?
wild_oscar wrote:
They are attributes of the displaytag.
current is the id you give to each line in the table:
display:table class=lista name=list pagesize=10
Oh, I'm sorry, I'm using Struts 2.0.9 and I have no problem with EL in tags.
Haven't used 2.0.11. Be sure to post the answer when you find it!
xianwinwin wrote:
but EL is not allowed in Struts tags.
when I use # or $ I get the actual string (not the value).
m...any idea?
there are several topic about OSGI
will S2 or S3 have osgi support
which now i can see SpringMVC support it
F
Thanks Oscar,
I did check on the displayTag (since yesterday)so, I understand that I
need to have something like this:
display:table class=lista name=list pagesize=10 id=current
and the checkBox:
display:columns:checkbox theme=simple name=userCheck
fieldValue='%{myid[current]}'
Hello Everyone :
[Servlet Error]-[org.apache.struts.action.ActionForm]:
java.lang.InstantiationException: org.apache.struts.action.ActionForm
I get this error when I try to migrate from Struts 1.2.8 to Struts2.
I have validations to the form. I am using interceptors for the same.
Please let
but I still have some confusion about the proper way to do
this so that my session values will be available and
replicated properly in a cluster environment.
The Struts 2 session maps are actually just wrappers around the real
underlying session. The methods that return (or set) a
There is a plugin that provides OSGi support:
http://cwiki.apache.org/S2PLUGINS/osgi-plugin.html
regards
musachy
On Wed, Apr 30, 2008 at 12:33 PM, Frans Thamura [EMAIL PROTECTED] wrote:
there are several topic about OSGI
will S2 or S3 have osgi support
which now i can see SpringMVC
Hello Group,
I was building my first HelloWorld web application and it is up and running,
but out of curiosity I
wish to find out the meaing of
%@ taglib prefix=s uri=/struts-tags %
What is the meaning of prefix and uri=/struts-tags % and if I can look at
this file/page.
Similarly in
struts-default.xml can be found in the struts2-core jar (mine is
struts2-core-2.0.11.jar but YMMV).
struts-tags.tld is in the same jar, under META-INF.
On Wed, Apr 30, 2008 at 12:51 PM, Vinay Nagrik [EMAIL PROTECTED] wrote:
Hello Group,
I was building my first HelloWorld web application and
Clustering is the responsibility of the application server. Struts 2
has no role in that. Just follow the general guidelines of clustering
of web applications.
Nils-H
On Wed, Apr 30, 2008 at 6:40 PM, Brad A Cupit [EMAIL PROTECTED] wrote:
but I still have some confusion about the proper way to
Let me try to narrow the scope a little then: Which of the following is the
better way to get the session in an Interceptor:
1. ActionContext.getContext().getSession();
2. ActionContext.getSession();
3. invocation.getInvocationContext().getSession();
4.
First, I should point out that an 'input' result of type 'chain' should
work here. What makes you think it doesn't? You wont get a browser
redirect with chaining, though, so if you want that the
MessageStoreInterceptor can help with preserving error messages.
You can configure which methods
My relevant mapped action look like:
action name=GetLineItem
class=bpf.internalOrders.action.GetInternalOrderLineItemAction
result
name=success/jsp/admin/internalOrders/viewLineItem.jsp/result
/action
action name=UpdateLineItem
Insert it where in your struts.xml? By default it shouldn't be
necessary, since 'save' is not in the default exclude list, so the
answer is that it probably doesn't make sense to insert that.
Without seeing your action code, mapping and other related
configuration, it's really not possible to
My vote goes to option 3.
On Wed, Apr 30, 2008 at 7:24 PM, mojoRising [EMAIL PROTECTED] wrote:
Let me try to narrow the scope a little then: Which of the following is the
better way to get the session in an Interceptor:
1. ActionContext.getContext().getSession();
2.
Sandy143 wrote:
Hello Everyone :
[Servlet Error]-[org.apache.struts.action.ActionForm]:
java.lang.InstantiationException: org.apache.struts.action.ActionForm
I get this error when I try to migrate from Struts 1.2.8 to Struts2.
I have validations to the form. I am using interceptors for the
Vinay Nagrik wrote:
[...]
%@ taglib prefix=s uri=/struts-tags %
What is the meaning of prefix and uri=/struts-tags % and if I can look at
this file/page.
[...]
If you aren't familiar with Servelts, Java Server Pages and Java web
application development in general, I strongly recommend
Hi,
Now I am migrating from struts1 to struts2.
In struts1 I have a homeAction which extends dispatchAction and it uses
homeActionForm.
I have configured it this way in struts.xml:
interceptors
interceptor name=homeActionForm
Sorry ...
This error is produced when I enter something in jsp and click on a button
...
Thanks,
Sandy
Sandy143 wrote:
Hi,
Now I am migrating from struts1 to struts2.
In struts1 I have a homeAction which extends dispatchAction and it uses
homeActionForm.
I have configured it this
Hello ...
I have started to migrate from S1 to S2 using the plugin link.
I have a login page. I am able to start the app with no errors and see the
login page.
The configuration I have done in struts.xml is being uploaded.
When I enter username and password and click on submit I get this
I guess there is some problem with upload: Please find it here
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
package name=XXX namespace=/XXX
Hi folks,
I've run into a problem with Struts 2 validation annotations.
In short -- I have a VisitorFieldValidator on an action POJO named
ProductDetailAction. I have RequiredFieldValidator and
RequiredStringValidator on one field within the visited object.
Now -- ProductDetailAction did not
I'm of the opinion that an exception in my
console means something is amiss though...
you've stumbled upon a little wart in the code. First things first, the
exception is harmless and can be safely ignored.
A more detailed explanation can be found in a comment within
ActionInvocation.getInvocationContext().getSession() or
final HttpServletRequest request = (HttpServletRequest)
context.get(HTTP_REQUEST);
HttpSession session = request.getSession();
will do it in an interceptor. The latter assuming you are implementing
StrutsStatics in the interceptor.
--- Sandy143 [EMAIL PROTECTED] wrote:
Now I am migrating from struts1 to struts2.
What were you doing before?
Please note: your configuration files aren't getting to everybody properly
(me, at least), so it's even more difficult to help. Consider configuring
your email client to send text-only
The latter assuming you are implementing
StrutsStatics in the interceptor.
or using Java 5's static imports :-)
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
I want the results in google format.Any help would be appreciated.
Thanks,
Aarthy
balart wrote:
Hi Aarthy,
you can use the displaytag to implement the pagination in struts2.
kindly tell that, Pagination as in Google? how, you want the page no in
google format or result in google
Let me be clear then ...
I am trying to migrate from struts1.2 to struts2.
I did all the required configuration. I could get the login page.
LoginActionForm is extending ValidatorActionForm. I defined an interceptor
for it in struts.xml. Validation is form based.
BUT when I enter username and
--- Sandy143 [EMAIL PROTECTED] wrote:
Let me be clear then ...
I am trying to migrate from struts1.2 to struts2.
So you're using the S1 Plugin, correct?
Do you understand you will have to re-write all your JSPs to use Struts 2
tags?
LoginActionForm is extending ValidatorActionForm. I
On Wed, Apr 30, 2008 at 11:45 PM, Musachy Barroso [EMAIL PROTECTED] wrote:
There is a plugin that provides OSGi support:
http://cwiki.apache.org/S2PLUGINS/osgi-plugin.html
i just thinking about running Struts2 on Equinox.
f
Hi,
In order to leverage the full capabilities of dojo 1.1
(latest) with the latest stable struts version. What
exactlyt the best practice.
The things we concerned are as followes
1) Will there be a conflict in the different dojo
versions in struts 2.0.11 and dojo 1.1
2) Will it impact any
While I used WebWork-2, and the XWork associated with it, I was able to
programmatically
retrieve action validation using the ActionValidatorManagerFactory.
Now, it seems this class was removed.
Any suggestions on how to programmatically get a ValidatorFactory instance?
Hi,
I have a Struts action that, when invoked, needs to send email to about 50
people. From what I've read in this forum it seems I should use JMS for
this. Any suggestions on which route to take? I'm running Tomcat 5.5.20. Any
pointers? Is this overkill? Better solutions?
Thanks,
Jon
--
View
Spring MVC is taking a significantly different approach than Struts 2,
as I understand it. Their OSGi support allows you to deploy a Spring
MVC-based war into an OSGi container, while the Struts 2 plugin allows
you to build part of your app as an OSGi bundle and deploy it in the
embedded OSGi
If you want the Action to return immediately, and have the emails sent
asynchronously,
then JMS is a definite option.
Another option is the JDK's Timer functionality
(http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html).
--- jwynacht [EMAIL PROTECTED] wrote:
Hi,
I have a
Jay Bose wrote:
If you want the Action to return immediately, and have the emails sent
asynchronously,
then JMS is a definite option.
Another option is the JDK's Timer functionality
(http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html).
I recommend you use Java 5's
tom tom wrote:
Hi,
In order to leverage the full capabilities of dojo 1.1
(latest) with the latest stable struts version. What
exactlyt the best practice.
The things we concerned are as followes
1) Will there be a conflict in the different dojo
versions in struts 2.0.11 and dojo 1.1
Yes,
63 matches
Mail list logo