Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Bhaarat Sharma
i see that musachy added support for this
http://svn.apache.org/viewvc?view=rev&revision=741179
Mushacy, is this ready to be used?

On Tue, Jun 2, 2009 at 2:10 AM, Bhaarat Sharma  wrote:

> currently, I am not using jstl tags at all inmy application.
> Isnt there anyway to achive this using strictly struts2 tags?
>
>
> On Tue, Jun 2, 2009 at 1:50 AM, Chris Pratt wrote:
>
>> You can use the  tag for that type of iteration.
>>   (*Chris*)
>>
>> On Mon, Jun 1, 2009 at 10:36 PM, Bhaarat Sharma 
>> wrote:
>>
>> > 
>> > 
>> >
>> >
>> > the above properties dont seem to be there for iterator tag.
>> >
>> > I am doing something like this:
>> >
>> > 
>> >
>> >   
>> >   
>> >   
>> > 
>> >
>> > But this way, In first iteration I am getting elements 0, 1 and 2 but in
>> > second iteration I Am again getting elements 1, 2 and 3 instead in first
>> > iteration I want to get elements 0, 1, 2 and in second iteration get 3,
>> 4,
>> > 5
>> > and so on
>> >
>> > begin, end, step seems like would work but I get compilation errors when
>> > using those since the TLD does not support them
>> > On Tue, Jun 2, 2009 at 1:21 AM, Bhaarat Sharma 
>> > wrote:
>> >
>> > > thanks dale.
>> > > Your solutions seems to be very good.
>> > >
>> > > Could you or someone else please explain what exactly this line means?
>> > >
>> > > 
>> > > 
>> > >
>> > > On Sun, May 31, 2009 at 10:58 AM, Dale Newfield 
>> > wrote:
>> > >
>> > >> Bhaarat Sharma wrote:
>> > >>
>> > >>> So I'll have something like this to create my iteratorList
>> > >>>
>> > >>> int sizeList = dataList.size();
>> > >>> List iterList = new ArrayList();
>> > >>>
>> > >>> for (i = 0; i <= sizeList; i=i+2)
>> > >>> {
>> > >>>   iterList.add(i);
>> > >>> }
>> > >>>
>> > >>>
>> > >>>So now I have a iterList. I can iterate over it in my struts2
>> code
>> > >>>
>> > >>> 
>> > >>>> value="((myClass)dataList.get(stat)).someClassMethod"/>
>> > >>> > > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > >> For additional commands, e-mail: user-h...@struts.apache.org
>> > >>
>> > >>
>> > >
>> >
>>
>
>


Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Bhaarat Sharma
currently, I am not using jstl tags at all inmy application.
Isnt there anyway to achive this using strictly struts2 tags?

On Tue, Jun 2, 2009 at 1:50 AM, Chris Pratt  wrote:

> You can use the  tag for that type of iteration.
>   (*Chris*)
>
> On Mon, Jun 1, 2009 at 10:36 PM, Bhaarat Sharma 
> wrote:
>
> > 
> > 
> >
> >
> > the above properties dont seem to be there for iterator tag.
> >
> > I am doing something like this:
> >
> > 
> >
> >   
> >   
> >   
> > 
> >
> > But this way, In first iteration I am getting elements 0, 1 and 2 but in
> > second iteration I Am again getting elements 1, 2 and 3 instead in first
> > iteration I want to get elements 0, 1, 2 and in second iteration get 3,
> 4,
> > 5
> > and so on
> >
> > begin, end, step seems like would work but I get compilation errors when
> > using those since the TLD does not support them
> > On Tue, Jun 2, 2009 at 1:21 AM, Bhaarat Sharma 
> > wrote:
> >
> > > thanks dale.
> > > Your solutions seems to be very good.
> > >
> > > Could you or someone else please explain what exactly this line means?
> > >
> > > 
> > > 
> > >
> > > On Sun, May 31, 2009 at 10:58 AM, Dale Newfield 
> > wrote:
> > >
> > >> Bhaarat Sharma wrote:
> > >>
> > >>> So I'll have something like this to create my iteratorList
> > >>>
> > >>> int sizeList = dataList.size();
> > >>> List iterList = new ArrayList();
> > >>>
> > >>> for (i = 0; i <= sizeList; i=i+2)
> > >>> {
> > >>>   iterList.add(i);
> > >>> }
> > >>>
> > >>>
> > >>>So now I have a iterList. I can iterate over it in my struts2 code
> > >>>
> > >>> 
> > >>> value="((myClass)dataList.get(stat)).someClassMethod"/>
> > >>>  > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > >> For additional commands, e-mail: user-h...@struts.apache.org
> > >>
> > >>
> > >
> >
>


Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Chris Pratt
You can use the  tag for that type of iteration.
  (*Chris*)

