Re: struts tags: How to use a list inside another list

2011-06-14 Thread Alexandru
thank you, it does work. But i have a problem with arranging the items in the 
form.
This is my form
s:form action=do-translate-document cssClass=formtable
        method=POST
        s:iterator value=contentList
            p
                s:property value=expression /
            /p
            s:textarea /
            s:iterator value=translations
       
         ps:property value=translation //p
            /s:iterator
        /s:iterator
        s:submit /
    /s:form

As seen from form i'm trying to achieve this structure:
expression
texarea_for_new_translation_input
submited_translation0
submited_translation1
etc

but what i get is different. (check the attachment)
--- On Mon, 6/13/11, Maurizio Cucchiara mcucchi...@apache.org wrote:

From: Maurizio Cucchiara mcucchi...@apache.org
Subject: Re: struts tags: How to use a list inside another list
To: Struts Users Mailing List
 user@struts.apache.org
Date: Monday, June 13, 2011, 6:33 PM

Try this, AFAICR it should be work
s: itarator list=x
        s: itarator list=y
        /s:iterator
/s:iterator

On 14 June 2011 00:21, Alexandru icid...@yahoo.com wrote:
 I want to do somethink like this
 s: itarator list=x
     s: itarator list=x.y
     /s:iterator
 /s:iterator
 is it possible? Or should i use two separate lists?




-- 
Maurizio Cucchiara

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


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

Re: struts tags: How to use a list inside another list

2011-06-14 Thread Maurizio Cucchiara
I'm not sure it will help, but switching to simple theme, surely will be
helpful.
So, try to add this line in your struts.xml file:

constant name=struts.ui.theme value=simple/


On 14 June 2011 12:15, Alexandru icid...@yahoo.com wrote:

 thank you, it does work. But i have a problem with arranging the items in
 the form.
 This is my form
 s:form action=do-translate-document cssClass=formtable
 method=POST
 s:iterator value=contentList
 p
 s:property value=expression /
 /p
 s:textarea /
 s:iterator value=translations
 ps:property value=translation //p
 /s:iterator
 /s:iterator
 s:submit /
 /s:form

 As seen from form i'm trying to achieve this structure:
 expression
 texarea_for_new_translation_input
 submited_translation0
 submited_translation1
 etc

 but what i get is different. (check the attachment)
 --- On *Mon, 6/13/11, Maurizio Cucchiara mcucchi...@apache.org* wrote:


 From: Maurizio Cucchiara mcucchi...@apache.org
 Subject: Re: struts tags: How to use a list inside another list
 To: Struts Users Mailing List user@struts.apache.org
 Date: Monday, June 13, 2011, 6:33 PM

 Try this, AFAICR it should be work
 s: itarator list=x
 s: itarator list=y
 /s:iterator
 /s:iterator

 On 14 June 2011 00:21, Alexandru icid...@yahoo.com wrote:
  I want to do somethink like this
  s: itarator list=x
  s: itarator list=x.y
  /s:iterator
  /s:iterator
  is it possible? Or should i use two separate lists?
 



 --
 Maurizio Cucchiara

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




-- 
Maurizio Cucchiara


RE: struts tags: How to use a list inside another list

2011-06-14 Thread Baubak Gandomi
Hi There 

 

For your code to work :

You should a class in your context that :

-  Has a field called contentList. The filed contentList should be of 
a type that Has the fields

o   expression

o   translations. This field should then be of a type that has a field called:

§  translation

 

I hope this helps. 

 

Good Luck

 

From: Alexandru [mailto:icid...@yahoo.com] 
Sent: mardi 14 juin 2011 12:16
To: Struts Users Mailing List; mcucchi...@apache.org
Subject: Re: struts tags: How to use a list inside another list

 

thank you, it does work. But i have a problem with arranging the items in the 
form.
This is my form
s:form action=do-translate-document cssClass=formtable
method=POST
s:iterator value=contentList
p
s:property value=expression /
/p
s:textarea /
s:iterator value=translations
ps:property value=translation //p
/s:iterator
/s:iterator
s:submit /
/s:form

As seen from form i'm trying to achieve this structure:
expression
texarea_for_new_translation_input
submited_translation0
submited_translation1
etc

but what i get is different. (check the attachment)
--- On Mon, 6/13/11, Maurizio Cucchiara mcucchi...@apache.org wrote:


From: Maurizio Cucchiara mcucchi...@apache.org
Subject: Re: struts tags: How to use a list inside another list
To: Struts Users Mailing List user@struts.apache.org
Date: Monday, June 13, 2011, 6:33 PM

Try this, AFAICR it should be work
s: itarator list=x
s: itarator list=y
/s:iterator
/s:iterator

On 14 June 2011 00:21, Alexandru icid...@yahoo.com wrote:
 I want to do somethink like this
 s: itarator list=x
 s: itarator list=x.y
 /s:iterator
 /s:iterator
 is it possible? Or should i use two separate lists?




