You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Johnson nickel <sa...@elogic.co.in> on 2009/06/04 15:58:54 UTC

Huge File upload in struts 2



Hi Evans,
 
                 I'm facing problem to upload huge file like (size is
7mb,10mb). In your last thread
you have specified it will work in only small datas or files. I want to know
any other method
to solve in struts2 framework.


Disclaimer: This approach is limited to small files (multiple megabytes
> rather than hundreds/gigs) because of the inefficient memory
> consumption.  It's also quite slow as the commons fileuploader first
> receives all the data, then writes the entire temporary file, then it's
> read again entirely  into memory, then written back to your
> database/filesystem.  There's no other built-in approach in Struts2 but
> you'll find ajax fileuploaders on the web that handle massive files
> better than this.
          
Jeromy Evans - Blue Sky Minds wrote:
>
>
>
> Johnson nickel wrote:
>> Hi Jeromy Evans,
>>
>>               Thanks for your reply. I would like to insert the images
>> into
>> my
>>       Databases. For that, i'm using byte[] array.
>>   In Struts 1.3,
>>                  I used FormFile class. From this class i got the method
>> getFileData();
>>
>>                 In my db, ps.setBytes(1,filedata); // to store the binary
>> datas in DB.
>>
>>                 /*FormFile mtfile = form.getTheFile();
>>  byte[] filedata = mtfile.getFileData();*/
>>                  
>>                  
>>  
> Ahh, ok.
>
> In Struts2, the file is a reference to a temporary file created on your
> server.  If it's not HUGE, just read it into a byte array.
> The code follows.  This code is a fairly standard approach to read an
> arbitrary length inputstream into a byte array one chunk at a time.
> If the file can be HUGE, see my comment at bottom.
>
> byte[] filedata = readInputStream(new FileInputStream(upload));
>
> /** Read an input stream in its entirety into a byte array */
>     public static byte[] readInputStream(InputStream inputStream) throws
> IOException {
>         int bufSize = 1024 * 1024;
>         byte[] content;
>
>         List<byte[]> parts = new LinkedList();
>         InputStream in = new BufferedInputStream(inputStream);
>
>         byte[] readBuffer = new byte[bufSize];
>         byte[] part = null;
>         int bytesRead = 0;
>
>         // read everyting into a list of byte arrays
>         while ((bytesRead = in.read(readBuffer, 0, bufSize)) != -1) {
>             part = new byte[bytesRead];
>             System.arraycopy(readBuffer, 0, part, 0, bytesRead);
>             parts.add(part);
>         }
>
>         // calculate the total size
>         int totalSize = 0;
>         for (byte[] partBuffer : parts) {
>             totalSize += partBuffer.length;
>         }
>
>         // allocate the array
>         content = new byte[totalSize];
>         int offset = 0;
>         for (byte[] partBuffer : parts) {
>             System.arraycopy(partBuffer, 0, content, offset,
> partBuffer.length);
>             offset += partBuffer.length;
>         }
>
>         return content;
>     }
>
> Disclaimer: This approach is limited to small files (multiple megabytes
> rather than hundreds/gigs) because of the inefficient memory
> consumption.  It's also quite slow as the commons fileuploader first
> receives all the data, then writes the entire temporary file, then it's
> read again entirely  into memory, then written back to your
> database/filesystem.  There's no other built-in approach in Struts2 but
> you'll find ajax fileuploaders on the web that handle massive files
> better than this.
>
> regards,
>  Jeromy Evans
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
Quoted from:
http://www.nabble.com/Struts-2-File-upload-to-store-the-filedata-tp14168069p14169822.html


-- 
View this message in context: http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23870472.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Huge File upload in struts 2

Posted by Greg Lindholm <gr...@gmail.com>.
How big is your test file?

How much memory does your JVM have ?
Print out Runtime.getRuntime().maxMemory() / (1024*1024) to get the Mb.

Since you are reading from a file, here is a simpler method to load the
contents of a file into a byte array:

    /**
     * Load a file into a byte array. <br>
     * Only use this method for files small enough to fit into memory.
     *
     * @param file the file to load
     * @return the byte array that is the contents of the file.
     * @throws IOException
     */
    public static byte[] load(File file) throws IOException
    {
        // Max file length of 2GB should not be a problem since will run out
of
        // memory first.
        int len = (int) file.length();

        FileInputStream fileInputStream = new FileInputStream(file);

        byte[] data = new byte[len];

        int off = 0;
        int readLen = data.length;
        do
        {
            int cnt = fileInputStream.read(data, off, readLen);
            off += cnt;
            readLen -= cnt;
        } while (off < len);

        fileInputStream.close();
        return data;
    }


On Fri, Jun 5, 2009 at 12:38 AM, Johnson nickel <sa...@elogic.co.in>wrote:

>
>  Hi,
>
>        I have problem with this readInputStream method. I have checked in
> (postgresql)database, which i
> used column data type is bytea its default column size 1gb data. I will
> explain my problem clearly,
>
>
> Step1 :
>          I checked in java file itself,
>
>  public static void main(String args[])
> {
> byte[] filedata = readInputStream(new FileInputStream("test.pdf"));
> // byte filedata = null
>  // DB code to store binary data
>
> }
>
>
>
> If, i run the code, it shows outofmemory error java heap size.
>
>
>
>
>
>
>  /** Read an input stream in its entirety into a byte array */
>     public static byte[] readInputStream(InputStream inputStream) throws
>  IOException {
>         int bufSize = 1024 * 1024;
>         byte[] content;
>
>         List<byte[]> parts = new LinkedList();
>         InputStream in = new BufferedInputStream(inputStream);
>
>         byte[] readBuffer = new byte[bufSize];
>         byte[] part = null;
>         int bytesRead = 0;
>
>         // read everyting into a list of byte arrays
>         while ((bytesRead = in.read(readBuffer, 0, bufSize)) != -1) {
>             part = new byte[bytesRead];
>             System.arraycopy(readBuffer, 0, part, 0, bytesRead);
>             parts.add(part);
>         }
>
>         // calculate the total size
>         int totalSize = 0;
>         for (byte[] partBuffer : parts) {
>             totalSize += partBuffer.length;
>         }
>
>         // allocate the array
>         content = new byte[totalSize];
>         int offset = 0;
>         for (byte[] partBuffer : parts) {
>             System.arraycopy(partBuffer, 0, content, offset,
>  partBuffer.length);
>             offset += partBuffer.length;
>         }
>
>         return content;
>     }
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23881060.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Huge File upload in struts 2

Posted by Johnson nickel <sa...@elogic.co.in>.
 Hi,
     
        I have problem with this readInputStream method. I have checked in
(postgresql)database, which i
used column data type is bytea its default column size 1gb data. I will
explain my problem clearly,


Step1 :
          I checked in java file itself,

 public static void main(String args[])
{
byte[] filedata = readInputStream(new FileInputStream("test.pdf"));
// byte filedata = null
  // DB code to store binary data
        
}
             


If, i run the code, it shows outofmemory error java heap size.


 
        
  

 /** Read an input stream in its entirety into a byte array */
     public static byte[] readInputStream(InputStream inputStream) throws
 IOException {
         int bufSize = 1024 * 1024;
         byte[] content;

         List<byte[]> parts = new LinkedList();
         InputStream in = new BufferedInputStream(inputStream);

         byte[] readBuffer = new byte[bufSize];
         byte[] part = null;
         int bytesRead = 0;

         // read everyting into a list of byte arrays
         while ((bytesRead = in.read(readBuffer, 0, bufSize)) != -1) {
             part = new byte[bytesRead];
             System.arraycopy(readBuffer, 0, part, 0, bytesRead);
             parts.add(part);
         }

         // calculate the total size
         int totalSize = 0;
         for (byte[] partBuffer : parts) {
             totalSize += partBuffer.length;
         }

         // allocate the array
         content = new byte[totalSize];
         int offset = 0;
         for (byte[] partBuffer : parts) {
             System.arraycopy(partBuffer, 0, content, offset,
 partBuffer.length);
             offset += partBuffer.length;
         }

         return content;
     } 



-- 
View this message in context: http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23881060.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Huge File upload in struts 2

Posted by Dave Newton <ne...@yahoo.com>.
Martin Gainty wrote:
> if your OS and container supports sendfile you may want to enable sendfile for static files

Isn't that for sending data to the client? IIRC they were talking about 
uploads.

Dave

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


RE: Huge File upload in struts 2

Posted by Martin Gainty <mg...@hotmail.com>.
http://spdn.ifas.ufl.edu/docs/config/http.html


        (int)The socket receive buffer (SO_RCVBUF) size in bytes. Default value is 25188