On Mon, Jun 1, 2009 at 10:36 PM, Bhaarat Sharma  wrote:

> 
> 
>
>
> the above properties dont seem to be there for iterator tag.
>
> I am doing something like this:
>
> 
>
>   
>   
>   
> 
>
> But this way, In first iteration I am getting elements 0, 1 and 2 but in
> second iteration I Am again getting elements 1, 2 and 3 instead in first
> iteration I want to get elements 0, 1, 2 and in second iteration get 3, 4,
> 5
> and so on
>
> begin, end, step seems like would work but I get compilation errors when
> using those since the TLD does not support them
> On Tue, Jun 2, 2009 at 1:21 AM, Bhaarat Sharma 
> wrote:
>
> > thanks dale.
> > Your solutions seems to be very good.
> >
> > Could you or someone else please explain what exactly this line means?
> >
> > 
> > 
> >
> > On Sun, May 31, 2009 at 10:58 AM, Dale Newfield 
> wrote:
> >
> >> Bhaarat Sharma wrote:
> >>
> >>> So I'll have something like this to create my iteratorList
> >>>
> >>> int sizeList = dataList.size();
> >>> List iterList = new ArrayList();
> >>>
> >>> for (i = 0; i <= sizeList; i=i+2)
> >>> {
> >>>   iterList.add(i);
> >>> }
> >>>
> >>>
> >>>So now I have a iterList. I can iterate over it in my struts2 code
> >>>
> >>> 
> >>>
> >>>  >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> >
>


Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Bhaarat Sharma




the above properties dont seem to be there for iterator tag.

I am doing something like this:



   
   
   


But this way, In first iteration I am getting elements 0, 1 and 2 but in
second iteration I Am again getting elements 1, 2 and 3 instead in first
iteration I want to get elements 0, 1, 2 and in second iteration get 3, 4, 5
and so on

begin, end, step seems like would work but I get compilation errors when
using those since the TLD does not support them
On Tue, Jun 2, 2009 at 1:21 AM, Bhaarat Sharma  wrote:

> thanks dale.
> Your solutions seems to be very good.
>
> Could you or someone else please explain what exactly this line means?
>
> 
> 
>
> On Sun, May 31, 2009 at 10:58 AM, Dale Newfield  wrote:
>
>> Bhaarat Sharma wrote:
>>
>>> So I'll have something like this to create my iteratorList
>>>
>>> int sizeList = dataList.size();
>>> List iterList = new ArrayList();
>>>
>>> for (i = 0; i <= sizeList; i=i+2)
>>> {
>>>   iterList.add(i);
>>> }
>>>
>>>
>>>So now I have a iterList. I can iterate over it in my struts2 code
>>>
>>> 
>>>
>>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>


Re: why doesnt iterator tag provide 'next'

2009-06-01 Thread Bhaarat Sharma
thanks dale.
Your solutions seems to be very good.

Could you or someone else please explain what exactly this line means?




On Sun, May 31, 2009 at 10:58 AM, Dale Newfield  wrote:

> Bhaarat Sharma wrote:
>
>> So I'll have something like this to create my iteratorList
>>
>> int sizeList = dataList.size();
>> List iterList = new ArrayList();
>>
>> for (i = 0; i <= sizeList; i=i+2)
>> {
>>   iterList.add(i);
>> }
>>
>>
>>So now I have a iterList. I can iterate over it in my struts2 code
>>
>> 
>>
>>  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Iterating over a List of Lists

