call Collections.sort with OGNL

2008-09-28 Thread Kibo
Please How can I call static method java.util.Collections.sort in OGNL? I use this: (but it don“t work) in struts.properties i have allow: struts.ognl.allowStaticMethodAccess=true Thanks for help - Tomas Jurman Czech Republic -- View this message in context: http://www.nabb

Re: call Collections.sort with OGNL

2008-09-28 Thread Kibo
Hmm, interesting help Maybe, it would be better say that exists struts tag: sort http://struts.apache.org/2.x/docs/sort.html though I thanks newton.dave wrote: > > --- On Sun, 9/28/08, Kibo wrote: >> How can I call static method java.util.Collections.sort in OGNL? >> >

Re: Submit Success and false

2008-12-02 Thread Kibo
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

submit form with anchor

2008-12-02 Thread Kibo
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

Re: submit form with anchor

2008-12-03 Thread Kibo
<s:form action="myAction/#p" > ... Kibo wrote: > > 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 su

Validation Annotation not return INPUT

2008-12-21 Thread Kibo
Hi Konference I use Struts2 with validation annotation. Problem is, that validation not return input. I get fielderror message only but whole method is invoke and run. I assume, that I give bad form feld data the action annotated method coud not be invoke. --- @Validations(

use continue in

2008-03-22 Thread Kibo
Hi conference Can I use "continue" in struts tag ? -- from: for (Category cat : category){ if (cat.getId() == 1) continue; System.out.pri

Re: key property of s:checkbox tag

2008-03-24 Thread Kibo
Hi I dont know whether I good understant, but the interface Set have not KEY. Supply the Set to List or Map. Then you can use:

Re: Validation

2008-03-30 Thread Kibo
Hi I had the same problem. The simplest is use the qxhtml theme. See: http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme You can download the theme and use in Struts. You can combine it with theme simple. See the source jsp page with form. The second possibility is extend the simple

Re: how to refresh only included pages

2008-03-30 Thread Kibo
Hi In Struts2 I use the ajax DIV tag See: http://struts.apache.org/2.x/docs/dojo-div.html But You write: I am also using a form bean uploadActionForm ... and it look like you use Struts1x. Tomas Jurman Czech Republic -- View this message in context: http://www.nabble.com/how-to-refresh-only-i

Scope Interceptor

2008-04-19 Thread Kibo
Hi konference I read the article there: http://struts.apache.org/2.0.9/docs/scope-interceptor.html and a want use scope interceptor, but it not work my. I dont know exactly, that i good understand it. I want save into session model: Employee. // In my Action Class I

Re: Scope Interceptor

2008-04-20 Thread Kibo
Hi Jeromy I understand it now. It help me the most. Thanks You very much. Here I find an practise for scope interceptor. Maybe it can need somebody. http://d.hatena.ne.jp/nikkei225f/20080111/1200022384 Tomas Jurman Czech Republic - Tomas Jurman Czech Republic -- View this message in c

tabbedPanel and Form

2008-04-26 Thread Kibo
Hi friends I use tabbedPanel with forms: --- <%-- id="one" --%>

action tag

2008-04-26 Thread Kibo
Hi konference I would like use tag action but from action I need only property, dont executed/rendered. When I use this: rendered it result and view. When I use this: the action probably dont execute and the value is empty -- struts.xml /index.jsp

Struts2 JUnit 4.x

2008-05-14 Thread Kibo
Hi konference I saw that struts2-archetype-starter for Maven use JUnit 3.8 dependency. Why Struts2 already does not use JUnit 4.x ? Does it some problem when i will use JUnit 4.x in Struts 2 apps? Thanks very much. - Tomas Jurman Czech Republic -- View this message in context: http://www

Sitemesh or Tiles2

2008-05-14 Thread Kibo
Hi konference In Struts1 i used Tiles and i was satisfied. I saw that now in Struts2 it is recomended use Sitemesh. I read about Sitemesh and i dont find whay is Sitemesh for me better then Tiles 2. Maybe is Sitemesh better when: - i need to decorate some old application - i use other framework

dynamically view templates

2008-06-05 Thread Kibo
Hi Conference I use Struts 2 and freemarker: success.ftl but I need load freemarker template dynamically. For example: In page is selectBox () with items: - template1 - tempalte 2 - template 3 When user click in item template1, I want to return him view, which use template1. When us

Struts2 + applicationContext.xml

2008-06-30 Thread Kibo
Hi konference I use Struts2 + Spring. I deployed the "Struts 2 - Maven Archetype - Starter" In file applicationContext.xml is defined bean - helloWorldAction. I read that Struts2 expects that each action is a new instance. Therefore is there : singleton="false" Do I have to de

Re: Firefox 3 and render issues

2008-07-06 Thread Kibo
Hi I have the same problem in my office on localhost domain. I dont know to solve it, but when I deploy the project in us product server and call the pages from normal internet adress: http://www.usserver.cz, Pages work correct. tomas jurman thogau wrote: > > I noticed this problem and it s

and tag

2008-07-22 Thread Kibo
Hi konference I am already helpless. How can I test the property in OK -- Thanks a lot. - Tomas Jurman Czech Republic

Re: and tag

2008-07-22 Thread Kibo
seful. Please go through the doc for > which is used to push the current element into the top of the > value stack. > > hope this helps. > >

Re: and tag

2008-07-22 Thread Kibo
OK -- - Tomas Jurman Czech Republic -- View this message in context: http://www.nabble.com/%3Cs%3Aproperty%3E-and-%

Re: namespace question

2008-07-31 Thread Kibo
Yes. I started my project with Tomcat in Netbeans and I have not set context. The url look like: http://localhost:8080/index.action When I set namespace : namespace="/manager" the url look like: http://localhost:8080/manager/indet.action and the server return me HTTP Status 404. Then I set cont

Tags url and form

2008-08-05 Thread Kibo
Hi konference when I use this: link --- After render link is good:

Re: URL mapping in Struts 2

2008-08-13 Thread Kibo
Hi XML You can write your own ActionMapper. Look: http://struts.apache.org/2.x/docs/actionmapper.html I used debuger and I watched DefaultActionMapper. It help me. Jeromy Evans - Blue Sky Minds wrote: > > XML User wrote: >> Hi, >> >> How can I implement the URL mapping so that our URL w

Re: Prepare method being invoked twice

2008-08-14 Thread Kibo
Hi When you see struts-default.xml, you find out that the paramsPrepareParamsStack call the interceptor params twice. You can set up your struts-default.xml or in struts.xml define your own modified interceptor stack:

Validate associate Map

2008-08-16 Thread Kibo
Hi konference How can I validate classes which are associated in collection. The class "Page" contents Map with "PageText" classes: Page.java -- private Map texts = new HashMap(); ... getter / setter PageText.java -- private String description; @String

Re: Validate associate Map

2008-08-16 Thread Kibo
return success; //==> } Kibo wrote: > > Hi konference > > How can I validate classes which are associated in collection. > The class "Page" contents Map with "PageText" classes: > > Page.java > -- &

Re: Validate associate Map

2008-08-16 Thread Kibo
ice.update(page); return execute(); } ... -- <interceptor-ref name="validation"> <param name="validateAnnotatedMethodOnly">true</param> </interceptor-ref> Thanks newton.dave wrote: > > --- On