> In struts1.x, there is tag like "bean:define". Anything like in struts2?
The problem is in OGNL, which is using ValueStack, it's totally
separated from common request objects.
I don't understand why you want to access variable in <% %> ? It's is
good for constants and not for logic. As I show yo
Ok, Thanks,
In struts1.x, there is tag like "bean:define". Anything like in struts2?
On Tue, Jul 15, 2008 at 1:18 PM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> Try
>
> <% Company cmp = request.getAttribute("company"); %>
> <%= cmp.formatName("aa") %>
>
> but this is ugly ;-(
>
> Better solution
Try
<% Company cmp = request.getAttribute("company"); %>
<%= cmp.formatName("aa") %>
but this is ugly ;-(
Better solution is to develop some custom tag.
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [
So Is there anyway that I can expose the OGNL variable to jsp and have
direct access like <%=company.formartName("aa")%>?
Thanks.
On Tue, Jul 15, 2008 at 1:23 AM, Lukasz Lenart
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> s:set tag [1] put variable in given OGNL scope, try to use
> scope=request or you
Hi,
s:set tag [1] put variable in given OGNL scope, try to use
scope=request or you can try to use
[1] http://struts.apache.org/2.1.2/docs/set.html
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL
5 matches
Mail list logo