A Simple Forms Applicaition? How to handle it in Java

Hello,
I am designing an application that resides on 5 forms:-
Let's say
1)Sales
2)Purchase
3)Inventory
4)Management
5)Login
Now the working is like this that a user enters the application via Login Dialog Box.. Then depending on its database role
the user is then redirected to the specified Form....?
Now what I want to know that is
1) should there be a main class that controls the flow of the whole application?
2) Where should I instantiate the User's database Connection?
3) How should I manage the connection because when the user has to accesses the database for some quries and the results should be displayed on the particular form...................................
4) In case of Management the user has the access to all the three remaining three forms how can that be done?

Can anyone tells me why my url not working here but microsoft.com works fine. What is wrong here. It is just simple form.
<head>
<title>Online Survey</title>
</head>
<body>
<form action="http://www.chyrinc.com" method="POST" name="MyForm">
<table width="600">
<tr><th colspan="3" align="center">java2s.com - Online Survey
</th>
</tr>
<tr>
<td>Your Name:</td>
<td> </td>
<td><input type="text" name="YourName"/></td></tr>
<tr>
<td>Your Gender:</td>
<td> </td>
<td>
<input type="radio" name="Gender" value="Male"/>Male
<input type="radio" name="Gender" value="Female"/>Female
</td>
</tr>
<tr><td>Which of our consultancy
services are you interested in?</td>
<td align="right"> 
</td>
<td>
<input type="checkbox" name="Java"/> Java
<input type="checkbox" name="Javascript"/> Javascript
<input type="checkbox" name="SVG"/> SVG
<input type="checkbox" name="XSL-FO"/> XSL-FO
<input type="checkbox" name="ASP.Net"/> ASP.Net
</td>
</tr>
<tr>
<td>Which free gift would you prefer for filling out this survey?</td>
<td> </td>
<td>
<select name="FreeGift">
<option value="Choice1">AAA</option>
<option value="Choice2">BBB</option>
<option value="Choice3">CCC</option>
</select>
</tr>
<tr>
<td>Enter your comments in
the text box
</td>
<td> </td>
<td><textarea name="Comments" rows="5" cols="50"> </textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>
<input type="submit" value="Send Form"/></td>
</tr>
</table>
</form>
<script type="text/javascript" language="javascript">
<!-- //
document.write("<P>The action property has the value: <b>" + document.MyForm.action + "</b></p>");
// -->
</script>
</body>
</html>

