Why we need struts.action.extension property

2008-07-18 Thread Igor Vlasov
Hello. I wrote a simple s2 application. I described a filter in web.xml struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 *.jspa FORWARD REQUEST but i forgot a struts.properties file and "struts.action.extension=jspa" AND my project does no

Re: Do we have such alternative?

2008-07-14 Thread Igor Vlasov
Piero Sartini-3 wrote: > > Hello, > >> Do we have some similar mechanism is JSP 2 + struts2? >> >> Or Do i must use struts2++ library? > > JSP can not do that out of the box. But there are very good solutions > available. Have a look at Sitemesh or Tiles2: > > -> http://struts.apa

Do we have such alternative?

2008-07-14 Thread Igor Vlasov
Hello. Some days ago I looked in source code of project in ASP.net 2. Here I saw a good architectural alternative to: <%@ include file="/include/header.jsp" %> body <%@ include file="/include/footer.jsp" %> It looks like this: Page 1: <%@ CodeFile="EditUsers.aspx.cs" MasterPageFile="~/Defau

S2 i18n wrong locale selection!

2008-07-02 Thread Igor Vlasov
Hello, I did a sample s2 page with multilanguage. I did sample.properties for action for [default,en,ru,es,de] I have default language=ru for server. Then I change "accept-language" to [az|en] in FF browser. When i enter the page with it shows "П

Re: Netbeans 6.0 Editor Error with struts2 library