2009-06-01 Thread DavidCAIT

Hello,

I am trying to use a nested List> with a Struts 2 Action and
a JSP page. I would like to iterate through the JSP page to display the
existing data, allow the user to edit the data, and post the form to a
second Action. However, my second Struts Action always receives back a null
list. I think that my indexing in the JSP page is incorrect. Does anyone
have any suggestion about the correct way to index a nested list on the JSP
page?

This is how I am currently setting my indices:

myList[0][0].property
myList[0][1].property

myList[1][0].property
...

My JSP code looks like:


   
   



Inside my second Struts action, I have the following code (the first action
merely retrieves the list from the database and it works correctly since the
JSP does populate correctly with all of the db records):

private List> myList = new ArrayList>();

public List> getMyList() { return myList; }

public void setMyList(List> numbers) { myList = numbers; }

// this execute method is called when posting the form and always returns
null
// when the user is done updating the information
// even though the first action correctly populated the JSP page
public String execute() {
  for (List theList : myList) {
  if (theList == null) {
 System.out.println("received a null list");
  }
   }
}

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Iterating-over-a-List-of-Lists-tp23824944p23824944.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



Re: How to access variable in JSP tag scope from struts 2 tags (OGNL expression)

2009-06-01 Thread Wes Wannemacher
On Mon, Jun 1, 2009 at 4:54 PM, rdk1  wrote:
>
> Wow! #attr.user.friends actually works! How esoteric...
>
>
>
> Anyway, thank you Wes
>
> RK
> --

No problem, explanations here -

http://struts.apache.org/2.x/docs/ognl.html
http://struts.apache.org/2.x/docs/ognl-basics.html


-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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



Re: How to access variable in JSP tag scope from struts 2 tags (OGNL expression)

2009-06-01 Thread rdk1

Wow! #attr.user.friends actually works! How esoteric...



Anyway, thank you Wes

RK
-- 
View this message in context: 
http://www.nabble.com/How-to-access-variable-in-JSP-tag-scope-from-struts-2-tags-%28OGNL-expression%29-tp23820238p23822150.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



Re: How to access variable in JSP tag scope from struts 2 tags (OGNL expression)

2009-06-01 Thread Dave Newton

rdk1 wrote:
#request.user.friends doesn't work, nor #page.user.friends 


What are the possibilities you could provide a bit more context?

Dave

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



Re: How to access variable in JSP tag scope from struts 2 tags (OGNL expression)

2009-06-01 Thread Wes Wannemacher
Maybe - #attr.user.friends ?

I would assume that if ${user.name} works, then #attr should be able to find it.

-Wes

On Mon, Jun 1, 2009 at 4:23 PM, rdk1  wrote:
>
> #request.user.friends doesn't work, nor #page.user.friends
>
> RK
> --
> View this message in context: 
> http://www.nabble.com/How-to-access-variable-in-JSP-tag-scope-from-struts-2-tags-%28OGNL-expression%29-tp23820238p23821167.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
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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



Re: How to access variable in JSP tag scope from struts 2 tags (OGNL expression)

2009-06-01 Thread rdk1

#request.user.friends doesn't work, nor #page.user.friends 

RK
-- 
View this message in context: 
http://www.nabble.com/How-to-access-variable-in-JSP-tag-scope-from-struts-2-tags-%28OGNL-expression%29-tp23820238p23821167.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



Re: How to access variable in JSP tag scope from struts 2 tags (OGNL expression)

2009-06-01 Thread Wes Wannemacher
Do you know which scope it is defined in?

I would try the following -

 wrote:
>
> Hello,
>
> how can I access variable that is defined inside the body of third party
> (not struts2) tag? Example:
>
>        items="${users}"
>      var="user">
>
>      ${user.name}  <%-- works  --%>
>
>       <%-- doesn't work  --%>
>          
>      
>
>  
>
>
> I know that JSP EL is forbidden in struts2 tags. But how could I access
> variable "user" in example then? I haven't found anything about it in docs.
> Please help me out, I'm completely lost here.
> I use latest struts 2.1.7 (built from source).
>
>
> RK
> --
> View this message in context: 
> http://www.nabble.com/How-to-access-variable-in-JSP-tag-scope-from-struts-2-tags-%28OGNL-expression%29-tp23820238p23820238.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
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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



