David Thielen wrote:
Any books, online articles, etc. of what to use and how to structure the
code?
I have some examples here http://www.learntechnology.net/ If you've
already coded some struts apps before, start with the CRUD lesson.
--
Rick
Josh McDonald wrote:
Quick question: When you've a wildcard in an actionmapping path, what
will you get when the user makes something up that has no corresponding
class? Will it give a 404, or an ugly stuts error? If it's an ugly
error, how do you catch it? Somehow with the in
struts-config.xml?
Nevermind. I see that your last reply Karan somehow got knocked out of
this thread. (Possibly you started a new message and just pasted in the
subject? since it ended up with a different MessageID in the header
which is what my Thunderbird client uses for threading).
Rick R wrote:
Gupta
Gupta, Karan wrote:
/ CLASS IDefForm ***/
public class IDefForm extends ActionForm
{
private IDef iDef;
Did you try renaming the property like Hubert suggested? If not, that
iDef will DEFINITELY cause the problem that you mention. Change private
IDef iDef; to something like IDef i
Rafael Taboada wrote:
Thanks for ur replies... I'm interested in tokens method
Please, do u know a site where I can find more information about this???
I have an example and lesson here on it:
http://www.learntechnology.net/struts-token.do
--
Rick
Josh McDonald wrote:
Quick question - what's this _actually_ mean? It's obviously found the
field, because if I change the reference in the JSP to something wrong,
it gives me a different error ("No getter found" or something similar).
Makes no real sense to me. Where should I look for my mistake
Craig, do you have this posted anywhere other than here on this list?
This is a great summary that I've actually been looking for, so I'm glad
I peeked into this thread. Thanks.
You should add this to your blog somewhere or it should be on JSF
Central. I'd like to bookmark it.
Craig McClanah
Bogdan Paduraru wrote:
Any advice would be helpful, also when you recommend me something would
be nice to point some links with tutorials too because I also want to
train my programmers.
I'm in the process of finishing up an upgrade to my old struts site
which people have found helpful with
Konrad Billewicz wrote:
Hello,
I have a complicated form with mulit-level menu (several 's with
onchange='submit()' ). I'm not sure how I should organize my Actions.
Konrad, I don't have a lesson behind this app yet, but you might want to
get this zip I have and look at the struts-crud examp
...The waitress asks you what you want on your burger and you reply
"What's the default?"
I sadly said that at lunch one day after a tough morning at work:)
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
[EMAIL PROTECTED] wrote:
Hello Struts world !
I am new to Struts and was wondering if there is any good short
Struts Tutorial which will help me get jump started with Struts
The stuff I have here http://www.reumann.net/struts/main.do is sort of
old, but I'm in the process of updatin
Priya Saloni wrote:
> Hi Rick,
>
> Iam getting problem while iam trying to use the following code in my JSP
>
>
>
>
>
> I got that code from the article
>
> http://wiki.apache.org/struts/StrutsCatalogLazyList
>
Priya, I created this as a new message since it really doesn't belong
Frank W. Zammetti wrote:
I'm still though thinking about your question regarding how I would do
it... I've never used LazyList, although I can see why you did. Using the
reset() method in this way has been nagging me though because I typically
would never use it except when dealing with checkb
Tamas Szabo wrote:
You will have to use a PhoneNumber object so you will have a reference to
employee[idx1].phoneNumbers[idx2].number in your html:text.
Thanks Tamas! That was exactly the problem. Typically I do exactly that
and use lists of beans, but this time I thought I'd make the demo
Tamas Szabo wrote:
public void reset(ActionMapping actionMapping, HttpServletRequest
httpServletRequest) {
employees = ListUtils.lazyList(new java.util.ArrayList(), new
Factory() {
public Object create() {
return buildEmployee();
}
});
}
private Emplo
Frank W. Zammetti wrote:
Rick, what is the real problem here? I ask because what your trying to
do seems reasonable to me and I'd probably do something similar,
although I probably wouldn't use LazyList (I'd probably build the list
manually), but that doesn't really matter. I would *not* use
Vikrama Sanjeeva wrote:
Having separate Actions for insert, update and delete is better.
Why? Do you make separate DAO objects? ie UpdateDao, InsertDao,
RetrieveDao? I'm guessing you don't. So, it would help if you backed up
your claim that separate Actions are better than a Dispatch a
On 12/18/05, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
> What's the best place to put input validation and possible repair?
I actually prefer to do the validation checks in my DispatchAction. The
reason being is that, inevitably, you'll end up with a case where you'll
have some Lists you'll wan
On 12/17/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> Good Morning Rick
>
> I liked Niall Pemberton's Nested Lazy validation form solution found here
> http://www.niallp.pwp.blueyonder.co.uk/lazyactionform.html
I knew Niall would have some good stuff! Now I just have to mess around with
it...
he duplication of property
names and the mess involved in conversions to the nested business objects
that you need to tranform them into that is the real annoyance.
I think I'm going to try all this with DynaForms and see how that alleviates
some of the headache. Thanks though for your thoughts.
oops ... don't try to tab while using gmail :) I was trying to indent my
code by instinct using tab and hit tab and 'end' to the end of the line an
enter:) caused a send. I'l continue in another email.
On 12/17/05, Rick R <[EMAIL PROTECTED]> wrote:
>
> On
On 12/16/05, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
>
> I am not suggestign you create a new business object. I am suggesting you
> create a new object for input purposes. You need a transport layer between
> your model and the web; thus you have an ActionForm. But you need to pad
> your Action
On 12/16/05, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> Rick,
>
> Do you control the requirements? It's going to be an ugly screen with that
> :)
Agreed. For that example it was more so to exaggerate a problem that does
come up when dealing with more specific situations.
In regard to the solu
Ok, this might be lengthy, but hopefully you will get my point after reading
it:)
This hypothetical I'm proposing isn't my actual use case, I'm creating an
example that is easier to work with even if not totally realistic.
The business requirement is the user needs to select a letter of alphabet
On 12/15/05, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
>
> As I said, the problem is you're using model objects for input. Don't do
> that. Your "load" action
> should convert the specific and limit poritions of your intended user
> input into the Form;
> probably a list of Strings. In your "save"
On 12/15/05, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> Action Forms are DTO objects. They are not your model/domain/business
> objects. Struts is the only
> framework (historical design) that forces you to use String objects in the
> Form/DTO, but that's
> not a bad thing. It's a container to ac
", "create employeeForm and give it the same
> fields as my Employee object, plus a 'selectedButton' field. Oh, and
> use the 'addressForm' definition for the 'address' field", and the
> same essentially for the "companyForm", exce
On 12/15/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
>
> I've always used String values.
But that above is the problem - you can't always have String values returned
to you in nested objects from the domain-layer, backend, mid-tier, etc. When
you query the backend for value objects that have nes
Cutting right to the chase...
I'm curious on how others handle the age-old struts problem of: "How do you
handle nested objects in an ActionForm that have non String properties that
might be editable by a user on a JSP?"
To provide a watered down example...
Imagine you go to the DB to get a List
Ha I was just going to say that is definitely outdated:) I'll get around to
updating it... I keep saying that I know:)
(By the way, I just started using gmail for my struts stuff now.. why does
it include the sender also when I click reply and not just the
[EMAIL PROTECTED] address? Does that ha
30 matches
Mail list logo