Beginner JSP / Forms question

Hello,
I'm just starting with jsps and I've got a pretty simple question. In my jsp I generate a form with two fields: age and weight. I'm wondering what the best method is for handling the users response. Two specific questions: (1) I'm currently handling the response in the same jsp which generates the form. Is this bad, uh, form? (2) To differentiate between the 'initial' request and the request resulting from the users form submission I'm arbitrarily checking whether the value of the 'age' parameter is null. Is there a better way to do that? Thanks in advance for any thoughts on these issues.
-exits

Yeah, that is fine for early JSPs (on both questions).
A couple of thoughts:
1) What if the user submits a weight but not an age? You should probably check if either of the two inputs are null.
2) This design is fine for smaller applications (it is called the Model 1 application design). For more complex applications, using Model 2 (Model - View - Controller or MVC) pattern is much better.
Basically you use a combination of Servlets and JSPs. One servlet is the target of all your links and forms - this is the Controller. Based on parameters and other conditions, the controller determines where the page should go next, and accesses the business logic (other classes that get/store data or calculates results. These other classes are the Model) , and passes this information to the the JSP needed to display that information (the View).
This helps JSPs stay small and manageable, since adding to much logic in a JSP means writing scriptlets, which become tough to maintain later on. It takes more work up front, but for larger apps and over longer periods of time (when it becomes time to update the look, or fix bugs) it makes a lot of sense.