-- 
Maurizio Cucchiara

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

 



Re: struts tags: How to use a list inside another list

2011-06-14 Thread Alexandru
Yes, that worked. But now the key attribute doesn't work. I can't get my 
element labels from my .properties file. Is there another way?

--- On Tue, 6/14/11, Maurizio Cucchiara mcucchi...@apache.org wrote:

From: Maurizio Cucchiara mcucchi...@apache.org
Subject: Re: struts tags: How to use a list inside another list
To: Alexandru icid...@yahoo.com
Cc: Struts Users Mailing List user@struts.apache.org
Date: Tuesday, June 14, 2011, 6:39 AM

I'm not sure it will help, but switching to simple theme, surely will be
helpful.
So, try to add this line in your struts.xml file:

constant name=struts.ui.theme value=simple/


On 14 June 2011 12:15, Alexandru icid...@yahoo.com wrote:

 thank you, it does work. But i have a problem with arranging the items in
 the form.
 This is my form
 s:form action=do-translate-document cssClass=formtable
         method=POST
         s:iterator value=contentList
             p
                 s:property value=expression /
             /p
             s:textarea /
             s:iterator value=translations
                 ps:property value=translation //p
             /s:iterator
         /s:iterator
         s:submit /
     /s:form

 As seen from form i'm trying to achieve this structure:
 expression
 texarea_for_new_translation_input
 submited_translation0
 submited_translation1
 etc

 but what i get is different. (check the attachment)
 --- On *Mon, 6/13/11, Maurizio Cucchiara mcucchi...@apache.org* wrote:


 From: Maurizio Cucchiara mcucchi...@apache.org
 Subject: Re: struts tags: How to use a list inside another list
 To: Struts Users Mailing List user@struts.apache.org
 Date: Monday, June 13, 2011, 6:33 PM

 Try this, AFAICR it should be work
 s: itarator list=x
         s: itarator list=y
         /s:iterator
 /s:iterator

 On 14 June 2011 00:21, Alexandru icid...@yahoo.com wrote:
  I want to do somethink like this
  s: itarator list=x
          s: itarator list=x.y
          /s:iterator
  /s:iterator
  is it possible? Or should i use two separate lists?
 



 --
 Maurizio Cucchiara

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




-- 
Maurizio Cucchiara


Re: struts tags: How to use a list inside another list

2011-06-14 Thread Dave Newton
I don't see a key attribute anywhere, maybe that's why it doesn't work.

In any case: to remove the default theme's (xhtml) formatting, you use
the simple theme. You lose a lot of what Struts provides you,
however.

You may wish to explore a custom theme.

Dave

On Tue, Jun 14, 2011 at 7:01 AM, Alexandru icid...@yahoo.com wrote:
 Yes, that worked. But now the key attribute doesn't work. I can't get my 
 element labels from my .properties file. Is there another way?

 --- On Tue, 6/14/11, Maurizio Cucchiara mcucchi...@apache.org wrote:

 From: Maurizio Cucchiara mcucchi...@apache.org
 Subject: Re: struts tags: How to use a list inside another list
 To: Alexandru icid...@yahoo.com
 Cc: Struts Users Mailing List user@struts.apache.org
 Date: Tuesday, June 14, 2011, 6:39 AM

 I'm not sure it will help, but switching to simple theme, surely will be
 helpful.
 So, try to add this line in your struts.xml file:

 constant name=struts.ui.theme value=simple/


 On 14 June 2011 12:15, Alexandru icid...@yahoo.com wrote:

 thank you, it does work. But i have a problem with arranging the items in
 the form.
 This is my form
 s:form action=do-translate-document cssClass=formtable
         method=POST
         s:iterator value=contentList
             p
                 s:property value=expression /
             /p
             s:textarea /
             s:iterator value=translations
                 ps:property value=translation //p
             /s:iterator
         /s:iterator
         s:submit /
     /s:form

 As seen from form i'm trying to achieve this structure:
 expression
 texarea_for_new_translation_input
 submited_translation0
 submited_translation1
 etc

 but what i get is different. (check the attachment)
 --- On *Mon, 6/13/11, Maurizio Cucchiara mcucchi...@apache.org* wrote:


 From: Maurizio Cucchiara mcucchi...@apache.org
 Subject: Re: struts tags: How to use a list inside another list
 To: Struts Users Mailing List user@struts.apache.org
 Date: Monday, June 13, 2011, 6:33 PM

 Try this, AFAICR it should be work
 s: itarator list=x
         s: itarator list=y
         /s:iterator
 /s:iterator

 On 14 June 2011 00:21, Alexandru icid...@yahoo.com wrote:
  I want to do somethink like this
  s: itarator list=x
          s: itarator list=x.y
          /s:iterator
  /s:iterator
  is it possible? Or should i use two separate lists?
 



 --
 Maurizio Cucchiara

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




 --
 Maurizio Cucchiara


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



