Re: Performance issue with large data(such as images)

2009-06-10 Thread Paweł Wielgus
Hi All, just as a side note, 300 users is a very small quantity of users. So i would recomend to check if there is a performance problem at all. Best greetings, Paweł Wielgus. 2009/6/9 Jim Collings jlistn...@gmail.com: Can't put em in your database as BLOB's with all the other user info? On

Struts2 - redirectAction - ServletActionRedirectResult

2009-06-10 Thread Kishan Paandy
Hi Folks, In Struts 2.1.6, if we have a result name=success type=redirectAction, for example, result name=showReportResult type=redirectAction generateReport /genReport pie Refer to:

JSR-94 Struts2 plugin?

2009-06-10 Thread KSXD 32
Hello, I was wondering how viable would be creating a Struts 2 JSR-94 http://jcp.org/en/jsr/detail?id=94 plugin that would allow attaching any compliant business rules engine implementation so that all or some of the following aspects of a Struts 2 Web Application could be optionally

Re: Struts2 - redirectAction - ServletActionRedirectResult

2009-06-10 Thread Wes Wannemacher
On Wed, Jun 10, 2009 at 7:16 AM, Kishan Paandykishanchellapaand...@spanservices.com wrote: Hi Folks,  In Struts 2.1.6, if we have a result name=success type=redirectAction, for example,  result name=showReportResult type=redirectAction          generateReport          /genReport          

Re: JSR-94 Struts2 plugin?

2009-06-10 Thread Wes Wannemacher
On Wed, Jun 10, 2009 at 8:07 AM, Azùa Giovanni (KSXD 32)giovanni.a...@credit-suisse.com wrote: Hello, I was wondering how viable would be creating a Struts 2 JSR-94 http://jcp.org/en/jsr/detail?id=94 plugin that would allow attaching any compliant business rules engine implementation so

RE: Struts2 - redirectAction - ServletActionRedirectResult

2009-06-10 Thread Kishan G. Chellap Paandy
Hi Wes, Thanks for your quick reply. So it a bug and I will file it in Struts2. Regards, Kishan.G Team Leader. www.spansystems.com -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Wednesday, June 10, 2009 5:58 PM To: Struts Users Mailing List Subject: Re:

Regular Expression Action Mapper

2009-06-10 Thread foo bar
Hi all, I've just started implementing a regex action mapper (influenced by Django's URL dispatcher [1]). Just wondering whether anyone has done this before. Would like to know what other people think as well. Ideas ? Suggestions ? Bugs ? This is what I have at the moment, protected String[]

Struts2 and struts 1.2 combination

2009-06-10 Thread kool
HI All Currently i am working with Struts 1.2. Now i want to integrate with struts 2.0 and struts 1.2 in one project. Is it possible to have both versions in one project or any conflict will occur. Please give me a suggestions. Thanks in adv. kool -- View this message in context:

Adding validators dynamically

2009-06-10 Thread j alex
hi, I've a form where the user can add fields dynamically by clicking an Add button , and these are stored as a Map in the model , like : dynamicfields[0].firstname dynamicfields[0].lastname dynamicfields[1].firstname etc. The first instance (i.e dynamicfields[0]..) will always be present and

Re: Performance issue with large data(such as images)

2009-06-10 Thread Richard Sayre
Thanks, Rich, I''m happy to help. If I use BLOB, I have to make a lot of change to my code. Therefore, I have to persist it as String. I used base64 to encode and decode the byte[] into String. Because I resize the images to small ones. I use a VARCHAR length about 10k~20k to persist the

Re: Performance issue with large data(such as images)

2009-06-10 Thread Richard Sayre
I should have also mentioned that there are security issues with persisting to the hard drive. I would recommend saving to the database and loading the images as needed. Do not save them to session. I do not think you will have a performance problem. Rich

RE: Performance issue with large data(such as images)

2009-06-10 Thread Mitchell, Steven
This is a little off topic, but can anybody recommend a photo resizing utility to run after the upload? I too have a need to allow the user to upload a user photo, which could be stored in a BLOB, but I know it is not that simple. Many sites do post processing to adjust the image resolution,

RE: Performance issue with large data(such as images)

