Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
Do you mean


?

Tried. Empty body of a tag.


2 июля 2011 г. 0:56 пользователь Dave Newton написал:

> 2011/7/1 Александр Высоков :
> > Dave, if I expressed roughly, I am very sorry (my bad english is not good
> enough).
>
> Nope, you're doing great :)
>
> Try using a link to an action in the  tag instead of a plain
> JSP.
>
> For now you could just create a class-less action mapping that
> forwards to the JSP you're currently using. See if the behavior
> continues.
>
> Dave
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
С уважением, Александр.


Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
2011/7/1 Александр Высоков :
> Dave, if I expressed roughly, I am very sorry (my bad english is not good 
> enough).

Nope, you're doing great :)

Try using a link to an action in the  tag instead of a plain JSP.

For now you could just create a class-less action mapping that
forwards to the JSP you're currently using. See if the behavior
continues.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
Dave, if I expressed roughly, I am very sorry (my bad english is not good
enough).
But if I misunderstand you, please explain more details. Thank you.

2 июля 2011 г. 0:41 пользователь Dave Newton написал:

> 2011/7/1 Александр Высоков :
> > So you try to tell me that in include's value must be only *.action?
>
> No, I don't.
>
> Dave
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
С уважением, Александр.


Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
2011/7/1 Александр Высоков :
> So you try to tell me that in include's value must be only *.action?

No, I don't.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
So you try to tell me that in include's value must be only *.action? I think
it is not.
Documentation says that in include's value attribute may be JSP (
http://struts.apache.org/2.2.3/docs/include.html)
And in examples almost everywhere is jsp-page in include... Strange...

But I've tried your version.
I've change test.jsp to:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>





Add method to class sviborg.TestAction
public String test2() {
  return SUCCESS;
}

Add action mapping to struts.xml:
http://struts.apache.org/dtds/struts-2.0.dtd";>



/test.jsp


/test2.jsp




and then, after clicking on  I received this:
http://localhost:8080/StrutsBugTest/javascript:some-javascript-method('1').action>
">

Wrong again. No data in the a's body.

I think it is completely wrong. And how it corellates with Maurizio
Cucchiara's words about direct call of jsp by a browser. Include's value is
called by a browser? It is not. Strange...

By the way. I tried follows - I changed the s:a tag in test.jsp with s:div:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> <%@ taglib uri="/struts-tags" prefix="s" %>

and received CORRECT result:
1
Completely strange. Please tell me the difference between this cases...



1 июля 2011 г. 23:49 пользователь Dave Newton написал:

> But the include tag is still directly referencing a JSP, no?
>
> Dave
>
> On Friday, July 1, 2011, Александр Высоков  wrote:
> > In attached in jira test-project (StrutsBugTest.war) index.html contains
> > link:
> > click
> >
> > Action mapping file contains:
> >  > Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd";>
> > 
> > 
> > 
> > /test.jsp
> > 
> > 
> > 
> >
> > Result is the same - strange.
> >
> > May be we talking about different things. I think I do not understand you
> > completely.
> >
> > 1 июля 2011 г. 19:27 пользователь Maurizio Cucchiara <
> > maurizio.cucchi...@gmail.com> написал:
> >
> >> As I said before, don't call jsp directly via browser: rather you need
> to
> >> invoke a struts action that, after looked at your action mapping
> >> configuration, forward the request to your final jsp
> >>
> >> Maurizio Cucchiara
> >>
> >> Il giorno 01/lug/2011 16.30, "Александр Высоков"  ha
> >> scritto:
> >> > I've created test project (attached StrutsBugTest.war) in jira. In
> that
> >> > project you can click to the link in index.html and see the same
> strange
> >> > behavior.
> >> >
> >> > 1 июля 2011 г. 17:28 пользователь Dave Newton  >> >написал:
> >> >
> >> >> Unless the JSP is processed through an action, the original comment
> in
> >> the
> >> >> jira ticket is correct.
> >> >>
> >> >> Recall that a filter can stop processing a request, which is what
> >> happens
> >> >> if
> >> >> it's not a request that hits an action.
> >> >>
> >> >> Dave
> >> >> On Jul 1, 2011 8:59 AM, "Александр Высоков" 
> wrote:
> >> >> > Hello all.
> >> >> >
> >> >> > I have two files.
> >> >> >
> >> >> > test.jsp
> >> >> > 
> >> >> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> >> >> > pageEncoding="UTF-8"%>
> >> >> > <%@ taglib uri="/struts-tags" prefix="s" %>
> >> >> > 
> >> >> >  >> >> > href="javascript:some-javascript-method('%{#attr.depId}')">
> >> >> > 
> >> >> > 
> >> >> >
> >> >> > test2.jsp
> >> >> > -
> >> >> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> >> >> > pageEncoding="UTF-8"%>
> >> >> > <%@ taglib uri="/struts-tags" prefix="s" %>
> >> >> > 
> >> >> > 1
> >> >> >
> >> >> > The result of call http://localhost:8080/myapp/test.jsp is:
> >> >> > 1
> >> >> >
> >> >> > as we can see, second evaluation of %{#attr.depId} is missing (must
> be
> >> >> > javascript:some-javascript-method('1')). I cannot understand why it
> >> >> > happens.
> >> >> > But when I remove line 
> >> from
> >> >> > test2.jsp file and call again I receive correct result:
> >> >> > 1
> >> >> >
> >> >> > Is this a bug or I do not understand something in Struts2?
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > С уважением, Александр.
> >>
> >
> >
> >
> > --
> > С уважением, Александр.
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
С уважением, Александр.


Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
But the include tag is still directly referencing a JSP, no?