Re: struts tags: How to use a list inside another list

2011-06-14 Thread Alexandru
No , i don't have key attribute in this form, that's true. I use it somewhere 
else.
But I think i found a suitable fix now.. i reverted to struts standard theme 
and changed the textarea to a html-type one. Looks like this

    s:form action=do-translate-document cssClass=formtable
        method=POST
        s:iterator value=contentList
            trtd
            p
                s:property value=expression /
            /p
            textarea  /textarea
            s:iterator value=translations
                ps:property value=translation //p
            /s:iterator
            /td/tr
        /s:iterator
        s:submit /
    /s:form

Thanks for your input, guys!

--- On Tue, 6/14/11, Dave Newton davelnew...@gmail.com wrote:

From: Dave Newton davelnew...@gmail.com
Subject: Re: struts tags: How to use a list inside another list
To: Struts Users Mailing List user@struts.apache.org
Cc: mcucchi...@apache.org
Date: Tuesday, June 14, 2011, 7:05 AM

I don't see a key attribute anywhere, maybe that's why it doesn't work.

In any case: to remove the default theme's (xhtml) formatting, you use
the simple theme. You lose a lot of what Struts provides you,
however.

You may wish to explore a custom theme.

Dave

On Tue, Jun 14, 2011 at 7:01 AM, Alexandru icid...@yahoo.com wrote:
 Yes, that worked. But now the key attribute doesn't work. I can't get my 
 element labels from my .properties file. Is there another way?

 --- On Tue, 6/14/11, Maurizio Cucchiara mcucchi...@apache.org wrote:

 From: Maurizio Cucchiara mcucchi...@apache.org
 Subject: Re: struts tags: How to use a list inside another list
 To: Alexandru icid...@yahoo.com
 Cc: Struts Users Mailing List user@struts.apache.org
 Date: Tuesday, June 14, 2011, 6:39 AM

 I'm not sure it will help, but switching to simple theme, surely will be
 helpful.
 So, try to add this line in your struts.xml file:

 constant name=struts.ui.theme value=simple/


 On 14 June 2011 12:15, Alexandru icid...@yahoo.com wrote:

 thank you, it does work. But i have a problem with arranging the items in
 the form.
 This is my form
 s:form action=do-translate-document cssClass=formtable
         method=POST
         s:iterator value=contentList
             p
                 s:property value=expression /
             /p
             s:textarea /
             s:iterator value=translations
                 ps:property value=translation //p
             /s:iterator
         /s:iterator
         s:submit /
     /s:form

 As seen from form i'm trying to achieve this structure:
 expression
 texarea_for_new_translation_input
 submited_translation0
 submited_translation1
 etc

 but what i get is different. (check the attachment)
 --- On *Mon, 6/13/11, Maurizio Cucchiara mcucchi...@apache.org* wrote:


 From: Maurizio Cucchiara mcucchi...@apache.org
 Subject: Re: struts tags: How to use a list inside another list
 To: Struts Users Mailing List user@struts.apache.org
 Date: Monday, June 13, 2011, 6:33 PM

 Try this, AFAICR it should be work
 s: itarator list=x
         s: itarator list=y
         /s:iterator
 /s:iterator

 On 14 June 2011 00:21, Alexandru icid...@yahoo.com wrote:
  I want to do somethink like this
  s: itarator list=x
          s: itarator list=x.y
          /s:iterator
  /s:iterator
  is it possible? Or should i use two separate lists?
 



 --
 Maurizio Cucchiara

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




 --
 Maurizio Cucchiara


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



Re: struts tags: How to use a list inside another list

2011-06-14 Thread Alexandru
Is there a way to submit the contentList back to the server? in other words, 
can i send a list from jsp to struts? I tried the following but it doesn't work:

    s:form action=do-translate-document cssClass=formtable
        method=POST
        s:iterator value=contentList
            trtd
            p 
                s:property value=expression /
            /p
            s:hidden name=id/
            textarea name=contentList.content.translations.translation 
/textarea
            s:iterator value=translations
                p class=translations:property value=translation //p
            /s:iterator
            /td/tr
        /s:iterator
        s:submit /
    /s:form




Fw: RE: struts tags: How to use a list inside another list

2011-06-14 Thread Alexandru


--- On Tue, 6/14/11, Alexandru icid...@yahoo.com wrote:

From: Alexandru icid...@yahoo.com
Subject: RE: struts tags: How to use a list inside another list
To: Martin Gainty mgai...@hotmail.com
Date: Tuesday, June 14, 2011, 9:15 AM

So it is possible to send a list with another list ( 2d list) to a servlet? My 
sources follows:

    s:form action=do-translate-document cssClass=formtable
        method=POST
        s:iterator value=contentList
            trtd
            p class=expression
                s:property value=expression /
            /p
            s:hidden name=content.id/
            textarea
 name=contentList.content.translations.translation /textarea
            s:iterator value=translations
                p class=translations:property value=translation //p
            /s:iterator
            /td/tr
        /s:iterator
        s:submit /
    /s:form

