File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Passing a Form Bean to a Custom Control Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Passing a Form Bean to a Custom Control" Watch "Passing a Form Bean to a Custom Control" New topic
Author

Passing a Form Bean to a Custom Control

Aniket Patil
Ranch Hand

Joined: May 02, 2006
Posts: 218
In Weblogic Workshop 8.1, I have an HTML Page, whose input is encapsulated in a form bean. I am trying to store data entered by user into the database, through a custom control which in turn uses a database control to exceute SQL queries.

The idea is this:
User enters input on an HTML page->Data is stored in a bean->Pass bean to custom control->custom control calls method of database control passing the form bean->database control executes SQL

How do i make the form bean available to the custom control. Also, how do i make the custom and database controls a part of my web application (i.e. make them available to the page flow)?
[ January 05, 2007: Message edited by: Aniket Patil ]

SCJP 5.0 | SCWCD 1.4 <br /> <br />If you don't know where you are going, any road will take you there!
rajat mani
Greenhorn

Joined: Jul 09, 2006
Posts: 21
hey I am facing the same problem please post back the result if you find it,
also if you have some good step by step weblogic portal development tutorial or material and interview questions do give a link here.
Aniket Patil
Ranch Hand

Joined: May 02, 2006
Posts: 218
Yes, i have the solution. The form bean is automatically available to the action method, so you can pass it to the control from there.

You can make the control available to the web pages by a simple drag-and-drop of the control (from the Application Palette on the left), into the Design View of the main window (also called the Edit Pane) of the page flow where the control needs to be available.

This will cause a new private variable of type control to be automatically added to the source code. You can work with the control from there.
Aniket Patil
Ranch Hand

Joined: May 02, 2006
Posts: 218
Tutorial for web application development in Weblogic can be found in the Help section of the workshop. Refer to the "Getting Started" tutorials where you are shown how to develop a web app from scratch. It also has beginner tutorials for in-built and custom controls. Other advanced tutorials may also be found in there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing a Form Bean to a Custom Control
 
Similar Threads
'POST'ing parameters to another JSP
Radio Button,Check Boxes
Unable to upload file
Getting input in JSP page
basic html ->JSP-> javabean-> database questions