Dave

On Friday, July 1, 2011, Александр Высоков  wrote:
> In attached in jira test-project (StrutsBugTest.war) index.html contains
> link:
> click
>
> Action mapping file contains:
>  Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd";>
> 
> 
> 
> /test.jsp
> 
> 
> 
>
> Result is the same - strange.
>
> May be we talking about different things. I think I do not understand you
> completely.
>
> 1 июля 2011 г. 19:27 пользователь Maurizio Cucchiara <
> maurizio.cucchi...@gmail.com> написал:
>
>> As I said before, don't call jsp directly via browser: rather you need to
>> invoke a struts action that, after looked at your action mapping
>> configuration, forward the request to your final jsp
>>
>> Maurizio Cucchiara
>>
>> Il giorno 01/lug/2011 16.30, "Александр Высоков"  ha
>> scritto:
>> > I've created test project (attached StrutsBugTest.war) in jira. In that
>> > project you can click to the link in index.html and see the same strange
>> > behavior.
>> >
>> > 1 июля 2011 г. 17:28 пользователь Dave Newton > >написал:
>> >
>> >> Unless the JSP is processed through an action, the original comment in
>> the
>> >> jira ticket is correct.
>> >>
>> >> Recall that a filter can stop processing a request, which is what
>> happens
>> >> if
>> >> it's not a request that hits an action.
>> >>
>> >> Dave
>> >> On Jul 1, 2011 8:59 AM, "Александр Высоков"  wrote:
>> >> > Hello all.
>> >> >
>> >> > I have two files.
>> >> >
>> >> > test.jsp
>> >> > 
>> >> > <%@ page language="java" contentType="text/html; charset=UTF-8"
>> >> > pageEncoding="UTF-8"%>
>> >> > <%@ taglib uri="/struts-tags" prefix="s" %>
>> >> > 
>> >> > > >> > href="javascript:some-javascript-method('%{#attr.depId}')">
>> >> > 
>> >> > 
>> >> >
>> >> > test2.jsp
>> >> > -
>> >> > <%@ page language="java" contentType="text/html; charset=UTF-8"
>> >> > pageEncoding="UTF-8"%>
>> >> > <%@ taglib uri="/struts-tags" prefix="s" %>
>> >> > 
>> >> > 1
>> >> >
>> >> > The result of call http://localhost:8080/myapp/test.jsp is:
>> >> > 1
>> >> >
>> >> > as we can see, second evaluation of %{#attr.depId} is missing (must be
>> >> > javascript:some-javascript-method('1')). I cannot understand why it
>> >> > happens.
>> >> > But when I remove line 
>> from
>> >> > test2.jsp file and call again I receive correct result:
>> >> > 1
>> >> >
>> >> > Is this a bug or I do not understand something in Struts2?
>> >>
>> >
>> >
>> >
>> > --
>> > С уважением, Александр.
>>
>
>
>
> --
> С уважением, Александр.
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
In attached in jira test-project (StrutsBugTest.war) index.html contains
link:
click

Action mapping file contains:
http://struts.apache.org/dtds/struts-2.0.dtd";>



/test.jsp




Result is the same - strange.