Content.java
**
public class Content {
    private Long id;
    private String expression;
    private ListTranslation translations;
    
    public void setExpression(String expression)
 {
        this.expression = expression;
    }


    public String getExpression() {
        return expression;
    }
    
    public void setTranslations(ListTranslation translation) {
        this.translations = translation;
    }
    
    public ListTranslation getTranslations() {
        if(translations == null)
            translations = new ArrayListTranslation();
        return this.translations;
    }
    
    public void addTranslation(Translation translation){
       
 getTranslations().add(translation);
    }
    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

}


Translation.java

public class Translation {
    private Long id;
    private Content expression;
    private String translation;
    
    public Translation(){}
    
    public Translation(String s){
        translation = s;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    
    public
 Long getId() {
        return id;
    }

    public void setExpression(Content expression) {
        this.expression = expression;
    }

    public Content getExpression() {
        return expression;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }

    public String getTranslation() {
        return translation;
    }
}


TranslateDocumentAction.java
***
public class TranslateDocumentAction extends ActionSupport {

    private static final long serialVersionUID = -1752813781713631809L;
   
 private ListDocument documentList;
    private ListContent contentList;
    private String project_id; //Project's id
    private String document_id;//Document's id
 
    
    public String selectDocument(){
        Session s = HibernateUtil.getSessionFactory().openSession();
        if(document_id == null){
            documentList= (ListDocument)s.createQuery(from Document d where 
d.project=+project_id).list();
        }else{
            documentList= (ListDocument)s.createQuery(from Document d where 
d.project=+project_id).list();
            contentList = (ListContent)
 s.createQuery(from Content c where c.document=+document_id).list();
        }
        s.close();
        return SUCCESS;
    }
    
    public void validate(){}
    
    public void setDocumentList(ListDocument documentList) {
        this.documentList = documentList;
    }

    public ListDocument getDocumentList() {
        if(documentList ==null)
            documentList = new ArrayListDocument();
        return documentList;
    }

    public void setProject_id(String project_id) {
   
     this.project_id = project_id;
    }

    public String getProject_id() {
        return project_id;
    }

    public void setDocument_id(String document_id) {
        this.document_id = document_id;
    }

    public String getDocument_id() {
        return document_id;
    }

    public void setContentList(ListContent contentList) {
        this.contentList = contentList;
    }

    public ListContent getContentList() {
        return contentList;
    }
}



--- On Tue, 6/14/11, Martin Gainty
 mgai...@hotmail.com wrote:

From: Martin Gainty mgai...@hotmail.com
Subject: RE: struts tags: How to use a list inside another list
To: icid...@yahoo.com
Date: Tuesday, June 14, 2011, 8:52 AM





 
without looking at the Action class and the struts-config.xml it is difficult 
to determine the failure to submit problem ..i did notice
1)contentList.content.translations.translation whwre name is not camelcase but 
lowercase and does not include package identitifer e.g.
name=name
2)you endtag textarea to exclude s:iterator value=translations..thus 
textarea is one giant block of text without any relationship
to any of the other declared properties
3)the declared iterator s:iterator value=translations has no knowledge or 
association with previous iterator s:iterator value=translations and 

RE: struts tags: How to use a list inside another list

2011-06-14 Thread Martin Gainty

Assume this architecture:
 Action
 |
 v
   1...n Content
 |
 v
  1..n Translation

s:iterator value=contentList status=contentListStatus
  s:iterator value=top status=translationsStatus
 tds:property value=id //td
 tds:property value=expression //td
 tds:property value=translation //td
 /tr
 /s:iterator

2)
 Session s = HibernateUtil.getSessionFactory().openSession();
 if(document_id == null){
 documentList= (ListDocument)s.createQuery(from Document d 
 where d.project=+project_id).list();
 }else{
 documentList= (ListDocument)s.createQuery(from Document d 
 where d.project=+project_id).list();
 contentList = (ListContent)
  s.createQuery(from Content c where c.document=+document_id).list();
 }
//I must have  missed where is  document_id is populated before the handoff to 
hibernate?

3)struts-config.xml contains action declaration with result-type declarations 
for success and or fail and or input results
i assume you have a success result-type declaration for or a default 
result-type?
action name=MyAction class=packageName.MyAction
resultsuccess.jsp/result
/action