How to access variable in JSP tag scope from struts 2 tags (OGNL expression)

2009-06-01 Thread Radoslav Krivak

Hello,

how can I access variable that is defined inside the body of third party
(not struts2) tag? Example:

  

  ${user.name}  <%-- works  --%>

   <%-- doesn't work  --%>

  

  


I know that JSP EL is forbidden in struts2 tags. But how could I access
variable "user" in example then? I haven't found anything about it in docs.
Please help me out, I'm completely lost here.
I use latest struts 2.1.7 (built from source).


RK
-- 
View this message in context: 
http://www.nabble.com/How-to-access-variable-in-JSP-tag-scope-from-struts-2-tags-%28OGNL-expression%29-tp23820238p23820238.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



RE: 2.1.6 convention plugin problem

2009-06-01 Thread Martin Gainty

which cleared the misconfig

for future reference if a struts<-default>.xml configuration is requested
please supply the requested configuration(s) with proprietary values blanked 
out  

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
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.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Mon, 1 Jun 2009 09:42:06 -0700
> From: rc...@i-tao.com
> To: user@struts.apache.org
> Subject: Re: 2.1.6 convention plugin problem
> 
> 
> that kind of worked, I had to make some tweaks
> 
> in struts.xml
> 
>   
> 
> 
> then in my HomeAction.java
> @ParentPackage("root")
> @Results({
>   @Result(name="SUCCESS", location="home.ftl")
> })
> 
> this is even better than an index.jsp that redirects
> 
> Thanks
> Ron
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23818024.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
> 

_
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

Re: 2.1.6 convention plugin problem

2009-06-01 Thread Ron Chan

that kind of worked, I had to make some tweaks

in struts.xml

  


then in my HomeAction.java
@ParentPackage("root")
@Results({
  @Result(name="SUCCESS", location="home.ftl")
})

this is even better than an index.jsp that redirects

Thanks
Ron


-- 
View this message in context: 
http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23818024.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



Re: 2.1.6 convention plugin problem

2009-06-01 Thread Musachy Barroso
I usually do something like this:




/WEB-INF/content/home.jsp





musachy

On Mon, Jun 1, 2009 at 6:11 AM, Ron Chan  wrote:
>
> just to clarify
>
> this works
> http://myserver/myapp/whatever.action
> and to maps to
> WhateverAction.java and whatever.ftl
>
> so application is basically working
>
> but
> http://myserver/myapp/
> does not work
> gives 404 with
> There is no Action mapped for namespace / and action name .
>
> the action name being empty string
>
> usually, including in all the struts2 examples, you want this to go to
> index.jsp or equivalent and do a redirect from there
>
>
> --
> View this message in context: 
> http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23814732.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
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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



RE: 2.1.6 convention plugin problem

2009-06-01 Thread Martin Gainty

if the default Action name assignments arent working because of 
misconfiguration then assign the specific url
Action annotation

The Convention plugin allows action classes to change the URL that they are 
mapped to using the Action annotation. This annotation can also be used inside 
the Actions annotation to allow multiple URLs to map to a single action class. 
This annotation must be defined on action methods like this:


com.example.actions.HelloWorld
package com.example.actions;

import com.opensymphony.xwork2.ActionSupport; 
import org.apache.struts2.convention.annotation.Action;

