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, t
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 concurren
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 ha
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 cont
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
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,
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 stru
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
--- 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
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
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
> 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,
--- 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-onl
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.
Regards,
> 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
ObjectFactory.buildResult
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 guess there is some problem with upload: Please find it here
http://struts.apache.org/dtds/struts-2.0.dtd";>
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 error
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
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:
com.XXX.XXX.HomeActionForm
homeActionForm
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 recommen
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 sam
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. ActionConte
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 relevant mapped action look like:
/jsp/admin/internalOrders/viewLineItem.jsp
GetLineItem
/admin/internalOrders
true
${id}
The 'GetLineItem' action works correctly when given an 'id' parameter. No
exce
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. ServletActionContext.getRequest().getSes
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 sk
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
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
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 s
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
> 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
HttpServle
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 me
Thanks Oscar,
I did check on the displayTag (since yesterday)so, I understand that I
need to have something like this:
and the checkBox:
but: '%{myid[current]}' doesn't work.
this works: '%{myid[0]}'
'%{myid[1]}'
'%{myid[2]}'
so in other words I just do
there are several topic about OSGI
will S2 or S3 have osgi support
which now i can see SpringMVC support it
F
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?
>
>
>
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:
>
>
>
> Check the displaytag's documentation for more in
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, an
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 t
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
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,
##
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
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
xwork-conversion.prop
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 re
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 fi
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 wr
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 fo
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 to refactor,
dojo plu
Thank you for your response;
The Bean is attached and what I invoke from a JSP, the way.
Any help, thank
*** Bean ***
/*
* Created on 12-ago-2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package
Thank you for your response;
The Bean is attached and what I invoke from a JSP, the way.
Any help, thank
-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] En nombre de Laurie Harper
Enviado el: martes, 29 de abril de 2008 18:28
Para: user@struts.apache.org
Asunto: Re:
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 f
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 documentatio
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
Environment
Java5
Jboss 4.0.5 and WAS 6.1 Express
Struts 2.1.1
Tiles 2.0.5
Code
added
and
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 about DateTimePicker issues from Struts2 issue tracker Jira
(https
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 called
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 (
http://struts.apa
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
datePeriodFilterParam
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. Reg
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
save
in my struts.xml ? Will validate() then be called ?
Volker
Volker Karlmeier wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello stru
59 matches
Mail list logo