Excel download

2005-07-11 Thread Senthilrajan VS
Hi all, Is there any way in struts to download the page (view part) in Excel format. Thanks & Regards, SenthilRajan VS

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Craig McClanahan
On 7/12/05, Rivka Shisman <[EMAIL PROTECTED]> wrote: > Hi Craig > > I understand that you did not follow this thread from the beginning. > As I mentioned before - when working with int, short, byte types - my > app works fine. I don't get any runtime exception! > If you are not getting an except

Re: upload/download file to/from oracle blob field with struts

2005-07-11 Thread EROL TEZCAN
Frank, I found a solution for it. Thanks, "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: I had to do this for an application. While the code is fairly lengthy, longer than I'd like to post here, if you come up against specific problems feel free to ping me. Although I didn't look at the a

Re: Putting execute() in ActionForm

2005-07-11 Thread Craig McClanahan
On 7/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Very few had the idea of passing ActionForm as VO to persistence > layer. This is some kind of backwards MVC. Contrary, the idea was to > use BOs in ActionForm with session scope, thus making it a stateful > interactive business object.

Re: Using struts forms as Value Objects: your opinion? BeanUtil C onverter

2005-07-11 Thread Borislav Sabev
Nitish Kumar wrote: "This is a HUGE problem with BeanUtils and why I end up having to register custom converters:(" good point, but where do I register my custom converters? I dont want to do it in my action classes, and writing a plugin just to register my converters would be a big overhead.

RE: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rivka Shisman
Hi Craig I understand that you did not follow this thread from the beginning. As I mentioned before - when working with int, short, byte types - my app works fine. I don't get any runtime exception! Is it crucial for the Action Form to have String properties? Rivka -Original Message- Fr

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Craig McClanahan
On 7/11/05, Borislav Sabev <[EMAIL PROTECTED]> wrote: > Rick Reumann wrote: > > > > > You shouldn't want a "default" at all provided by BeanUtils for cases > > where it can be null! You are using the anomoly of the way Integer is > > working and wanting to propogate that poor solution. null should

Re: Putting execute() in ActionForm

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > I think of the state information represented by an ActionForm (in > Struts 1.x) or potentially as properties of an "action" class (per the > current discussion) to be part of the *view* tier. Further, I see the > role of the execute method

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Borislav Sabev
Rick Reumann wrote: You shouldn't want a "default" at all provided by BeanUtils for cases where it can be null! You are using the anomoly of the way Integer is working and wanting to propogate that poor solution. null should be null.. it shouldn't be 0 or some default Date if null is provide

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Craig McClanahan
On 7/11/05, Rivka Shisman <[EMAIL PROTECTED]> wrote: > Hi guys, > > Borislav - thank you for the time you spent debugging this issue :-) > > So now I wonder - is it o.k. to use typed properties in my Action Forms? > Or is there an important reason why I should Strings only? > To answer this que

Re: Using struts forms as Value Objects: your opinion? BeanUtil C onverter

2005-07-11 Thread Craig McClanahan
On 7/11/05, Nitish Kumar <[EMAIL PROTECTED]> wrote: > > "This is a HUGE problem with BeanUtils and why I end up having to > register custom converters:(" > > good point, but where do I register my custom converters? I dont want to do > it in my action classes, and writing a plugin just to registe

Re: Putting execute() in ActionForm

2005-07-11 Thread Craig McClanahan
On 7/11/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote: > > There are reasons to have an "application scoped" front controller. > > There are reasons to have a "view-scoped" front controller. There is > > *no* reason I am aware of that requires these controllers to be th

RE: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rivka Shisman
Hi guys, Borislav - thank you for the time you spent debugging this issue :-) So now I wonder - is it o.k. to use typed properties in my Action Forms? Or is there an important reason why I should Strings only? I don't add my Action Form properties to the Struts config file. Is it o.k. - or am I

Re: Using struts forms as Value Objects: your opinion? BeanUtil C onverter

2005-07-11 Thread Nitish Kumar
"This is a HUGE problem with BeanUtils and why I end up having to register custom converters:(" good point, but where do I register my custom converters? I dont want to do it in my action classes, and writing a plugin just to register my converters would be a big overhead. Why cant we have decl

Re: Putting execute() in ActionForm

