Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes A Design Question. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "A Design Question." Watch "A Design Question." New topic

A Design Question.

Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319
Consider the following scenario. I have
1. A JSP generated HTML Page
2. A Controller Servlet
3. A Form Bean &
4. An Action Bean.
5. A result JSP
My request will go from 1 to 3 via 2.
3 will instantiate 4. 4(Action bean) would actually do some DB process and return a Vector.
5, the JSP page should get that result and iterate for view.
I should not use scriptlets in the page strictly. If i try to use <jsp:usebean >, then it instantiates a new object of 4 and i'm getting a null Vector. How can I achieve this?
I agree. Here's the link:
subject: A Design Question.
It's not a secret anymore!