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(
<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
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
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
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?
>>
>
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
ice.update(page);
return execute();
}
...
--
<interceptor-ref name="validation">
<param name="validateAnnotatedMethodOnly">true</param>
</interceptor-ref>
Thanks
newton.dave wrote:
>
> --- On
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
> --
&
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
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:
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
Hi konference
when I use this:
link
---
After render link is good:
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
OK
--
-
Tomas Jurman
Czech Republic
--
View this message in context:
http://www.nabble.com/%3Cs%3Aproperty%3E-and-%
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.
>
>
Hi konference
I am already helpless.
How can I test the property in
OK
--
Thanks a lot.
-
Tomas Jurman
Czech Republic
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
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
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
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
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
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
Hi friends
I use tabbedPanel with forms:
---
<%-- id="one" --%>
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
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
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
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
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:
Hi conference
Can I use "continue" in struts tag ?
--
from:
for (Category cat : category){
if (cat.getId() == 1)
continue;
System.out.pri
29 matches
Mail list logo