Re: [Struts2] Redirect forward

2006-10-23 Thread Don Brown
Use the action-redirect result type. IIRC, you can add parameters to it via the XML, but use OGNL expressions for the value. Then, the values will be pulled out of the stack (usually from an Action getter). Don On 10/23/06, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: Hi, I'm not new to stru

Re: [OT] Re: java.lang.OutOfMemoryError: Java heap space

2006-10-23 Thread B . Sridhar
Hi, thanks for ur suggestion, i have used commons.IOutil and its working! bye On 10/20/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: B.Sridhar ha scritto: > yes . actually my appln initially downloads the file from database to a > temp directory of the tomcat as a temp file and then from the

struts-config.xml maintenance question

2006-10-23 Thread Garner Shawn
I was wondering if there was any easy way to find which global forwards and which actions are not being used. I work on a rather large project with a giant struts-config.xml and I worried that I will have to search each one in the entire application to see if it is used. I'm also worried about in

Re: Branding and resource-exists

2006-10-23 Thread Irv Salisbury
I am sorry. When I hit the tab in gmail, it sent the page for some reason :-( I'll finish... if page exists ${brand}/page/somePage.jsp then use ${brand}/page/somePage.jsp else use page default/page/somePage.jsp It doesn't matter to me where this happens just looking for some advice on how to

Branding and resource-exists

2006-10-23 Thread Irv Salisbury
We are using branding in our application and need a way for new brands to "override" our default jsp pages for look and feel. So, I need to implement the following logic somewhere (it can be in struts or jsp, I am just looking for advice) if page exists ${brand}/page/somePage.jsp

Re: Struts 2.0 vs JSF

2006-10-23 Thread Don Brown
Well, JSF and Struts 2 doesn't have to be an either/or decision. You can base your application on Struts 2, then use JSF components on any page. If the JSF controller layer didn't suite your application's needs and your design preferences, then Struts 2 is certainly worth a look, IMO. Don On 1

Re: Struts 2.0 vs JSF

2006-10-23 Thread Martin Gainty
Mike- Have you looked at Open Symphony? http://www.opensymphony.com/ Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified

Re: tiles: detect controller pg?

2006-10-23 Thread Niall Pemberton
On 10/23/06, maya <[EMAIL PROTECTED]> wrote: am fairly new to struts, so not sure you can do this... I was wondering if it's possible for a tile to detect what page is calling it.. I have corp logo in header tile; header tile is called by all pgs, but I would like the code around logo to appea

Re: Struts Validation DTD

2006-10-23 Thread Niall Pemberton
On 10/23/06, Ed Griebel <[EMAIL PROTECTED]> wrote: (Redirecting response to user list where this type of question belongs...) You can swap in the new validator version without any changes to the rest of your application; the commons-validator team run a regression test at the binary level. This

Re: Indexed Properties

2006-10-23 Thread Niall Pemberton
The trick is normally to name the "id" used in the to the same name as the property for your "list of product" in your ActionForm (i.e. newProducts in your example): Which should then produce the html you're expecting: Niall On 10/23/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: Hi,

Struts 2.0 vs JSF

2006-10-23 Thread Mike Duffy
I just finished a JSF project and I was not pleased with "ease of use" or the overhead (is JSF a conspiracy to sell hardware?). I am thinking that the best way to go for a new commercial level project is Struts 2.0 with AJAX components for a "coolness factor". Any suggestions? Mike

RE: Drag-and-drop struts-aware IDE?

2006-10-23 Thread Coelho.Joao
I too agree. IDE's are great once you know the language and whatever other tools are needed for the use of that language. But learning a language with an IDE is not a good idea. But if the beginner is using the IDE, there are many things that an IDE will do for us and hide and hide from us, and i

Re: [Struts2] Redirect forward

2006-10-23 Thread Mikolaj Rydzewski
David H. DeWolf wrote: Use the redirect result type: /path/to/target Not exactly what I need. I'd like to redirect user to: "/path/to/target.action?id=foo&id2=bar" With struts 1.x one could use ActionRedirect.addParameter(...) to add several parameters and return complete 'redirection' from

Re: Select row from a Table

2006-10-23 Thread grifoxx
Thank you man.it worked but now I have another question, how can i get the parameter and pass it to an action class. Thank you again... Laurie Harper wrote: > > grifoxx wrote: >> Hi, I created a table using the iterate tag from struts. What I want to >> do is >> to select a row from that t

Re: Drag-and-drop struts-aware IDE?

2006-10-23 Thread Puneet Lakhina
On 10/23/06, Li <[EMAIL PROTECTED]> wrote: Hi Leon, I agreed, drag-and-drop may help developer to develop, but may not help developer to understand more about development ... I agree too.. People who learn to develop code on things like eclipse etc. want the IDE to do almost everything. They

Re: Struts 2 vs Struts 1.3

2006-10-23 Thread Laurie Harper
frankiestd168 wrote: Hi all Struts experts, Do you mind if you can suggest me to use Struts 2 or Struts 1.3 as a flamework.. I have some experience on Struts 1.2 before, and now I'm starting a new project, and I found that Struts 2 (Webwork 2) is newly released, they have lot of features.. but

Re: Select row from a Table

2006-10-23 Thread Laurie Harper
grifoxx wrote: Hi, I created a table using the iterate tag from struts. What I want to do is to select a row from that table so I have an extra column that has a link called Detail. If the user click on that link I want to display in other page the detail of that row. To do that I need to get th

Re: javabeans with Collection (Set)

2006-10-23 Thread Laurie Harper
That's because Struts doesn't know how to turn a set of HTML request parameters into a Set of Something. There are a couple of options: you could, perhaps, register a converter with BeanUtils what would do this for you, at which point your existing code would probably work as you were expecting

Re: Problem with hidden String[] object

2006-10-23 Thread Laurie Harper
Yep, you can't pass a String array as a single input/hidden, unless you're willing to handle marshalling it to/from a single-string representation. Far easier would be to expose the array as an index property and serialize it to/from the view using a set of hidden inputs. L. [1] http://struts

Re: validator framework

2006-10-23 Thread Laurie Harper
Yariel Ramos Moreno wrote: How can I validate a form field to accept numbers from 1 to 99 or an underscore (_) using the validator framework. The application is in Struts 1.1. If you didn't have the requirement to accept underscore, intRange would be what you were looking for. With that requi

Re: [s2] issue

2006-10-23 Thread Mark Menard
On 10/19/06 10:11 PM, "Ted Husted" <[EMAIL PROTECTED]> wrote: > On 10/19/06, Mark Menard <[EMAIL PROTECTED]> wrote: >> I'm still curious as to what was causing the NPE with the tag. I >> have read the Webwork in Action book and I think I'm using it correctly. >> Just in case this is an issue, I w

Re: Re: FormFile getPath() ?

2006-10-23 Thread Martin Gainty
Eric you'll need to implement FileItem e.g. public final class UploadAction extends Action implements org.apache.commons.fileupload.FileItem Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients na

Struts 2 vs Struts 1.3

2006-10-23 Thread frankiestd168
Hi all Struts experts, Do you mind if you can suggest me to use Struts 2 or Struts 1.3 as a flamework.. I have some experience on Struts 1.2 before, and now I'm starting a new project, and I found that Struts 2 (Webwork 2) is newly released, they have lot of features.. but it's pretty new, not t

tiles: detect controller pg?

2006-10-23 Thread maya
am fairly new to struts, so not sure you can do this... I was wondering if it's possible for a tile to detect what page is calling it.. I have corp logo in header tile; header tile is called by all pgs, but I would like the code around logo to appear ONLY if header tile is NOT being called f

Re: Forward Action to Action

2006-10-23 Thread Ed Griebel
The easiest is to put your data as attributes in the request scope with request.setAttribute( name, value), and then extract them in the second action with 'MyClass value = (MyClass) request.getAttribute(name)'. You can also put the attributes in the session scope, but you need to remember to remo

RE: Re: FormFile getPath() ?

2006-10-23 Thread Givler, Eric
Did you ever get a solution to this? The filename from FormFile.getFileName() is the client file name, right? My requirement is that the uploads can be up to 100MB, and I can see the file created in a temp folder (rather quickly). Before I can load it into the database, I have to run a virus

Select row from a Table

2006-10-23 Thread grifoxx
Hi, I created a table using the iterate tag from struts. What I want to do is to select a row from that table so I have an extra column that has a link called Detail. If the user click on that link I want to display in other page the detail of that row. To do that I need to get the Order number w

Re: Drag-and-drop struts-aware IDE?

2006-10-23 Thread Li
Hi Leon, I agreed, drag-and-drop may help developer to develop, but may not help developer to understand more about development ... On 10/23/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: On 10/21/06, Li <[EMAIL PROTECTED]> wrote: > A drag-and-drop struts aware IDE ... I believed that there are

Re: Struts Validation DTD

2006-10-23 Thread Ed Griebel
(Redirecting response to user list where this type of question belongs...) You can swap in the new validator version without any changes to the rest of your application; the commons-validator team run a regression test at the binary level. This page has a complete list of what jars need to be upd

Re: [Struts2] Redirect forward

2006-10-23 Thread David H. DeWolf
Use the redirect result type: /path/to/target See: http://cwiki.apache.org/WW/result-types.html for more info. David Mikolaj Rydzewski wrote: Hi, I'm not new to struts, but new to struts2. I have read a few tutorials, and some pages on the wiki and I think I'll use struts2 in future pr

Re: Forward Action to Action

2006-10-23 Thread Lixin Chu
how abt using the same formbean for both actions ?

RE : Forward Action to Action

2006-10-23 Thread Jean-Marie Pitre
-Message d'origine- De : Jean-Marie Pitre [mailto:[EMAIL PROTECTED] Envoyé : samedi 21 octobre 2006 16:27 À : Struts Users Mailing List Objet : Forward Action to Action Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first acti

RE: Re: FormFile getPath() ?

2006-10-23 Thread Givler, Eric
Did you ever get a solution to this? The filename from FormFile.getFileName() is the client file name, right? My requirement is that the uploads can be up to 100MB, and I can see the file created in a temp folder (rather quickly). Before I can load it into the database, I have to run a virus

Indexed Properties

2006-10-23 Thread Puneet Lakhina
Hi, I have some objects in an Array List which I want to fetch using indexed properties. So basically in my array list I have objects of type Product, which has properties like name,number etc. with appropriate getter and setter methods. What I am unable to figure out is the following. The

Re: Forward Action to Action

2006-10-23 Thread WongTseng王曾
Maybe it's impossible. Cos the data populated into the formbean is read from url parameters, and you can't create parameter in request by any Java API. So 'tis difficult. But you can hardcode the paramters in the path of the forward which points to your second action. 2006/10/21, Jean-Marie Pitr

Re: Forward Action to Action

2006-10-23 Thread ShiBing Chen
Action chain can do that. On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first action to my second formbean (second action). I tried to do a setattribute in my first action befo

RE: Hosting

2006-10-23 Thread draegoon Z
For a private tomcat server with SSH/FTP access, start and stop whenever for only like $17USD: http://4java.ca You can't beat this! I've been using them for 3 year. --- WEB DESIGN BY DRAEGOONZ Joseph "DraegoonZ

Re: Drag-and-drop struts-aware IDE?

2006-10-23 Thread Leon Rosenberg
On 10/21/06, Li <[EMAIL PROTECTED]> wrote: A drag-and-drop struts aware IDE ... I believed that there are some existed My team use text editor and some page layout design tool to develop struts and webwork webapp, quite fast and the most important thing is they will understand how a web ui proce

javabeans with Collection (Set)

2006-10-23 Thread BISO
Dears, I have a "User" bean with java.util.Set property. I create a struts form with a list to select multiple values from and then store them in the set. I am getting this exception: java.lang.IllegalArgumentException: Cannot invoke com.myapp.struts.User.setValues - argument type mismatch --- p

[Struts2] Redirect forward

2006-10-23 Thread Mikolaj Rydzewski
Hi, I'm not new to struts, but new to struts2. I have read a few tutorials, and some pages on the wiki and I think I'll use struts2 in future projects ;-) How can I achieve the functionality of ActionRedirect from the 'old' struts? I want my action to redirect to another url with some param

RE: Forward Action to Action

2006-10-23 Thread zhang xiao
From: "Jean-Marie Pitre" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Forward Action to Action Date: Sat, 21 Oct 2006 16:27:13 +0200 Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my fi

Re: Forward Action to Action

2006-10-23 Thread João Vieira da Luz
I think you are little bit confused. FormBeans are the request abstractions of requests. Thus, in order to populate the 2nd bean you have to use request PARAMETERS instead of request ATTRIBUTTES. Hope this helps you On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to