variable in Struts 2 tag

2008-02-27 Thread bugs_
In JSP page: <% String onClick = ... %> If i try to display jsp page, I get messege: "attribute onclick does not accept any expressions" I don't know how to display content of variable onClick into attribute onclick. It is probably a trivial question, but I can not find any solution. -- View t

Re: variable in Struts 2 tag

2008-02-27 Thread bugs_
--- bugs_ <[EMAIL PROTECTED]> wrote: > In JSP page: > <% > String onClick = ... > %> > > > If i try to display jsp page, I get messege: "attribute onclick does not > accept any expressions" > > I don't know how to display conte

How to write variable in a Struts 2 tag?

2008-03-11 Thread bugs_
I need rewrite jsp page from Struts 1 to Struts 2. In Strust 1 is in the page something like this: <% String variable = ... %> I tried to rewrite it in Struts 2: <% String variable = ... %> but this doesn't work. It return an error message: "According to TLD or attribute directive in tag file,

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread bugs_
simple working example? Musachy Barroso wrote: > > http://answers.google.com/answers/threadview?id=371241 > > musachy > > On Tue, Mar 11, 2008 at 1:39 PM, bugs_ <[EMAIL PROTECTED]> wrote: >> >> I need rewrite jsp page from Struts 1 to Struts 2. >&

Re: How to write variable in a Struts 2 tag?

2008-03-11 Thread bugs_
Struts tags do not allow JSTL expressions. You >> need to use OGNL instead. I don't recall the OGNL syntax for accessing >> page-scope variables, but it's probably something like %{title}, or >> %{#title}. Check the OGNL documentation to be sure if someone else >>

Re: how to add simple javascript with struts? simple example please...

2008-03-12 Thread bugs_
<%@ taglib uri="/tags/struts-html" prefix="html" %> JSP page function confirmation(){ return confirm("Are you sure to update?"); } This should work. If you have more submit buttons you can use > Hi ev

[S2] Calling getMethod with parametr

2008-03-17 Thread bugs_
In Struts 1 is this: In the ActionForm is this method: public boolean getTechnologyCheckbox(String key) throws ValueNotDefinedException { return sessionData.getTechnologyById(key).isSelected(); } In the jsp page is: <%=propertyName%> is for example "technologyCheck

Struts 1 vs Struts 2 actionform execution and Struts2 POJO example

2008-03-19 Thread bugs_
In struts 1. I have basic.jsp page with form: ... When I open basic.jsp it is autamatically created basicForm (which is configured at the basic action) And thanks this values in the form are automatically filled. Know anybody how to simulate this in Struts 2? or Can me anybody give a simple exa

Re: Struts 1 vs Struts 2 actionform execution and Struts2 POJO example

2008-03-20 Thread bugs_
What I need is to have one action and many various (POJO) objects, which polulate and receive date from html form. POJO object should be selected by the form, which is displayed (or submited). But I realy don't know how to do this in Struts 2. newton.dave wrote: > > --- bu