Using Strut in Desktop Application

2011-04-19 Thread Alok
Hi Team, I am working on a Desktop application. I would like to use Strut frame in it. Is it possible? Please explain me if yes , how to implement . If not why ? Thanks in advance, Regards, Alok -- View this message in context:

Re: Using Strut in Desktop Application

2011-04-19 Thread Greg Akins
On Tue, Apr 19, 2011 at 8:40 AM, Alok alok.si...@cognizant.com wrote: Hi Team, I am working on a Desktop application. I would like to use Strut frame in it. Is it possible? I noticed you also posted this question, regarding Maven, to the Maven list. Struts is a web framework

Re: Using Strut in Desktop Application

2011-04-19 Thread Mohamed SIDI
what do you mean by Struts frame ? 2011/4/19 Alok alok.si...@cognizant.com Hi Team, I am working on a Desktop application. I would like to use Strut frame in it. Is it possible? Please explain me if yes , how to implement . If not why ? Thanks in advance, Regards, Alok --

Re: Using Strut in Desktop Application

2011-04-19 Thread Dave Newton
I am working on a Desktop application. I would like to use [the] Struts frame[work] in it. Question one: why? Is it possible? Sure, in a variety of ways. Most of them don't seem like a good idea. Please explain me if yes , how to implement. Struts 1 or Struts 2? If Struts 1, I really

Recommended number of forms in one action

2011-04-19 Thread Christian Grobmeier
Hi, this is question on best practice. It is: is it ok too let one Struts Action handle two different forms? For example: Assume an Action called RegistrationAction. Its intention is to use it for user registration. The first form is a set of three properties for the registration itself; the

Re: Recommended number of forms in one action

2011-04-19 Thread Eric Lentz
I am asking because it seems that validation is only allowed for one set of properties. This indicates I should create two actions Validation can go down to the method level and you can validate what you desire for that method call. Just name the .xml file (if using that approach) with the

Re: Recommended number of forms in one action

2011-04-19 Thread stanlick
Great answer Eric! I would also add that using wildcard methods for the express purpose of minimizing the number of actions you have is bad medicine. I'm not suggesting you are, but I have seen this on client projects where they were more interested in check-in/check-out of a single action than

Re: Recommended number of forms in one action

2011-04-19 Thread Christian Grobmeier
Truly an excellent answer from both of you guys. It helped me recognize validation goes down to method level and I learned about the wildcard methods. In my example case, I will keep the two forms in one class. For future development i will create more classes as I like this approach more

Struts2/Velocity Integration

2011-04-19 Thread Biesbrock, Kevin
I am having a difficult time finding documentation on how to integrate Struts 2 and Velocity. Can the Struts2 community offer any aid? I'm asking here first because it was recommended I use Velocity by a member of this group. I found the Velocity taglib that seems like it would be exactly what

Re: Struts2/Velocity Integration

2011-04-19 Thread Eric Lentz
I'm working on a legacy system that is built on jsp. In one of the jsps I need to include a velocity template. The template does not require access to any dynamic data. Struts lets you use Velocity instead of JSPs as an option. Using JSPs *and* Velocity isn't an out-of-the-box type of

Re: Struts2/Velocity Integration

2011-04-19 Thread Dave Newton
Check back in the list; we just discussed this topic within the last few days. Dave On Tue, Apr 19, 2011 at 1:55 PM, Eric Lentz eric.le...@sherwin.com wrote: I'm working on a legacy system that is built on jsp.  In one of the jsps I need to include a velocity template.  The template does not

RE: Struts2/Velocity Integration

2011-04-19 Thread Biesbrock, Kevin
From: Dave Newton [mailto:davelnew...@gmail.com] Tuesday, April 19, 2011 2:18 PM we just discussed this topic within the last few days. If you're referring to my previous question, that was never resolved. It was left with: From: Dave Newton [mailto:davelnew...@gmail.com] Do the templates

Re: Struts2/Velocity Integration

2011-04-19 Thread Dave Newton
On Tue, Apr 19, 2011 at 2:34 PM, Biesbrock, Kevin wrote: There was no response to that and I didn't want to specifically call you out for a response because I recognize that you're a developer, too, and are busy with your own shtuff. The response was embedded/implied; if there's no data model

RE: Struts2/Velocity Integration

2011-04-19 Thread Biesbrock, Kevin
From: Dave Newton [mailto:davelnew...@gmail.com] Tuesday, April 19, 2011 2:41 PM The response was embedded/implied; if there's no data model at all then it doesn't matter if you have a simple tag around template rendering or within the action itself. Going through an entire request process is

Re: Struts2/Velocity Integration

2011-04-19 Thread Dave Newton
On Tue, Apr 19, 2011 at 2:50 PM, Biesbrock, Kevin wrote: One option, I gather, is the same thing Eric suggested -- render the template in the action class and put the result into a string for the view to pull using s:property.../. Is that correct? Yeah, although I'd just use JSTL ${whatever}

RE: Struts2/Velocity Integration

2011-04-19 Thread Biesbrock, Kevin
Now we're narrowing in: v:renderTemplate template=theTemplate.vm/ Do I need to create my own taglib for 'v'? There seems to be little documentation with regard to this for Struts2 and Velocity. But this is the very thing I would like to accomplish. Or perhaps I'm overlooking it; could you

Re: Struts2/Velocity Integration

2011-04-19 Thread Dave Newton
You'd create a tag; there aren't any out-of-the-box in S2, although there might be a third-party taglib that'd do it. It's really, really easy. Dave On Tue, Apr 19, 2011 at 3:03 PM, Biesbrock, Kevin biesbrock.ke...@aoins.com wrote: Now we're narrowing in: v:renderTemplate

RE: Struts2/Velocity Integration

2011-04-19 Thread Biesbrock, Kevin
From: Dave Newton [mailto:davelnew...@gmail.com] Tuesday, April 19, 2011 3:06 PM You'd create a tag; there aren't any out-of-the-box in S2, although there might be a third-party taglib that'd do it. It's really, really easy. Okay. Just not something I've done previously. No better time to