2005-07-11 Thread Frank W. Zammetti
Craig McClanahan wrote: There are reasons to have an "application scoped" front controller. There are reasons to have a "view-scoped" front controller. There is *no* reason I am aware of that requires these controllers to be the same :-). Good point. In fact, I don't think it would take much

Re: Putting execute() in ActionForm

2005-07-11 Thread Craig McClanahan
On 7/11/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote: > > I think of the state information represented by an ActionForm (in > > Struts 1.x) or potentially as properties of an "action" class (per the > > current discussion) to be part of the *view* tier. Further, I see

Re: Putting execute() in ActionForm

2005-07-11 Thread Frank W. Zammetti
Craig McClanahan wrote: I think of the state information represented by an ActionForm (in Struts 1.x) or potentially as properties of an "action" class (per the current discussion) to be part of the *view* tier. Further, I see the role of the execute method on an action as being an Adapter Patte

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Craig McClanahan
On 7/11/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Most of my validation is handled by the Validator framework right now > which, admitedly, ties things to Struts to some extent (though there's no > reason I couldn't pull Validator 'down' a level and use it under some other > presentation te

Re: Putting execute() in ActionForm

2005-07-11 Thread Craig McClanahan
On 7/11/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: [snip] > By combining Actions and ActionForms, you are breaking the separation. > There *IS* clearly benefit to doing so... cutting down class count is > something I'm always in favor of, so long as line count doesn't increase > as a resul

Re: tiles and multipart messages

2005-07-11 Thread Kostas Flokos
No, I don't have this problem for the moment! But, I might come across it as the project progresses. Is there anything changing then? In any case, thanks a lot for your help. On 7/11/05, Durham David R Jr Ctr 805 CSPTS/SCE < [EMAIL PROTECTED]> wrote: > > > I suspect my error is that instead of

Re: Validation problem

2005-07-11 Thread Rafael Taboada
Thanks, I got it!... I needed to save the errors :) Rick Thanks for ur advice about using another class to manage JDBC... I'll review that... Do u know any samples about how to do that?.. Thanks again -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me

Re: Validation problem

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi. When I turned off validation yn mi struts-config.xml, validation isn't > called. And when I turned off validation and call validate manually inside a > method of my ActionClass, validation isn't called. > I calle validate method in: > pu

Re: Validation problem

2005-07-11 Thread Rick Reumann
Rafael Taboada wrote the following on 7/11/2005 5:55 PM: Hi. When I turned off validation yn mi struts-config.xml, validation isn't called. And when I turned off validation and call validate manually inside a method of my ActionClass, validation isn't called. I calle validate method in: publi

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Laurie Harper
Michael Jouravlev wrote: On 7/7/05, Laurie Harper <[EMAIL PROTECTED]> wrote: Is not it easier to have one nested VO/BO with string properties, than to copy properties back and forth from action form to VO? I use web framework only to expose my real objects to the outer world. If you don't

Re: Putting execute() in ActionForm

2005-07-11 Thread Frank W. Zammetti
Schaub, Stephen wrote: What I'm wanting is an explanation of why I should keep the ActionForm class _separate_ from the Action class. It seems to me that this unnecessarily complicates the application design. When a Struts-based app is "properly" architected, the Actions are nothing more tha

Re: Validation problem