2009-06-10 Thread Security Management
I should have also mentioned that there are security issues with persisting to the hard drive. I would recommend saving to the database and loading the images as needed. Do not save them to session. I do not think you will have a performance problem. Rich I have had problems when trying to

Re: Performance issue with large data(such as images)

2009-06-10 Thread fireapple
Richard Sayre wrote: I should have also mentioned that there are security issues with persisting to the hard drive. I would recommend saving to the database and loading the images as needed. Do not save them to session. I do not think you will have a performance problem. Rich

RE: Performance issue with large data(such as images)

2009-06-10 Thread fireapple
Security Management wrote: I have had problems when trying to show a bunch of thumbnails, because you have a URL that points to an action in your jsp that causes a database hit to pull the image. If I'm trying to show 150 thumbnails, the page takes forever to load due to the db

Re: Struts 2 File upload to store the filedata

2009-06-10 Thread fireapple
Jeromy Evans - Blue Sky Minds wrote: Hi Johnson, I think just need to read up a little more on Struts 2 as it seems you're trying to do too much yourself based on Struts1 experiences rather than let the framework do more of the routine work. Ian Roughly's book is a good place to

@Results ignored

2009-06-10 Thread Jim Collings
I've got an action/jsp combo that is under /content. Success and error messages are actually displayed on the jsp in question. So for input and for success it's supposed to loop back to the jsp and display either a success message or validation errors. I have an empty execute() method annotated

Re: Struts2 - redirectAction - ServletActionRedirectResult

2009-06-10 Thread Jan T. Kim
Hi All, On Wed, Jun 10, 2009 at 06:25:07PM +0530, Kishan G. Chellap Paandy wrote: Hi Wes, Thanks for your quick reply. So it a bug and I will file it in Struts2. I've run into this recently too, and being new to Struts I initially thought I had made some silly mistake. The problem has

Re: Performance issue with large data(such as images)

2009-06-10 Thread Dave Newton
fireapple wrote: Any way to resolve the security issue? If the user save the portrait in the hard drive(outside of app), I couldn't find a way to display it using URL. i-mg src=/home/username/images/local/PRTR.jpg / doesn't work at all. Stream it from an action/servlet/etc? Dave

Struts 2 - Creating a dynamic tree

2009-06-10 Thread Bala . T . Ramanadham
Hi All, I am new to Struts and we are working on an application where we have to create a dynamic tree. In /struts-dojo-tags, there is a tree and treenode tags which are available to use. I have included struts2-dojo-plugin-2.1.6.jar in web-inf/lib folder. However, when I run the application,

Re: Struts 2 - Creating a dynamic tree

2009-06-10 Thread Dave Newton
bala.t.ramanad...@kp.org wrote: I am new to Struts and we are working on an application where we have to create a dynamic tree. In /struts-dojo-tags, there is a tree and treenode tags which are available to use. I have included struts2-dojo-plugin-2.1.6.jar in web-inf/lib folder. However, when

Re: Struts 2 - Creating a dynamic tree

2009-06-10 Thread Wes Wannemacher
On Wednesday 10 June 2009 08:11:24 pm bala.t.ramanad...@kp.org wrote: Hi All, I am new to Struts and we are working on an application where we have to create a dynamic tree. In /struts-dojo-tags, there is a tree and treenode tags which are available to use. I have included

how to return xml from struts2 action class

2009-06-10 Thread Bhaarat Sharma
Hello, Is there some built in functionality in struts2 that would let me return xml data from my action class? If not, I will have to create the xml data myself (which I dont mind). But what will the result-type be for this action in my struts.xml?

Re: how to return xml from struts2 action class

2009-06-10 Thread Wes Wannemacher
On Wednesday 10 June 2009 08:34:41 pm Bhaarat Sharma wrote: Hello, Is there some built in functionality in struts2 that would let me return xml data from my action class? If not, I will have to create the xml data myself (which I dont mind). But what will the result-type be for this action

Re: how to return xml from struts2 action class

2009-06-10 Thread Dave Newton
Bhaarat Sharma wrote: Is there some built in functionality in struts2 that would let me return xml data from my action class? If not, I will have to create the xml data myself (which I dont mind). But what will the result-type be for this action in my struts.xml? There is in the REST plugin.