?
Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

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: Tue, 14 Jun 2011 06:16:36 -0700
 From: icid...@yahoo.com
 Subject: Fw: RE: struts tags: How to use a list inside another list
 To: user@struts.apache.org
 
 
 
 --- On Tue, 6/14/11, Alexandru icid...@yahoo.com wrote:
 
 From: Alexandru icid...@yahoo.com
 Subject: RE: struts tags: How to use a list inside another list
 To: Martin Gainty mgai...@hotmail.com
 Date: Tuesday, June 14, 2011, 9:15 AM
 
 So it is possible to send a list with another list ( 2d list) to a servlet? 
 My sources follows:
 
 s:form action=do-translate-document cssClass=formtable
 method=POST
 s:iterator value=contentList
 trtd
 p class=expression
 s:property value=expression /
 /p
 s:hidden name=content.id/
 textarea
  name=contentList.content.translations.translation /textarea
 s:iterator value=translations
 p class=translations:property value=translation //p
 /s:iterator
 /td/tr
 /s:iterator
 s:submit /
 /s:form
 
 Content.java
 **
 public class Content {
 private Long id;
 private String expression;
 private ListTranslation translations;
 
 public void setExpression(String expression)
  {
 this.expression = expression;
 }
 
 
 public String getExpression() {
 return expression;
 }
 
 public void setTranslations(ListTranslation translation) {
 this.translations = translation;
 }
 
 public ListTranslation getTranslations() {
 if(translations == null)
 translations = new ArrayListTranslation();
 return this.translations;
 }
 
 public void addTranslation(Translation translation){

  getTranslations().add(translation);
 }
 public void setId(Long id) {
 this.id = id;
 }
 
 public Long getId() {
 return id;
 }
 
 }
 
 
 Translation.java
 
 public class Translation {
 private Long id;
 private Content expression;
 private String translation;
 
 public Translation(){}
 
 public Translation(String s){
  

Emails

2011-06-14 Thread Eric Reed
After registering for this mailing list about a month ago I have been receiving 
spam emails from Ghanna every other day. Is anyone else receiving these?




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



RE: struts tags: How to use a list inside another list

2011-06-14 Thread Alexandru
Martin, it looks like you know what you are doing, but some thing leave me 
puzzled.
Firstly, your code did worked but i don't understand some areas in it
s:iterator value=contentList status=contentListStatus
  s:iterator value=top status=translationsStatus // What's TOP?
         tds:property value=id //td
         tds:property value=expression //td
         tds:property value=translation //td //translation is part of 
Content in a relationship of OneToMany (viewing from content's side). So in 
order to get to translation, in java code, would require this: 
content.getTranslations().get(index).getTranslation(). So that line should go 
somewhere else, perhaps in an other iterator?
     /tr
 /s:iterator

Second, i hope you understood that i want to send a 2d list back to the 
servlet, so there must be a s:hidden name=c.id tag somewhere in those loops 
,where c is a Content object and id is it's corresponding DB id. 

PS: document_id is populated though a hidden field in jsp which is not shown in 
my code snippets. 
And, yes, i mapped the action with the corresponding results. 


I have tried though to work my way out with your code, but i'm stuck at some 
lines...
        s:iterator value=contentList status=contentListStatus
            tr
                s:iterator value=top status=translationsStatus
                    tds:property value=id //tds:hidden name= // 
THIS LINE
                        td
   s:property value=expression /
   textarea name=  /textarea //AND THIS LINE
                        /td
                        tds:iterator value=translations
                                p class=translation
                                    s:property value=translation /
                                /p
                            /s:iterator
                        /td
                /s:iterator
            /tr
        /s:iterator
What should i insert there between the  ? For the first line i need it to 
simulate this:
contentList.get(index).setId(value);
For the second line:
ContentList.get(index).getTranslations().get(index2).setTranslation(value);

Thanks in advance!
--- On Tue, 6/14/11, Martin Gainty mgai...@hotmail.com wrote:

From: Martin Gainty mgai...@hotmail.com
Subject: RE: struts tags: How to use a list inside another list
To: Struts Users Mailing List user@struts.apache.org
Date: Tuesday, June 14, 2011, 10:14 AM


Assume this architecture:
                 Action
                     |
                     v
               1...n Content
                     |
                     v
              1..n Translation

s:iterator value=contentList status=contentListStatus
  s:iterator value=top status=translationsStatus
         tds:property value=id //td
         tds:property value=expression //td
         tds:property value=translation //td
     /tr
 /s:iterator

2)
         Session s = HibernateUtil.getSessionFactory().openSession();
         if(document_id == null){
             documentList= (ListDocument)s.createQuery(from Document d 
where d.project=+project_id).list();
         }else{
             documentList= (ListDocument)s.createQuery(from Document d 
where d.project=+project_id).list();
             contentList = (ListContent)
  s.createQuery(from Content c where c.document=+document_id).list();
         }
//I must have  missed where is  document_id is populated before the handoff to 
hibernate?

3)struts-config.xml contains action declaration with result-type declarations 
for success and or fail and or input results
i assume you have a success result-type declaration for or a default 
result-type?
        action name=MyAction class=packageName.MyAction
            resultsuccess.jsp/result
        /action

?
Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

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. 

Re: Emails

2011-06-14 Thread Saeed Najahi
Nope, not at all

On Tue, Jun 14, 2011 at 2:48 PM, Eric Reed ere...@mail.nysed.gov wrote:

 After registering for this mailing list about a month ago I have been
 receiving spam emails from Ghanna every other day. Is anyone else receiving
 these?




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




-- 

`*The early bird catches the worm, but the second mouse gets the cheese..*`

*NAJAHI Saïd* (* KyouJin-SaMa* )
4ème année G.Info E.N.S.A.Safi
-


Struts2 and FTP (php) editors integration

2011-06-14 Thread webmeiker
Hi,

Have somebody successfully integrated a Struts2 app with some (web)FTP
editor (based in PHP) like ElFinder?

I always get responses like ‘Invalid backend configuration’, ‘Invalid XML
Response’ or things like that.


thanks


Re: Emails

2011-06-14 Thread Brian Thompson
I haven't received any Ghanna spam, but your email made me look in
my span folder this morning.  I discovered a newsletter being sent
there by mistake, so I was glad I went and looked.

In general, though, I haven't had any spam problems related
specifically to this mailing list.

-Brian


On Tue, Jun 14, 2011 at 10:26 AM, Saeed Najahi najah...@gmail.com wrote:
 Nope, not at all

 On Tue, Jun 14, 2011 at 2:48 PM, Eric Reed ere...@mail.nysed.gov wrote:

 After registering for this mailing list about a month ago I have been
 receiving spam emails from Ghanna every other day. Is anyone else receiving
 these?

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



Re: Emails

2011-06-14 Thread Eric Reed
No big deal just seeing if anyone else has been receiving these as I used my 
work email and am very careful when giving it out. I will notify our email 
admins and have them blocked.




 Brian Thompson elephant...@gmail.com 6/14/2011 11:54 AM 
I haven't received any Ghanna spam, but your email made me look in
my span folder this morning.  I discovered a newsletter being sent
there by mistake, so I was glad I went and looked.

In general, though, I haven't had any spam problems related
specifically to this mailing list.

-Brian


On Tue, Jun 14, 2011 at 10:26 AM, Saeed Najahi najah...@gmail.com wrote:
 Nope, not at all

 On Tue, Jun 14, 2011 at 2:48 PM, Eric Reed ere...@mail.nysed.gov wrote:

 After registering for this mailing list about a month ago I have been
 receiving spam emails from Ghanna every other day. Is anyone else receiving
 these?

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




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



Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Dave Newton
On Tuesday, June 14, 2011, webmeiker wrote:
 Have somebody successfully integrated a Struts2 app with some (web)FTP
 editor (based in PHP) like ElFinder?

 I always get responses like ‘Invalid backend configuration’, ‘Invalid XML
 Response’ or things like that.

S2 doesn't implement the FTP protocol out-of-the-box. How are you
trying to do this?

Dave

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



Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Brian Thompson
You sure that isn't the File FTP Protocol? :P

Redundancy FTW!

-Brian


On Tue, Jun 14, 2011 at 11:01 AM, Dave Newton davelnew...@gmail.com wrote:
 On Tuesday, June 14, 2011, webmeiker wrote:
 Have somebody successfully integrated a Struts2 app with some (web)FTP
 editor (based in PHP) like ElFinder?

 I always get responses like ‘Invalid backend configuration’, ‘Invalid XML
 Response’ or things like that.

 S2 doesn't implement the FTP protocol out-of-the-box. How are you
 trying to do this?

 Dave

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



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



Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Dave Newton
Oh, OP meant embedding an HTML component in an S2 I guess. Duh, never mind.

Dave
 On Jun 14, 2011 12:07 PM, Brian Thompson elephant...@gmail.com wrote:
 You sure that isn't the File FTP Protocol? :P

 Redundancy FTW!

 -Brian


 On Tue, Jun 14, 2011 at 11:01 AM, Dave Newton davelnew...@gmail.com
wrote:
 On Tuesday, June 14, 2011, webmeiker wrote:
 Have somebody successfully integrated a Struts2 app with some (web)FTP
 editor (based in PHP) like ElFinder?

 I always get responses like ‘Invalid backend configuration’, ‘Invalid
XML
 Response’ or things like that.

 S2 doesn't implement the FTP protocol out-of-the-box. How are you
 trying to do this?

 Dave

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



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



Re: Emails

2011-06-14 Thread Mohamed SIDI
Hello there,

I have checked and I dont have any E-mail coming from this sender, can you
check if you have done any others actions witch may be the real cause !

2011/6/14 Eric Reed ere...@mail.nysed.gov

 No big deal just seeing if anyone else has been receiving these as I used
 my work email and am very careful when giving it out. I will notify our
 email admins and have them blocked.




  Brian Thompson elephant...@gmail.com 6/14/2011 11:54 AM 
 I haven't received any Ghanna spam, but your email made me look in
 my span folder this morning.  I discovered a newsletter being sent
 there by mistake, so I was glad I went and looked.

 In general, though, I haven't had any spam problems related
 specifically to this mailing list.

 -Brian


 On Tue, Jun 14, 2011 at 10:26 AM, Saeed Najahi najah...@gmail.com wrote:
  Nope, not at all
 
  On Tue, Jun 14, 2011 at 2:48 PM, Eric Reed ere...@mail.nysed.gov
 wrote:
 
  After registering for this mailing list about a month ago I have been
  receiving spam emails from Ghanna every other day. Is anyone else
 receiving
  these?

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




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




-- 


Cordialement

Mohamed


Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread webmeiker
I mean use of CKEditor, CKFinder or ElFinder 3rd party software (based in
PHP) that allow server file exploration inside a Struts2 application...

2011/6/14 Dave Newton davelnew...@gmail.com

 Oh, OP meant embedding an HTML component in an S2 I guess. Duh, never mind.

 Dave
  On Jun 14, 2011 12:07 PM, Brian Thompson elephant...@gmail.com wrote:
  You sure that isn't the File FTP Protocol? :P
 
  Redundancy FTW!
 
  -Brian
 
 
  On Tue, Jun 14, 2011 at 11:01 AM, Dave Newton davelnew...@gmail.com
 wrote:
  On Tuesday, June 14, 2011, webmeiker wrote:
  Have somebody successfully integrated a Struts2 app with some (web)FTP
  editor (based in PHP) like ElFinder?
 
  I always get responses like ‘Invalid backend configuration’, ‘Invalid
 XML
  Response’ or things like that.
 
  S2 doesn't implement the FTP protocol out-of-the-box. How are you
  trying to do this?
 
  Dave
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 




--


Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Chris Pratt
Struts is not a PHP application, so there's no way the server side component
of that app will run within Struts.  There should be no reason you couldn't
rewrite the server side as Struts Actions using the PHP code as a guide, but
it's definitely not an out-of-the-box feature of Struts and I haven't heard
of anyone that has done that.  You might talk to the people that produce
those tools, maybe they would be interested in collaborating with you to
enter a new market.
  (*Chris*)

On Tue, Jun 14, 2011 at 12:27 PM, webmeiker i...@webmeiker.com wrote:

 I mean use of CKEditor, CKFinder or ElFinder 3rd party software (based in
 PHP) that allow server file exploration inside a Struts2 application...

 2011/6/14 Dave Newton davelnew...@gmail.com

  Oh, OP meant embedding an HTML component in an S2 I guess. Duh, never
 mind.
 
  Dave
   On Jun 14, 2011 12:07 PM, Brian Thompson elephant...@gmail.com
 wrote:
   You sure that isn't the File FTP Protocol? :P
  
   Redundancy FTW!
  
   -Brian
  
  
   On Tue, Jun 14, 2011 at 11:01 AM, Dave Newton davelnew...@gmail.com
  wrote:
   On Tuesday, June 14, 2011, webmeiker wrote:
   Have somebody successfully integrated a Struts2 app with some
 (web)FTP
   editor (based in PHP) like ElFinder?
  
   I always get responses like ‘Invalid backend configuration’, ‘Invalid
  XML
   Response’ or things like that.
  
   S2 doesn't implement the FTP protocol out-of-the-box. How are you
   trying to do this?
  
   Dave
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
 



 --



Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Dave Newton
That doesn't really make any sense. You can play mapping games with urls,
they'll never be in the same app. And why would they need to be?

Dave
 On Jun 14, 2011 3:45 PM, webmeiker i...@webmeiker.com wrote:
 Thank you Chris, thats the point... coexistence of Struts2  PHP inside
same
 app.

 2011/6/14 Chris Pratt thechrispr...@gmail.com

 Struts is not a PHP application, so there's no way the server side
 component
 of that app will run within Struts. There should be no reason you
couldn't
 rewrite the server side as Struts Actions using the PHP code as a guide,
 but
 it's definitely not an out-of-the-box feature of Struts and I haven't
heard
 of anyone that has done that. You might talk to the people that produce
 those tools, maybe they would be interested in collaborating with you to
 enter a new market.
 (*Chris*)

 On Tue, Jun 14, 2011 at 12:27 PM, webmeiker i...@webmeiker.com wrote:

  I mean use of CKEditor, CKFinder or ElFinder 3rd party software (based
in
  PHP) that allow server file exploration inside a Struts2 application...
 
  2011/6/14 Dave Newton davelnew...@gmail.com
 
   Oh, OP meant embedding an HTML component in an S2 I guess. Duh, never
  mind.
  
   Dave
   On Jun 14, 2011 12:07 PM, Brian Thompson elephant...@gmail.com
  wrote:
You sure that isn't the File FTP Protocol? :P
   
Redundancy FTW!
   
-Brian
   
   
On Tue, Jun 14, 2011 at 11:01 AM, Dave Newton 
davelnew...@gmail.com
 
   wrote:
On Tuesday, June 14, 2011, webmeiker wrote:
Have somebody successfully integrated a Struts2 app with some
  (web)FTP
editor (based in PHP) like ElFinder?
   
I always get responses like ‘Invalid backend configuration’,
 ‘Invalid
   XML
Response’ or things like that.
   
S2 doesn't implement the FTP protocol out-of-the-box. How are you
trying to do this?
   
Dave
   
   
 -
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
   
   
   
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
  
 
 
 
  --
 




 --


Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Brian Thompson
On Tue, Jun 14, 2011 at 2:44 PM, webmeiker i...@webmeiker.com wrote:
 Thank you Chris, thats the point... coexistence of Struts2  PHP inside same
 app.


Well...I suppose you could have a server configured to run both PHP
and Tomcat...but I'm pretty sure the Struts code and PHP file viewer
stuff would have to be at separate locations (e.g.
http://example.com/files/ vs. http://example.com/struts-code/).  I
don't know of a way to pack them both into the same URL.

Brian

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



Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Chris Pratt
You might have some small hope of coexistence if you can get those PHP apps
running inside Caucho's Quercus, but normally PHP and Java have no way of
communicating directly, so there's really no way they could make a single
app.

You could probably provide some web services between the two platforms and
manage the integration yourself, but that's a bunch of work.  Seems like you
should either write your app in PHP, find a Java based library, or rewrite
the PHP as Java.
  (*Chris*)

On Tue, Jun 14, 2011 at 12:44 PM, webmeiker i...@webmeiker.com wrote:

 Thank you Chris, thats the point... coexistence of Struts2  PHP inside
 same
 app.

 2011/6/14 Chris Pratt thechrispr...@gmail.com

  Struts is not a PHP application, so there's no way the server side
  component
  of that app will run within Struts.  There should be no reason you
 couldn't
  rewrite the server side as Struts Actions using the PHP code as a guide,
  but
  it's definitely not an out-of-the-box feature of Struts and I haven't
 heard
  of anyone that has done that.  You might talk to the people that produce
  those tools, maybe they would be interested in collaborating with you to
  enter a new market.
   (*Chris*)
 
  On Tue, Jun 14, 2011 at 12:27 PM, webmeiker i...@webmeiker.com wrote:
 
   I mean use of CKEditor, CKFinder or ElFinder 3rd party software (based
 in
   PHP) that allow server file exploration inside a Struts2 application...
  
   2011/6/14 Dave Newton davelnew...@gmail.com
  
Oh, OP meant embedding an HTML component in an S2 I guess. Duh, never
   mind.
   
Dave
 On Jun 14, 2011 12:07 PM, Brian Thompson elephant...@gmail.com
   wrote:
 You sure that isn't the File FTP Protocol? :P

 Redundancy FTW!

 -Brian


 On Tue, Jun 14, 2011 at 11:01 AM, Dave Newton 
 davelnew...@gmail.com
  
wrote:
 On Tuesday, June 14, 2011, webmeiker wrote:
 Have somebody successfully integrated a Struts2 app with some
   (web)FTP
 editor (based in PHP) like ElFinder?

 I always get responses like ‘Invalid backend configuration’,
  ‘Invalid
XML
 Response’ or things like that.

 S2 doesn't implement the FTP protocol out-of-the-box. How are you
 trying to do this?

 Dave


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




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

   
  
  
  
   --
  
 



 --



Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Zoran Avtarovski
Why don't you use the Java versions of the CK Software. We have no issues
with either CKEditor or CKFinder.

Z.

On 15/06/11 5:27 AM, webmeiker i...@webmeiker.com wrote:

I mean use of CKEditor, CKFinder or ElFinder 3rd party software (based in
PHP) that allow server file exploration inside a Struts2 application...

2011/6/14 Dave Newton davelnew...@gmail.com

 Oh, OP meant embedding an HTML component in an S2 I guess. Duh, never
mind.

 Dave
  On Jun 14, 2011 12:07 PM, Brian Thompson elephant...@gmail.com
wrote:
  You sure that isn't the File FTP Protocol? :P
 
  Redundancy FTW!
 
  -Brian
 
 
  On Tue, Jun 14, 2011 at 11:01 AM, Dave Newton davelnew...@gmail.com
 wrote:
  On Tuesday, June 14, 2011, webmeiker wrote:
  Have somebody successfully integrated a Struts2 app with some
(web)FTP
  editor (based in PHP) like ElFinder?
 
  I always get responses like ŒInvalid backend configuration¹,
ŒInvalid
 XML
  Response¹ or things like that.
 
  S2 doesn't implement the FTP protocol out-of-the-box. How are you
  trying to do this?
 
  Dave
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 




--



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



Re: Emails

2011-06-14 Thread Nick Broadhurst
Ollbogh
On Jun 14, 2011 9:48 AM, Eric Reed ere...@mail.nysed.gov wrote:
 After registering for this mailing list about a month ago I have been
receiving spam emails from Ghanna every other day. Is anyone else receiving
these?




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