May be we talking about different things. I think I do not understand you
completely.

1 июля 2011 г. 19:27 пользователь Maurizio Cucchiara <
maurizio.cucchi...@gmail.com> написал:

> As I said before, don't call jsp directly via browser: rather you need to
> invoke a struts action that, after looked at your action mapping
> configuration, forward the request to your final jsp
>
> Maurizio Cucchiara
>
> Il giorno 01/lug/2011 16.30, "Александр Высоков"  ha
> scritto:
> > I've created test project (attached StrutsBugTest.war) in jira. In that
> > project you can click to the link in index.html and see the same strange
> > behavior.
> >
> > 1 июля 2011 г. 17:28 пользователь Dave Newton  >написал:
> >
> >> Unless the JSP is processed through an action, the original comment in
> the
> >> jira ticket is correct.
> >>
> >> Recall that a filter can stop processing a request, which is what
> happens
> >> if
> >> it's not a request that hits an action.
> >>
> >> Dave
> >> On Jul 1, 2011 8:59 AM, "Александр Высоков"  wrote:
> >> > Hello all.
> >> >
> >> > I have two files.
> >> >
> >> > test.jsp
> >> > 
> >> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> >> > pageEncoding="UTF-8"%>
> >> > <%@ taglib uri="/struts-tags" prefix="s" %>
> >> > 
> >> >  >> > href="javascript:some-javascript-method('%{#attr.depId}')">
> >> > 
> >> > 
> >> >
> >> > test2.jsp
> >> > -
> >> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> >> > pageEncoding="UTF-8"%>
> >> > <%@ taglib uri="/struts-tags" prefix="s" %>
> >> > 
> >> > 1
> >> >
> >> > The result of call http://localhost:8080/myapp/test.jsp is:
> >> > 1
> >> >
> >> > as we can see, second evaluation of %{#attr.depId} is missing (must be
> >> > javascript:some-javascript-method('1')). I cannot understand why it
> >> > happens.
> >> > But when I remove line 
> from
> >> > test2.jsp file and call again I receive correct result:
> >> > 1
> >> >
> >> > Is this a bug or I do not understand something in Struts2?
> >>
> >
> >
> >
> > --
> > С уважением, Александр.
>



-- 
С уважением, Александр.


Struts 2 Select Tag Question

2011-07-01 Thread davidZaz3
I have a List of business objects which have some read-only attributes. For
example, let's suppose that we have a list of employee objects. The employee
object has a status field. The available statuses are 'Active', 'Fired', and
'On Leave'. Only supervisors may ever select the 'Fired' option. Other users
may toggle an employee between 'Active' and 'On Leave'. 

Obviously, I have a server side routine to enforce this requirement.
However, I'm looking to use the disabled attribute to grey out the 'Fired'
option. Here is the code that I would use without Struts:


Active
Fired
On Leave


I tried using the following Struts 2 tag, but it does not have any way for
me to dynamically disable the "Fired" option:



Is it possible to use the Struts 2 tags to dynamically disable options in a
select box? Or should I open a feature request in JIRA? Thanks!

--
View this message in context: 
http://struts.1045723.n5.nabble.com/Struts-2-Select-Tag-Question-tp4542299p4542299.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
Hello all.

I have two files.

test.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>





test2.jsp
-
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

1

The result of call http://localhost:8080/myapp/test.jsp is:
1

as we can see, second evaluation of %{#attr.depId} is missing (must be
javascript:some-javascript-method('1')). I cannot understand why it
happens.
But when I remove line  from
test2.jsp file and call again I receive correct result:
1

Is this a bug or I do not understand something in Struts2?


Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Maurizio Cucchiara
As I said before, don't call jsp directly via browser: rather you need to
invoke a struts action that, after looked at your action mapping
configuration, forward the request to your final jsp

Maurizio Cucchiara