2005-07-11 Thread Rafael Taboada
Hi. When I turned off validation yn mi struts-config.xml, validation isn't called. And when I turned off validation and call validate manually inside a method of my ActionClass, validation isn't called. I calle validate method in: public ActionForward buscarColor(ActionMapping mapping, ActionFo

Re: Validation problem

2005-07-11 Thread Rick Reumann
Rafael Taboada wrote the following on 7/11/2005 5:34 PM: Michael, it didn't work.. What didn't work? You still got validation when it was set to false? (Also just a side note, it's good practice to move all the JDBC Connection stuff to another class other than your Action. You might be inten

RE: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-07-11 Thread Mark Benussi
Or a duck? -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 11 July 2005 21:34 To: Struts Users Mailing List Subject: Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath Dakota Jack wrote: >You know what a "canard" is Newton? > > Front control surface on an airpl

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Michael Jouravlev
I don't see how enabling BO/VO to read stringified data makes them dependant on Struts packages. On 7/8/05, Bill Schneider <[EMAIL PROTECTED]> wrote: > Well put. To expand on #2, it's good to confine dependencies on the > org.apache.struts packages to the presentation layer, and not build a > Str

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Frank W. Zammetti
Yeah, that's a fair point, it is a bit more documenting than it probably could be... then again, all modern IDEs will do it for you, right? And I even have my UltraEdit macros to do it. Still, fair point. Having not looked into it very much, does annotations in 1.5 help at all in this regard

Re: Validation problem

2005-07-11 Thread Rafael Taboada
Michael, it didn't work.. My ActionMapping is: My ActionForm is: public class ColorForm extends ValidatorForm { private String strFiltroDescripcion; private List lstResultado; private String idColor; private String strDescripcion; private String[] chkColores; ... // Each attribute has its get

Re: Putting execute() in ActionForm

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Schaub, Stephen <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote: > > On the other hand, Stephen, why do you want to have one class per > > page? > > Because I don't want to have to have two classes per page. :) you got me :) I wanted to ask, why would you want to have one *set of

RE: Redirecting to input when validation fails

2005-07-11 Thread Abdullah Jibaly
>From this link, what I understood is that the only real solution is to >manually call the validate method and push the errors in and out of the >session. There is no way to automate it, correct? Thanks, Abdullah -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent:

Re: Graceful way to handle quotation marks in forms

2005-07-11 Thread Domingo A. Rodriguez S.
String value1= request.getParameter("value1").replace('\'','`'); Just replace the quotation mark for a backtick. Users will not usually notice the change :) --- "Walter, Matt" <[EMAIL PROTECTED]> escribió: > I was wondering if there was a tried and true method to handle form > input that ha

RE: tiles and multipart messages

2005-07-11 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I suspect my error is that instead of sending the request directly to > the *Action and then forward - in case of success - to a page > definition, I tried to send the request to a page definition > (containing the *Action) and from the *Action forwarding to a > tile definition. > > Do you a

RE: Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> W/ a Map: > - you don't have VO/DTO classes, but still have layer, 0 code, 0 bugs > - It's dynamic, when DAO SQL string changes... so does your > jxTable/Displaytag. > > I removed an entire layer and still have the layer. > > Developers are so pasionate... that's what makes them good. I'm with

Re: Validation problem

2005-07-11 Thread erikweber
I usually map multiple actions to the same form. Some have validate = true (for example, doAdd), some have validate = false (for example, viewAdd). Slightly different URL distinguishes them. Does that help? Erik -Original Message- From: Rafael Taboada <[EMAIL PROTECTED]> Sent: Jul 11,

RE: Putting execute() in ActionForm

2005-07-11 Thread Schaub, Stephen
Michael Jouravlev wrote: > > First of all, to get it over with, Struts Dialogs has plans to combine > Action and ActionForm but it is not there yet :) > > Second, the concept of Struts Dialogs is different. Stephen wants to > have one class -> one page relation. JSF or ASP.NET is the way to go >

Re: Validation problem

2005-07-11 Thread Michael Jouravlev
Rafael, turn validation off and call form.validate() manually from your event handler method. Michael. On 7/11/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks, I'm doing my validation for my form fields... > I use validation framework, so I don't use validate method in my form bean. >

Validation problem

2005-07-11 Thread Rafael Taboada
Hi folks, I'm doing my validation for my form fields... I use validation framework, so I don't use validate method in my form bean. The problem I have is the validate is called when I use for first time the module. I mean, when I see for frst ime the HTML form, validation is called... Why??? W

Re: tiles and multipart messages

2005-07-11 Thread Kostas Flokos
To be short: >From a tile1.jsp similar to the following: control is passed to the page defined as: SubmitOffer is mapped to the SubmitOfferAction that does the handling of the request. When I do that, the form is always reset before it arrives to the Action. If instead of setting the ac

Re: PASSWORD DIGESTION...RealmBase import problem...help please!

2005-07-11 Thread Martin Gainty
Oke Did you read the "How to configure realm" how to doc and follow the instructions ? Take a look at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html Also Its been my experience 8.3 folder are identified coorectly where as NTFS file names sometimes identified correctly e.g.

Graceful way to handle quotation marks in forms

