I just try it last weekend.
The new feature in 2.0.5 is nice (mostly because now it is using new Dojo).
There are tips I have faced:
1, the datepicker has been replaced by datetimepicker
2, panel has been removed and replaced by div. And the refreshOnShow
attribute is ignored now.
3, a bug in sel
I replaced the tags with plain text and it displays when I call the url
directly and asynchronously.
Musachy Barroso-2 wrote:
>
> That should be it. Just to make sure it is not related to the errors or
> the messages, replace the with some fixed text, and
> see if that text is showing up.
>
I read trough your blog entry. This is brilliant.
I'm a groovy newbie myself and I plan to tinker with Groovy actions.
Perhaps s2 might end up becoming a nice web platform for Groovy
in addition to Grails.
On 2/13/07 3:22 PM, "Ian Roughley" <[EMAIL PROTECTED]> wrote:
> Very cool. If only Gro
--- Mark Menard <[EMAIL PROTECTED]> wrote:
> "Dave Newton" wrote:
>> Can Interceptors be Spring Beans (without
>> hackery)?
> Yes, just wire it up in your application context. I
> use to inject a service bean into an interceptor
that
> handles retrieving user menu's based on role.
Great; thanks...
I'd like to be able to add a Last-Modified header to a response when
returning binary data from a struts2 action...
I assume the right place to add this would be to
org.apache.struts2.dispatcher.StreamResult. I guess I could always add
it myself in a custom subclass, but that seems silly if y'a
I will try that.
Thanks a lot for your input.
Harsh.
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 13, 2007 5:05 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.3 pain
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Harsh,
Chaudha
Yes, cool stuff.
You might also be interested in:
http://www.vim.org/scripts/script.php?script_id=490 ;-)
Tamas
On 2/14/07, Mark Menard <[EMAIL PROTECTED]> wrote:
I've recently started using Groovy in my Struts 2 project to write my
actions. After some experience with it, I've written up a bl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Harsh,
Chaudhary, Harsh wrote:
> There is no specific reason, But we have one custom validation, So is it
> good practice to revamp the entire the validator.xml file then?
Well, there's no reason to put everything into one file. I had this same
probl
On 2/13/07 3:22 PM, "Ian Roughley" <[EMAIL PROTECTED]> wrote:
> Very cool. If only Groovy supported annotations so that the
> configuration didn't need to be in the struts.xml file (but it looks
> like annotation support is starting).
Ian,
>From your lips to G_d's ears. I can't wait for annotat
On 2/13/07 3:21 PM, "Dave Newton" <[EMAIL PROTECTED]> wrote:
> Can Interceptors be Spring Beans (without hackery)?
Yes, just wire it up in your application context. I use to inject a service
bean into an interceptor that handles retrieving user menu's based on role.
Mark
---
There is no specific reason, But we have one custom validation, So is it
good practice to revamp the entire the validator.xml file then?
Any other gotchas from someone who has migrated a 1.2 app to 1.3?
Harsh.
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chaudhary,
Chaudhary, Harsh wrote:
> I am trying to convert a Struts 1.2 app to Struts 1.3.
[snip]
> I have the validator.xml, validator-rules.xml and errors.properties
> intact from my Struts 1.2 version.
Is there a reason to keep your old validat
Hi Ian,
I put the Logon_* in
Because First a welcome page is displayed with the link ">Sign On and then validation is passed for the
first time because input method does not have any validation effect.When sign
on link clicked ,login.jsp is displayed.
I have removed all the _* configura
I am trying to convert a Struts 1.2 app to Struts 1.3.
Method definitions for custom validation in validator-rules.xml
Struts 1.2 Version
Struts 1.3 Version
In Struts 1.2 version I did not have to pass the Validator object for
the required field. But with 1.3 am being forced to do so, i
I want portal like capability where a user can change or create fields .
I want to add functionality through which a user can add more fields or
remove fields or change the display name of the field like portal page, where
a user can create a form just with drag and drop,
I would create a constructor in the action, and place a
breakpoint/logging statement in there to make sure the correct action is
beng called. In the HTML you have:
So the action should be /Logon.action, but your configuration is:
Which would seen to imply that the action attribute in the
here is an example:
Action:
public GetIdAction {
private int id;
public String execute() {
id = 10;
return SUCESS;
}
public int getId() {
return id;
}
}
mapping:
/view/Section/hello.ftl
on the ftl file:
${id}
dojo.io.bind({
url: "/hello.action",
That solved it.
Dave Newton-4 wrote:
>
> Run the included retrotranslator on the plugin jar.
>
> --- kedgecomb <[EMAIL PROTECTED]> wrote:
>
>>
>> I found the struts2-spring-plugin.jar in the
>> showcase war but it only works
>> for SDK 1.5
>>
>> We're using SDK 1.4 and the 1.4 versions of
Hi !
Musachy ?
I'm getting the renderized view-result on my "divtest".. when I expect
to get the "hello from action!!" string...
I'm not sure about my action mapping..
I'm trying to follow the examples but getting no success. :S
My action code:
public String hello() {
return "hello f
Hi All,
I am evaluating struts2 and have developed a sample application using j4
similar to builtin struts2-blank application.When I submit jsp form the
fallowing error occured:
...
...
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
catched: Error setting
Run the included retrotranslator on the plugin jar.
--- kedgecomb <[EMAIL PROTECTED]> wrote:
>
> I found the struts2-spring-plugin.jar in the
> showcase war but it only works
> for SDK 1.5
>
> We're using SDK 1.4 and the 1.4 versions of the
> Struts2 api and core jars
> and they have worked wel
Very cool. If only Groovy supported annotations so that the
configuration didn't need to be in the struts.xml file (but it looks
like annotation support is starting).
/Ian
Mark Menard wrote:
I've recently started using Groovy in my Struts 2 project to write my
actions. After some experience
Can Interceptors be Spring Beans (without hackery)?
Dave
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
That should be it. Just to make sure it is not related to the errors or
the messages, replace the with some fixed text, and
see if that text is showing up.
musachy
kedgecomb wrote:
I am using a single taglib directive:
<%@ taglib prefix="s" uri="/struts-tags" %>
Is there something
I am using a single taglib directive:
<%@ taglib prefix="s" uri="/struts-tags" %>
Is there something else I need? Also, I get the messages correctly if I
call the url directly, (not using an async call).
I will try the Firebug suggestion.
Musachy Barroso-2 wrote:
>
> The ajax requ
I'm getting the same error as this guyhas anybody encountered this
before and fixed it?
Thanks,
Dennis.
On 1/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I have a struts application that is using tiles and weblogic. When I try
to use a multipart form I get the Servlet Exception l
On 2/13/07 12:54 PM, "Don Brown" <[EMAIL PROTECTED]> wrote:
> Very cool. Please add a link in our Struts 2 wiki [1] to it for
> future reference.
Done. I also added some of the other writeups I've done.
Mark
-
To unsubscribe,
The ajax request is handled just like any other request (its
asynchronous nature is only related to the client). So whatever the
action outputs, it will be sent to the client and inserted inside the
div. Use Firebug to see what is the return of the ajax call, plus make
sure the jsp fragment has
> I wondered what is the struts tag equivalent of this JSTL to retrieve
> the first element from an arrayList:
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
> scope="page" />
> scope="page" />
>
> Where regionList is of type ArrayList
>
> Looking at the online guides I
Thank you guys, I'll try it..
Excuses for double-sending mail.. I didn't receive my own first msg..
Thanks a lot
-Mensagem original-
De: Musachy Barroso [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 13 de fevereiro de 2007 15:20
Para: Struts Users Mailing List
Assunto: Re: Aja
FYI, if you *do* want or need to return XML, there is one way to make it
at least a little less painful: the JavaScript implementation of Commons
Digester JSDigester:
http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/jstags/JSDigesterTag.html
Full-blown example can be seen in the J
I have been using the actionErrors and actionMessage features of Struts2 for
some time and they have worked well for providing user feedback, (e.g.;
"Business Center deleted successfully", "User already exists with this ID",
etc.). I add the error or the message in the action class like so:
If you are making the call using the anchor or submit tag in the ajax
theme, the returned text is available as a parameter(first parameter,
when "type" is load) to the "notifyTopics", see:
http://cwiki.apache.org/WW/ajax-tags.html
If you are going to use Dojo directly,:
dojo.io.bind({
Darn copy/paste, here is corrected code -
In FooAction.java -
public class FooAction extends ActionSupport {
private String result ;
public String execute() {
Foo foo = new Foo();
String newResult = foo.bar();
this.setResult(newRe
Hi all,
How do I get the return of a spring created object( UserService... or
UserAction.. )?
Suppose that I need the inserted userId after an ajax call to
insertUser(..) method..
How it is possible?
-
To unsubscribe, e-mail:
Struts 1 or Struts 2?
Assuming Struts 2, I'll answer as best as I can.
You'll have to code an action around calling this 'method.' For instance,
say the method you want to call is in a class called Foo and the method is
called bar(). If the result of bar() is a String and this result is what
you'
Hi to all, i need some help with a intenationalization. I have a file named
package.properties in the folder where i have located the actions.
The localization is not working in actionerrors, i have the following code
in the action:
addActionError("myapplication.registration.error.userNameNotFound
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rapsy,
rapsy wrote:
> Also, is there any other better approach to prepopulate the drop down list?
> Should I just make call to database from jsp page.
You should have an action whose job it is to setup the request for this
kind of thing. Consider thi
Very cool. Please add a link in our Struts 2 wiki [1] to it for
future reference.
Don
[1] http://cwiki.apache.org/confluence/display/S2WIKI
On 2/13/07, Mark Menard <[EMAIL PROTECTED]> wrote:
I've recently started using Groovy in my Struts 2 project to write my
actions. After some experience w
I've recently started using Groovy in my Struts 2 project to write my
actions. After some experience with it, I've written up a blog entry with
some quick examples.
http://www.vitarara.org/cms/node/95
Mark
-
To unsubscribe, e-ma
Hi all,
I am using struts 1.1 version for my application.
I have to prepopulate drop-down lists on various jsp pages.
The approach I am taking right now is in the reset method I make a call to
database which returns me all the values for a list..for example it returns
me all states.
Then I pu
I found the struts2-spring-plugin.jar in the showcase war but it only works
for SDK 1.5
We're using SDK 1.4 and the 1.4 versions of the Struts2 api and core jars
and they have worked well for us. Anyone know where to find a 1.4 version
of the plugin?
Takekazu Omi wrote:
>
> Now I had sam
Hi all
I want to make an ajax call to a method and get its returning.. (for use
in a javascript fragment)
For example: I want to get the Id for the inserted person (in an ajax
insert..)..
How it is possible?
This method could be in an action or directly in my Service class..
Thanks in adv
Hi All
The Java Web User Group (JAVAWUG, LONDON) is holding a web framework
smackdown
BOF 24 at Skills Matter's offices in London on 19 Feb 2007. At the
moment we have
representatives for RIFE, Spring MVC, and standard API. Hey! If someone
wants
to rock the house with Struts 2 or Wicket demos and
Hi Guys,
I need a help regarding Ant scripts.
I have got a huge Java application. Each time I modify some files I have
to redeploy the EAR file. I don't want this.
I want to automate the deployment process using Ant Scripts But I don't
have any knowledge about the same.
Could u please hel
Hi,
I'm very sorry if this question has already been asked, but I would like to
know how to migrate from 2.0.1 to 2.0.5 and if it is not risky.
I have already started my project in 2.0.1 and it works well (it took time
to make it work well)... I have few concerns about staying at 2.0.1 or
migratin
We dropped the "tab" tag because the "div" tag has the same attributes.
You are right, the "refreshOnShow" attribute is ignored right now. It
will be fixed for 2.0.6 or 2.0.7.
thanks
musachy
Shuai Zheng wrote:
Dear All,
I have submitted an issue ww-1730 to JIRA (
https://issues.apache.org/st
Hi to all, i need some help with a intenationalization. I have a file named
package.properties in the folder where i have located the actions.
The localization is not working in actionerrors, i have the following code
in the action:
addActionError("myapplication.registration.error.userNameNotFound
> Hi to all, i need some help with a intenationalization. I have a file
> named package.properties in the folder where i have located the actions.
> The localization is not working in actionerrors, i have the following code
> in the action:
>
> addActionError("myapplication.registration.error.user
--- í©ì±ì¤ <[EMAIL PROTECTED]> wrote:
> I don't have found the
> struts2-spring-plugin-2.0.5.jar. Where is it?
Showcase application has one.
Dave
Any questions? Get answers on any topic at www.Answers.yah
It would be good to identify if you can show your bean structure too.. This
more or less seems to be a problem with the structure of bean you are trying
to access.
On 2/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi I am trying to nested:iterate fro looping through am hashMap of
Hashma
51 matches
Mail list logo