Re: how to return xml from struts2 action class

2009-06-10 Thread Dave Newton
Wes Wannemacher wrote: There is a capable xsl result type built in. It's also quite easy to stream xml using the xstream library. Whichever suites your needs. Stop it!!! Dave - To unsubscribe, e-mail:

Re: Struts 2 - Creating a dynamic tree

2009-06-10 Thread Bala . T . Ramanadham
Hi Dave/Wes, Yes, I am using sx:head tag. Below is the sample code. %...@page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% %@ taglib prefix=s uri=/struts-tags % %@ taglib prefix=sx uri=/struts-dojo-tags % html head sx:head parseContent=false / script

Re: how to return xml from struts2 action class

2009-06-10 Thread Wes Wannemacher
On Wednesday 10 June 2009 09:17:23 pm Dave Newton wrote: Bhaarat Sharma wrote: Is there some built in functionality in struts2 that would let me return xml data from my action class? If not, I will have to create the xml data myself (which I dont mind). But what will the result-type be

RE: how to return xml from struts2 action class

2009-06-10 Thread Martin Gainty
do you have the Schema or DTD? 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.

Re: how to return xml from struts2 action class

2009-06-10 Thread Bhaarat Sharma
I am trying to avoid plugin or another library (dont want to add another jar file to our lib) So I think xsl result type will do... http://struts.apache.org/2.0.6/docs/xsl-result.html @Martin It will just be a very simple xml like result message1/message /result On Wed, Jun 10, 2009 at 9:49

[OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Bhaarat Sharma
Guys, I've been doing struts2 for about 2 years, although I dont know everything about it but I have been able to get the stuff done. Most of the stuff I learned was from Struts2 in action book and this mailing list! Lately I've been intrigued by the XXX on Rails framework, be it Ruby or

RE: how to return xml from struts2 action class

2009-06-10 Thread Martin Gainty
was wondering if you might need to format XML to known DTD or schema you may want to consider streaming XML thru input and output streams as earlier suggested thx Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Dave Newton
Bhaarat Sharma wrote: I've been doing struts2 for about 2 years, although I dont know everything about it but I have been able to get the stuff done. Most of the stuff I learned was from Struts2 in action book and this mailing list! Lately I've been intrigued by the XXX on Rails framework, be

RE: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Andy
Two words - Stripes framework. Date: Wed, 10 Jun 2009 22:06:11 -0400 Subject: [OT]Moving from Struts2 to grails, your thoughts From: bhaara...@gmail.com To: user@struts.apache.org Guys, I've been doing struts2 for about 2 years, although I dont know everything about it but I have

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Steven Hansen
I came to Struts2 from Rails. Rails (ruby especially) is really nice. It is very interesting to compare w/Java and Struts2 / Hibernate / Maven / Spring / Junit. There also tons of great books out there on ruby and or rails ' -Steven Bhaarat Sharma wrote: Guys, I've been doing

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread David C. Hicks
I think Grails is a nice tool, as long as what you want to do is within the confines of what it is designed to give you for free. After that, you'll be writing mounds of code. The project I'm working on now was originally started on the Grails platform. It was maybe 5 to 6 months down the

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Bhaarat Sharma
thanks for your been there done that insight. Struts 2 definitely is much more sane and enterprise level compared to grails. However, sometimes it is disappointing to know that in struts out-of-the-box we cant even return a result type of a simple string that does not go to a different page.

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Dave Newton
Bhaarat Sharma wrote: Struts 2 definitely is much more sane and enterprise level compared to grails. However, sometimes it is disappointing to know that in struts out-of-the-box we cant even return a result type of a simple string that does not go to a different page. Say, I just want to

Re: [OT]Moving from Struts2 to grails, your thoughts

2009-06-10 Thread Musachy Barroso
you can get a reference to the outputstream from the request and write to it, and then return null, or Action.NONE from your method. musachy On Thu, Jun 11, 2009 at 12:25 AM, Bhaarat Sharmabhaara...@gmail.com wrote: thanks for your been there done that insight. Struts 2 definitely is much