2005-07-11 Thread Walter, Matt
I was wondering if there was a tried and true method to handle form input that had been pasted from Microsoft Word which might contain "fancy" quotation marks (U+201C & U+201D aka left and right double quotation marks... see http://www.fileformat.info/info/unicode/char/201c/index.htm). Currently, i

Re: [OT] Re: Unacceptable Behaviour of Mark Galbreath

2005-07-11 Thread Dave Newton
Dakota Jack wrote: You know what a "canard" is Newton? Front control surface on an airplane? Really, these questions are too easy. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Displaying data from a form bean

2005-07-11 Thread Abdullah Jibaly
There is no such tag, however, in your action do: request.setAttribute("myformbean", form) and your jsp below will work... Abdullah -Original Message- From: Schaub, Stephen [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 3:08 PM To: Struts Users Mailing List (E-mail) Subject: Disp

Re: Redirecting to input when validation fails

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Michael, don't worry we like your stuff:) You don't have to create posts > from fake email addresses and names like Abdullah Jibaly and Stephen Schaub. Rick, I hope you are kidding (is it Friday already?), because these posts are real. At least

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread netsql
Rick Reumann wrote: Call me stupid but I don't even know what p-langs are (languages I can urinate on?:) lol. PHP (Friendster tried J2EE, went to PHP). Part of LAMP stack, conisdered most effective. Try Tiki-Wiki or Drupal when you get a project, you are 80% done. Python (used by Google

Re: Putting execute() in ActionForm

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Ok, yes they'd have to extend that in order to utilize your processing > in the ActionForm functionality. Bottom line is I think all you've done > is move where you do the processing... you moved it from the Actions to > the ActionForms. If you

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rick Reumann
netsql wrote the following on 7/11/2005 4:20 PM: Realy Rick, please try Groovy... it's the answer that's looking for you. I am sure you have read some of the Rails press. Actually, Groovy is one of the things I do want to take a look at. Hopefully one of these days I'll get to it:) -- Rick

Re: Redirecting to input when validation fails

2005-07-11 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/11/2005 4:11 PM: On 7/11/05, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: Hi all, I have two action: Display.do and Process.do. Display.do forwards to a jsp page. Upon submit, Process.do is invoked. The action mapping for Process.do specifies Display.

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread netsql
Rick Reumann wrote: They have to look at a database model in order to figure out how to get back a dateOfBirth field? Yup. Each develolper has a 24" poster of the data model. DBA is in charge, Model Driven. Just like client server days. Now they want to iterate over this list and display

Re: Putting execute() in ActionForm

2005-07-11 Thread Rick Reumann
Schaub, Stephen wrote the following on 7/11/2005 3:56 PM: Yes -- it is supposed to be abstract -- each ActionForm subclass must define an execute() method to perform the processing for that form. (Right but in your example you were showing LoginAction as the implementing class and you still k

Re: Putting execute() in ActionForm

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Schaub, Stephen wrote the following on 7/11/2005 2:07 PM: > > > With this approach, most JSP pages could have a single Java class -- > > a SimpleActionForm subclass that handles both validation and > > processing for the page: > > Michael, is

Re: I can't initialize de Serlvet Action :(

2005-07-11 Thread Martin Gainty
Mariano- Can you show us the StackTrace from display or your logs??? Buena Suerte, Martin- - Original Message - From: "Zarar Siddiqi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 11, 2005 2:32 PM Subject: Re: I can't initialize de Serlvet Action :( The troub

Re: Redirecting to input when validation fails

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > Hi all, > > I have two action: Display.do and Process.do. > > Display.do forwards to a jsp page. Upon submit, Process.do is invoked. The > action mapping for Process.do specifies Display.do as the input, however, > when form validation fo

RE: Putting execute() in ActionForm

2005-07-11 Thread Schaub, Stephen
Zarar Siddiqi wrote: > I think the ideal that you're searching for is "one class per > view". Take a look at JSF. That's correct. And I'm familiar with JSF -- but it's way too complicated for my needs. Plus Struts is dictated for this project... Stephen --

Re: Vignette V6 Struts-based web application

2005-07-11 Thread Martin Gainty
For that specific capability I would contact Vignette directly at [EMAIL PROTECTED] Good Luck, - Original Message - From: "Rick Reumann" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 11, 2005 3:14 PM Subject: Re: Vignette V6 Struts-based web application Kar

Re: Putting execute() in ActionForm

2005-07-11 Thread Zarar Siddiqi
I think the ideal that you're searching for is "one class per view". Take a look at JSF. - Original Message - From: "Schaub, Stephen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 11, 2005 3:56 PM Subject: RE: Putting execute() in ActionForm Rick Reumann

Displaying data from a form bean

2005-07-11 Thread Schaub, Stephen
Newbie question: Struts lets me bind ActionForm properties to HTML form components like this: Enter customer name: ... I don't have to name the form bean, because Struts will look it up in the struts-config file for me. I'm trying to get Struts to output the contents of an ActionForm

[FRIDAY] Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rick Reumann
Frank W. Zammetti wrote the following on 7/11/2005 4:00 PM: Ditto :) (That's my Patrick Swayze moment for the day) awhhh shucks, I thought you were a Rush Ditto-head for a moment:) See I labeled this thread [FRIDAY] - I didn't want the sruts-list users police showing up (just messin arou

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > A bean is self-documenting in that you can immediately tell what its > attributes are and what types they are. I'm not even talking about > generating javadoc from the source either, but that's certainly a very > nice by-product. If I cou

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rick Reumann
netsql wrote the following on 7/11/2005 3:36 PM: Most of the sucessfull p-langs are dynamic. In flash, array and map are same class even. I envy their sucess. For example, the home page of Spring is done in Plone. Vic, I love you man, but coming back with what Flash or some other XML/kitchen

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Frank W. Zammetti
Rick Reumann wrote: But also remember it's not just about how nice it is to find out the types and names of the properties. Using Maps can introduce a lot of hidden bugs that are difficult to track down (mentioned just a few in last e-mail) Ditto :) (That's my Patrick Swayze moment for the d

RE: Putting execute() in ActionForm

2005-07-11 Thread Schaub, Stephen
Rick Reumann wrote: > > With this approach, most JSP pages could have a single Java class -- > > a SimpleActionForm subclass that handles both validation and > > processing for the page: > > Well they certainly wouldn't have a 'single' java class, you > would have > a LOT of them. Sorry -- I m

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Martin Gainty
-1 for maps after how strongly typed is an object??? +1 for Value Objects If you follow the axiom from Floyd Marinescu Design custom value objects that wrap arbitrary sets of data as needed by the client, completely decoupled from the layout of the domain model on the serverDesign custom value o

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rick Reumann
Frank W. Zammetti wrote the following on 7/11/2005 3:48 PM: A bean is self-documenting in that you can immediately tell what its attributes are and what types they are. I'm not even talking about generating javadoc from the source either, but that's certainly a very nice by-product. amen:)

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rick Reumann
netsql wrote the following on 7/11/2005 3:25 PM: Rick Reumann wrote: How does a developer working on your code know how to even get the properties out of your Map? I guess he has to look at some API contract saying put date of birth in the Map as "dob" not "dateOfBirth." As in iBatis, name

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Frank W. Zammetti
It's ironic to me that I had this same discussion with someone at work just last week :) I *was* in the "Maps are better" camp until a few months back when I changed my mind, and it comes down to one thing: Self-documenting code is better. A bean is self-documenting in that you can immediate

PASSWORD DIGESTION...RealmBase import problem...help please!

2005-07-11 Thread O. Oke
Help please! BACKGROUND == I want to store the digested version of user's password in the database. Therefore, I imported org.apache.catalina.realm.RealmBase so that I can use the static DIGEST method in the class for the digestion of the password i.e.Digest(myBean.getUser_pass()). I am

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread netsql
Larry Meadors wrote: Hmm, of course, who needs things like refactoring, and compile time name and type checking? That's why you have users, eh? They'll find the bugs eventually. ;-) Larry Get/Set, Get/Set Half the time I have no idea what the db date will come back as. Look, I think som

Re: Putting execute() in ActionForm

2005-07-11 Thread Rick Reumann
Schaub, Stephen wrote the following on 7/11/2005 2:07 PM: public class SimpleAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { SimpleActionForm bean = (SimpleActionForm)form

Redirecting to input when validation fails

2005-07-11 Thread Abdullah Jibaly
Hi all, I have two action: Display.do and Process.do. Display.do forwards to a jsp page. Upon submit, Process.do is invoked. The action mapping for Process.do specifies Display.do as the input, however, when form validation for Process.do fails (validate is set to true), the url still shows Pr

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread netsql
Rick Reumann wrote: How does a developer working on your code know how to even get the properties out of your Map? I guess he has to look at some API contract saying put date of birth in the Map as "dob" not "dateOfBirth." As in iBatis, name of the map property is in my case the field name in

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Larry Meadors
Hmm, of course, who needs things like refactoring, and compile time name and type checking? That's why you have users, eh? They'll find the bugs eventually. ;-) Larry On 7/11/05, netsql <[EMAIL PROTECTED]> wrote: > of course... I use Collections (Maps and Lists) as VO/DTO. > You can wrap them w/

Re: Putting execute() in ActionForm

2005-07-11 Thread Rick Reumann
Schaub, Stephen wrote the following on 7/11/2005 2:07 PM: With this approach, most JSP pages could have a single Java class -- a SimpleActionForm subclass that handles both validation and processing for the page: Michael, is this guy a plant from your StrutsDialog camp?:) -- Rick ---

Re: Vignette V6 Struts-based web application

2005-07-11 Thread Rick Reumann
Kareem Hassan wrote the following on 7/7/2005 5:59 AM: I am new to Vignette CMS and was wandering that if someone could help me out how a Struts-based web application can fit into Vignette CM model ? I'm working on a Strut-based project and am told that I have to let Vignette JSP controller to h

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rick Reumann
netsql wrote the following on 7/11/2005 2:15 PM: I think it vastly simplifies to use Maps in places where I used to use beans. (I even got rid of baseBeans domain how much I loved maps) Vic I think you sleep with the Map API under your pillow at night or use it as a Teddy Bear when you sleep:

Re: Changing Form Target in Action?

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > When I've had to do something like this in the past, I didn't > actually change the target, but rather caused the response page to > use the new target as part of its page loading. That is, the > response page would have an onload handler which

Re: Changing Form Target in Action?

2005-07-11 Thread Rick Reumann
David Johnson wrote the following on 7/11/2005 2:23 PM: Joe Oh this one sounds good. I'm not sure how I'd actually DO that though.. can you provide more info? All my pages are tiles definitions right now. How would I cause the response page to use the new target (conditionally)? what about s

Re: I can't initialize de Serlvet Action :(

2005-07-11 Thread Zarar Siddiqi
The trouble is that you're not saying much. - Original Message - From: "Mariano Petrakovsky" <[EMAIL PROTECTED]> To: "Lista de correo de Struts" Sent: Monday, July 11, 2005 2:26 PM Subject: I can't initialize de Serlvet Action :( Throw an exception ServletAction can't load... In

PASSWORD DIGESTION...RealmBase import problem...help please!

2005-07-11 Thread O. Oke
Help please! BACKGROUND == I want to store the digested version of user's password in the database. Therefore, I imported org.apache.catalina.realm.RealmBase so that I can use the static DIGEST method in the class for the digestion of the password i.e.Digest(myBean.getUser_pass()). I am

I can't initialize de Serlvet Action :(

2005-07-11 Thread Mariano Petrakovsky
Throw an exception ServletAction can't load... In my .jsp say me same (I'm using eclipe)... what should be the troubble? -- Mariano G. Petrakovsky Programmer · Software Factory AXG Tecnonexo - www.tecnonexo.com Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires · Argentina. Tel

Re: Changing Form Target in Action?

2005-07-11 Thread David Johnson
Joe Oh this one sounds good. I'm not sure how I'd actually DO that though.. can you provide more info? All my pages are tiles definitions right now. How would I cause the response page to use the new target (conditionally)? On 7/11/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > > When I've ha

Re: Changing Form Target in Action?

2005-07-11 Thread David Johnson
Hmm. I suppose it would be easier to just do the validation in JavaScript... but I **really** dont want to. It just seems inconsistent. So there's no way to change what browser the validate() returns to once I've submitted the form and I'm in the validate() method? Some attribute on the reques

Re: Changing Form Target in Action?

2005-07-11 Thread Frank W. Zammetti
Hi David, If I'm understanding your goal correctly, then you won't be able to do this without some sort of scripting because the form target is a purely client-side attribute, you won't be able to change it from the server-side, which is really what you'd want to do. If scripting is OK with

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread netsql
of course... I use Collections (Maps and Lists) as VO/DTO. You can wrap them w/ DynaMaps, you can validate a map, you don't have to maintain deprecated gets/sets, it reduces duplication... your dao can return a map/collection/list... I think it vastly simplifies to use Maps in places where

Re: Changing Form Target in Action?

2005-07-11 Thread Joe Germuska
When I've had to do something like this in the past, I didn't actually change the target, but rather caused the response page to use the new target as part of its page loading. That is, the response page would have an onload handler which would load the necessary content in a new target. If

RE: tiles definition versus global forward issue

2005-07-11 Thread Faber, Szczepan
Got it. Forward must be replaced by an action: Instead of global forward: -Original Message- From: Faber, Szczepan [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 4:13 PM To: Struts Users Mailing List Subject: RE: tiles definition versus global forward issue Correction: def.

Putting execute() in ActionForm

2005-07-11 Thread Schaub, Stephen
I'm interested in some feedback on the following: I prefer to develop web applications using a page-centric model. I like the simplicity of one JSP <-> one Java class for the view layer (not the model). Struts, with its separate Action and ActionForm classes, tends toward at least two Java clas

Re: Changing Form Target in Action?

2005-07-11 Thread Michael Jouravlev
On 7/11/05, David Johnson <[EMAIL PROTECTED]> wrote: > Hi all > I have the following problem: > I have a button on my form that uses javascript to change to form target > before submitting because I'm exporting an RTF generated in my action to the > new browser, as follows > > onclick="set('exp

Re: Changing Form Target in Action?

2005-07-11 Thread Rick Reumann
David Johnson wrote the following on 7/11/2005 1:49 PM: The thing is I want to be able to use the validate() method in my Form object and return to the ORIGINAL browser if an error is encountered... Hmmm, not sure about this, this sounds tricky but I bet someone more knowledgeable knows the

Changing Form Target in Action?

2005-07-11 Thread David Johnson
Hi all I have the following problem: I have a button on my form that uses javascript to change to form target before submitting because I'm exporting an RTF generated in my action to the new browser, as follows Create Graph (Popup) function setFormTarget(newTarget){ document.forms[0].targe

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Rick Reumann
Borislav Sabev wrote the following on 7/11/2005 1:37 PM: In case of the Integer there is pre-load default value and EVEN if conversion fails during the population phase, it just use is the dafault value (and you think it's parsed correctly). In the previous example its a coincidence that Rivka

Re: upload/download file to/from oracle blob field with struts

2005-07-11 Thread Frank W. Zammetti
I had to do this for an application. While the code is fairly lengthy, longer than I'd like to post here, if you come up against specific problems feel free to ping me. Although I didn't look at the article Martin referenced for you, it's a fairly generic problem, not something that you will

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Borislav Sabev
Nitish Kumar wrote: I think raghavendra is right. Rivka, your code is working because you are using primitive type int and not the wrapper type Integer. In case of primitive type in case of any exception, it gives you a default value. Thanks and Regards, Nitish Kumar So after small deb

Re: [OT] UML class diagrams

2005-07-11 Thread Nick Heudecker
ArgoUML will do it. On 7/11/05, David Whipple <[EMAIL PROTECTED]> wrote: > Anyone have any suggestions for an opensource/freeware tool for reverse > engineering java code to class diagrams? > > Thanks, > Dave > > > - > To uns

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > JSF still differentiates "real" object (whatever it might be, a real > business object or a VO) from visual component data, which I don't > like. From my point of view, it is much easier to have an object with > an ID, to view/edit it, or t

[OT] UML class diagrams

2005-07-11 Thread David Whipple
Anyone have any suggestions for an opensource/freeware tool for reverse engineering java code to class diagrams? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Ted Husted
There's probably something to that, Leon. Of course, there's nothing new here, except maybe the metaphor. Using the layers pattern in enteprise applications is well known. I believe Bushman describes it in POSA. Here's another online treatment: * http://www.stevenblack.com/PTN-Layers.asp -Ted.

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Michael Jouravlev
On 7/7/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Personally I prefer to keep form beans and value objects seperate, for two > key reasons: > > 1) form beans generally should consist of String data to facilitate > round-tripping of invalid inputs. I like to constrain them to a clearly > define

  1   2   >