socket.bufferPoolSize
        (int)The NioChannel pool can also be size based, not used object based. The size is calculated as follows:

        NioChannel buffer size = read buffer size + write buffer size

        SecureNioChannel buffer
size = application read buffer size + application write buffer size +
network read buffer size + network write buffer size

        The value is in bytes, the default value is 1024*1024*100 (100MB)
        
here is an example from $CATALINA_HOME/conf/server.xml

   <Connector port="8080" 
    useSendfile="true" 
    useExecutor="true" 
    acceptorThreadCount="1"
    pollerThreadCount="1"
    pollerThreadPriority="java.lang.Thread#NORM_PRIORITY"
    selectorTimeout="1000"
    useComet="true"
    prcessCache="200"
    socket.directBuffer="false"
    socket.rxBufSize="25188"
    socket.txBufSize="43800"
    socket.appReadBufSize="8192"
    socket.appWriteBufSize="8192"
    socket.bufferPool="500"
    socket.bufferPoolSize="100000000"
    socket.processorCache="500"
    socket.keyCache="500"
    socket.eventCache="500"
    socket.tcpNoDelay="false"
    socket.soKeepAlive="true"
    socket.soTimeout="5000"
    protocol="org.apache.coyote.http11.Http11NioProtocol" 
    maxThreads="150" 
    connectionTimeout="60000" 
    redirectPort="8443" />
if your OS and container supports sendfile you may want to enable sendfile for static files

HTH
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: Thu, 4 Jun 2009 15:05:28 -0400
> Subject: Re: Huge File upload in struts 2
> From: greg.lindholm@gmail.com
> To: user@struts.apache.org
> 
> I'm not having any problem with 20mb files using Struts 2.1.6 and the
> standard fileUpload interceptor.
> From what I see, Sir Evans is warning you that loading the entire file into
> memory may be a problem if your files are very large.  Nowadays 10mb is not
> really that large.  If you want to put 10mb pictures into a database as a
> byte array then you really don't have much choice but to load them into
> memory.
> 
> Now if you were actually talking about really HUGH files like hundreds of mb
> or multiple gb files (just like Evans said) that is larger then your memory
> then you will need take a different approach such as splitting the file or
> not putting it into the database, instead just store a reference to the
> file.
> 
> Have you tried this solution? Have you confirmed you actually have a
> problem?
> 
> On Thu, Jun 4, 2009 at 9:58 AM, Johnson nickel <sa...@elogic.co.in>wrote:
> 
> >
> >
> >
> > Hi Evans,
> >
> >                 I'm facing problem to upload huge file like (size is
> > 7mb,10mb). In your last thread
> > you have specified it will work in only small datas or files. I want to
> > know
> > any other method
> > to solve in struts2 framework.
> >
> >
> > Disclaimer: This approach is limited to small files (multiple megabytes
> > > rather than hundreds/gigs) because of the inefficient memory
> > > consumption.  It's also quite slow as the commons fileuploader first
> > > receives all the data, then writes the entire temporary file, then it's
> > > read again entirely  into memory, then written back to your
> > > database/filesystem.  There's no other built-in approach in Struts2 but
> > > you'll find ajax fileuploaders on the web that handle massive files
> > > better than this.
> >
> > Jeromy Evans - Blue Sky Minds wrote:
> > >
> > >
> > >
> > > Johnson nickel wrote:
> > >> Hi Jeromy Evans,
> > >>
> > >>               Thanks for your reply. I would like to insert the images
> > >> into
> > >> my
> > >>       Databases. For that, i'm using byte[] array.
> > >>   In Struts 1.3,
> > >>                  I used FormFile class. From this class i got the method
> > >> getFileData();
> > >>
> > >>                 In my db, ps.setBytes(1,filedata); // to store the
> > binary
> > >> datas in DB.
> > >>
> > >>                 /*FormFile mtfile = form.getTheFile();
> > >>  byte[] filedata = mtfile.getFileData();*/
> > >>
> > >>
> > >>
> > > Ahh, ok.
> > >
> > > In Struts2, the file is a reference to a temporary file created on your
> > > server.  If it's not HUGE, just read it into a byte array.
> > > The code follows.  This code is a fairly standard approach to read an
> > > arbitrary length inputstream into a byte array one chunk at a time.
> > > If the file can be HUGE, see my comment at bottom.
> > >
> > > byte[] filedata = readInputStream(new FileInputStream(upload));
> > >
> > > /** Read an input stream in its entirety into a byte array */
> > >     public static byte[] readInputStream(InputStream inputStream) throws
> > > IOException {
> > >         int bufSize = 1024 * 1024;
> > >         byte[] content;
> > >
> > >         List<byte[]> parts = new LinkedList();
> > >         InputStream in = new BufferedInputStream(inputStream);
> > >
> > >         byte[] readBuffer = new byte[bufSize];
> > >         byte[] part = null;
> > >         int bytesRead = 0;
> > >
> > >         // read everyting into a list of byte arrays
> > >         while ((bytesRead = in.read(readBuffer, 0, bufSize)) != -1) {
> > >             part = new byte[bytesRead];
> > >             System.arraycopy(readBuffer, 0, part, 0, bytesRead);
> > >             parts.add(part);
> > >         }
> > >
> > >         // calculate the total size
> > >         int totalSize = 0;
> > >         for (byte[] partBuffer : parts) {
> > >             totalSize += partBuffer.length;
> > >         }
> > >
> > >         // allocate the array
> > >         content = new byte[totalSize];
> > >         int offset = 0;
> > >         for (byte[] partBuffer : parts) {
> > >             System.arraycopy(partBuffer, 0, content, offset,
> > > partBuffer.length);
> > >             offset += partBuffer.length;
> > >         }
> > >
> > >         return content;
> > >     }
> > >
> > > Disclaimer: This approach is limited to small files (multiple megabytes
> > > rather than hundreds/gigs) because of the inefficient memory
> > > consumption.  It's also quite slow as the commons fileuploader first
> > > receives all the data, then writes the entire temporary file, then it's
> > > read again entirely  into memory, then written back to your
> > > database/filesystem.  There's no other built-in approach in Struts2 but
> > > you'll find ajax fileuploaders on the web that handle massive files
> > > better than this.
> > >
> > > regards,
> > >  Jeromy Evans
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> > >
> > Quoted from:
> >
> > http://www.nabble.com/Struts-2-File-upload-to-store-the-filedata-tp14168069p14169822.html
> >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23870472.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

Re: Huge File upload in struts 2

Posted by Greg Lindholm <gr...@gmail.com>.
I'm not having any problem with 20mb files using Struts 2.1.6 and the
standard fileUpload interceptor.
>From what I see, Sir Evans is warning you that loading the entire file into
memory may be a problem if your files are very large.  Nowadays 10mb is not
really that large.  If you want to put 10mb pictures into a database as a
byte array then you really don't have much choice but to load them into
memory.

Now if you were actually talking about really HUGH files like hundreds of mb
or multiple gb files (just like Evans said) that is larger then your memory
then you will need take a different approach such as splitting the file or
not putting it into the database, instead just store a reference to the
file.

Have you tried this solution? Have you confirmed you actually have a
problem?

On Thu, Jun 4, 2009 at 9:58 AM, Johnson nickel <sa...@elogic.co.in>wrote:

>
>
>
> Hi Evans,
>
>                 I'm facing problem to upload huge file like (size is
> 7mb,10mb). In your last thread
> you have specified it will work in only small datas or files. I want to
> know
> any other method
> to solve in struts2 framework.
>
>
> Disclaimer: This approach is limited to small files (multiple megabytes
> > rather than hundreds/gigs) because of the inefficient memory
> > consumption.  It's also quite slow as the commons fileuploader first
> > receives all the data, then writes the entire temporary file, then it's
> > read again entirely  into memory, then written back to your
> > database/filesystem.  There's no other built-in approach in Struts2 but
> > you'll find ajax fileuploaders on the web that handle massive files
> > better than this.
>
> Jeromy Evans - Blue Sky Minds wrote:
> >
> >
> >
> > Johnson nickel wrote:
> >> Hi Jeromy Evans,
> >>
> >>               Thanks for your reply. I would like to insert the images
> >> into
> >> my
> >>       Databases. For that, i'm using byte[] array.
> >>   In Struts 1.3,
> >>                  I used FormFile class. From this class i got the method
> >> getFileData();
> >>
> >>                 In my db, ps.setBytes(1,filedata); // to store the
> binary
> >> datas in DB.
> >>
> >>                 /*FormFile mtfile = form.getTheFile();
> >>  byte[] filedata = mtfile.getFileData();*/
> >>
> >>
> >>
> > Ahh, ok.
> >
> > In Struts2, the file is a reference to a temporary file created on your
> > server.  If it's not HUGE, just read it into a byte array.
> > The code follows.  This code is a fairly standard approach to read an
> > arbitrary length inputstream into a byte array one chunk at a time.
> > If the file can be HUGE, see my comment at bottom.
> >
> > byte[] filedata = readInputStream(new FileInputStream(upload));
> >
> > /** Read an input stream in its entirety into a byte array */
> >     public static byte[] readInputStream(InputStream inputStream) throws
> > IOException {
> >         int bufSize = 1024 * 1024;
> >         byte[] content;
> >
> >         List<byte[]> parts = new LinkedList();
> >         InputStream in = new BufferedInputStream(inputStream);
> >
> >         byte[] readBuffer = new byte[bufSize];
> >         byte[] part = null;
> >         int bytesRead = 0;
> >
> >         // read everyting into a list of byte arrays
> >         while ((bytesRead = in.read(readBuffer, 0, bufSize)) != -1) {
> >             part = new byte[bytesRead];
> >             System.arraycopy(readBuffer, 0, part, 0, bytesRead);
> >             parts.add(part);
> >         }
> >
> >         // calculate the total size
> >         int totalSize = 0;
> >         for (byte[] partBuffer : parts) {
> >             totalSize += partBuffer.length;
> >         }
> >
> >         // allocate the array
> >         content = new byte[totalSize];
> >         int offset = 0;
> >         for (byte[] partBuffer : parts) {
> >             System.arraycopy(partBuffer, 0, content, offset,
> > partBuffer.length);
> >             offset += partBuffer.length;
> >         }
> >
> >         return content;
> >     }
> >
> > Disclaimer: This approach is limited to small files (multiple megabytes
> > rather than hundreds/gigs) because of the inefficient memory
> > consumption.  It's also quite slow as the commons fileuploader first
> > receives all the data, then writes the entire temporary file, then it's
> > read again entirely  into memory, then written back to your
> > database/filesystem.  There's no other built-in approach in Struts2 but
> > you'll find ajax fileuploaders on the web that handle massive files
> > better than this.
> >
> > regards,
> >  Jeromy Evans
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
> Quoted from:
>
> http://www.nabble.com/Struts-2-File-upload-to-store-the-filedata-tp14168069p14169822.html
>
>
> --
> View this message in context:
> http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23870472.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

RE: Interceptor - Conditional "Redirect" to alternate action

Posted by "Mitchell, Steven" <St...@umb.com>.
Oh, wow, that's incredibly simple.  I was making it too complicated in my mind, thinking I needed to tell the ActionInvocation class not to allow the original action to fire. 

I see now that the answer was right there in the API "[Interceptor.intercept()] - Allows the Interceptor to... short-circuit the processing and just return a String return code."

-----Original Message-----
From: Wes Wannemacher [mailto:wesw@wantii.com] 
Sent: Monday, June 08, 2009 9:14 AM
To: Struts Users Mailing List
Subject: Re: Interceptor - Conditional "Redirect" to alternate action

Could you use a global-result?

http://struts.apache.org/2.x/docs/result-configuration.html#ResultConfiguration-GlobalResults

I would just think up a unique name for the set of conditions that
should cause the redirect. Then, configure that string as a
global-result and write your interceptor to do the check and return
the string if the conditions are met and action.invoke otherwise.

-Wes

On Mon, Jun 8, 2009 at 10:09 AM, Mitchell,
Steven<St...@umb.com> wrote:
> I need to put an interceptor after the cookie interceptor that will send
> the user to a preference page if a preference cookie is missing rather
> than let the desired action fire--like a guard condition. If I was using
> a Filter I would just do a redirect.
>
> Eventually I will also add a Flash shared object as a back-up to the
> cookie, so I'll need to put a Flash shared object interceptor in the
> stack too. The "redirector" interceptor would check the cookie and flash
> token values put set by the previous interceptors in the stack. If both
> are missing, then a different action needs to fire.
>
> Where can I find an example of an interceptor that conditionally
> "redirects" the user to an alternate action? I'm having trouble
> picturing how the plumbing would work and I think an example of this
> kind would be a big help.
>
> Steve Mitchell
> http://www.ByteworksInc.com
>
>
> ------------------------------------------------------------------------------
> NOTICE:  This electronic mail message and any attached files are confidential.  The information is exclusively for the use of the individual or entity intended as the recipient.  If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited.  If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system. Thank you.
>
> ==============================================================================
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



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


Re: Interceptor - Conditional "Redirect" to alternate action

Posted by Wes Wannemacher <we...@wantii.com>.
Could you use a global-result?

http://struts.apache.org/2.x/docs/result-configuration.html#ResultConfiguration-GlobalResults

I would just think up a unique name for the set of conditions that
should cause the redirect. Then, configure that string as a
global-result and write your interceptor to do the check and return
the string if the conditions are met and action.invoke otherwise.

-Wes

On Mon, Jun 8, 2009 at 10:09 AM, Mitchell,
Steven<St...@umb.com> wrote:
> I need to put an interceptor after the cookie interceptor that will send
> the user to a preference page if a preference cookie is missing rather
> than let the desired action fire--like a guard condition. If I was using
> a Filter I would just do a redirect.
>
> Eventually I will also add a Flash shared object as a back-up to the
> cookie, so I'll need to put a Flash shared object interceptor in the
> stack too. The "redirector" interceptor would check the cookie and flash
> token values put set by the previous interceptors in the stack. If both
> are missing, then a different action needs to fire.
>
> Where can I find an example of an interceptor that conditionally
> "redirects" the user to an alternate action? I'm having trouble
> picturing how the plumbing would work and I think an example of this
> kind would be a big help.
>
> Steve Mitchell
> http://www.ByteworksInc.com
>
>
> ------------------------------------------------------------------------------
> NOTICE:  This electronic mail message and any attached files are confidential.  The information is exclusively for the use of the individual or entity intended as the recipient.  If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited.  If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system. Thank you.
>
> ==============================================================================
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Interceptor - Conditional "Redirect" to alternate action

Posted by "Mitchell, Steven" <St...@umb.com>.
I need to put an interceptor after the cookie interceptor that will send
the user to a preference page if a preference cookie is missing rather
than let the desired action fire--like a guard condition. If I was using
a Filter I would just do a redirect. 

Eventually I will also add a Flash shared object as a back-up to the
cookie, so I'll need to put a Flash shared object interceptor in the
stack too. The "redirector" interceptor would check the cookie and flash
token values put set by the previous interceptors in the stack. If both
are missing, then a different action needs to fire.

Where can I find an example of an interceptor that conditionally
"redirects" the user to an alternate action? I'm having trouble
picturing how the plumbing would work and I think an example of this
kind would be a big help.

Steve Mitchell
http://www.ByteworksInc.com


------------------------------------------------------------------------------
NOTICE:  This electronic mail message and any attached files are confidential.  The information is exclusively for the use of the individual or entity intended as the recipient.  If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited.  If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system. Thank you.

==============================================================================


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


Re: Doubts about new project (Struts2 good way to do it?)

Posted by Dave Newton <ne...@yahoo.com>.
Francisco Exposito wrote:
> Do you have a list of functionalities of JSR168 portlets? Or some url to find info or examples...

http://tinyurl.com/kl69x4

Dave

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


RE: Doubts about new project (Struts2 good way to do it?)

Posted by Francisco Exposito <fc...@hotmail.com>.
Do you have a list of functionalities of JSR168 portlets? Or some url to find info or examples...

