Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

DAO first time...

Thread view: 
Dan - 26 Jul 2007 00:01 GMT
Okay this is basically what I am trying to do....

I am trying to look up an item and invoice number in a database. We
are supposed to go into a QueryServlet (which I have written), check
the logic with the numbers and so on.

Then we are supposed to go into a JSP, and access the bean (Also
written). How does the bean's information get into the interface?

The DAO files are all created.. so all I have to worry about is how to
access an interface file with a bean. How the hell do you do that?
Daniel Pitts - 26 Jul 2007 00:12 GMT
> Okay this is basically what I am trying to do....
>
[quoted text clipped - 7 lines]
> The DAO files are all created.. so all I have to worry about is how to
> access an interface file with a bean. How the hell do you do that?

In your Servlet, you would put your Bean into the Request scope, then
you can access it in your JSP (either with ${bean.property} notation,
or <%= bean.getProperty() %> notation.)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.