Il giorno 01/lug/2011 16.30, "Александр Высоков"  ha
scritto:
> I've created test project (attached StrutsBugTest.war) in jira. In that
> project you can click to the link in index.html and see the same strange
> behavior.
>
> 1 июля 2011 г. 17:28 пользователь Dave Newton написал:
>
>> Unless the JSP is processed through an action, the original comment in
the
>> jira ticket is correct.
>>
>> Recall that a filter can stop processing a request, which is what happens
>> if
>> it's not a request that hits an action.
>>
>> Dave
>> On Jul 1, 2011 8:59 AM, "Александр Высоков"  wrote:
>> > Hello all.
>> >
>> > I have two files.
>> >
>> > test.jsp
>> > 
>> > <%@ page language="java" contentType="text/html; charset=UTF-8"
>> > pageEncoding="UTF-8"%>
>> > <%@ taglib uri="/struts-tags" prefix="s" %>
>> > 
>> > > > href="javascript:some-javascript-method('%{#attr.depId}')">
>> > 
>> > 
>> >
>> > test2.jsp
>> > -
>> > <%@ page language="java" contentType="text/html; charset=UTF-8"
>> > pageEncoding="UTF-8"%>
>> > <%@ taglib uri="/struts-tags" prefix="s" %>
>> > 
>> > 1
>> >
>> > The result of call http://localhost:8080/myapp/test.jsp is:
>> > 1
>> >
>> > as we can see, second evaluation of %{#attr.depId} is missing (must be
>> > javascript:some-javascript-method('1')). I cannot understand why it
>> > happens.
>> > But when I remove line  from
>> > test2.jsp file and call again I receive correct result:
>> > 1
>> >
>> > Is this a bug or I do not understand something in Struts2?
>>
>
>
>
> --
> С уважением, Александр.


RE: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Martin Gainty

Set.html:
String name Deprecated. Use 'var' insteadchange attribute name="depId"
   to var="depId"

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.




> Date: Fri, 1 Jul 2011 18:30:22 +0400
> Subject: Re: strange behavior of s:a tag with s:include tag inside
> From: nod...@gmail.com
> To: user@struts.apache.org
> 
> I've created test project (attached StrutsBugTest.war) in jira. In that
> project you can click to the link in index.html and see the same strange
> behavior.
> 
> 1 июля 2011 г. 17:28 пользователь Dave Newton написал:
> 
> > Unless the JSP is processed through an action, the original comment in the
> > jira ticket is correct.
> >
> > Recall that a filter can stop processing a request, which is what happens
> > if
> > it's not a request that hits an action.
> >
> > Dave
> >  On Jul 1, 2011 8:59 AM, "Александр Высоков"  wrote:
> > > Hello all.
> > >
> > > I have two files.
> > >
> > > test.jsp
> > > 
> > > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > > pageEncoding="UTF-8"%>
> > > <%@ taglib uri="/struts-tags" prefix="s" %>
> > > 
> > >  > > href="javascript:some-javascript-method('%{#attr.depId}')">
> > > 
> > > 
> > >
> > > test2.jsp
> > > -
> > > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > > pageEncoding="UTF-8"%>
> > > <%@ taglib uri="/struts-tags" prefix="s" %>
> > > 
> > > 1
> > >
> > > The result of call http://localhost:8080/myapp/test.jsp is:
> > > 1
> > >
> > > as we can see, second evaluation of %{#attr.depId} is missing (must be
> > > javascript:some-javascript-method('1')). I cannot understand why it
> > > happens.
> > > But when I remove line  from
> > > test2.jsp file and call again I receive correct result:
> > > 1
> > >
> > > Is this a bug or I do not understand something in Struts2?
> >
> 
> 
> 
> -- 
> С уважением, Александр.
  

Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
I've created test project (attached StrutsBugTest.war) in jira. In that
project you can click to the link in index.html and see the same strange
behavior.

1 июля 2011 г. 17:28 пользователь Dave Newton написал:

> Unless the JSP is processed through an action, the original comment in the
> jira ticket is correct.
>
> Recall that a filter can stop processing a request, which is what happens
> if
> it's not a request that hits an action.
>
> Dave
>  On Jul 1, 2011 8:59 AM, "Александр Высоков"  wrote:
> > Hello all.
> >
> > I have two files.
> >
> > test.jsp
> > 
> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8"%>
> > <%@ taglib uri="/struts-tags" prefix="s" %>
> > 
> >  > href="javascript:some-javascript-method('%{#attr.depId}')">
> > 
> > 
> >
> > test2.jsp
> > -
> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8"%>
> > <%@ taglib uri="/struts-tags" prefix="s" %>
> > 
> > 1
> >
> > The result of call http://localhost:8080/myapp/test.jsp is:
> > 1
> >
> > as we can see, second evaluation of %{#attr.depId} is missing (must be
> > javascript:some-javascript-method('1')). I cannot understand why it
> > happens.
> > But when I remove line  from
> > test2.jsp file and call again I receive correct result:
> > 1
> >
> > Is this a bug or I do not understand something in Struts2?
>