public class HelloWorld extends ActionSupport {
  @Action("/different/url")
  public String execute() {
return SUCCESS;
  }

public class UndisclosedAndUndocumentedAction extends ActionSupport {
@Action("/myapp")

keep in mind
If no @Result is specified, then the
namespace of the action will be used as the path to the result, on our
last example it would be "/WEB-INF/content/myapp/Result.jsp".

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
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.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Mon, 1 Jun 2009 06:11:22 -0700
> From: rc...@i-tao.com
> To: user@struts.apache.org
> Subject: RE: 2.1.6 convention plugin problem
> 
> 
> just to clarify
> 
> this works
> http://myserver/myapp/whatever.action 
> and to maps to
> WhateverAction.java and whatever.ftl
> 
> so application is basically working
> 
> but 
> http://myserver/myapp/
> does not work
> gives 404 with
> There is no Action mapped for namespace / and action name .
> 
> the action name being empty string
> 
> usually, including in all the struts2 examples, you want this to go to
> index.jsp or equivalent and do a redirect from there
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23814732.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
> 

_
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

RE: 2.1.6 convention plugin problem

2009-06-01 Thread Ron Chan

just to clarify

this works
http://myserver/myapp/whatever.action 
and to maps to
WhateverAction.java and whatever.ftl

so application is basically working

but 
http://myserver/myapp/
does not work
gives 404 with
There is no Action mapped for namespace / and action name .

the action name being empty string

usually, including in all the struts2 examples, you want this to go to
index.jsp or equivalent and do a redirect from there


-- 
View this message in context: 
http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23814732.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



RE: 2.1.6 convention plugin problem

2009-06-01 Thread Ron Chan

Martin

Sorry, I have looked in those docs but can't see anything about this.  I
have got all the convention stuff up and running, that is not the problem,
it is just when you are at the root url where you need it to go to the
index.html or index.jsp to do a redirect to your start action is where it is
falling over.

At the moment I have hacked in a piece of code to the filter to say when the
action name is empty string make the mapping null.

Thanks
Ron

-- 
View this message in context: 
http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23814119.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



RE: 2.1.6 convention plugin problem

2009-06-01 Thread Martin Gainty


http://struts.apache.org/2.1.6/docs/convention-plugin.html

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
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.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Mon, 1 Jun 2009 03:53:11 -0700
> From: rc...@i-tao.com
> To: user@struts.apache.org
> Subject: 2.1.6 convention plugin problem
> 
> 
> in StrutsPrepareAndExecuteFilter in 2.1
> 
> doFilter contains
> ActionMapping mapping = prepare.findActionMapping(request, response);
> if (mapping == null) {
> boolean handled =
> execute.executeStaticResourceRequest(request, response);
> 
> however, when using with convention plugin, when accessing the base url 
> e.g. http://server/myapp/
> 
> mapping is not null but contains an empty space for the action name
> 
> therefore it errors and never returns index.html or index.jsp or whatever is
> in welcome file list
> 
> am I missing a setting somewhere?
> 
> Thanks
> Ron
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23813162.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
> 

_
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009

2.1.6 convention plugin problem

2009-06-01 Thread Ron Chan

in StrutsPrepareAndExecuteFilter in 2.1

doFilter contains
ActionMapping mapping = prepare.findActionMapping(request, response);
if (mapping == null) {
boolean handled =
execute.executeStaticResourceRequest(request, response);

however, when using with convention plugin, when accessing the base url 
e.g. http://server/myapp/

mapping is not null but contains an empty space for the action name

therefore it errors and never returns index.html or index.jsp or whatever is
in welcome file list

am I missing a setting somewhere?

Thanks
Ron


-- 
View this message in context: 
http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23813162.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



Design Question Global Properties

2009-06-01 Thread Richard Sayre
I have some global properties in my application that I need to access
from several of my JSP pages.

In my application I have a base action which all of my actions use.  I
was thinking of putting a getGlobalProperties method in that action
that return an instance of an Singleton that holds my properties.

My other thought was to use an interceptor plus a singleton to add the
properties to the stack.  I'm not sure if this is possible with an
interceptor.

I am looking for some feedback on these designs.  I am leaning towards
the base action + singleton to do this but I want to make sure I am
making a good decision here.

Thanks,

Rich

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



Strut 2.1 and jfreechart plugin

2009-06-01 Thread arne_sht
Hi
I am using the jfreechart plugin supplyed with the Struts 2.1.6 download I 
manage to get a chart but can't get tooltip to work. Is there anyone who have 
used tooltip together with jfreechart plugin.


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