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
--- 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
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,
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.
>&
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
>>
<%@ 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
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
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
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
9 matches
Mail list logo