> Date: Mon, 8 Jun 2009 13:00:07 +0200
> Subject: Re: Doubts about new project (Struts2 good way to do it?)
> From: nilsga@gmail.com
> To: user@struts.apache.org
> 
> Jetspeed2 - No, JSR168 portlets - Yes. You should be aware of the
> features and limitations of portlets though. It might not necessarily
> be what you're looking for. I suggest digging a bit deeper into the
> topic if you're considering using it.
> 
> Nils-H
> 
> On Mon, Jun 8, 2009 at 9:05 AM, Francisco
> Exposito<fc...@hotmail.com> wrote:
> >
> > Has anyone an example of jetspeed2 + struts2?
> >
> >> Date: Fri, 5 Jun 2009 14:24:28 +0200
> >> Subject: Re: Doubts about new project (Struts2 good way to do it?)
> >> From: poulwiel@gmail.com
> >> To: user@struts.apache.org
> >>
> >> Hi Francisco,
> >> free hosting for java can be a hard one to find,
> >> i don't know or heard of any.
> >>
> >> Best greetings,
> >> Paweł Wielgus.
> >>
> >>
> >> 2009/6/5 Francisco Exposito <fc...@hotmail.com>:
> >> >
> >> > I've read that jetspeed2 documentation is poor... do you have an example about jetspeed2 + struts2?
> >> >
> >> > Then, is it possible to create a project using:
> >> >
> >> > Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or jetspeed is not compatible with the other? And what about the performance? Could it be ok using all that? And is it possible to use them in Tomcat or it is necessary JBoss? I want to find a free hosting and if it is difficult to find in TomI tcat... I don't want to think in JBoss...
> >> >
> >> > Regards,
> >> > Francisco
> >> >
> >> >> From: mgainty@hotmail.com
> >> >> To: user@struts.apache.org
> >> >> Subject: RE: Doubts about new project (Struts2 good way to do it?)
> >> >> Date: Thu, 4 Jun 2009 15:43:55 -0400
> >> >>
> >> >>
> >> >> Good Afternoon Francisco
> >> >> i have an opinion on the subject which i would be more than happy to share with you
> >> >>
> >> >> > 1) User preferences: every user can configure its "window" and
> >> >> maintain its configuration after save preferences and log in again. The
> >> >> user can select options from a list and position them where he wants.
> >> >> ¿Maybe using portlets?¿Changing css dinamically depending on logged
> >> >> user?¿Any other option?
> >> >> MG>JetSpeed..tried and true Principal assignment to User,Group
> >> >> http://portals.apache.org/jetspeed-2/
> >> >>
> >> >> > 2) Languages: every user can
> >> >> access in some languages. As I've tested, the language is configured
> >> >> with regional settings. But it is possible to select the language in
> >> >> the login page and maintain it during the session?
> >> >> MG>simple as setting request_locate to en requst_locale=es
> >> >> MG>http://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
> >> >> >
> >> >> > 3) Persistence layer: better Hibernate or iBatis? About performance?
> >> >> MG>I think hibernate has more deploys be aware of lazy_init not creating all dependent objects in object graph
> >> >> https://www.hibernate.org/162.html
> >> >> >
> >> >> > 4) E-commerce: shop cart, what about security?
> >> >> MG>SSL all the way..dont send cleartext for anything unless you want mailicious eavesdropper intervention!
> >> >> http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
> >> >> MG>i can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
> >> >> >
> >> >> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
> >> >> MG>Sitemesh is the css handler that is preconfigured for Struts
> >> >>     <filter>
> >> >>         <filter-name>sitemesh</filter-name>
> >> >>         <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
> >> >>     </filter>
> >> >>     <filter-mapping>
> >> >>         <filter-name>sitemesh</filter-name>
> >> >>         <url-pattern>/*</url-pattern>
> >> >>     </filter-mapping>
> >> >>
> >> >> MG>if you like using VM macros coded thru SiteMesh then enable VelocityPageFilter in web.xml
> >> >>         <filter>
> >> >>             <filter-name>sitemesh</filter-name>
> >> >>             <filter-class>org.apache.struts2.sitemesh.VelocityPageFilter</filter-class>
> >> >>         </filter>
> >> >>         <filter-mapping>
> >> >>             <filter-name>sitemesh</filter-name>
> >> >>             <url-pattern>/*</url-pattern>
> >> >>         </filter-mapping>
> >> >>
> >> >> and for freemarker
> >> >>     <filter>
> >> >>         <filter-name>sitemesh</filter-name>
> >> >>         <filter-class>org.apache.struts2.sitemesh.FreeMarkerPageFilter</filter-class>
> >> >>     </filter>
> >> >>         <filter-mapping>
> >> >>
> >> >>             <filter-name>sitemesh</filter-name>
> >> >>
> >> >>             <url-pattern>/*</url-pattern>
> >> >>
> >> >>         </filter-mapping>
> >> >>
> >> >>
> >> >> Saludos Cordiales desde EEUU!
> >> >> Martin
> >> >> GMT+5(esta semana)
> >> >> >
> >> >> >
> >> >> >
> >> >> > The options I've considered are:
> >> >> >
> >> >> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets.
> >> >> >
> >> >> > Other option is use JSF. Which selection do you think would be better?
> >> >> >
> >> >>
> >> >>
> >> >> 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.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> > From: fcoexposito@hotmail.com
> >> >> > To: user@struts.apache.org
> >> >> > Subject: Doubts about new project (Struts2 good way to do it?)
> >> >> > Date: Thu, 4 Jun 2009 15:45:09 +0000
> >> >> >
> >> >> >
> >> >> > Hello,
> >> >> >
> >> >> > I want to create a portal with this functionalities, and I don't know if it is possible to do it using Struts2 or what is better for it:
> >> >> >
> >> >> > 1) User preferences: every user can configure its "window" and maintain its configuration after save preferences and log in again. The user can select options from a list and position them where he wants. ¿Maybe using portlets?¿Changing css dinamically depending on logged user?¿Any other option?
> >> >> >
> >> >> > 2) Languages: every user can access in some languages. As I've tested, the language is configured with regional settings. But it is possible to select the language in the login page and maintain it during the session?
> >> >> >
> >> >> > 3) Persistence layer: better Hibernate or iBatis? About performance?
> >> >> >
> >> >> > 4) E-commerce: shop cart, what about security?
> >> >> >
> >> >> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
> >> >> >
> >> >> >
> >> >> >
> >> >> > The options I've considered are:
> >> >> >
> >> >> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets.
> >> >> >
> >> >> > Other option is use JSF. Which selection do you think would be better?
> >> >> >
> >> >> > Thanks in advance.
> >> >> >
> >> >> > Francisco
> >> >> >
> >> >> > _________________________________________________________________
> >> >> > Chatea sin límites en Messenger con la tarifa plana de Orange
> >> >> > http://serviciosmoviles.es.msn.com/messenger/orange.aspx
> >> >>
> >> >> _________________________________________________________________
> >> >> Lauren found her dream laptop. Find the PC that’s right for you.
> >> >> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
> >> >
> >> > _________________________________________________________________
> >> > Llévate Messenger en el móvil a todas partes ¡Conéctate!
> >> > http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >
> > _________________________________________________________________
> > Llévate Messenger en el móvil a todas partes ¡Conéctate!
> > http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
¿Quieres ver los mejores videos de MSN? Enciende Messenger TV
http://messengertv.msn.com/mkt/es-es/default.htm

Re: Doubts about new project (Struts2 good way to do it?)

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
> could you elaborate on how JetSpeed is not JSR-168 compliant?
>
> thanks,
> Martin Gainty

You have to start actually reading the posts you're replying to. I
said nowhere that JetSpeed is not JSR-168 compliant. And please, keep
discussions on the list.

Nils-H

>
>
>> Date: Mon, 8 Jun 2009 13:00:07 +0200
>> Subject: Re: Doubts about new project (Struts2 good way to do it?)
>> From: nilsga@gmail.com
>> To: user@struts.apache.org
>>
>> Jetspeed2 - No, JSR168 portlets - Yes. You should be aware of the
>> features and limitations of portlets though. It might not necessarily
>> be what you're looking for. I suggest digging a bit deeper into the
>> topic if you're considering using it.
>>
>> Nils-H
>>
>> On Mon, Jun 8, 2009 at 9:05 AM, Francisco
>> Exposito<fc...@hotmail.com> wrote:
>> >
>> > Has anyone an example of jetspeed2 + struts2?
>> >
>> >> Date: Fri, 5 Jun 2009 14:24:28 +0200
>> >> Subject: Re: Doubts about new project (Struts2 good way to do it?)
>> >> From: poulwiel@gmail.com
>> >> To: user@struts.apache.org
>> >>
>> >> Hi Francisco,
>> >> free hosting for java can be a hard one to find,
>> >> i don't know or heard of any.
>> >>
>> >> Best greetings,
>> >> Paweł Wielgus.
>> >>
>> >>
>> >> 2009/6/5 Francisco Exposito <fc...@hotmail.com>:
>> >> >
>> >> > I've read that jetspeed2 documentation is poor... do you have an
>> >> > example about jetspeed2 + struts2?
>> >> >
>> >> > Then, is it possible to create a project using:
>> >> >
>> >> > Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or
>> >> > jetspeed is not compatible with the other? And what about the performance?
>> >> > Could it be ok using all that? And is it possible to use them in Tomcat or
>> >> > it is necessary JBoss? I want to find a free hosting and if it is difficult
>> >> > to find in TomI tcat... I don't want to think in JBoss...
>> >> >
>> >> > Regards,
>> >> > Francisco
>> >> >
>> >> >> From: mgainty@hotmail.com
>> >> >> To: user@struts.apache.org
>> >> >> Subject: RE: Doubts about new project (Struts2 good way to do it?)
>> >> >> Date: Thu, 4 Jun 2009 15:43:55 -0400
>> >> >>
>> >> >>
>> >> >> Good Afternoon Francisco
>> >> >> i have an opinion on the subject which i would be more than happy to
>> >> >> share with you
>> >> >>
>> >> >> > 1) User preferences: every user can configure its "window" and
>> >> >> maintain its configuration after save preferences and log in again.
>> >> >> The
>> >> >> user can select options from a list and position them where he
>> >> >> wants.
>> >> >> ¿Maybe using portlets?¿Changing css dinamically depending on logged
>> >> >> user?¿Any other option?
>> >> >> MG>JetSpeed..tried and true Principal assignment to User,Group
>> >> >> http://portals.apache.org/jetspeed-2/
>> >> >>
>> >> >> > 2) Languages: every user can
>> >> >> access in some languages. As I've tested, the language is configured
>> >> >> with regional settings. But it is possible to select the language in
>> >> >> the login page and maintain it during the session?
>> >> >> MG>simple as setting request_locate to en requst_locale=es
>> >> >> MG>http://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
>> >> >> >
>> >> >> > 3) Persistence layer: better Hibernate or iBatis? About
>> >> >> > performance?
>> >> >> MG>I think hibernate has more deploys be aware of lazy_init not
>> >> >> creating all dependent objects in object graph
>> >> >> https://www.hibernate.org/162.html
>> >> >> >
>> >> >> > 4) E-commerce: shop cart, what about security?
>> >> >> MG>SSL all the way..dont send cleartext for anything unless you want
>> >> >> mailicious eavesdropper intervention!
>> >> >> http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
>> >> >> MG>i can give you SSL solutions for OAS, WL, Resin, JBOSS if you
>> >> >> need it
>> >> >> >
>> >> >> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml
>> >> >> > are too long. About performance?
>> >> >> MG>Sitemesh is the css handler that is preconfigured for Struts
>> >> >>     <filter>
>> >> >>         <filter-name>sitemesh</filter-name>
>> >> >>
>> >> >> <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
>> >> >>     </filter>
>> >> >>     <filter-mapping>
>> >> >>         <filter-name>sitemesh</filter-name>
>> >> >>         <url-pattern>/*</url-pattern>
>> >> >>     </filter-mapping>
>> >> >>
>> >> >> MG>if you like using VM macros coded thru SiteMesh then enable
>> >> >> VelocityPageFilter in web.xml
>> >> >>         <filter>
>> >> >>             <filter-name>sitemesh</filter-name>
>> >> >>
>> >> >> <filter-class>org.apache.struts2.sitemesh.VelocityPageFilter</filter-class>
>> >> >>         </filter>
>> >> >>         <filter-mapping>
>> >> >>             <filter-name>sitemesh</filter-name>
>> >> >>             <url-pattern>/*</url-pattern>
>> >> >>         </filter-mapping>
>> >> >>
>> >> >> and for freemarker
>> >> >>     <filter>
>> >> >>         <filter-name>sitemesh</filter-name>
>> >> >>
>> >> >> <filter-class>org.apache.struts2.sitemesh.FreeMarkerPageFilter</filter-class>
>> >> >>     </filter>
>> >> >>         <filter-mapping>
>> >> >>
>> >> >>             <filter-name>sitemesh</filter-name>
>> >> >>
>> >> >>             <url-pattern>/*</url-pattern>
>> >> >>
>> >> >>         </filter-mapping>
>> >> >>
>> >> >>
>> >> >> Saludos Cordiales desde EEUU!
>> >> >> Martin
>> >> >> GMT+5(esta semana)
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > The options I've considered are:
>> >> >> >
>> >> >> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter,
>> >> >> > Sitemesh or Tiles, Hibernate or iBatis, Portlets.
>> >> >> >
>> >> >> > Other option is use JSF. Which selection do you think would be
>> >> >> > better?
>> >> >> >
>> >> >>
>> >> >>
>> >> >> 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.
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> > From: fcoexposito@hotmail.com
>> >> >> > To: user@struts.apache.org
>> >> >> > Subject: Doubts about new project (Struts2 good way to do it?)
>> >> >> > Date: Thu, 4 Jun 2009 15:45:09 +0000
>> >> >> >
>> >> >> >
>> >> >> > Hello,
>> >> >> >
>> >> >> > I want to create a portal with this functionalities, and I don't
>> >> >> > know if it is possible to do it using Struts2 or what is better for it:
>> >> >> >
>> >> >> > 1) User preferences: every user can configure its "window" and
>> >> >> > maintain its configuration after save preferences and log in again. The user
>> >> >> > can select options from a list and position them where he wants. ¿Maybe
>> >> >> > using portlets?¿Changing css dinamically depending on logged user?¿Any other
>> >> >> > option?
>> >> >> >
>> >> >> > 2) Languages: every user can access in some languages. As I've
>> >> >> > tested, the language is configured with regional settings. But it is
>> >> >> > possible to select the language in the login page and maintain it during the
>> >> >> > session?
>> >> >> >
>> >> >> > 3) Persistence layer: better Hibernate or iBatis? About
>> >> >> > performance?
>> >> >> >
>> >> >> > 4) E-commerce: shop cart, what about security?
>> >> >> >
>> >> >> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml
>> >> >> > are too long. About performance?
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > The options I've considered are:
>> >> >> >
>> >> >> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter,
>> >> >> > Sitemesh or Tiles, Hibernate or iBatis, Portlets.
>> >> >> >
>> >> >> > Other option is use JSF. Which selection do you think would be
>> >> >> > better?
>> >> >> >
>> >> >> > Thanks in advance.
>> >> >> >
>> >> >> > Francisco
>> >> >> >
>> >> >> > _________________________________________________________________
>> >> >> > Chatea sin límites en Messenger con la tarifa plana de Orange
>> >> >> > http://serviciosmoviles.es.msn.com/messenger/orange.aspx
>> >> >>
>> >> >> _________________________________________________________________
>> >> >> Lauren found her dream laptop. Find the PC that’s right for you.
>> >> >> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
>> >> >
>> >> > _________________________________________________________________
>> >> > Llévate Messenger en el móvil a todas partes ¡Conéctate!
>> >> > http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >
>> > _________________________________________________________________
>> > Llévate Messenger en el móvil a todas partes ¡Conéctate!
>> > http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> ________________________________
> Windows Live™ SkyDrive™: Get 25 GB of free online storage. Get it on your
> BlackBerry or iPhone.

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


Re: Doubts about new project (Struts2 good way to do it?)

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Jetspeed2 - No, JSR168 portlets - Yes. You should be aware of the
features and limitations of portlets though. It might not necessarily
be what you're looking for. I suggest digging a bit deeper into the
topic if you're considering using it.

Nils-H

On Mon, Jun 8, 2009 at 9:05 AM, Francisco
Exposito<fc...@hotmail.com> wrote:
>
> Has anyone an example of jetspeed2 + struts2?
>
>> Date: Fri, 5 Jun 2009 14:24:28 +0200
>> Subject: Re: Doubts about new project (Struts2 good way to do it?)
>> From: poulwiel@gmail.com
>> To: user@struts.apache.org
>>
>> Hi Francisco,
>> free hosting for java can be a hard one to find,
>> i don't know or heard of any.
>>
>> Best greetings,
>> Paweł Wielgus.
>>
>>
>> 2009/6/5 Francisco Exposito <fc...@hotmail.com>:
>> >
>> > I've read that jetspeed2 documentation is poor... do you have an example about jetspeed2 + struts2?
>> >
>> > Then, is it possible to create a project using:
>> >
>> > Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or jetspeed is not compatible with the other? And what about the performance? Could it be ok using all that? And is it possible to use them in Tomcat or it is necessary JBoss? I want to find a free hosting and if it is difficult to find in TomI tcat... I don't want to think in JBoss...
>> >
>> > Regards,
>> > Francisco
>> >
>> >> From: mgainty@hotmail.com
>> >> To: user@struts.apache.org
>> >> Subject: RE: Doubts about new project (Struts2 good way to do it?)
>> >> Date: Thu, 4 Jun 2009 15:43:55 -0400
>> >>
>> >>
>> >> Good Afternoon Francisco
>> >> i have an opinion on the subject which i would be more than happy to share with you
>> >>
>> >> > 1) User preferences: every user can configure its "window" and
>> >> maintain its configuration after save preferences and log in again. The
>> >> user can select options from a list and position them where he wants.
>> >> ¿Maybe using portlets?¿Changing css dinamically depending on logged
>> >> user?¿Any other option?
>> >> MG>JetSpeed..tried and true Principal assignment to User,Group
>> >> http://portals.apache.org/jetspeed-2/
>> >>
>> >> > 2) Languages: every user can
>> >> access in some languages. As I've tested, the language is configured
>> >> with regional settings. But it is possible to select the language in
>> >> the login page and maintain it during the session?
>> >> MG>simple as setting request_locate to en requst_locale=es
>> >> MG>http://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
>> >> >
>> >> > 3) Persistence layer: better Hibernate or iBatis? About performance?
>> >> MG>I think hibernate has more deploys be aware of lazy_init not creating all dependent objects in object graph
>> >> https://www.hibernate.org/162.html
>> >> >
>> >> > 4) E-commerce: shop cart, what about security?
>> >> MG>SSL all the way..dont send cleartext for anything unless you want mailicious eavesdropper intervention!
>> >> http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
>> >> MG>i can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
>> >> >
>> >> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
>> >> MG>Sitemesh is the css handler that is preconfigured for Struts
>> >>     <filter>
>> >>         <filter-name>sitemesh</filter-name>
>> >>         <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
>> >>     </filter>
>> >>     <filter-mapping>
>> >>         <filter-name>sitemesh</filter-name>
>> >>         <url-pattern>/*</url-pattern>
>> >>     </filter-mapping>
>> >>
>> >> MG>if you like using VM macros coded thru SiteMesh then enable VelocityPageFilter in web.xml
>> >>         <filter>
>> >>             <filter-name>sitemesh</filter-name>
>> >>             <filter-class>org.apache.struts2.sitemesh.VelocityPageFilter</filter-class>
>> >>         </filter>
>> >>         <filter-mapping>
>> >>             <filter-name>sitemesh</filter-name>
>> >>             <url-pattern>/*</url-pattern>
>> >>         </filter-mapping>
>> >>
>> >> and for freemarker
>> >>     <filter>
>> >>         <filter-name>sitemesh</filter-name>
>> >>         <filter-class>org.apache.struts2.sitemesh.FreeMarkerPageFilter</filter-class>
>> >>     </filter>
>> >>         <filter-mapping>
>> >>
>> >>             <filter-name>sitemesh</filter-name>
>> >>
>> >>             <url-pattern>/*</url-pattern>
>> >>
>> >>         </filter-mapping>
>> >>
>> >>
>> >> Saludos Cordiales desde EEUU!
>> >> Martin
>> >> GMT+5(esta semana)
>> >> >
>> >> >
>> >> >
>> >> > The options I've considered are:
>> >> >
>> >> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets.
>> >> >
>> >> > Other option is use JSF. Which selection do you think would be better?
>> >> >
>> >>
>> >>
>> >> 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.
>> >>
>> >>
>> >>
>> >>
>> >> > From: fcoexposito@hotmail.com
>> >> > To: user@struts.apache.org
>> >> > Subject: Doubts about new project (Struts2 good way to do it?)
>> >> > Date: Thu, 4 Jun 2009 15:45:09 +0000
>> >> >
>> >> >
>> >> > Hello,
>> >> >
>> >> > I want to create a portal with this functionalities, and I don't know if it is possible to do it using Struts2 or what is better for it:
>> >> >
>> >> > 1) User preferences: every user can configure its "window" and maintain its configuration after save preferences and log in again. The user can select options from a list and position them where he wants. ¿Maybe using portlets?¿Changing css dinamically depending on logged user?¿Any other option?
>> >> >
>> >> > 2) Languages: every user can access in some languages. As I've tested, the language is configured with regional settings. But it is possible to select the language in the login page and maintain it during the session?
>> >> >
>> >> > 3) Persistence layer: better Hibernate or iBatis? About performance?
>> >> >
>> >> > 4) E-commerce: shop cart, what about security?
>> >> >
>> >> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
>> >> >
>> >> >
>> >> >
>> >> > The options I've considered are:
>> >> >
>> >> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets.
>> >> >
>> >> > Other option is use JSF. Which selection do you think would be better?
>> >> >
>> >> > Thanks in advance.
>> >> >
>> >> > Francisco
>> >> >
>> >> > _________________________________________________________________
>> >> > Chatea sin límites en Messenger con la tarifa plana de Orange
>> >> > http://serviciosmoviles.es.msn.com/messenger/orange.aspx
>> >>
>> >> _________________________________________________________________
>> >> Lauren found her dream laptop. Find the PC that’s right for you.
>> >> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
>> >
>> > _________________________________________________________________
>> > Llévate Messenger en el móvil a todas partes ¡Conéctate!
>> > http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> _________________________________________________________________
> Llévate Messenger en el móvil a todas partes ¡Conéctate!
> http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx

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


RE: Doubts about new project (Struts2 good way to do it?)

Posted by Francisco Exposito <fc...@hotmail.com>.
Has anyone an example of jetspeed2 + struts2?

> Date: Fri, 5 Jun 2009 14:24:28 +0200
> Subject: Re: Doubts about new project (Struts2 good way to do it?)
> From: poulwiel@gmail.com
> To: user@struts.apache.org
> 
> Hi Francisco,
> free hosting for java can be a hard one to find,
> i don't know or heard of any.
> 
> Best greetings,
> Paweł Wielgus.
> 
> 
> 2009/6/5 Francisco Exposito <fc...@hotmail.com>:
> >
> > I've read that jetspeed2 documentation is poor... do you have an example about jetspeed2 + struts2?
> >
> > Then, is it possible to create a project using:
> >
> > Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or jetspeed is not compatible with the other? And what about the performance? Could it be ok using all that? And is it possible to use them in Tomcat or it is necessary JBoss? I want to find a free hosting and if it is difficult to find in TomI tcat... I don't want to think in JBoss...
> >
> > Regards,
> > Francisco
> >
> >> From: mgainty@hotmail.com
> >> To: user@struts.apache.org
> >> Subject: RE: Doubts about new project (Struts2 good way to do it?)
> >> Date: Thu, 4 Jun 2009 15:43:55 -0400
> >>
> >>
> >> Good Afternoon Francisco
> >> i have an opinion on the subject which i would be more than happy to share with you
> >>
> >> > 1) User preferences: every user can configure its "window" and
> >> maintain its configuration after save preferences and log in again. The
> >> user can select options from a list and position them where he wants.
> >> ¿Maybe using portlets?¿Changing css dinamically depending on logged
> >> user?¿Any other option?
> >> MG>JetSpeed..tried and true Principal assignment to User,Group
> >> http://portals.apache.org/jetspeed-2/
> >>
> >> > 2) Languages: every user can
> >> access in some languages. As I've tested, the language is configured
> >> with regional settings. But it is possible to select the language in
> >> the login page and maintain it during the session?
> >> MG>simple as setting request_locate to en requst_locale=es
> >> MG>http://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
> >> >
> >> > 3) Persistence layer: better Hibernate or iBatis? About performance?
> >> MG>I think hibernate has more deploys be aware of lazy_init not creating all dependent objects in object graph
> >> https://www.hibernate.org/162.html
> >> >
> >> > 4) E-commerce: shop cart, what about security?
> >> MG>SSL all the way..dont send cleartext for anything unless you want mailicious eavesdropper intervention!
> >> http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
> >> MG>i can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
> >> >
> >> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
> >> MG>Sitemesh is the css handler that is preconfigured for Struts
> >>     <filter>
> >>         <filter-name>sitemesh</filter-name>
> >>         <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
> >>     </filter>
> >>     <filter-mapping>
> >>         <filter-name>sitemesh</filter-name>
> >>         <url-pattern>/*</url-pattern>
> >>     </filter-mapping>
> >>
> >> MG>if you like using VM macros coded thru SiteMesh then enable VelocityPageFilter in web.xml
> >>         <filter>
> >>             <filter-name>sitemesh</filter-name>
> >>             <filter-class>org.apache.struts2.sitemesh.VelocityPageFilter</filter-class>
> >>         </filter>
> >>         <filter-mapping>
> >>             <filter-name>sitemesh</filter-name>
> >>             <url-pattern>/*</url-pattern>
> >>         </filter-mapping>
> >>
> >> and for freemarker
> >>     <filter>
> >>         <filter-name>sitemesh</filter-name>
> >>         <filter-class>org.apache.struts2.sitemesh.FreeMarkerPageFilter</filter-class>
> >>     </filter>
> >>         <filter-mapping>
> >>
> >>             <filter-name>sitemesh</filter-name>
> >>
> >>             <url-pattern>/*</url-pattern>
> >>
> >>         </filter-mapping>
> >>
> >>
> >> Saludos Cordiales desde EEUU!
> >> Martin
> >> GMT+5(esta semana)
> >> >
> >> >
> >> >
> >> > The options I've considered are:
> >> >
> >> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets.
> >> >
> >> > Other option is use JSF. Which selection do you think would be better?
> >> >
> >>
> >>
> >> 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.
> >>
> >>
> >>
> >>
> >> > From: fcoexposito@hotmail.com
> >> > To: user@struts.apache.org
> >> > Subject: Doubts about new project (Struts2 good way to do it?)
> >> > Date: Thu, 4 Jun 2009 15:45:09 +0000
> >> >
> >> >
> >> > Hello,
> >> >
> >> > I want to create a portal with this functionalities, and I don't know if it is possible to do it using Struts2 or what is better for it:
> >> >
> >> > 1) User preferences: every user can configure its "window" and maintain its configuration after save preferences and log in again. The user can select options from a list and position them where he wants. ¿Maybe using portlets?¿Changing css dinamically depending on logged user?¿Any other option?
> >> >
> >> > 2) Languages: every user can access in some languages. As I've tested, the language is configured with regional settings. But it is possible to select the language in the login page and maintain it during the session?
> >> >
> >> > 3) Persistence layer: better Hibernate or iBatis? About performance?
> >> >
> >> > 4) E-commerce: shop cart, what about security?
> >> >
> >> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
> >> >
> >> >
> >> >
> >> > The options I've considered are:
> >> >
> >> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets.
> >> >
> >> > Other option is use JSF. Which selection do you think would be better?
> >> >
> >> > Thanks in advance.
> >> >
> >> > Francisco
> >> >
> >> > _________________________________________________________________
> >> > Chatea sin límites en Messenger con la tarifa plana de Orange
> >> > http://serviciosmoviles.es.msn.com/messenger/orange.aspx
> >>
> >> _________________________________________________________________
> >> Lauren found her dream laptop. Find the PC that’s right for you.
> >> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
> >
> > _________________________________________________________________
> > Llévate Messenger en el móvil a todas partes ¡Conéctate!
> > http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx

Re: Doubts about new project (Struts2 good way to do it?)

Posted by Paweł Wielgus <po...@gmail.com>.
Hi Francisco,
free hosting for java can be a hard one to find,
i don't know or heard of any.

Best greetings,
Paweł Wielgus.


2009/6/5 Francisco Exposito <fc...@hotmail.com>:
>
> I've read that jetspeed2 documentation is poor... do you have an example about jetspeed2 + struts2?
>
> Then, is it possible to create a project using:
>
> Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or jetspeed is not compatible with the other? And what about the performance? Could it be ok using all that? And is it possible to use them in Tomcat or it is necessary JBoss? I want to find a free hosting and if it is difficult to find in TomI tcat... I don't want to think in JBoss...
>
> Regards,
> Francisco
>
>> From: mgainty@hotmail.com
>> To: user@struts.apache.org
>> Subject: RE: Doubts about new project (Struts2 good way to do it?)
>> Date: Thu, 4 Jun 2009 15:43:55 -0400
>>
>>
>> Good Afternoon Francisco
>> i have an opinion on the subject which i would be more than happy to share with you
>>
>> > 1) User preferences: every user can configure its "window" and
>> maintain its configuration after save preferences and log in again. The
>> user can select options from a list and position them where he wants.
>> ¿Maybe using portlets?¿Changing css dinamically depending on logged
>> user?¿Any other option?
>> MG>JetSpeed..tried and true Principal assignment to User,Group
>> http://portals.apache.org/jetspeed-2/
>>
>> > 2) Languages: every user can
>> access in some languages. As I've tested, the language is configured
>> with regional settings. But it is possible to select the language in
>> the login page and maintain it during the session?
>> MG>simple as setting request_locate to en requst_locale=es
>> MG>http://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
>> >
>> > 3) Persistence layer: better Hibernate or iBatis? About performance?
>> MG>I think hibernate has more deploys be aware of lazy_init not creating all dependent objects in object graph
>> https://www.hibernate.org/162.html
>> >
>> > 4) E-commerce: shop cart, what about security?
>> MG>SSL all the way..dont send cleartext for anything unless you want mailicious eavesdropper intervention!
>> http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
>> MG>i can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
>> >
>> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
>> MG>Sitemesh is the css handler that is preconfigured for Struts
>>     <filter>
>>         <filter-name>sitemesh</filter-name>
>>         <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
>>     </filter>
>>     <filter-mapping>
>>         <filter-name>sitemesh</filter-name>
>>         <url-pattern>/*</url-pattern>
>>     </filter-mapping>
>>
>> MG>if you like using VM macros coded thru SiteMesh then enable VelocityPageFilter in web.xml
>>         <filter>
>>             <filter-name>sitemesh</filter-name>
>>             <filter-class>org.apache.struts2.sitemesh.VelocityPageFilter</filter-class>
>>         </filter>
>>         <filter-mapping>
>>             <filter-name>sitemesh</filter-name>
>>             <url-pattern>/*</url-pattern>
>>         </filter-mapping>
>>
>> and for freemarker
>>     <filter>
>>         <filter-name>sitemesh</filter-name>
>>         <filter-class>org.apache.struts2.sitemesh.FreeMarkerPageFilter</filter-class>
>>     </filter>
>>         <filter-mapping>
>>
>>             <filter-name>sitemesh</filter-name>
>>
>>             <url-pattern>/*</url-pattern>
>>
>>         </filter-mapping>
>>
>>
>> Saludos Cordiales desde EEUU!
>> Martin
>> GMT+5(esta semana)
>> >
>> >
>> >
>> > The options I've considered are:
>> >
>> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets.
>> >
>> > Other option is use JSF. Which selection do you think would be better?
>> >
>>
>>
>> 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.
>>
>>
>>
>>
>> > From: fcoexposito@hotmail.com
>> > To: user@struts.apache.org
>> > Subject: Doubts about new project (Struts2 good way to do it?)
>> > Date: Thu, 4 Jun 2009 15:45:09 +0000
>> >
>> >
>> > Hello,
>> >
>> > I want to create a portal with this functionalities, and I don't know if it is possible to do it using Struts2 or what is better for it:
>> >
>> > 1) User preferences: every user can configure its "window" and maintain its configuration after save preferences and log in again. The user can select options from a list and position them where he wants. ¿Maybe using portlets?¿Changing css dinamically depending on logged user?¿Any other option?
>> >
>> > 2) Languages: every user can access in some languages. As I've tested, the language is configured with regional settings. But it is possible to select the language in the login page and maintain it during the session?
>> >
>> > 3) Persistence layer: better Hibernate or iBatis? About performance?
>> >
>> > 4) E-commerce: shop cart, what about security?
>> >
>> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
>> >
>> >
>> >
>> > The options I've considered are:
>> >
>> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets.
>> >
>> > Other option is use JSF. Which selection do you think would be better?
>> >
>> > Thanks in advance.
>> >
>> > Francisco
>> >
>> > _________________________________________________________________
>> > Chatea sin límites en Messenger con la tarifa plana de Orange
>> > http://serviciosmoviles.es.msn.com/messenger/orange.aspx
>>
>> _________________________________________________________________
>> Lauren found her dream laptop. Find the PC that’s right for you.
>> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
>
> _________________________________________________________________
> Llévate Messenger en el móvil a todas partes ¡Conéctate!
> http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx

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


RE: Doubts about new project (Struts2 good way to do it?)

Posted by Francisco Exposito <fc...@hotmail.com>.
I've read that jetspeed2 documentation is poor... do you have an example about jetspeed2 + struts2?

Then, is it possible to create a project using: 

Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or jetspeed is not compatible with the other? And what about the performance? Could it be ok using all that? And is it possible to use them in Tomcat or it is necessary JBoss? I want to find a free hosting and if it is difficult to find in Tomcat... I don't want to think in JBoss...

Regards,
Francisco

> From: mgainty@hotmail.com
> To: user@struts.apache.org
> Subject: RE: Doubts about new project (Struts2 good way to do it?)
> Date: Thu, 4 Jun 2009 15:43:55 -0400
> 
> 
> Good Afternoon Francisco
> i have an opinion on the subject which i would be more than happy to share with you
> 
> > 1) User preferences: every user can configure its "window" and
> maintain its configuration after save preferences and log in again. The
> user can select options from a list and position them where he wants.
> ¿Maybe using portlets?¿Changing css dinamically depending on logged
> user?¿Any other option?
> MG>JetSpeed..tried and true Principal assignment to User,Group
> http://portals.apache.org/jetspeed-2/
> 
> > 2) Languages: every user can
> access in some languages. As I've tested, the language is configured
> with regional settings. But it is possible to select the language in
> the login page and maintain it during the session?
> MG>simple as setting request_locate to en requst_locale=es
> MG>http://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
> > 
> > 3) Persistence layer: better Hibernate or iBatis? About performance?
> MG>I think hibernate has more deploys be aware of lazy_init not creating all dependent objects in object graph
> https://www.hibernate.org/162.html
> > 
> > 4) E-commerce: shop cart, what about security?
> MG>SSL all the way..dont send cleartext for anything unless you want mailicious eavesdropper intervention!
> http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
> MG>i can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
> > 
> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
> MG>Sitemesh is the css handler that is preconfigured for Struts
>     <filter>
>         <filter-name>sitemesh</filter-name>
>         <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
>     </filter>
>     <filter-mapping>
>         <filter-name>sitemesh</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
> 
> MG>if you like using VM macros coded thru SiteMesh then enable VelocityPageFilter in web.xml
>         <filter>
>             <filter-name>sitemesh</filter-name>
>             <filter-class>org.apache.struts2.sitemesh.VelocityPageFilter</filter-class>
>         </filter>
>         <filter-mapping>
>             <filter-name>sitemesh</filter-name>
>             <url-pattern>/*</url-pattern>
>         </filter-mapping>
> 
> and for freemarker
>     <filter>
>         <filter-name>sitemesh</filter-name>
>         <filter-class>org.apache.struts2.sitemesh.FreeMarkerPageFilter</filter-class>
>     </filter>
>         <filter-mapping>
> 
>             <filter-name>sitemesh</filter-name>
> 
>             <url-pattern>/*</url-pattern>
> 
>         </filter-mapping>
> 
> 
> Saludos Cordiales desde EEUU!
> Martin
> GMT+5(esta semana)
> > 
> > 
> > 
> > The options I've considered are:
> > 
> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets. 
> > 
> > Other option is use JSF. Which selection do you think would be better?
> > 
> 
> 
> 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.
> 
> 
> 
> 
> > From: fcoexposito@hotmail.com
> > To: user@struts.apache.org
> > Subject: Doubts about new project (Struts2 good way to do it?)
> > Date: Thu, 4 Jun 2009 15:45:09 +0000
> > 
> > 
> > Hello,
> > 
> > I want to create a portal with this functionalities, and I don't know if it is possible to do it using Struts2 or what is better for it:
> > 
> > 1) User preferences: every user can configure its "window" and maintain its configuration after save preferences and log in again. The user can select options from a list and position them where he wants. ¿Maybe using portlets?¿Changing css dinamically depending on logged user?¿Any other option?
> > 
> > 2) Languages: every user can access in some languages. As I've tested, the language is configured with regional settings. But it is possible to select the language in the login page and maintain it during the session?
> > 
> > 3) Persistence layer: better Hibernate or iBatis? About performance?
> > 
> > 4) E-commerce: shop cart, what about security?
> > 
> > 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
> > 
> > 
> > 
> > The options I've considered are:
> > 
> > Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets. 
> > 
> > Other option is use JSF. Which selection do you think would be better?
> > 
> > Thanks in advance.
> > 
> > Francisco
> > 
> > _________________________________________________________________
> > Chatea sin límites en Messenger con la tarifa plana de Orange
> > http://serviciosmoviles.es.msn.com/messenger/orange.aspx
> 
> _________________________________________________________________
> Lauren found her dream laptop. Find the PC that’s right for you.
> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

_________________________________________________________________
Llévate Messenger en el móvil a todas partes ¡Conéctate!
http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx

RE: Doubts about new project (Struts2 good way to do it?)

Posted by Martin Gainty <mg...@hotmail.com>.
Good Afternoon Francisco
i have an opinion on the subject which i would be more than happy to share with you

> 1) User preferences: every user can configure its "window" and
maintain its configuration after save preferences and log in again. The
user can select options from a list and position them where he wants.
¿Maybe using portlets?¿Changing css dinamically depending on logged
user?¿Any other option?
MG>JetSpeed..tried and true Principal assignment to User,Group
http://portals.apache.org/jetspeed-2/

> 2) Languages: every user can
access in some languages. As I've tested, the language is configured
with regional settings. But it is possible to select the language in
the login page and maintain it during the session?
MG>simple as setting request_locate to en requst_locale=es
MG>http://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
> 
> 3) Persistence layer: better Hibernate or iBatis? About performance?
MG>I think hibernate has more deploys be aware of lazy_init not creating all dependent objects in object graph
https://www.hibernate.org/162.html
> 
> 4) E-commerce: shop cart, what about security?
MG>SSL all the way..dont send cleartext for anything unless you want mailicious eavesdropper intervention!
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
MG>i can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
> 
> 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
MG>Sitemesh is the css handler that is preconfigured for Struts
    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

MG>if you like using VM macros coded thru SiteMesh then enable VelocityPageFilter in web.xml
        <filter>
            <filter-name>sitemesh</filter-name>
            <filter-class>org.apache.struts2.sitemesh.VelocityPageFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>sitemesh</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>

and for freemarker
    <filter>
        <filter-name>sitemesh</filter-name>
        <filter-class>org.apache.struts2.sitemesh.FreeMarkerPageFilter</filter-class>
    </filter>
        <filter-mapping>

            <filter-name>sitemesh</filter-name>

            <url-pattern>/*</url-pattern>

        </filter-mapping>


Saludos Cordiales desde EEUU!
Martin
GMT+5(esta semana)
> 
> 
> 
> The options I've considered are:
> 
> Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets. 
> 
> Other option is use JSF. Which selection do you think would be better?
> 


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.




> From: fcoexposito@hotmail.com
> To: user@struts.apache.org
> Subject: Doubts about new project (Struts2 good way to do it?)
> Date: Thu, 4 Jun 2009 15:45:09 +0000
> 
> 
> Hello,
> 
> I want to create a portal with this functionalities, and I don't know if it is possible to do it using Struts2 or what is better for it:
> 
> 1) User preferences: every user can configure its "window" and maintain its configuration after save preferences and log in again. The user can select options from a list and position them where he wants. ¿Maybe using portlets?¿Changing css dinamically depending on logged user?¿Any other option?
> 
> 2) Languages: every user can access in some languages. As I've tested, the language is configured with regional settings. But it is possible to select the language in the login page and maintain it during the session?
> 
> 3) Persistence layer: better Hibernate or iBatis? About performance?
> 
> 4) E-commerce: shop cart, what about security?
> 
> 5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?
> 
> 
> 
> The options I've considered are:
> 
> Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets. 
> 
> Other option is use JSF. Which selection do you think would be better?
> 
> Thanks in advance.
> 
> Francisco
> 
> _________________________________________________________________
> Chatea sin límites en Messenger con la tarifa plana de Orange
> http://serviciosmoviles.es.msn.com/messenger/orange.aspx

_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Doubts about new project (Struts2 good way to do it?)

Posted by Francisco Exposito <fc...@hotmail.com>.
Hello,

I want to create a portal with this functionalities, and I don't know if it is possible to do it using Struts2 or what is better for it:

1) User preferences: every user can configure its "window" and maintain its configuration after save preferences and log in again. The user can select options from a list and position them where he wants. ¿Maybe using portlets?¿Changing css dinamically depending on logged user?¿Any other option?

2) Languages: every user can access in some languages. As I've tested, the language is configured with regional settings. But it is possible to select the language in the login page and maintain it during the session?

3) Persistence layer: better Hibernate or iBatis? About performance?

4) E-commerce: shop cart, what about security?

5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too long. About performance?



The options I've considered are:

Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh or Tiles, Hibernate or iBatis, Portlets. 

Other option is use JSF. Which selection do you think would be better?

Thanks in advance.

Francisco

_________________________________________________________________
Chatea sin límites en Messenger con la tarifa plana de Orange
http://serviciosmoviles.es.msn.com/messenger/orange.aspx