-- 
С уважением, Александр.


Re: PropertyPlaceholderConfigurer can't read file properties

2011-07-01 Thread Miguel Almeida
On Fri, 2011-07-01 at 08:46 -0500, Paul Benedict wrote:

> Can you clarify? You spoke about reloading -- are you trying to change
> property files on the fly?


Agree: as far as I know, you can't do that with
PropertyPlaceholderConfigurer.

Also agree with previous mail: this is Spring, not Struts.



Re: PropertyPlaceholderConfigurer can't read file properties

2011-07-01 Thread Maurizio Cucchiara
This looks like a Spring question, what should it have to do with Struts?

On 1 July 2011 15:36, Mohamed SIDI  wrote:

> Hi there,
>
> it seems that the PropertyPlaceholderConfigurer can't reload the file
> properties because I still getting the key instead of getting the value of
> key
>
> 
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
> id="propertiesConfigurer" >
>
>classpath*:config.properties
>
>
>
> --
>
>
> Cordialement
>
> Mohamed
>



-- 
Maurizio Cucchiara


Re: PropertyPlaceholderConfigurer can't read file properties

2011-07-01 Thread Paul Benedict
Can you clarify? You spoke about reloading -- are you trying to change
property files on the fly?

On Fri, Jul 1, 2011 at 8:36 AM, Mohamed SIDI  wrote:
> Hi there,
>
> it seems that the PropertyPlaceholderConfigurer can't reload the file
> properties because I still getting the key instead of getting the value of
> key
>
>  class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
> id="propertiesConfigurer" >
>        
>            classpath*:config.properties
>        
>    
>
> --
>
>
> Cordialement
>
> Mohamed
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



PropertyPlaceholderConfigurer can't read file properties

2011-07-01 Thread Mohamed SIDI
Hi there,

it seems that the PropertyPlaceholderConfigurer can't reload the file
properties because I still getting the key instead of getting the value of
key



classpath*:config.properties



-- 


Cordialement

Mohamed


Re: strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Dave Newton
Unless the JSP is processed through an action, the original comment in the
jira ticket is correct.

Recall that a filter can stop processing a request, which is what happens if
it's not a request that hits an action.

Dave
 On Jul 1, 2011 8:59 AM, "Александр Высоков"  wrote:
> Hello all.
>
> I have two files.
>
> test.jsp
> 
> <%@ page language="java" contentType="text/html; charset=UTF-8"
> pageEncoding="UTF-8"%>
> <%@ taglib uri="/struts-tags" prefix="s" %>
> 
>  href="javascript:some-javascript-method('%{#attr.depId}')">
> 
> 
>
> test2.jsp
> -
> <%@ page language="java" contentType="text/html; charset=UTF-8"
> pageEncoding="UTF-8"%>
> <%@ taglib uri="/struts-tags" prefix="s" %>
> 
> 1
>
> The result of call http://localhost:8080/myapp/test.jsp is:
> 1
>
> as we can see, second evaluation of %{#attr.depId} is missing (must be
> javascript:some-javascript-method('1')). I cannot understand why it
> happens.
> But when I remove line  from
> test2.jsp file and call again I receive correct result:
> 1
>
> Is this a bug or I do not understand something in Struts2?


strange behavior of s:a tag with s:include tag inside

2011-07-01 Thread Александр Высоков
Hello all.

I have two files.

test.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>





test2.jsp
-
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

1

The result of call http://localhost:8080/myapp/test.jsp is:
1

as we can see, second evaluation of %{#attr.depId} is missing (must be
javascript:some-javascript-method('1')). I cannot understand why it
happens.
But when I remove line  from
test2.jsp file and call again I receive correct result:
1

Is this a bug or I do not understand something in Struts2?


Re: call method with more then one param

2011-07-01 Thread Dave Newton
Just call it with multiple params, OGNL calls look like Java. But you're
trying to call it on form /submission/ and I don't believe you need to.

Dave
 On Jul 1, 2011 5:52 AM, "nero81de"  wrote:


Re: call method with more then one param

2011-07-01 Thread nero81de
The name of the method is confused. I need to know, how can i call a method
with ognl, who have more than one param.

--
View this message in context: 
http://struts.1045723.n5.nabble.com/call-method-with-more-then-one-param-tp4538226p4539277.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org