Create an HTML form

This question was posted in response to the following article: http://help.adobe.com/en_US/dreamweaver/cs/using/WSE27BE211-43F0-4b43-95C1-3D4EB7A8A98E.ht ml

I have a website made in Dreamwever CS3 that has radio buttons that show up just fine.
Here is the code:
<form method="post" action="validate.php">               
        <p>I need:<span class="redStar">*</span>
          <input type= "radio" name = "need" value = "service" />service.
        <input type= "radio" name = "need" value = "sales" />to contact a salesperson.
        <input type= "radio" name = "need" value = "literature" />to have literature sent to me.<br />
        Name:        <input type = "text" name = "name" size = "30" />
        <span class="redStar">*</span><br />
        Title:           <input type = "text" name = "title" size = "30" /><br />
        Company: <input type = "text" name = "company" size = "30" /></p>
        <p>Address 1: <input type = "text" name = "address1" size = "30" />
          <span class="redStar">*</span><br />
        Address 2: <input type = "text" name = "address2" size = "30" /><br />
        City: <input type = "text" name = "city" size = "30" />
        <span class="redStar">*</span> State: <input type = "text" name = "state" size = "3" />
        <span class="redStar">*</span> Zip: <input type = "text" name = "zip" size = "11" />
        <span class="redStar">*</span></p>
       <p>Email:   <input type = "text" name = "email" size = "30" />
         <span class="redStar">*</span><br />
        Phone: <input type = "text" name = "phone" size = "30" />
        <span class="redStar">*</span> </p>
        <p><input type = "submit" name = "submit" value = "Submit" /></p>
        <p><span class="redStar">*</span> These blanks must be filled in</p>
</form>       

