Re: opening a popup window from Action Class

2009-06-10 Thread Nils-Helge Garli Hegvik
That's something you have to handle in your view, either with javascript or just a link with the proper target attribute. Nils-H On Thu, Jun 11, 2009 at 8:03 AM, abhishek reddy wrote: > hi every one, > > How to open a popup window from Struts Action Class? > > thanks in advance > -- > Abhishek >

opening a popup window from Action Class

2009-06-10 Thread abhishek reddy
hi every one, How to open a popup window from Struts Action Class? thanks in advance -- Abhishek

opening a popup window from Action Class

2009-06-10 Thread abhishek reddy
hi every one, How to open a popup window from Struts Action Class? thanks in advance -- Abhishek

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 Sharma wrote: > thanks for your been there done that insight. > > Struts 2 definitely is much more sane and enterp

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 stream

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. Say

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 ro

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 struts2

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

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 i

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 confidentialit

[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 Groovy.

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 1 On Wed, Jun 10, 2009 at 9:49 PM, Martin Gainty wrote: >

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 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

Re: Struts 2 - Creating a dynamic tree

2009-06-10 Thread Bala . T . Ramanadham
Hi Dave/Wes, Yes, I am using 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" %> dojo.require("dojo.widget.*")

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: user-unsubscr...@struts.

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 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 > act

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: 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 > struts2-dojo-

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

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: 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. "" doesn't work at all. Stream it from an action/servlet/etc? Dave ---

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 h

@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 annota

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

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 conne

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. > > R

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 sho

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, s

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 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

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 an

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: http://www.n

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[] url

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: St

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) wrote: > Hello, > > I was wondering how viable would be creating a Struts 2 JSR-94 > plugin that would allow attaching any > compliant business rules engine implementation so that all or some of the > f

Re: Struts2 - redirectAction - ServletActionRedirectResult

2009-06-10 Thread Wes Wannemacher
On Wed, Jun 10, 2009 at 7:16 AM, Kishan Paandy wrote: > > Hi Folks, > >  In Struts 2.1.6, if we have a type="redirectAction">, for example, > >   >          generateReport >          /genReport >          pie > > Refer to: > http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/di

JSR-94 Struts2 plugin?

2009-06-10 Thread KSXD 32
Hello, I was wondering how viable would be creating a Struts 2 JSR-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 externa

Struts2 - redirectAction - ServletActionRedirectResult

2009-06-10 Thread Kishan Paandy
Hi Folks, In Struts 2.1.6, if we have a , for example, generateReport /genReport pie Refer to: http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/ServletActionRedirectResult.html We will get errors in the log as: ERROR (Com