Similar Messages

  • How to "encapsulate" a data from a text field in a JSP form

    Hi. I'm trying to make a user's registration jsp page and I'm not sure how I could get the data from a JSP form from the user and store that into some variable that I could later pass to a query to modify the database. I've been using a JavaBean, but I get null values for all the fields of the jsp page. That's logical, since I cannot find a method that will read the user's input and store that into some variable. In my JavaBean, I have get and set methods that will return a String for each of the form fields such as first name and email. The set method will have in a String as a parameter to set that field value (whichever field it is) to the value of the input parameter, but I don't know if there is a method or a way to read and store the values entered by the user into the jsp form. This is a code snippet of the jsp form:
    <TR><TD>First Name: </TD>
    <TD><INPUT TYPE="TEXT" NAME="fname"
                   VALUE="<%= newUser.getFirstName() %>"></TD></TR>
    Here, the getFirstName() method simply returns the value of a String value related to the user's first name, which is initialized as null in the JavaBean. newUser is the name of the JavaBean that I'm using.
    Any suggestions? Thanks.

    haha...nevermind this question also guys...I found out that I could use the request.getParameter("some_String") method with my JavaBean to read and store data entered by the user in a text field.

  • Migrating PCR frontend-JSP forms to Adobe interactive forms-WD Abap Comp

    Hi All,
    We are currently on Netweaver 7.0 & ECC 6.0 and ESS - MSS Business Package 50.4. We are using JSP Forms on portal front for Personnel Change Requests (PCR's ) where in all the scenarios in the backend are heavily customized with good amount of usage of Javascripts. For certain scenarios, where in a huge amount of information is fetched from ECC 6.0 backend system, JSP are performing really bad and the total time taken to display the form is actually causing a lot of irritation to the end user.
    We are planning to propose an upgrade to SAP adobe interactive forms. The prerequisite is that the business wants to reuse all the customized scenarios without any changes and just want to move towards better front end forms.
    My questions are:
    1. Please list benefits of SAP Adobe interactive forms - ABAP component over JSP forms (performance wise)
    2. Issues with SAP Adobe Interactive forms?
    3. Since Javascripts do not work in Webdynpro ABAP. How can we implement those front end checks and validations.
    3. Any other options available for UI that can be suggested?
    All suggestions are welcome. Quick response is appreciated.
    Thanks a lot for your time and help.
    Best Regards,
    Anupama

    Is your performance issue with the Javascript with JSP pages?  or the Java script you are using within the Adobe form in your WDJ custom application using Adobe form? I have worked on PCR's using ISR framework old school it used to call as PCR and now HCM Processes and form, Developed PCR's using WDJ also integrated workflow with the WDJ PCR for approval(we never had any performance issue) infact ISR frame work was kind of slow compare to custom WDJ solution and less flexible for a developer to develop.
    I have also worked created WDA custom application for PCR's , WDA is definitely better when you compare it with WDJ but I have not seen much performance issue with WDJ atleast on custom PCR solutions.
    I don't have any case study to share with you, can you please tell what kind of PCR's your client is using and what kind of performance issue you are experiencing and where and why you guys are using Javascript.

  • Registering JSP forms in oracle apps

    Hi,
    Can anyone suggest me how to register JSP forms in oracle apps 11i (11.5.9 version), on Windows NT
    Regards

    Hi,
    My question is, how do I run the form in the Oracle Apps? After registering it.You already have the steps in your post, just add the form to the menu and attach it to the responsibility.
    My question is, how do I know if a form has a function that needs to be registered?Sorry, I cannot be of much help here, but you may check the Developer Guide and see if it helps.
    Oracle Applications Developer's Guide
    http://download.oracle.com/docs/cd/B25284_01/current/acrobat/115devg.pdf
    Regards,
    Hussein

  • Migration of JSP forms into adobe forms for PCRs

    Hi All,
    I am working on Upgrade project for ESS/MSS. Our client had JSP based PCRs which we need to migrate into adobe based PCRs.
    i have few questions regarding this migration.
    Has someone the experience to migrate a  JSP based PCR into Adobe based PCR?
    How much effort the migration will take, and can we fully reuse ISR configuration and workflow?
    Thanks,
    Ankur

    If you are using the SAP delivered JSP forms - there maybe equivalent SAP delivered Adobe based PCRs in the next ESS/MSS releases that you can use instead of migrating the forms
    I am not aware of any tools or documentation that help to migrate custom JSPs to custom Adobe forms
    As I see it you would have to create new Adobe based versions  of your JSP PCRs  - I am vaguely aware of a guide entitled
    "Developing Your Own Personnel Change Requests" for ERP2004 - however I am not sure how you would obtain a copy
    or whether this approach is recommended, supported or complete - this documentation would detail how to create an ISR based Adobe form
    At the same time there may be restrictions as to what standard JSP forms are available as standard Adobe forms and what can be configured in the ISR scenarios (for example use of Value Help in WD JAVA Adobe scenarios)
    - SAP have been recommending instead of creating say a ISR based Adobe form for WD JAVA to
    use HCM processes and forms (also available in the MSS role) going forward
    - HCM processes and forms is WD ABAP based framework using Adobe which allows users to create custom Adobe forms which update back-end infotypes directly from the Portal - also such scenarios as Value Help etc may be possible (or more easily achieved)
    Best wishes
    Stuart

  • Oracle Form Vs OAF JSP Form

    I have some basic questions regarding Oracle Forms and OAF JSP forms. There is a requirement by the client to create custom forms for a functionality not available in Oracle Applications R12. I have to make the decision if Oracle forms or OAF JSP should be used to develop these forms. I have been told that both are supported in R12. I would like to know what is the advantage of doing one over the other? What factors do I need to consider?
    Thanks

    and the appeal is not only about good looking UI, but more on making better user experience, less coding effort, easy maintenance, low cost (on hardware/software), thin clients, and the reason for whole internet revolution based on browser based applications
    Tapash

  • Multiple servlet actions from jsp forms

    Hi all ,
    how can i do muliple actions from a jsp form, i need to do an action when user clicks on a column and a different action when user clicks on cell in a row .
    i need to read and store the attribute from the column to pass back to the webservice to request that the service sorts the reults by that column either as desecending or as asending.
    also i need to get the value from a cell that is clicked on and pass that through as a parameter to the webservice to request some further data for the specific id.
    how can i do this?
    currently i have a form which has as part of the row an onclick event that captures the value of cell clicked - but what i need to do is change the cell value to a href and if this is clicked capture the value of the href and submitt this to the form action and regonise that the href has been clicked (how do i do that?) and thus do soemething specific for that in the servlet and if the column with its ascending or descending image is clicked capture the asc or desc value and regonise that the column asc or desc has been clicked (how do i do that?) and thus do soemething specific for that in the servlet.
    <tr onclick="selectPatCareRec(this)">
    <td><netui:label value="{container.item.perId}"/></td> rest of form is :-
    you dont need to pay attention to rest of stuff except that which columnHeader field was clicked and in which order (ie ascending or desc)
    also if a cell is clicked to pass the values as part of a submit to the action and regonise that a herf click was done and value of that cell - i have the javascript that is used to find the cell value once the row is clicked.
    <netui:form action="refresh">
          <rpb:repeaterBlock name="contacts" filter="<%=filter%>"
          ascendingImage='<%=request.getContextPath()+"/resources/images/up-arrow.gif"%>'
          descendingImage='<%=request.getContextPath()+"/resources/images/down-arrow.gif"%>'>
          <netui-data:repeater dataSource="{pageFlow.carerGpListResults}">
         <netui-data:repeaterHeader>
           <table class="tablebody" border="0">
             <tr>
               <th><rpb:columnHeader field="SYSTEMREF"></rpb:columnHeader></th>
               <th><rpb:columnHeader field="TITLE"><i18n:getMessage messageName="title"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="GIVENNAME"><i18n:getMessage messageName="given_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="FAMILYNAME"><i18n:getMessage messageName="family_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ADDRESS"><i18n:getMessage messageName="address"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="POSTCODE"><i18n:getMessage messageName="post_code"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="DOB"><i18n:getMessage messageName="dob"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ORGANISATION"><i18n:getMessage messageName="organisation"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="TYPE"><i18n:getMessage messageName="type"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="QUESTION"><i18n:getMessage messageName="question"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ANSWER"><i18n:getMessage messageName="answer"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="PER_ID"><i18n:getMessage messageName="patientid"/></rpb:columnHeader></th>
             </tr>
           </netui-data:repeaterHeader>
           <netui-data:repeaterItem>
             <tr onclick="selectPatCareRec(this)">
               <!-- do an on click event to trigger another action to get all the patient list (ie. link it to the patientCasesList jsp) of cases and keep refresh to get sorting -->
              <td><netui:hidden dataInput="{container.item.SYSTEMREF}"dataSource="{actionForm.systemref}"/></td>
              <td><netui:label value="{container.item.TITLE}"/></td>
              <td><netui:label value="{container.item.GIVENNAME}"/></td>
              <td><netui:label value="{container.item.FAMILYNAME}"/></td> 
              <td><netui:label value="{container.item.ADDRESS}"/></td>
             <td><netui:label value="{container.item.POSTCODE}"/></td>
            <td><netui:label value="{container.item.DOB}"/></td>
            <td><netui:label value="{container.item.ORGANISATION}"/></td>
            <td><netui:label value="{container.item.TYPE}"/></td>
            <td><netui:label value="{container.item.QUESTION}"/></td>
           <td><netui:label value="{container.item.ANSWER}"/></td> 
              <td><netui:label value="{container.item.perId}"/></td> 
            </tr>
           </netui-data:repeaterItem>
           <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
         </netui-data:repeater>
         <br />
         <rpb:firstPage label="First"/>
         <rpb:previousPage label="Previous"/>
         <rpb:nextPage label="Next"/>
         <rpb:pageNumber/>
          </rpb:repeaterBlock>
            <div>
            <netui:hidden tagId="selectedPatientId" dataSource="{actionForm.selectedPatientId}" dataInput="{actionForm.selectedPatientId}" />
            </div>
        </netui:form>thanks for any / all help.

    You can modify your connection pool management servlet so you can set the 'connection pool object' as an attribute of the request. Then forward the request to your jsp page.
    Example:
    in your service method of your sevlet, add something like
    public void service (HttpServletRequest request, HttpServletResponse response) {
    ConnectionPool pool= new ConnectionPool();
    request.setAttribute("mypool", pool);
    // forward the request to a jsp page.
    RequestDispatcher dispatcher = request.getRequestDispatcher("jsp/myjsp.jsp");
    dispatcher.forward(request, response);
    }then in your myjsp.jsp, you can access the connection pool object using the 'mypool' attribute.

  • From database to jsp form drop downlist

    is there a way to put database values from certain fields in the database,into the dropdown list in my jsp form?
    if there is a way what do they call that method?

    hi,
    First you retrive the fields from database and store those values in a List or any collection.
    after that write the code in jsp as like this..
    <select name="list" >
    <%                    
         for(int i=0;i<dblist.size();i++)
              String listitem = dblist.get(i);
    %>
          <option value="<%=listitem%>">
          <%=listitem%>
    <%             
    %>
    </select>Here dblist is a collection which contains the fields which you retrived from the database
    regards,
    sekhar.alla

  • How to add MenuBar and MenuItems in JSP Form

    Help Me,
    Dear Forum,
    I am user of jDeveloper 10g working on JSP (Web Module).So How to add MenuBar and Menu Item, in Our jsp Form.What this type control exist?
    regards
    javed khan

    You should do this instead:
    iframe.setJMenuBar(i_menuBar);

  • Multiple submit buttons in a jsp form?

    I've been doing some research and found out that multiple buttons in a JSP form are possible by two ways:
    - We can obtain the value of the submit button to know which one was clicked in the parameters of the request using the name of the buttons (which should be the same for all the submit buttons).
    - We can change the submit destination using Javascript (Horrible solution since I want my web site to be safe to be used even if Javascript isn't active in clients browsers. I will use it of course since we can do amazing things with it but I want my website to be able to work without it also)
    WHAT annoys me is the fact that the value of a submit button is also his text, so if I change the text of the submit button, I will always have to check the servlet to do the corresponding change.
    Is there a third choice to be able to use multiple buttons?
    Olivier Voutat

    It seem rather convoluted at first but it's really good. I've not worked with JSF so I've no idea how that compares but from what I know, Craig McClanahan, who came up with Struts, worked on JSF also, so I guess it could only improve on Struts.
    EDIT: Here's a search result on Google'ing his name: http://www.theserverside.com/news/thread.tss?thread_id=29068
    But like I said, you don't have to use Struts ( which only uses standard JSP/ Servlets stuff anyway ), you simply use one of the ideas from it.
    For example; you have a properties file, say "/WEB-INF/properties/myProps.properties" with these entries:
    #USERS MODULE
    users.button.save=Save User
    users.button.search=Search User By Name
    users.button.delete=Delete UserThis would be a key: users.button.save to the value Save User
    Now, in your JSP, you use JSTL <fmt> tags:
    <fmt:setBundle basename="properties.myProps"/>
    //set the resource bundle you want to use
    //and create buttons with the proper values
    <input name="myButton" type="submit"><fmt:message key="users.button.save"/></input>
    <input name="myButton" type="submit"><fmt:message key="users.button.search"/></input>This would create buttons with text "Save User" and "Search User By Name" respectively
    Now, finally, in your servlet:
    //create a map of the properties,
    //possibly on app startup using a ServletContextListener
    //and put it in the servlet context for access everywhere
    HashMap myProps = (HashMap)getServletContext.getAttribute("myPropertiesMap");
    String buttonClicked = request.getParameter("myButton");
    if ( buttonClicked.equals((String)myProps.get("users.button.save")) )
    //perform save action
    else if ( buttonClicked.equals((String)myProps.get("users.button.search")) )
    //perform search action
    //etcYou'll obviously want to optimize this. Perhaps make a method that handles the comparison so you can have neater if conditions. But you get the idea, right?
    Edited by: nogoodatcoding on Oct 4, 2007 8:12 PM

  • How to capture the data from a JSP form

    Hi
    I have a JSP form, My task is to capture the data from a JSP and submit to Data Base. for example I have the field like
    Enter Table name to be created in data base: The table name is to be captured by a servlet and by that table name, table should be created in the data base.
    Edited by: Reddy_Prasad on ?? ?????, ???? ?:?? ???????
    Edited by: Reddy_Prasad on ?? ?????, ???? ?:?? ???????

    Get the entered value from the jsp into servlet using request.getParameter("enteredTableName"). it will return the String,pass this table name to execute query using JDBC connection and statement objects.
    -cheers Ram

  • How to find out last_query from jsp form in oracle applications

    Hi
    At present i am working on Quality Module.
    in India Localization.
    In Quality module -> Results -> Inquiries -> Skip Lot Inquiry
    If i enter our organization name
    Then its openning one form.
    I am unable to find out the table names from the jsp form.
    User also unable to comment on it.
    So, please help me on this issue.
    Regards,
    Pradeep.

    Hi
    Once you open the jsp form, at below leftside corner you can see link : About This Page. If you click on the link : About this Page this again open another window, there you can see multiple tabs at header level, if you click on page tab, there you can all the VO objects used to build this page. If you click on VO object hyperlink you can see the query.

  • Calculations in Jsp form - Urgent Please

    Hi,
    I have 3 fields in my table, Quantity,Price and Total. Quantity * Price gives Total. Price is the Column of another table and I display the values of Price using <jbo:InputSelectLOV>. So,my requirement is when I input the value for Quantity and select the values from list in the Edit.jsp form I need the value of Quantity * Price to be displayed in the Total field on Browse form. Could someone please help me. I am new to JSP and any help is appreciated.
    Thank You

    It's not related to JDeveloper this is a generic thing for HTML pages - if you want to do client side (menaing no traffic to the server) actions you use Javascript.
    You just need to stick the Javascript into the JSP page you have inside JDeveloper.

  • Jsp form help

    Hello everyone out there'
    I am a computer science teacher in a private high school in Nigeria and have some experience in java programming language and also new to the JSP tech .I want to introduce the school into using web applications in managing their infomation like registration,staff info,accounts e.t.c .They have asked me to make a presentation in two days time on web appllications ,i have decided to use JSP tech to demonstrate a web application .I have also downloaded the TOMCAT server install and configured it ,set the enviroment varible and is working well when itried invoking a html form.I have even install the j2sdk 1.5.
    The problem now is on my JSP form i want to link to an Access database the code is provided below:
    <%@page contentType="text/html" import="java.sql.*" %>
    <%@page pageEncoding="UTF-8"%>
    <html>
    <head><title>JSP Page</title></head>
    <body bgcolor='palegoldenrod'>
    <img src ='Apps/Japp/logo.jpg ' height="100" width="100"/><hr/>
    <center ><form method="POST" action="/Apps/Japp/TEST.jsp" >
    <table bgcolor='navyblue'>
    <tr><td><font Color="yellow" size="5"><b>Student Number :</b> </font></td>
    <td><input Type ="text" name= "number" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>First Name :</b> </font></td>
    <td><input Type ="text" name= "fname" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Middle Name :</b> </font></td>
    <td><input Type ="text" name= "mname" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Last Name :</b> </font></td>
    <td><input Type ="text" name= "lname" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Subject :</b> </font></td>
    <td><input Type ="text" name= "sub" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Grade :</b> </font></td>
    <td><input Type ="text" name= "grade" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Exam Type :</b> </font></td>
    <td><input Type ="text" name= "etype" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Number In Group:</b> </font></td>
    <td><input Type ="text" name= "ngroup" size="30"/></td></tr>
    </table>
    <font Color="yellow" size="5"><b>Teachers Comments </b> </font>
    <textarea name= "comment" rows="8" cols=50/></textarea>>
    <input type="submit" value="Submit your Entries" />
    <input type="reset" value="Clear Entries" /></form>
    </center >
    <hr/>
    <%
    Connection conn;
    Statement stat;
    String studentNumber = request.getParameter( "num");
    String firstName= request.getParameter(" fname");
    String middleName= request.getParameter("mname" );
    String lastName = request.getParameter( "lname") ;
    String subject= request.getParameter( "sub") ;
    String grade= request.getParameter("grade") ;
    String numInGroup= request.getParameter("ngroup") ;
    String coment = request.getParameter("comment" ) ;
    String examType= request.getParameter("etype" ) ;
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn = DriverManager.getConnection("jdbc:odbc:Tester","bart","college");
    stat = conn.createStatement();
    stat.executeUpdate( "INSERT INTO REPORT " +
    "VALUES (studentNumber,firstName , middleName,lastName ," +
    "subject,grade,numInGroup,coment,examType" );
    stat.close();
    conn.close();
    catch (Exception e)
    e.printStackTrace();
    %>
    </body>
    </html>
    i am recieving the error message below when I sumit my entry from the form.Can anyone tell me what to do tosolve this problem and do ineed to configure an xml file i n the web module for this iam using NETBEANS IDE
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /Japp/TEST.jsp(6,1) Illegal value of scope attribute: PAGE (must be one of "page", "request", "session", or "application")
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:186)
         org.apache.jasper.compiler.JspUtil.checkScope(JspUtil.java:252)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:536)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1133)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:485)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
         org.apache.jasper.compiler.Validator.validate(Validator.java:1518)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:247)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
    note The full stack trace of the root cause is available in the Tomcat logs.
    Apache Tomcat/5.0.19

    org.apache.jasper.JasperException: /Japp/TEST.jsp(6,1)
        "Illegal value of scope attribute": "PAGE" (must be one of "page", "request", "session", or "application")The error says it all. In your TEST.jsp you have a JSP tag that uses the scope attribute. You have it written as: scope="PAGE".
    Keep in mind that JSP is Java, and Java is case sensitive. Re-read the error message and see if you can't locate and fix the problem.
    PS: This occurs because you are writing code without following any sort of coding standards. It makes for errors in JSPs, but also real hard to read HTML. Create a set of rules for yourself and follow them. It will make it a lot easier to manage later on. Some example rules:
    1) Name all pages with capital letters to start the name, and to deliminate words. Use lower case letters the rest of the time. Example:
    "Test.jsp" "StudentMailAddressForm.html" ...
    2) Use only lower case letters for tags except when required not to:
    <td ...> <body ...> <jsp:useBean...>
    3) All tag attribute names should be lower case except when required not to:
    < ... color="..." > <... name="... >
    4) Put all tag attributes in double quotes.
    <... name="address" ...> < ... size="15" ... > <... src="images/ThePic.jpg" ...>
    5) Allattribute values should be lower case except:
    a. To distinquish words <... name="hamSandwich" ...>
    b. The value will be displayed to the user <... value="Submit Form" ...>
    c. The value is a proper noun <... user="Steve Luke" ... >
    d. When required to be case sensitive like looking up info in a DB...
    These are just examples, but if you think about the rules when you make them you will be writing good XHTML code in no-time, and the transition to JSP, with its case-sensitivity will be easy.

  • Master-Detail Form Questions

    Master-Detail Form Questions
    I have two questions in regards to master-detail forms:
    First, the form I am working on has 25 detail rows displayed to the user. If the user has more than 25 detail records for the master, I want them to be able to add more. For instance, after they enter the 25th record, I would like a pop up window to ask them if they would like to add more detail records for this master. If they select yes, then the records they have entered would be saved and then the form would repopulate with the current master record and another empty 25 detail records.
    Second, I would like the Detail Action to be set to Insert if the user moves to a new detail row and selects an item from a combo box.
    Thanks for any and all help.
    Jeremy.

    Hi Sharmila.
    Is there a way to repopulate only the Master information without populating the detail after the 'Save' button is pressed? I have written code that uses the session variables and repopulates the form with all the data that has just been saved, but I need only the master without the detail.
    Thanks.

Maybe you are looking for

  • My photos are not showing up in the 'Open File' window

    When I try to access my Aperture library through the 'Photo' button on the left hand column of the open file dialogue box, I see an option for aperture but it brings up an incomplete version of my library. There do not seem to be any other versions (

  • Error while configuring APEX

    I have completed the installation of APEX and HTTP server on an instance. But while configuring , I got the following error in the login page. Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance

  • Open Innovation Call: abap interpreter written in java

    Like part of the Open Innovation Call initiative: /people/ignacio.hernndez/blog/2006/12/22/open-innovation-call , I begin this forum thread to open the discussion about "JAbap project": I know JRuby...is there something like a abap interpreter writte

  • Parsing a field in CFQUERY WHERE clause

    I have a fairly large database that I need to run queries on.  I have one field that represents where store items are stocked by aisle, section and bin. This location field is concatenated with underscore delimiters: aisle_section_bin .  An example l

  • Interpretation of the use of threads with Sessions in the JMS Specification

    Hello, I've been interacting with two JMS Providers which do a different interpretation of the JMS Specification with the use of different threads for accessing to a session and session's related objects. The question is: When a client is consuming m