I apologize for the confusion, I was thinking 2 things when I posted.

1 - What was the best design(I'm new to java and struts).

2. How do I solve that specific problem, which may well be a syntax related issue on the line I specified in the last post.

The web site sets attributes after a user logs on and later in the session as they click through to other pages, more attributes are set.

This gives me the ability to dynamacilly build pages based on input gathered throughout the session.

I think setting attributes will work(if I can figure out the syntax), but I not sure it's the best way from a design perspective.

(sorry about the multiple threads, I'll ony post follow up to the other one from here)

Thanks,
-Jim

From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: Attributes, Parameter or Class
Date: Sat, 08 Jan 2005 18:00:26 -0500

Maybe it's simple, like I thought it might be, maybe it's not. I gave him the simple answer, you gave him a not-so-simple answer. Maybe we helped, maybe we didn't, he'll have to come back with more details if not.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

Dakota Jack wrote:
Maybe we can break this down quick and avoid a long thread.

<snip>

I have an LogonForm, LogonAction and when a user successfully logs on, I set
Attributes for "userID" and "userName".

</snip>

We don't know (A) where "userID" and "userName" come from or (B) why
you set them as attributes in the session.  We can make assumptions,
but that just leads to long threads.

<snip>

How would be the best way to make this information available to the Web App
regardless of whether I need the data from within a JSP, servlet or class
file(for example, building a dynamic query)

</snip>

"[T]his information" seems to be the "form detail", looking at your
DAO class.  Why is this "form detail" in the database?  Why isn't the
"form detail" coming from the logon form?

This is all too sketchy to help you much.  At least I for one cannot
tell what you are doing.

Jack





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to