Similar Messages

  • Reports 6i -- How to create an HTML form template before form processing

    Hello Oracle Reports Gurus,
    I'm using Oracle Reports 6i and trying to create an HTML form WITHOUT using the Oracle Reports 6i parameter form builder. The goal: to take a web page already in existence containing a form with checkboxes and radio buttons and make it 'transparent' to my users in hooking it to Oracle Reports. So far, I made my HTML page (with form and all) a "header" file for my Oracle report and didn't place anything in the parameter form builder. However, upon doing so, Reports 6i decided to be extra helpful and place form elements into the Parameter form builder.
    So,
    1) Is there a way to take a web page with a form and all and easily "plug it" into Oracle Reports 6i WITHOUT using the Parameter Form builder?
    2) Is there another way to create an HTML form that will allow me to have radio buttons, checkboxes, etc?
    Thanks in advance from this Oracle Reports newbie,
    Lee Lonitz
    Webmaster
    Lockheed Martin IS&S
    [email protected]

    lee,
    i am not exactly sure what you are trying to do. since you state you use HTML, i assume you are running 3-tier with the report server, right ?
    if so, the easiest way to hook your parameter form up to your report is to just pass the URL to the report as the action URL for your form.
    in 9i/10g we provide the Reports Web source, which is based on JSP and allows you to paste HTML into your report to create a highly customized HTML parameter form.
    i am afraid in 6i, we don't provide a way to actually combine your HTML form ito the report. it needs to stay separate, but can link to the report using the way i described above.
    thanks,
    ph.

  • Is there a way to create reusable HTML Forms that can be used on multiple pages?

    I'm trying to understand the recommended approach to managing 10 HTML forms that will be reused on many different pages.  I want to be able to modify the form definition once and have the change propogate.

    Is your requirement that authors be able to change the form definition, or should form definition be controlled by developers?
    In the case of authors being able to change the form definition then I would say best practice would be to create a page that holds the form definition (using whatever components work for you - either the out of the box form components or something custom). Then use the reference component to point the definition in all the other locations you want the form to appear. One thing to note is if you are using dispatcher for caching you need to make sure you strategy for cache flushing accomadates this approach.
    In the case of developers controlling the form definition you could crate a component for each form, and then simly drag that component onto the pages that require the form. In this case your would control all the form label and description elements in the localization file.

  • Creating dynamic html forms

    Hi,
    We have a requirement to create a number of html forms where the fields displayed on the form could change based on the date a user requests the form.
    The technology stack we are using is jsp,struts, adf bc, although we may use jsf , adf bc.
    The only way I can see of doing this(assuming we get the database design correct) is to generate the required xml from the database and then transform this into html on the fly? This would obviosuly not be compatable with the ADF binding feature though.
    Has anyone done this, and/or found a way to make it work using ADF.
    Thanks,
    Richard

    I guess I could also just dynamically build up the from fields directly in the jsp.
    I guess I would just loop throught the meta data on the forms from the database,
    and then just write out the number and type of form elements required.
    This would still not make use of adf binding though.

  • Creating simple HTML forms

    I am currently engaged in applying a new design to a customers SAP driven website.
    I have successfully used the theme designer and edited master pages to apply the deisgn and have created some static pages with static information.
    The problem I now face is that I need to create some additional pages like a contact forms, brochure request etc...  Is there a facility for creating this type of interactive page (where the contents of a simple form is emailed to the site owners) or do I need to create it myself form scratch and provide a link?
    Should I create a plugin and if so, how do I then link this to a static page.  If I just want to create a dynamic page (I.E. wihout assigning it to a slot) how is this achieved ?
    I hope this all makes sense.  Any help would be very much appreciated.
    Thanks
    C

    Thank again for your help.
    I think perhaps I am asking the wrong question. 
    If you are able to take a quick look at [http://www.atpgifts.co.uk/].  The homepage is great. It has the categories down the left, the search bit etc...  what I need is for the contact us link to go to a separate page (currently it is a static page) that looks exactly like the homepage and has the same dynamic content on the left hand side but has the web form control in the content.  Is this possible.  Which page should I copy and edit?  Can I add the webform control to the static page or must I create a new dynamic aspx page ?
    If I am not making sense, please let me know.  I don't usualy develop in this way.  Normally we develop application from scratch so this type of thing would be trivial !!
    Thanks again
    C

  • Creating an HTML Form - Fieldset and Legend problem.

    Hello everyone,
    I am trying to build an HTML/CSS form from scratch.
    However, I want to bring the legend within the fieldset rather then the  legend sitting on the fieldset.
    To get this done, I gave the fieldset a top padding and the legend an  absolute position. However the fieldset appeared to have a break as  indicated in the red circle of the below image. How can I close or  prevent this gap/break?
    Here is the complete code.
    <style type="text/css">
    form{
         margin: 0;
         padding: 0;
         font-family: "Century Gothic";
         font-weight: bold;
         font-size: 16px;
    legend span{
         position: absolute;
         top: 30px;
    fieldset{
         background-color: #EAEAEA;
         padding-top: 60px;
    div{
         width: 100%;
         margin: 0 0 5px 0;
         padding: 0;
    label {
         float: left;
         width: 160px;
         margin-right: 16px;
         text-align: right;
         margin-top: 5px;
    .UserFirstNameField, .UserLastNameField, .UserEmailField, .UserPhoneNumberField{
         width: 200px;
         padding: 4px;
         font-family: "Century Gothic";
         font-weight: bold;
         font-size: 16px;
         color: #F90;
         background-image: url(DFormsImages/Form-Fields-Background-Image.png);
         background-repeat: repeat-x;
         background-position: left center;
         border: 1px solid #D5D5D5;
    </style>
    <!--[if lte IE 7]>   
    <style type="text/css" media="all"> 
    label {
         margin-top: 5px;
    </style>   
    <![endif]-->
    </head>
    <body>
    <form id="BasicForm" class="BasicFormTemplate" method="post" action="">
    <fieldset>
    <legend><span>Personal Information</span></legend>
    <div> 
    <label for="UserFirstName">First Name:</label> 
    <input id="FirstNameInput" name="UserFirstName" class="UserFirstNameField" type="text" /> 
    </div>
    <div>
    <label for="UserLastName">Last Name:</label> 
    <input id="LastNameInput" name="LastName" class="UserLastNameField" type="text" /> 
    </div>
    <div>
    <label for="UserEmail">Email:</label> 
    <input id="UserEmailInput" name="UserEmail" class="UserEmailField" type="text" /> 
    </div>
    <div>
    <label for="UserPhoneNumber">Phone Number:</label> 
    <input id="UserPhoneNumberInput" name="UserPhoneNumber" class="UserPhoneNumberField" type="text" />
    </div>
    </fieldset>
    </form>
    </body>
    </html>
    Thanks everyone!
    Patrick

    Murray *ACP* wrote:
    You might find this good essay to be helpful:
    http://tjkdesign.com/articles/how_to_position_the_legend_element.asp
    Good day Murray,
    What I did was give the legend a zero padding.
    legend{ padding: 0; }
    and the gap was removed.
    I tested in IE7, Firefox 3.6.6, Safari 5.0 and Opera  10.60 and it works very well.
    I have not tested it in IE 6.
    However, I also used the method from the article you provided, it also works well and I will also use that as an alternative when needed for another fix.
    Thanks for your valuable help as always.
    Patrick

  • Creating dynamic HTML form from XML data in session

    I'm a bit new to servlets, please bear with me if I don't make myself clear.
    currently i have a HttpServlet that extracts a XML document into a jdom Document.
    this is done within the doGet() method as the XML document is in the session object.
    i would like to create a popup window (a JSP or servlet) that can access the same session, convert some of the data in the XML to a submit form that users can put input into, and have the JSP(or maybe servlet) send the form data and the XML back to the original HttpServlet (through the session object).
    i have a few questions on how to make this happen:
    1.how to create a popup window (JSP or servlet) in a servlet, and forward the session data as well?
    2.if the popup window has a submit form that submits some extra data back to the original httpservlet, will the XML document still be retained in the session?
    and any advise on how to go about this problem is highly appreciated!

    Hi,
    This is my first time posting a reply. Hope this helps.
    I am assuming that you are hitting the servlet from a link. This is one way of doing it. You can create a new window using Javascript. like this.
    <script language="javascript">
    var popupWin
    function openWindow(page){
    popupWin=window.open(page,"","width=800,height=600,resizable,scrollbars");
    </script>
    link
    The response of your servlet will be in the new pop-up window.
    2.if the popup window has a submit form that submits
    some extra data back to the original httpservlet,
    will the XML document still be retained in the
    session?The session should be retained as long as you are hitting the same servlet container . You should be able to access the seesion variable in the original servlet if the form in the pop-up window calls the original servlet.
    --mv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Create HTML Form from PDF Form

    Does anyone know of a quick way to create an HTML Form from an existing PDF Form?
    Thanks everyone!
    mars

    From ID you can export to XHTML which is indeed consumed by DW but not via Acrobat...
    So, can I import a PDF form into ID?
    When I meant was - InDesign can export to XHTML
    Acrobat cannot
    Indeed, it would be great if forms could be created as ID objects and then exported to a PDF form but not yet (all fingers and toes crossed for CS5/CS6)
    Cheers,
    Jon

  • Error when using a HTML form along with a servlet

    Hi All,
    I am using Sun Studio 4 to create a HTML form that takes in 4 inputs and then
    passes them on to a servlet to be processed.
    In my HTML form i have the form heading.. <form method = post action="processServlet">
    my directory structure is as follows:
    /home/cosmo/projects/testservlet/processServlet ... processServlet being the servlet underneath the testservlet directory.
    inputForm.html is also under the same testservlet directory. I am running TOMCAT.. and under the run time tab under tomcat --> Internal --> it has localhost:8081 and under that the default context is /home/cosmo/projects/testservlet
    NOW, when i execute my HTML page the URL on top says "http://localhost:8081/inputForm.html
    which seems correct. I get my form correctly. When i input the data,and i hit the submit button, the URL says "http://localhost:8081/processServlet" which i think is also correct, but i get a "404 Error and the error description says " The requested resource( /processServlet)
    is not available." I have coded the servlet to give me just a few lines of output, but instead, the above error shows up.
    Why would this be happening? Do i have my directory structure messed up? Do i have the wrong type of template? I used a web module to do this. I also compiled my Servlet from Sun Studio without any errors.
    Any help would be appreciated.
    Thanks
    Kal.

    You can't post directly to a servlet the way you can to an HTML or JSP page. You must map your requests to specific servlets for the request to get directed there. There are entries in the web.xml for this.
    You need to map the request for "processServlet" to "edu.xxx.yyy.processServlet", or the servlet engine won't know what to do with that request.
    Often times, an app will route all requests for a particular extension to a router servlet, which then figures out which class to actually send the request to. This keeps you from having to map all servlets in the web.xml file.

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • How to reference html form element in javascript ?

    Dear all,
    My DPK portlet is like this:
    I created a html form within it there a several textfields, a hidden field and a SUBMIT button.
    The application will call itself to insert a new record to database table on pressing the SUBMIT button.
    My problem is that since all the form textfields and the hidden field ara all the qualified names, and I want to set the hidden field to some value, say "ADD" on the onsubmit event in the form. How can I reference the hidden field in javascript ?
    Or can you suggest another strategy to do that ?
    Many thanks
    George (HK)
    Here are the code fragment:
    String portletParamSubmit = "mSubmit";
    String portletParamTitle = "mTitle";
    String portletParamURL = "mURL";
    String portletParamAction = "mAction";
    //Fully qualified URL.
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    String formName = UrlUtils.htmlFormName(pReq, null);
    String fTitle = HttpPortletRendererUtil.portletParameter(request, portletParamTitle);
    String fURL = HttpPortletRendererUtil.portletParameter(request, portletParamURL);
    String fAction = HttpPortletRendererUtil.portletParameter(request, portletParamAction);
    String vl_Title = "";
    String vl_URL = "";
    String vl_Action = "";
    String vl_result = "";
    if( pReq.getQualifiedParameter(portletParamAction) == "ADD")
    vl_Title = pReq.getQualifiedParameter(portletParamTitle);
    vl_URL = pReq.getQualifiedParameter(portletParamURL);
    //Add News.
    try{
    CallableStatement cs_2 = conn_erp03.prepareCall("{call XXCT_PORTAL_NEWS_PKG.P_ADD_NEWS(?,?,?,?,?,?)}");
    cs_2.setString(1, "ADD");
    cs_2.setString(2, pReq.getUser().getName());
    cs_2.setString(5, vl_Title);
    cs_2.setString(6, vl_URL);
    cs_2.registerOutParameter(10,Types.VARCHAR);
    cs_2.execute();
    vl_result = cs_2.getString(10);
    cs_2.close();
    catch (SQLException se) {
    sb.append("Query: SQL Exception: " + se.toString());
    System.out.println(sb);
    %>
    <head>
    <script language = "Javascript">
    <!--
    function SetAction() {
    document.<NAME THE OF HIDDEN FIELD>.value = 'ADD'; <====How to refer it ?
    return 1;
    // -->
    </script>
    </head>
    <body>
    <form name="<%=formName%>" method= "POST" action="<%=UrlUtils.htmlFormActionLink(pReq, UrlUtils.PAGE_LINK)%>" onSubmit="return SetAction()">
    <%= UrlUtils.htmlFormHiddenFields(pReq, UrlUtils.PAGE_LINK, formName)%>
    <table>
    <tr>
    <td>Title</td>
    <td><input type="text" length=100 name="<%=fTitle%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td>URL</td>
    <td><input type="text" name="<%=fURL%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td><INPUT type="submit" name="mysubmit" value="ADD NEWS"></td>
    <td><input type="hidden" name="<%=fAction%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    </table>
    </body>

    hi Neeraj Sidhaye,
    After trying your suggest codings,
    I come to the problem of null pointer exception message captured in the application log file as:
    06/08/11 11:48:57 Prj_News: [instance=212602_PORTLET_NEWS_49519249, id=79187977878,4] ERROR: AbstractResourceRenderer.renderBody - recieved ServletException. Root cause is
    java.lang.NullPointerException
    What's wrong ?
    George (HK)
    Here is my coding:
    <%@page contentType="text/html; charset=Big5"
    import="javax.naming.*"
    import="javax.sql.*"
    import="java.sql.*"
    import="oracle.jdbc.*"
    import="java.sql.Date"
    import="java.util.*, oracle.portal.provider.v2.*"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    import="oracle.portal.provider.v2.render.PortletRendererUtil"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"
    import="oracle.portal.provider.v2.url.UrlUtils"
    %>
    <%
    StringBuffer sb = new StringBuffer();
    PortletRenderRequest pReq = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <%
    //Database connection.
    InitialContext ic = new InitialContext();
    DataSource ds_erp03 = null;
    Connection conn_erp03 = null;
    try {     
    ds_erp03 = (DataSource)ic.lookup("jdbc/ERP03_DS");
    conn_erp03 = ds_erp03.getConnection();
    catch (SQLException se) {
    sb.append("Connection: SQL Exception: " + se.toString());
    System.out.println(sb);
    catch (NamingException ne) {
    sb.append("Connection: Naming Exception: " + ne.toString());
    System.out.println(sb);
    %>
    <%
    //Self defined names.
    String portletParamSubmit = "mSubmit";
    String portletParamMainCat = "mMainCat";
    String portletParamSubCat = "mSubCat";
    String portletParamTitle = "mTitle";
    String portletParamURL = "mURL";
    String portletParamDescription = "mDescription";
    String portletParamEffDateFm = "mEffDateFm";
    String portletParamEffDateTo = "mEffDateTo";
    String portletParamAction = "myAction";
    //Fully qualified URL.
    String fSubmit = HttpPortletRendererUtil.portletParameter(request, portletParamSubmit);
    String formName = UrlUtils.htmlFormName(pReq, null);
    String fMainCat = HttpPortletRendererUtil.portletParameter(request, portletParamMainCat);
    String fSubCat = HttpPortletRendererUtil.portletParameter(request, portletParamSubCat);
    String fTitle = HttpPortletRendererUtil.portletParameter(request, portletParamTitle);
    String fURL = HttpPortletRendererUtil.portletParameter(request, portletParamURL);
    String fDescription = HttpPortletRendererUtil.portletParameter(request, portletParamDescription);
    String fEffDateFm = HttpPortletRendererUtil.portletParameter(request, portletParamEffDateFm);
    String fEffDateTo = HttpPortletRendererUtil.portletParameter(request, portletParamEffDateTo);
    // String fAction = HttpPortletRendererUtil.portletParameter(request, portletParamAction);
    String fAction="myAction";
    String vl_MainCat = "";
    String vl_SubCat = "";
    String vl_Title = "";
    String vl_URL = "";
    String vl_Description = "";
    String vl_EffDateFm = "";
    String vl_EffDateTo = "";
    String vl_Action = "";
    String vl_result = "";
    %>
    <%
    if( pReq.getQualifiedParameter(portletParamAction).equals("ADD")) <= This line cause the null pointer exception <<<<<<<<
    vl_MainCat = pReq.getQualifiedParameter(portletParamMainCat);
    vl_SubCat = pReq.getQualifiedParameter(portletParamSubCat);
    vl_Title = pReq.getQualifiedParameter(portletParamTitle);
    vl_URL = pReq.getQualifiedParameter(portletParamURL);
    vl_Description = pReq.getQualifiedParameter(portletParamDescription);
    vl_EffDateFm = pReq.getQualifiedParameter(portletParamEffDateFm);
    vl_EffDateTo = pReq.getQualifiedParameter(portletParamEffDateTo);
    //Add News.
    try{
    CallableStatement cs_2 = conn_erp03.prepareCall("{call XXCT_PORTAL_NEWS_PKG.P_ADD_NEWS(?,?,?,?,?,?,?,?,?,?)}");
    cs_2.setString(1, "ADD");
    cs_2.setString(2, pReq.getUser().getName());
    cs_2.setString(3, pReq.getQualifiedParameter(portletParamMainCat));
    cs_2.setString(4, pReq.getQualifiedParameter(portletParamSubCat));
    cs_2.setString(5, pReq.getQualifiedParameter(portletParamTitle));
    cs_2.setString(6, pReq.getQualifiedParameter(portletParamURL));
    cs_2.setString(7, pReq.getQualifiedParameter(portletParamDescription));
    cs_2.setString(8, pReq.getQualifiedParameter(portletParamEffDateFm));
    cs_2.setString(9, pReq.getQualifiedParameter(portletParamEffDateTo));
    cs_2.registerOutParameter(10,Types.VARCHAR);
    cs_2.execute();
    vl_result = cs_2.getString(10);
    cs_2.close();
    catch (SQLException se) {
    sb.append("Query: SQL Exception: " + se.toString());
    System.out.println(sb);
    %>
    <SCRIPT SRC="<%=HttpPortletRendererUtil.absoluteLink(pReq,"clock.js")%>"></SCRIPT>
    <LINK REL=stylesheet TYPE="text/css" HREF="<%=HttpPortletRendererUtil.absoluteLink(pReq,"tables_style.css")%>">
    <head>
    <script language = "Javascript">
    <!--
    function doSubmit(myAction)
    // alert(myAction);
    if(myAction == 'ADD')
    document.forms[0].<%=fAction%>.value="ADD";
    else if(myAction == 'DELETE')
    document.forms[0].<%=fAction%>.value="DELETE";
    document.forms[0].submit();
    // -->
    </script>
    </head>
    <body>
    <form name="<%=formName%>" method= "POST" action="<%=UrlUtils.htmlFormActionLink(pReq, UrlUtils.PAGE_LINK)%>">
    <%= UrlUtils.htmlFormHiddenFields(pReq, UrlUtils.PAGE_LINK, formName)%>
    <table>
    <tr>
    <td style="color:#fff;font-family:'Arial';font-size:14px;text-align:right;">Page</td>
    <td>
    <select name="<%=fMainCat%>">
    <option value="X">-- Please select --
    <option value="FAE">FAE
    <option value="PM">Product Marketing
    <option value="RD">R&D
    <option value="BU">Business Unit
    </select>
    </td>
    <td style="color:#fff;font-family:'Arial';font-size:14px;text-align:right;">Region</td>
    <td>
    <select name="<%=fSubCat%>">
    <option value="X">-- Please select --
    <option value="1">Region 1
    <option value="2">Region 2
    <option value="3">Region 3
    <option value="4">Region 4
    </select>
    </td>
    </tr>
    <tr>
    <td style="color:#fff;font-family:'Arial';font-size:14px;text-align:right;">Date From</td>
    <td><input type="text" size="6" maxlength="10" name="<%=fEffDateFm%>"></td>
    <td style="color:#fff;font-family:'Arial';font-size:14px;text-align:right;">Date To</td>
    <td><input type="text" size="6" maxlength="10" name="<%=fEffDateTo%>"></td>
    </tr>
    </table>
    <table>
    <tr>
    <td style="color:#fff;font-family:'Arial';font-size:14px;text-align:right;">Title</td>
    <td><input type="text" size="100" maxlength="100" name="<%=fTitle%>"></td>
    </tr>
    <tr>
    <td style="color:#fff;font-family:'Arial';font-size:14px;text-align:right;">URL</td>
    <td><input type="text" size="100" maxlength="200" name="<%=fURL%>"></td>
    </tr>
    <tr>
    <td style="color:#fff;font-family:'Arial';font-size:14px;text-align:right;">Description</td>
    <td><textarea id="description" rows="5" cols="76" maxlength="500" name="<%=fDescription%>"></textarea></td>
    </tr>
    <tr>
    <td><input type="hidden" id="<%=fAction%>" name="<%=HttpPortletRendererUtil.portletParameter(request, portletParamAction)%>"></td>
    <td><input type=button value="Add" onClick="doSubmit('ADD')"></td>
    </tr>
    </table>
    </form>
    </body>

  • Question about running a servelt using HTML form.

    Hi, Im new to Servlets , I have created a servelt with this code :
    package oracle.servlets;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
        private static final String DB_URL = "jdbc:oracle:thin:@localhost:1521:ahmaddb";
        private static final String DB_USERNAME = "fundinfo";
        private static final String DB_PASSWORD = "tadapps";
        private static Connection con;
        private String pass;
        private String name;
    /*init() : invoked by the servlet engine before the servicing of client requests
    - Can be used to retrieve initialization parameters
    – Takes a ServletConfig object as a parameter
    – Is invoked when the servlet instance is created
    – Is useful for obtaining database connections from a connection pool*/
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
            //config.getInitParameter(arg0);
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
    response.setContentType(CONTENT_TYPE);
            //PrintWriter : Print formatted representations of objects to a text-output stream.
            //getWriter() : Returns a PrintWriter object that can send character text to the client.
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head><title>My First Servlet</title></head>");
            out.println("<body>");
            out.println("<p>The servlet has received a GET. This is the reply.</p>");
            out.println("</body></html>");
            out.close();
        public void doPost(HttpServletRequest request,
                           HttpServletResponse response) throws ServletException,
                                                                IOException {
            response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
            name = request.getParameter("user_name");
            pass = request.getParameter("user_password");
            boolean result = verifyPassword(name, pass);
            out.println("<html>");
            out.println("<head><title>LoginServlet</title></head>");
            out.println("<body>");
            if (result == true){
            out.println ("Hello " + name + ": Your login module is working great!");
            else{
            out.println ("Invalid user name or password");
            out.println ("</body></html>");
            out.close();
            // out.println("<p>The servlet has received a POST. This is the reply.</p>");
            //out.println("</body></html>");
            //out.close();
        public void configureConnection() throws SQLException {
        try{
        Class.forName("oracle.jdbc.OracleDriver");
        con = DriverManager.getConnection(DB_URL, DB_USERNAME,DB_PASSWORD);
        con.setAutoCommit(true);
        catch (Exception e){
        System.out.println("Connection failed: " +e.toString());
        public Connection getConnection() throws SQLException
        configureConnection();
        return con;
        protected boolean verifyPassword(String theuser, String password) {
        String originalPassword = null;
        try {
        con = getConnection();
        Statement stmt = con.createStatement();
        stmt.executeQuery("select password from login where uname='"+theuser+"'");
        ResultSet rs = stmt.getResultSet();
        if(rs.next())
        //>>
        originalPassword = rs.getString(1);
        stmt.close();
        if(originalPassword.equals(password)) {
        return true;
        else {
        return false;
        catch (Exception e){
        System.out.println("Exception in verifyPassword()="+e.toString());
        return false;
    }and created an HTML form to target this servlet
    <form action="/loginservlet" method="post">,
    when I enter the the credintials I get this output in the webpage :
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

    Thanks , yes it is added to the web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
        <description>Empty web.xml file for Web Application</description>
        <servlet>
            <servlet-name>LoginServlet</servlet-name>
            <servlet-class>oracle.servlets.LoginServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>LoginServlet</servlet-name>
            <url-pattern>/loginservlet</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>35</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
    </web-app>Anymore suggestions?

  • How to display html form information

    I know you can create an html form where visitors can input data and that data can then be sent to the specified email address. But I am wondering, is it possible to have this data that they enter create and displayed on a new page in a specified layout/template? As in, if I visit the site, and I enter my name, contact information, and maybe 2 pictures, is it possible to have this information displayed in a certain format on a new page for each visitor?
    Thanks

    when you posted this question you added information into a form and submitted it to be displayed on another page so I would imagine that it's possible.
    Step 1.) choose a server side scripting language.
    Step 2.) learn your chosen language.

  • Html Form

    Hellow to everybody, i got this problem.
    I will like to know, how to create an html form, to put on a
    unix server
    that dosent suport
    cgis, or asp.
    Is a simple html form, the one includes: name, phone, email
    and coments,
    and two butons, one for clear an the other for sent.
    Thanks to anyone, who can help me.
    David

    Does it support PHP? If so:
    http://www.avenuedesigners.com/blog/articles.php?ref=30
    If not, what type of SSS (server-side scripting is available
    to you)? If
    none, you're then stuck using the infamous "mailto," which
    isn't good:
    http://www.apptools.com/rants/mailto.php
    That, or using a third-party company to handle your forms.
    Let us know.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "david pc" <[email protected]> wrote in message
    news:e93c30$fee$[email protected]..
    > Hellow to everybody, i got this problem.
    >
    > I will like to know, how to create an html form, to put
    on a unix server
    > that dosent suport
    > cgis, or asp.
    >
    > Is a simple html form, the one includes: name, phone,
    email and coments,
    > and two butons, one for clear an the other for sent.
    >
    > Thanks to anyone, who can help me.
    > David
    >
    >
    >

  • Remove filter from Html Form Web part

    Hi,
    I've created a HTML form web part and connected it to a document library web part. It filters fine and as expected, but the only way I found to remove the filter is to reload the entire page. As I have several html form web parts on the page, filtering on
    different columns, that is a quite unsatisfactory method. Isn't there a value I can pass to the connected web part that just means "any". I've tried to send empty strings or '*' or even '[everyone]' (for the modified by column) but nothing works.
    Is there really no way?
    Thanks!

    Hi,
    For your issue, you can use the Text Filter Web Part. In the Text Filter Web Part, you can send empty strings to the connected web part which means "any":
    For more information, you can have a look at the blog:
    https://support.office.com/en-us/article/SharePoint-lists-VI-Exciting-ways-to-display-your-list-data-4f24f5a6-9a82-497e-8965-6b9f98e03a01
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Noob needs help with gradient

    I am having troubles duplicating this image. As you can see ( if I link to it correctly) this little green box (there are three across the top "service specials" for example) is lighter in the middle and darker on the top and bottom. I am tryng to ma

  • Windows Server 2012 R2 eval refuses to install

    I have downloaded Windows Server 2012 R2 evaluation ISO twice. I have tried installing it in VMWare Workstation 10, in VirtualBox 4.3.12 as well as on a Core2Duo E4200 test box w 4GB RAM. All 3 of these methods fail to install. They all result with t

  • Function module for converting the foreign currency to words

    hi, can anybody tell me about the function module for converting the foreign currency to words format. Like 25.50 USD should be "Twenty Five Dollar & Fifty Sents." foreign currency can be anyone like USD, JPY, EUR etc. Regards Nitin Varshney

  • Why can't Apple give us some feedback re blank purchased app screen

    There have been numerous complaints about purchased apps not being able to be downloaded due to blank screen. WHY CAN'T APPLE PROVIDE SOME FEEDBACK????

  • PO confirmation XML not created

    Good day We are experiencing some issues with our PO confirmations. When I say confirmations it is not the SES or GRN. In our system we create a SC in SRM this then gets approved in SRM and then a PO is created in the ECC backend. The XML is passed f