Similar Messages

  • How to handle CLOB

    Hello,
    In my java programme I am picking a huge data from a file and passing it to a oracle stored procedure.
    In my oracle stored procedure I pick data line by line and process and to identify a new line I use CHR(10).
    The problem is, the file containing the data has data in lines but when the data is read and sent over to oracle called procedure the new line is missing and the complete data is found in one line which is very huge. Hence the processing of data fails.
    In Java programme, How should I read the data from the file so that the new line or line terminator remains as it is. Or the data is read exactly as it is in the file.
    Also, the Oracle stored procedure argument is of CLOB type. How to handle CLOB in JAVA, that is, pass more than 32767 chars.
    Thanks & Regards,
    Sanju.

    Your problem is that createClob() isn't implemented until JDBC 4 (which I think will come with mustang). The usual way people deal with new Clob records on Oracle is to create the record, initially, with an empty Clob, read the record back and use getClob to get the Clob, then write to that and update the record. (Pretty aweful)
    A technique I've found works on Postgressql blobs and which is probably worth a try is to write your own, minimal implentation of Clob. All it needs to handle are the length() and getCharacterStream methods (all others throw UnsupportedOperationException or similar. Try feeding one of those through a setClob(). Might work, might not.
    With any luck JDBC will read your stream into the LOB as part of the setClob() action.

  • How to handle Drop Down Box on Interactive Adobe Form

    Hi,
    On my adobe form there are some drop down boxes like company code, cost centre etc, actually i need F4 help on those fields,  but what i found is it's not possible to have F4 help on adobe form so i have choosen alternative as webdynpro acitvex drop down box in library. I have written a web dynpro application to fetch the data and display it on adobe interactive form, i could able to display the data for all the fields on adobe form except these drop down boxes, can any body suggest me how to handle these drop down boxes in webdynpro application. Your help will be greatly appreciated.
    Thansk & Regards,
    Venkat

    Hi Venkat,
    As you are using the WDP ActiveX dropdown in your form, it is fine but to populate values in the DD, you need to bind the context attribute with a simpletype and then populate the values. Use the below code to obtain a ModifiableSimple Type:
    IWDAttributeInfo abcInfo = wdContext.nodeABC().getNodeInfo().getAttribute("AttributeName");
                        ISimpleTypeModifiable def = abcInfo.getModifiableSimpleType();
                        IModifiableSimpleValueSet abcValueSet = def.getSVServices().getModifiableSimpleValueSet();
    and after this put te values in the obtained modifieable simple type like below:
    abcValueSet.put(key,value);
    where key may be the ID and value may be the name to be displayed in DD.
    Reward points if found helpful.
    Regards,
    Arafat

  • How to make a simple form made with adobe Muse work with Godaddy server ?

    Hi
    i'm trying to do a little website for my student (excuse my english) and the simple form simply don't work with godaddy server. I put the-email adress and i receive nothing, like nothing happen. I try to place the gdform instead but muse said i can't do that.
    Do yu have a simple explication or a way around that thank you very much
    the site is www.chbh.org
    Josée Bélanger

    Hi
    Please refer to : forums.adobe.com/docs/DOC-3581 to know, how you may have the forms widget provided with Adobe Muse to work with third party hosting.

  • PDF Form to XML. How to handle invoice detail lines

    I am using LC Designer 7.x on a PDF form that has a submit button that loads a ColdFusion MX7 page that will save the XML in a MS SQL 2005 XML field.
    My source of confusion is how to handle the invoice detail lines on the PDF invoice form.
    The XML that I want is
        5 All Season Tires
        400.02
        A car with 5 wheels
        20400.00
    My question is how do I setup the form fields to do this.
    What I did prior to XML was have fields whose name included the line number and store them as FDF.
    eg
        description01 amount01 description02 amount02
    But that will not work, or I dont know how to translate that to the desired  XML.
    Any thoughts you might have would be appreciated.
    Thanks
    Archie Campbell

    Archie,
    You want to create a subform called "invoiceLine" which you've set to repeat for each data item using the Binding tab of the Object palette. This subform must be contained within another (e.g. "invoiceLines") whose content is set to be "Flowed" on the Subform tab of the Object palette. So your object hierarchy looks like:
      invoiceLines = subform with flowed content
        invoiceLine = subform repeated for each data item
          description
          amount
    Rob Gabbard
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • How to handle Scrollbar's event in the Form Block !

    I want to create three Block like
    Block : X-axis , Source From View
    Block : Y-axis , Source From View
    Block : Cell , Source From Stored Procedure.
    The relation is (X-axis , Cell) , (Y-axis ,Cell).
    Then , if i scroll X-axis or Y-axis Scrollbar , then Cell will change !
    Problem : If X-axis Cursor record does not change , the Cell's Data will not refresh.
    Can tell me how to handle the scrollbar's event , Thank.

    Thank you.
    The Cell's behavior is a matrix , the relation will execute when X,Y record is changed !
    if you move the scrollbar , will chanage block's data , but the cursor record does not change another!.
    If i use JaveBean to handle it , possible ?
    Using Form 6i .

  • How to handle CLOB in Portal Forms

    I want to generate a simple form in Portal using CLOB.
    Here is a simple example of what i want to do.
    I have a table :person_details having columns
    name varchar2(30), resume_details clob, picture blob).
    Using the wizard if i create the portal form it
    shows only 2 columns name and picture. It just doesnt
    show resume_details -clob on the screen.
    I tried to manually create a field on the form - but then
    how do I link it to the database so that i can insert/update
    stuff in the database.
    Your help is appreciated.

    Hi,
    CLOB are not supported as sharmila has already told in the previous reply.
    what you can do is that create a table with following details.
    desc person_details
    Name Null? Type
    NAME VARCHAR2(30)
    RESUME_DETAILS BLOB
    PICTURE BLOB
    MIME_TYPE VARCHAR2(2000)
    And then instead of RESUME_DETAILS bein CLOB make it BLOB.Associate a mime_type field with it.
    by doing so you can upload not only text based resumes but also word document,rtf format, and text aswell (can try more combinations).
    The mime types for the above types can be as follwing.
    Application/msword => for word document.
    Text/plain => for text documents.
    Text/richtext => for .rtf files.
    I have tried all of the above combinations and you can try more combinations.
    Hope it helps.
    rahul

  • How the handle the LOV in oracle forms 10g

    Hi All,
    Could anyone can tell how to handle the LOV error in blocks as no data is there in db..while clicking on button, the LOV message is getting continously and its not allowing me to close the screen, this makes me to forcefully close the applicaiton...
    please suggest how to handle this..
    Regards,
    Badri.

    You should ask this in the Forms forum (this is the Reports forum) and when doing that, mention your Forms version etc. Also, explain what you mean by this:
    LOV error in blocks as no data is there in dbWhat error do you get? An LOV can return no records without a problem, so you probably did not use standard LOV funtionality.
    while clicking on buttonWhat is the code behind this button?

  • How to handle Java popup in oracle forms application through Open Script?

    I want to record and test oracle form application but it popup java dialogue box and Open Script can't handle java object.
    So how to handle the Java popups in forms application?

    Hi, Have you been able to resolve this?

  • How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods

    Hi All,
    How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods.
    This is a enhancement requirement.
    When ever user enter value in field 1 then automatically cursor should go to next field.

    Hello Bobb,
    You can create a trigger(when-list-changed) for each list item where you could:
    1.recreate the record groups and then use POPULATE_LIST so you can hide the selected values. In forms builder online help there are some good examples about create record groups dynamically.
    or
    2.you can perform a validation instead of hiding the selected values. If the values is already selected the display a message 'Value already selected....'
    Second option is much faster(only an 'if clause')
    Hope this helps.
    Regards,
    Alex

  • In my planning application.I have 100 members in account dimensions.Those members are used in 100 forms.suddenly my bussiness was changed.so i want replace those 100 members into new name of 100 memebers.but how i can chnage in 100 forms.how to handle

    In my planning application.I have 100 members in account dimensions.Those members are used in 100 forms.suddenly my business was changed.so i want replace those 100 members into new name of 100 members.but how i can change those 100 members in 100 forms.how to handle this?

    Hi joshi and jharvey,
    Thanks  for you are reply.I am new for this lcm.Can you explain detail.about above problem.I mean in share service i didn't find any export option.I had seen only migration.or share any blog for detail about lcm.

  • How to catch/read mal-formed xml at Error Handler.

    I have added Error Handler at starting node of Message Flow in a Proxy Service and its(Proxy Service) listenning to a JMS queue.
    So when i am putting a mal-formed XML into the JMS queue, getting "Failure while unmarshalling message: Failed to parse XML text" error at ALSB server log.
    But i am not able to capture the mal-formed xml inside Error Handler node.
    Can any one help me how to capture input mal-formed xml in Message Folw.
    Thanks in Advance.
    Regards.
    Deba

    Re: How to catch malformed xml using error handling mechanism in from a proxy? Had a solution for similar issue. It appears that in-case of malformed XML, $body will not be populated with faulty xml snippet. One way out of this solution is, design your service as Text service and create another service isXML as explained in my above reply.
    Thanks
    Manoj

  • How to get a simple form to populate from workflow container?

    We are triggering a custom workflow from the creation of a specific type of financial document (BKPF) based on doc type.  I am able to make this occur after I implemented OSS Note 336305 onto our v4.7 Enterprise system. 
    I would like to make the first task a simple form that will display certain fields from the FI document and allow changing.  I created a structure containing the fields I want displayed on the form and can get the form to display.  However, I am unable to get the form populated with the information from the document.  I'm suspect it's a binding problem but don't know where to begin.  My container element contains both BKPF and the structure I created for the simple form.
    I must warn you that I am new to Workflow having only taken the two classes at SAP Education, so any explaination will need to be detailed and simple.
    Thanks for the help.
    Joanne Johnson

    Since I made this entry yesterday, I decided I needed a method that will populate the form structure prior to displaying the form.  I created a subtype ZBKPF of BKPF and added a method to populate structure.  I know the method works correctly because I debugged the code and saw that it executes and fills the structure fields.  However, it doesn't update the structure fields in the container correctly.  So obviously I have a binding problem.  I'm not sure how to get the container fields populated once I populate the structure.  Thoughts?

  • How to handle form close event or escape key press event for user defined f

    Experts,
    Please let me know how to handle form close event or escape key press event for user defined form...
    Thanks & Regards,
    Pravin.

    Hi
    You can catch the form close event like this
    If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
          Try
                   SBO_Application.SetStatusBarMessage(pVal.EventType.ToString())
          Catch ex As Exception
                    SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
          End If
    Hope this helps
    Regards
    Arun

  • How to handle Exception in Forms??

    Hi,
    We have a customer facing application...self-service kinda things actually with self registration, forgot password/ username and edit profile. We are using SIM forms for all of these. Now as per requirement we need to call some web services as backend validation in the forms. we want that if any exception is generated while calling these web services or general exceptions that SIM thrown (like xpress exception etc..) ....the user should redirected to other page containg some custom message because actual exception message is completely useless for user. i tried to use try/catch in jsp and other fundas of exception handling in java but nothing works. If anyone has any suggestion or any prior experience please share. Any pointer will be helpful.
    We are using SIM-SPE 7.1 . if someone has experience about exception handling in SPE it will be great otherwise SIM forms exception handling will also work. we can corellate the things in SPE!!!
    Thanks in advance!

    Bhavna,
    create a when-custom-item-event handler on the Forms Bean Container
    example:
    DECLARE
         eventName varchar2(30) := :system.custom_item_event;
         eventValues ParamList;
         eventValueType number;
         tempString varchar2(100);
    BEGIN
    IF (eventName=BEAN_ERROR_EVENT') THEN eventValues := get_parameter_list(:system.custom_item_event_parameters);
                   get_parameter_attr(eventValues,'ERROR_MESSAGE',eventValueType, tempString);          MsgBox.Show(MsgBox.STOP_ALERT,tempString);
    END IF;
    END;
    This looks for an event named BEAN_ERROR_EVENT and there for a message ERROR_MESSAGE.
    In the Bean add the following code:
    public static final ID pErrorMessage = ID.registerProperty("ERROR_MESSAGE");
    public static final ID eErrorEvent = ID.registerProperty("BEAN_ERROR_EVENT");
    private void dispatchErrors(String message)
    log(message);
    try{
    CustomEvent ce = new CustomEvent(m_handler, eErrorEvent);
    m_handler.setProperty(pRwAuthMessage,pErrorMessage);
    dispatchCustomEvent(ce);
    catch (Exception e)
    e.printStackTrace();
    To handle Bean errors:
    try{
    catch (Exception e){
    dispatchErrors(e.getMessage());
    finally {
    This know publishes the error message to Forms where you can handle it the way you want.
    Fran

Maybe you are looking for

  • How can I connect two Time Capsules with UTP

    Hello, I have one TC connected with UTP (WAN-port) on my modem to Internet on the second floor. I have a good WiFi-signal on the second floor. I bought on new TC to get a better WiFi-signal on the first floor and also used for backup. I like to conne

  • Any way to stop rotating the surround sou

    hey all im looking to buy one of those 3d head mounted displays with head tracking. so if you turn around physically, you turn around in the game. the problem is if you have physically turned 80 degrees, you are now facing the opposite direction to y

  • Mediasource Organizer Multiple Librari

    I have a large MP3 collection in my "PC Music Library" and would like to set up sub-libraries so that my wife's and my favourites can be browsed more easily. Obviously I can set up playlists <EM>ad infinitum </EM>but these don't then enable me to nar

  • Shared Data Control

    Dear All, I often find myself reading documents regarding shared data control and transaction in taskflow but I often scratch my head what does it mean? I googled about it but cant find a good resource othat explains the relevance of the topic in ADF

  • Publishing pages different than ie

    I'm using web page maker to publish my site and it works like a charm in ie explorer , but when i open it with firefox i can't never get the same look of my site. It's like, the text is always in diferent spot than the picure i set. Even with text on