I want to add validations to my forms. But the problem I have is in
these forms I have notify actions, and this notifys should only be
called if the validation is ok.
for example:
The form action:
listOrders
O
Before return from Action class set dataObject to null.
public MyAction{
private DataObject myDataObject;
//something code
public String execute(){
myDataObject = null;
return "success";
}
public getMyDataObject(){
return myDataObject;
}
}
mthalis wrote:
>
> After enter
place in struts besides
> configuration file where we have to make an entry of the forward?
>
>
>
> Regards,
>
>
>
> __ NOD32 3656 (20081202) Information __
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
--- On Tue, 12/2/08, mthalis wrote:
> After entering data to the form, if it success, it will
> redirect to the same page. When it comes to that page
> the entered data are still the same.
> [...]
That's because you're not redirecting, you're forwarding. If you want to
redirect you need to set th
ng on an application, which is developed with struts 1.2.9.
>>
>> I added a .jsp page and action against that page. Now the problem is: if
>> in
>> struts-config.xml, I specify the path of page with .jsp, it works. But
>> with
>> .do extension it doesn't wo
2008/12/2 hello_everyone <[EMAIL PROTECTED]>:
> i have it like this
>
> action
> *.do
>
Show alos your struts-config.xml for that action
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
//it works if it change it .jsp
and add one more level //from path
On Tue, Dec 2, 2008 at 1:21 PM, Lukasz Lenart
<[EMAIL PROTECTED]>wrote:
> 2008/12/2 hello_everyone <[EMAIL PROTECTED]>:
> > i have it like this
> >
> > action
> > *.do
> >
>
> Show alos your struts-config.xml for that action
Hi,
just add all jar files bundled with the distribution (as you can see in
showcase application).
Required minimum is commons-logging, ognl, freemarker, struts2-core and
xwork.
Anshuman Nanda wrote:
>
> Hi esemba,
>
> From other dependancies I mean any new jar file which I have to take
--- On Tue, 12/2/08, KE LI wrote:
> public class welcome implements Action {
>private List paramList;
>setters
>public String execute() throws Exception {
> paramList = new ArrayList();
> return SUCCESS;
>}
> }
>
> Then if I input the
the problem seems to be : jsp pages are not in web-inf. but all other pages
are working with .do except the one which i added.
On Tue, Dec 2, 2008 at 2:06 PM, Lukasz Lenart
<[EMAIL PROTECTED]>wrote:
> 2008/12/2 hello_everyone <[EMAIL PROTECTED]>:
> > > type="mypackage.TestAction"
> >
I think some thing is wrong at these lines,
ViewTestedLetters
/admin
1
Your mapping should be like,
ViewTestedLetters
All the best,
-Original Message-
From: holod [mailto:[EMAIL PROTECTED]
Sen
Hi Dave,
Thanks for your quick reply. Suppose that I input this link
"xxx/welcome.do?param1=hello¶m2=world¶mList=element1¶mList=element2¶mList=..."
into the link bar in the browser and run it. How can S2 knows to put "hello"
into param1 and "world" into param2 in the welcome action object?
Coul
If someone has experienced problems with struts2 applications running on oc4j
please
give a hand.
What tests can I do in order to identify de precise problem with oc4j?
Thanks!!
Tomi21 wrote:
>
> OK, good news!!
>
> I've installed a fresh apache tomcat 6.018 and everything is working now.
> T
doesn't work. Is there any other place in struts besides
configuration file where we have to make an entry of the forward?
Regards,
__ NOD32 3656 (20081202) Information __
This message was checked by NOD32 antivirus system.
http://www.ese
KE LI-2 wrote:
>
>> I think some thing is wrong at these lines,
>>
>>
>> ViewTestedLetters
>> /admin
>> 1
>>
>
>
Nabble swallowed my tags, I've replaced them on [ and ]
http://www.nabble.com/Problem-wh
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 "Save" and save values from form. It work correct.
Second submit but
Hi esemba,
From other dependancies I mean any new jar file which I have to take
apart
from struts2-core-2.0.14.jar. My question was because I am nearly 6 version
behind right now on 2.0.8, so migrating to 2.0.14 I see as an Issue as I am
not sure what else in terms of jar files I need t
2008/12/2 Anshuman Nanda <[EMAIL PROTECTED]>:
> I am using the Validation Files and not annotations.
So, without client-side validation enabled, your server-side
validation is working? If you enter some dummy data to your form, you
will get an error message?
Regards
--
Lukasz
http://www.lenart.
--- On Tue, 12/2/08, hello_everyone wrote:
> I am working on an application, which is developed with
> struts 1.2.9.
>
> I added a .jsp page and action against that page. Now the
> problem is: if in struts-config.xml, I specify the path of
> page with .jsp, it works. But with .do extension it doe
2008/12/2 Faraz Ali <[EMAIL PROTECTED]>:
> My struts version is struts 2.0.11.2.
>
> Below is my decorators.xml file:
>
>
>
> /styles/*
> /scripts/*
> /images/*
>
>
> /*
>
>
You should add also this:
/*ajax=true*
/scripts/dojo/*
/struts/dojo/*
/resources/*
2008/12/2 hello_everyone <[EMAIL PROTECTED]>:
> type="mypackage.TestAction"
> scope="session" validate="false">
>
> //it works if it change it .jsp
> and add one more level //from path
>
Could you show how this action is configure?
Regards
--
Lukasz
http://www.lenart.org.pl/
---
--- On Tue, 12/2/08, KE LI wrote:
> Suppose that I input this link
> "xxx/welcome.do?param1=hello¶m2=world¶mList=element1¶mList=element2¶mList=..."
> into the link bar in the browser and run it. How can S2 knows
> to put "hello" into param1 and "world" into param2 in the
> welcome action object?
admin{1}
2008/12/2 ravindra <[EMAIL PROTECTED]>
> I think some thing is wrong at these lines,
>
>
> ViewTestedLetters
> /admin
> 1
>
>
> Your mapping should be like,
> ViewTestedLetters
>
> All the best,
>
>
When I try to redirect action and set parameter value to it, I get an
exception:
[02.12.08 12:11:33:705 MSK] 0031 OgnlUtil W
com.opensymphony.xwork2.util.OgnlUtil internalSetProperty Caught
OgnlException while setting property 'page' on type
'org.apache.struts2.dispatcher.ServletActionRe
Hello all,
I've got an older application built using xwork (1.x) and Velocity for all
of the html presentation pages. It also made use of several custom velocity
tags/directives that used the webwork based VelocityManager as well as the
velocity.app.VelocityEngine to build Templates.
On the actu
Greetings Lukasz,
My validation are working fine from server-side using the same
validation files. I haven't had any issues there till now. The only issue
that I am facing is non-generation of client side javascript for validation.
Regards
Anshuman Nanda
-Original Message-
After entering data to the form, if it success, it will redirect to the same
page. When it comes to that page the entered data are still the same. I want
to clear those data from my form. But if it fails i want to remain my data
as it is. How can i do it?
this is my part of the struts-config.xml p
Hello all,
I've got an older application built using xwork (1.x) and Velocity for all
of the html presentation pages. It also made use of several custom velocity
tags/directives that used the webwork based VelocityManager as well as the
velocity.app.VelocityEngine to build Templates.
On the actu
Hi all,
I'm using Struts 2.0.14.
I'm experiencing the following problem:
I tried to use datetimepicker in sample application and it worked fine
except that the java.util.Date property does not retrieve the new
value selected in the interface.
I don't have more time today to check this out and will
Morning All,
I am configuring my application to use struts 2 with spring. After I
modified the config files to use spring plugin bundled, tomcat server is
throwing the following exception. Your help is much appreciated to get this
issue resolved.
I am using Eclipse 6.6, struts 2.0.14 and the spri
--- On Tue, 12/2/08, Richa Pandharikar wrote:
> SEVERE: Exception sending context initialized event to
> listener instance of
> class org.springframework.web.context.ContextLoaderListener
> java.lang.OutOfMemoryError: Java heap space
Increase the memory setting for the server process?
Dave
Hi,
I have a single select menu on my search page. What is the struts way to
construct this menu such that when the user is redirected to this search
page, the menu is pre-selected with what they selected from the original
search?
Thanks, - Dave
It's a feature! If you look below the stacktrace, you'll see it is logged as a
warning. Nothing is actually wrong - it is a struts internal quirk.
ravindra on 02/12/08 09:25, wrote:
I think some thing is wrong at these lines,
ViewTestedLetters
Hi-
We're using a MappingDispatchAction (Struts 1.2.9) and occasionally when
a user makes a request to the URI for this action we get a
NullPointerException in the class because the ActionMapping is null.
Other than saying "mapping = null," does anyone have any idea how the
mapping reference
Adam,
Once again. Thanks a lot for your reply. Really appreciate your help and
suggestion
while i still investigate to make it work :).
Regards
Shazad
On Mon, Dec 1, 2008 at 11:42 AM, Adam Ruggles <[EMAIL PROTECTED]> wrote:
>
> Instead of storing the file in the session, why don't you just store
Hello,
i have a page, in which there is two form
the second form contains 2 pair of 2 select
the first pair add an OR to shortlist when we click on sumbit button (this
submit works ), the second pair is to delete an or from a shortlist
so when i select a shortlist, the list of OR in second select w
Hello,
Someone might have to jump in and correct me on this but I think that it should just be coming in as a string. As I understand it, the form's action doesn't know that you're using a datepicker in the
form, it only sees a text field with a value (a string). Struts tag libs just generate H
You can specify the format of the date with the "format" attribute. By
default it should be RFC3339(-MM-dd'T'HH:mm:ss), but it doesnt
seem like it is doing that for you. If it is in that format, struts
will parse it to a Date object. What is the html generated for that
field in your page?
musa
Probably the biggest European Java conference, Devoxx (formerly known as
Javapolis) is happening next week in Antwerp, Belgium.
At least two Struts2 developers, namely Rainer Hermanns and me, will be
attending. Are any Struts2 users also attending? If yes, how about
scheduling an informal get-
Hello laredotornado,
laredotornado schrieb:
I have a single select menu on my search page. What is the struts way to
construct this menu such that when the user is redirected to this search
page, the menu is pre-selected with what they selected from the original
search?
Thanks, - Dave
Andreas Mähler schrieb:
Normally, you would go for the ordinary -Tag [1], but I am not
using it, because it is buggy[2]. You can also do it "by hand" like I do:
Sorry - forgot the refs:
[1] http://struts.apache.org/2.1.2/docs/select.html
[2] https://issues.apache.org/struts/browse/WW-2758
Is there any way to make this work, without moving .jsp pages to web-inf. i
am using Jdeveloper and they are under Web Content->pages
On Tue, Dec 2, 2008 at 3:02 PM, hello_everyone <[EMAIL PROTECTED]>wrote:
>type="mypackage.Test2Action"
> scope="session" validate="false">
>
>
>
>
>
Definitely move them under WEB-INF. Otherwise, you can never enforce
people going through your action if they know the JSP address.
At any rate, you can just put the JSP file in the path of the
Paul
On Wed, Dec 3, 2008 at 1:14 AM, hello_everyone <[EMAIL PROTECTED]> wrote:
> Is there any way to
43 matches
Mail list logo