2008-01-17 Thread Igor Vlasov
It works Thanks a lot:jumping::clap::handshake: Tan Mook Kuen wrote: > > Have you try > 1) close netbeans > 2) delete the cache folder under /.netbeans/6.0/var/ ? > 3) open netbeans again. > > HTH > > > On Jan 17, 2008 3:26 PM, Igor Vlasov <[EMAIL

Re: Netbeans 6.0 Editor Error with struts2 library

2008-01-16 Thread Igor Vlasov
--- Original Message - > From: "Igor Vlasov" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, January 16, 2008 11:00 AM > Subject: Netbeans 6.0 Editor Error with struts2 library > > >> >> Hello. >> >> I have installed a netbeans 6 on jdk6u4 an

Re: [OT] Re: Netbeans 6.0 Editor Error with struts2 library

2008-01-16 Thread Igor Vlasov
If I write: @Override public void setServletRequest(HttpServletRequest request) { this.req = request; } then I got "method does not override or implement a method from a supertype" newton.dave wrote: > > What happens if you annotate it with @Override? > > d

Netbeans 6.0 Editor Error with struts2 library

2008-01-16 Thread Igor Vlasov
Hello. I have installed a netbeans 6 on jdk6u4 and all recent updates for it. Then i Try to implement an interface in my custom class. public class Site1AuthAction implements ServletRequestAware{ public void setServletRequest(HttpServletRequest request) { } } I get strarge editor warn

Re: Manual definet attribute in <s:textfield?

2007-10-29 Thread Igor Vlasov
May be it would be useful to make struts tags implements javax.servlet.jsp.tagext.DynamicAttributes interface. Then we can declare a tag handler accepts additional attributes with dynamic names. Laurie Harper wrote: > > Igor Vlasov wrote: >> Hello >> >> I want to

Re: Why does update action fire on load

2007-10-26 Thread Igor Vlasov
at i did I use only > >login.jsp >login.jsp >/pages/main.jsp >/pages/dashboard.jsp > > BUt still update is fired on login. > > > Igor Vlasov wrote: >> >> If you use only >> >> >>login.jsp >>logi

Re: struts2 validation - wildcard mappings and the submit tag "method" parameter

2007-10-26 Thread Igor Vlasov
use @SkipValidation annotation for methods, which you do not need to validate. This affects on StrutsValidationFramework For validate() method you must manually analyse the situation and skip its executing. Lindell, Andrew wrote: > > The problem I'm having is getting validation to run when t

Re: Validation Best Practices?

2007-10-26 Thread Igor Vlasov
I use validate() method from ActionSupport for complex bussines validation.(it works in WorkFlowInterceptor). Sometime, for trivial fields, i can use Struts ValidationFramework.(it works after ParameterInterceptor) Sean Kleinjung-2 wrote: > > Hey, > > I have a question concerning where val

Re: [S 1.3]IncludeAction or any other Alternative?

2007-10-26 Thread Igor Vlasov
Try to use servletFilter from servlet specification with apropriate mapping enthucoder wrote: > > I have a requirement, where on each page load, I hit some Servlet or > Action (Can be modified accordingly). Should i use a IncludeAction here or > there is a better or elegant way to achieve th

Re: Why does update action fire on load

2007-10-26 Thread Igor Vlasov
If you use only login.jsp login.jsp /pages/main.jsp /pages/dashboard.jsp the update action called when login_update.jspa is called or press on zul;jami wrote: > > After deleting the second binding also I got the same error. > > > >

Re: Why does update action fire on load

2007-10-26 Thread Igor Vlasov
ging in. > What do you mean by . > Both methods return SUCCESS only. > > > > > > Igor Vlasov wrote: >> >> Are you sure that you delete: >> >> /pages/dashboard.jsp >> >> >> The process description: >>

Re: Why does update action fire on load

2007-10-26 Thread Igor Vlasov
fires execute and also update. > I do not want to fire update.Pls help > > > > > Igor Vlasov wrote: >> >> I use >> >>login.jsp >>login.jsp >>/pages/main.jsp >>/pages/dashboard.jsp >> >>

Re: Why does update action fire on load

2007-10-26 Thread Igor Vlasov
I use login.jsp login.jsp /pages/main.jsp /pages/dashboard.jsp zul;jami wrote: > > I have two methods in action extending actionsupport in struts2. > WHen I login it should execute only the execute method.BUT > it also fires update another method which I want to

Re: Problem while setting object directly from tag

2007-10-26 Thread Igor Vlasov
The list property targets to "model" with data for rendering Manual definet attribute in <s:textfield?
Hello I want to add a user defined HTML attribute to . How can I do this? if i write I recieve an error. -- Vie

Re: Dynamic form parameters and validation/workflow interceptor?

I put it in "validate" method because this parameters must be readed when the form is submited. And when the form is submited the validate method is called. Igor Vlasov wrote: > > Hello > > In my form i have common parameters like name="searchData.ni

Dynamic form parameters and validation/workflow interceptor?

Hello In my form i have common parameters like and some "dynamic" parameters - inputs added throw Javascript Code. For common parameters i have ParametersInterceptor. It puts values in "searchData" object properties. Then i want to add array of "dynamic" properties to my "searchData" object.

ExecuteAndWait interceptor position?

Hello. In Struts Documentation i found that "Because of the nature of this interceptor, it must be the last interceptor in the stack." and in struts-default.xml i found inp

How to set object to value stack from jsp?

I have an object in session nad want to use it in jsp struts tag as a top object. I do not want to create action for geting it from session and putting it to action property. How can i put a value from session to the top of value stack ? -- View this message in context: http://www.nabble.com

Re: Manually obtain previous action parameters after action "chaining"?

s as entries in Maps. request.getSession > doesn't work, because the interceptor doesn't pass the HttpRequest > object but a map the proxies the attributes in request scope. If the > Action needs access to the session attributes, then implement > setSession(Map). > &

Re: [S2] Simple loop 1..20 with with iterator tag?

I must use struts iterator and use struts variables with iterator index variables. Like this from 1 to 20" > " selected="SELECTED"> nuwan chandrasoma-2 wrote: > > Hi, > > why dont you use JSTL > > > > > > Thanks, > N

[S2] Simple loop 1..20 with with iterator tag?

In documentation thre is an example:

Re: Manually obtain previous action parameters after action "chaining"?

is.SUCCESS; } } === for simplisity simplicity searchData may be a simple Object(). I need an ability to make : prev=(ActionOne)getPreviousAction(); Laurie Harper wrote: > > Igor Vlasov wrote: >> Copying of properties with ChainingInterceptor

Re: Manually obtain previous action parameters after action "chaining"?

s.xml > > HTH, Ted. > http://www.catb.org/~esr/faqs/smart-questions.html > > > On 10/10/07, Igor Vlasov <[EMAIL PROTECTED]> wrote: >> >> I have action "one" and it calls action "two" throw: >> two >> >> >> I can use

Re: [S2] Manually obtain previous action parameters after action "chaining"?

I try this in action "two".execute(): ValueStack stack=ActionContext.getContext().getValueStack(); CompoundRoot root = stack.getRoot(); List list = new ArrayList(root); This list does not contain my previous action "one". It contains only TextProviderObject. Can you write how to "

[S2] Manually obtain previous action parameters after action "chaining"?

I have action "one" and it calls action "two" throw: two I can use ChainingInterceptor to copy properties of "one" action to "two" action. I get behaviour : one.param->two.param. But the property "param" must be in javaBeans specification(have setter and getter method for each property). Ca

Re: [S2] ExecAndWait interceptor : request.getSession() null

public class SearchAction extends ActionSupport implements ServletRequestAware { protected HttpServletRequest request; private HttpSession sess; public String execute() throws Exception{ /*I*/ sess = request.getSession();// not NULL ! try { // выполняется поиск и опрос все

NULL Session object after execAndWait interceptor

I found a strange behaviour in action after execAndWait interceptor. I have 1. 2000

48 matches