HTML Server Pages - an alternative to JSP

Your comments would be appreciated on an alternative approach for
developing web applications using HTML Server Pages (HSP).
Rather than convert the Server Pages to Java code, the approach
is to create the Server Page as an XHTML document and
process it as XML.
The id attribute is used to link the HTML tags to the servlet
code. For example:
<p id="greeting"> </p>
The servlet code uses a Framework based on the MVC design pattern. A
value is displayed by creating a Text Model object and associating
it with the id attribute.
The advantage of this approach is that the Server Page can be
validated against the XHTML DTD and there is a clear separation of the
HTML and Java code.
For more details see the Brill Software web site:
http://www.brillsoftware.co.uk
Thanks
Chris

Thank you 'maesj' and Robert for taking the time to post some very interesting comments.
Please find below my comments on the points raised.
Best Regards
Chris Bulcock
Also every page redirect, link goes through a kind of a commandservlet that processes the page?The HSP Framework follows the same approach as that used by the JSP Model 2 architecture. The entry point is a Java Servlet.
You can store and process JSP's as XML, too.The advantage of using XHTML is that a web designer can edit the pages using an XHTML aware editor such as Adobe GoLive and Preview them.
<p id="greeting"> </p>
What exactly does this do?The id attribute is used to connect the <p> tag with the dynamic content that is generated by the application. When displaying the page the Framework will get the Text Model that the application has created and insert the contents into the Text Element part of the <p> tag. If the Model contained "Hello World" the HTML sent to the Web Browser would be
<p id="greeting">Hello World</p>
How do you do loops?The HSP Framework supports a Table Model for the display of tables. The row HTML is duplicated for each row in the table.
I think it is a bad idea to use the id since this is normally meant to uniquely identify instances in an XML document. If you want to adhere to this rule you could easily insert the same contents twice in a single page.A number can be included in the id attribute to make it unique within the document. e.g. greeting-1, greeting-2.
Rather than duplicate the same content twice the common HTML can be placed in a single file and included in other pages as required. The <object> tag is used for this purpose.
How then does the data get into the XHTML element?The data is inserted by the Framework.
But you have to bind them together in some place.The id attribute is used to bind the XHTML tags to Model objects.
Plus: fixing the format to XHTML prevents such things as inclusion of other files. This OTOH would impove the options for a modular design.The XHTML <object> tag is used to include one file (View) within another. With the Brill Software web site the Menu bar and Footer are held in separate files and included into each page.
Unfortunately I did not find documentation there.The documentation is at:
http://www.brillsoftware.co.uk/bswebapp/bsservlet?cmd=DisplayCmd&view=UserGuide1
I would not buy such a framework since there are good and mature frameworks out there - for free.The cost of a framework needs to be considered in relation to the overall cost of a project. If a framework saves you time and effort it may be worth paying for. It depends on what value you place on your time and the time saved by using a particular framework.

Similar Messages

  • How do I set a breakpoint in a Java Server page (.jsp)?

    I have set up an application for remote debugging and am able to connect to it from JDeveloper. When the code execution comes to breakpoints that I have set in java (.java) files they work and the application stops so I can debug etc.
    This also applies to breakpoints set in java code that is called from Java Server pages.
    However if I set breakpoints directly in a java server page whether it is in html code or in java code (such as scriplets) the execution does not stop and the breakpoints are ignored.
    Why? Is there some extra thing I have to do? I have tried in Project Properties/Run/Debug/Profile/Edit/Launch Settings to choose server as Virtual Machine for instance but that does not change anything.
    Comment. I do not know if this is of interest but I am going to add some java server pages to an application and they are defined in a directory like this:
    . . . src\org\yawlfoundation\yawl\resourcing\jsf\jsp
    but when the tomcat deploys the .war file they end up here:
    . . . apache-tomcat-6.0.18\webapps\resourceService
    As I can find no package declaration in a .jsp file this should not matter but I mention it anyway.
    Edited by: user10477024 on Nov 25, 2008 5:32 AM

    Hi user10477024,
    thanks for explaining your background on what you are trying to do and I do understand the approach you are taking. Unlike user10689900's completely random post.
    I've tried to convey why there is no support for JSP debugging in JDev, but again the main reason is that the current frameworks do not code Java directly into a JSP. The JSP is purely used to position the components on the page aiding visual design and real Java classes in tag libs do the rest.
    So the evolution has been:
    Servlets (Java classes writing HTML logic and intermingling presentation and business logic)
    JSP 1.0 JSP (HTML looking) files where you can add scriptlets enclosed in <% ... %> <- you are here
    JSP 1.1 Introduction of Tags and Tag libraries, tag libraries are true java classes and the JSP controls layout and simpler more elegant design.
    Really JSP 1.1 is all about building reusable components together in tag libraries that can be reused across pages and improving design by not mixing presentation and business logic code together.
    If I had inherited something as you have, my advice (if you can) would be to code up some tag libraries because it would be a good learning experience and would be very helpful for moving to more advanced frameworks like JSF.
    regards,
    Brenden

  • Integration of PL/SQL and JSP (Java Server Pages)

    I need to match a web application developed with PL/SQL with another developed in JSP (Java Server Pages) the problem is that the two apps interact with the same databese, an share de same users, I need to know how to get the user and password loged into pl/sql when the user want to use same of de .jsp pages running on another application server?

    Hi Michael Vstling,
    Did you try the java classes library (SDOAPI) that can be downloaded from OTN?
    It may provide you with a better alternative when manipulating geometries in the Java space. There is an adapter in SDOAPI which can convert a JDBC STRUCT object into Java Geometry object defined in SDOAPI, and vice versa.
    There are at least two ways in mixing PL/SQL and Java. The first one, as you mentioned, is to define your custom function in terms of PL/SQL and call it from within your Java program. With SDOAPI, you have the second option, which is to define your own functions in Java using SDOAPI and deploy them as Java stored procedures in db. You can then call them from within your PL/SQL code. In either way performance depends on a lot of things and generally it requires a "try and improve" approach.
    About JPublisher and sdo_ordinate_array it may not be a spatial related problem. Did you try search the Java-related forums first?
    LJ

  • Code to set and destroy session variables in Java Server Pages(JSP)

    code to set and destroy session variables in Java Server Pages(JSP)
    we have use following statement to set session variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session variable
    session.setAttribute("userClient","");
    and
    the session.invalidate() is not working
    Plz. solve this probem

    code to set and destroy session variables in Java
    Server Pages(JSP)
    we have use following statement to set session
    variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session
    variable
    session.setAttribute("userClient","");Perhaps if you tried using
    session.setAttribute("userClient", null);
    or
    session.removeAttribute("userClient");
    and
    the session.invalidate() is not workingNot working how?
    >
    Plz. solve this probem

  • Displaying a picture or image in a java server page

    I am using tomcat to load my java server pages. I need to display a picture in the page. Can somebody help?

    The images are not located on my site, or computer, but rather they are located on different websites. This is what the browser recieves when the jsp runs:
    <IMG SRC="http://www.thesite.com/images/theimage.gif"/>
    and the site that is running the JSP is:
    www.mysite.com/jsp/PicPage.jsp
    Is this what you think maybe happening when the browser tries to process the linked image:
    www.mysite.com/images/theimage.gif
    I don't really understand the nuances of HTML, but if I specify a web address completely in the HTML then wouldn't that specified website be queried for the pictures by the web browser?
    Thank you for any help you can provide.
    John

  • Java Server Page Translation Error

    Hello !
    I'm new in JSP pages and i try to launch Hello.jsp on Java Web Server(2.0)
    I get the following error :
    java Server Page Transalation Error
    Error during compilation
    Can't load class : pagecompile.jsp._Hello
    With Hello.jsp :
    <html>
    <head>
    <title>My first JSP page
    </title>
    </head>
    <body>
    <%@ page language="java %>
    <% System.out.println("Hello World"); %>
    </body>
    </html>
    This is put in the directory public_html
    And and call it with http//myhostname:8080/Hello.jsp
    I really don't understand what the matter with that !
    Thanks very much to help me !

    Sorry i found this error.
    But i've another :
    The html page is generated but Hello World is not printed !
    Have you got an idea ?
    Thanks

  • Java Server Pages Programming Database Access Error Through Tomcat

    Question# 1
    I am trying to access MYSQL Database through JAVA Server Pages programming using Tomcat Server as web server on win xp.
    Whenever I give following url http://localhost:8080/jspBook/ch1/customers.jsp in web browser , I get followin errors.
    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
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
    org.apache.jsp.ch1.customers_jsp._jspService(org.apache.jsp.ch1.customers_jsp:96)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
    Apache Tomcat/5.5.15
    I am facing this problem since one month. I tried searching on google, but could not get concrete answer. I have configured mysqlconnector to connect to mysql and also configured other things in Tomcat's webapps folder. But I could not overcome this error.
    Please reply urgently. Thankz for the help and time. ?
    <!-- JSP Directives -->
    <%@ page import="java.sql.*" %>
    <%@ page contentType="text/html" %>
    <html>
    <head>
         <title>Insurance Quoting System</title>
    </head>
    <body>
    <basefont face="Arial">
    <!-- JSP Declarations -->
    <%! ResultSet rs = null;%>
    <!-- JSP Scriptlet -->     
    <%
         try {
              Class.forName("org.gjt.mm.mysql.Driver");
              Connection db = DriverManager.getConnection(
    "jdbc:mysql://localhost:3306/quoting");
              Statement s = db.createStatement();
              rs = s.executeQuery("select * from customer");
         catch (Exception e) {
    // For now, just report the error to the system log
         System.out.println(e.toString());
    %>
    <!-- Template text -->
    <table width="550" border="0" align="center">
    <tr>
    <td bgcolor="#006633">
    <div align="center">
              <font size="6" color="#FFFFFF"><b>Insurance Quoting System</b></font>
         </div>
    </td>
    </tr>
    <tr>
    <td>
    <p> </p>
    <p> </p>
    <p align="center"><b>Customers</b></p>
    <table width="290" border="0" align="center">
    <%
         try {
              while (rs.next()) {
    %>
    <!-- JSP Expressions used within template text -->
         <tr>
              <td width="20"><%= rs.getInt(1) %></td>
              <td width="70"><%= rs.getString(2) %></td>
              <td width="70"><%= rs.getString(3) %></td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=edit">edit
    </a>
              </td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=delete">delete
    </a>
              </td>
              <td width="40">
                   <a href="custMaint.jsp?id=<%= rs.getString(1) %>&action=newQuote">new quote
    </a>
              </td>
         </tr>
    <%
         catch (SQLException e) {
         // For now, just report the error to the system log
         System.out.println(e.toString());
    %>
    </table>
    </td>
    </tr>
    <tr>
         <td>
              <p> </p>
         <p align="center">New Customer</p>
         </td>
    </tr>
    </table>
    </body>
    </html>
    I have tried all possible configurations of classpath with mysqlconnectorj and Tomcat, but i could not find any solution. Plz help urgently. Thankz a lot.

    Your DB connection is probably failing
    As a result your result set "rs" is null when you get to it later on, causing a null pointer exception.
    Do you need to provide a username/password for your database?
    Have you configured your database to allow connections from localhost?
    If you haven't already figured it out, doing SQL programming in a JSP is bad practice. Put your SQL code into a java bean / class where it belongs.

  • Jrun 4.x with jdk 1.4 in eclipse java page not recognising from jsp call

    hi all,
    I have developed 1 web app. which includes JRUN 4.x, eclipse 6.6 and jdk 1.4.
    I have deployed the app. in IIS server also. and in config tool also.
    But when i run the application, it is not recognising the java page so, it is giving an error.
    it is sample page i am sending.
    i called the bean page directly also, but still same problem.
    my appl. strutucture
    ==============
    webRoot : test.jsp
    src : testbean.java
    test.jsp
    =====
    <%@ page language="java" import="java.util.*,testpack.*" %>
    <%!
    testbean test1 = new testbean();
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    </head>
    <body>
    This is my JSP page. <br>
    <%
    String s=test1.test();
    out.println("testing string="+s);
    %>
    </body>
    </html>
    java page
    ======
    package testpack;
    public class testbean {
         public String test(){
    return "test sucess";
    error
    ===
    500
    Translator.CompilationFailedExceptionCompiler errors:
    Found 1 semantic error compiling "C:/JRun4/servers/default/default-ear/default-war/WEB-INF/jsp/jrun__test2ejsp9.java":
    6. import testpack.*;
    <------>
    *** Error: Could not find package "testpack" in:
    C:\JRun4\servers\default\default-ear\default-war
    C:\JRun4\servers\default\default-ear\default-ejb
    C:\JRun4
    C:\JRun4\servers\default
    C:\j2sdk1.4.1_02\lib\tools.jar
    C:\JRun4\lib\jrun.jar
    C:\JRun4\lib\webservices.jar
    C:\JRun4\lib\macromedia_drivers.jar
    C:\JRun4\lib\mysql-connector-java-commercial-5.0.5-bin.jar
    C:\JRun4\lib\java2wsdl.jar
    C:\JRun4\lib\jrun-xdoclet.jar
    C:\JRun4\lib\jrun-ant-tasks.jar
    C:\JRun4\lib\jrunwizard.jar
    C:\JRun4\lib\jrunwizard-installer.jar
    C:\JRun4\lib\jspc.jar
    C:\JRun4\lib\migrate.jar
    C:\JRun4\lib\oem-xdoclet.jar

    On 07/20/2015 06:35 AM, Itzhak Hovav wrote:
    > hi
    > [snip]
    > [root@p22 eclipse]# cat eclipse.ini -startup
    > plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    > --launcher.library
    > plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
    >
    > -showsplash
    > org.eclipse.platform
    > --launcher.XXMaxPermSize
    > 256m
    > --launcher.defaultAction
    > openFile
    > -vmargs
    > -Xms40m
    > -Xmx512m
    > [snip]
    Try this: http://wiki.eclipse.org/Eclipse.ini. You should have read the
    sticky posts at forum's top for getting started help.

  • MS Access & MS SQL from a Java Server Page

    I'm new to JSP but I know how to write Active Server Pages and was wondering how to set up a JSP so that I can access data in my MS Access database and also my MS SQL server.
    Anyone have code snippets that connect to these two databases, retrieve and update data in a table?
    Also, what's the easiest way to deploy a JSP page, I've got J2EE, JDK, Tomcat, Apache installed not sure how to just deploy a JSP page so I can test it.
    Thanks in advance,
    dez

    the above connection example is ok, to deploy the jsp first you need of course
    Apache with some servlet container such Tomcat or Resin or JServ...
    For Tomcat there should be an folder in server root where the static pages are to be put
    (as htdocs in apache for example) for every application, and usually is webapps and in this folder
    you put another folder that will contain all of your stuff. In this folder, let say is named myapp, you
    can put the jsp's and html's. Yes you can simply put it there but for the jsp to work you need in
    this folder another one named WEB-INF that must have an xml file named web.xml where you must
    set up a lot of stuff for your web-application, you can for test just to copy it from
    wbapps\examples\WEB-INF\web.xml and
    delete everything between <web-app></web-app>. Then start or restart your web server and if the
    jsp is in webapps\myapp and it is named test.jsp then type in your browser:
    http://127.0.0.1:8080/myapp/test.jsp.
    Another thing: for the connection to work of course the connection parameters should be ok and the
    database connection driver should be put in the tomcats classes classpath.
    Just put it in webapps\myapp\WEB-INF\classes... where ... is of course the package folders.
    Hope I'd helped you a little bit.
    whiteadi

  • Why the J2EE server doesn't compile my JSP ?

    I made up a simple JSP to start learning J2EE, i tried it on an Java IDE on my PC and it works; when i try to deploy the page on my web site host server(supporting J2EE) and execute it, i got a blank page only.
    Browsing the Html code, i see the same code i wrote; the JSP special tags have not been executed.
    What's wrong ?
    Have i to deploy the page in a particular way, or it is a J2EE server problem?
    This is the simple page :
    <%@ page contentType="text/html"%>
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <%= "Java Server Page"%>
    </body>
    </html>

    Try this:
    <%@ page language="java" %>
    <html>
    <p><%= "Java Server Page"%></p>
    </html>You don't need to that content HTML stuff - the JSP knows that it's going to send HTML down to the browser.
    It works on my machine deployed in a WAR and running under Tomcat 4.1.27. Here's the HTML I get when I "View Source":
    <html>
    <p>Java Server Page</p>
    </html>Works fine. - MOD

  • WHAT ARE JAVA SERVER PAGES?

    Right now I am learning java on my own, and I have a question.
    What are Java Server Pages(JSP)?
    Thanks

    In short, they're standard HTML pages with embedded Java code to dynamically create pages based on values from the user, a database, or some other source. Search the java.sun.com site for a more detailed explanation, and examples too. Or, pick up a book.

  • Linking PL/SQL custom region into html db pages

    Hello,
    I have built an htmldb application with several pages, the first 7 of which contain html regions containing htmldb form items I created using the html db interface. I am able to step through the first 6 pages of my application, noting that the values of all the variables are saved when clicking from tab to tab.
    I created page 8 which contains a custom dynamic region, in which I used the PL/SQL web toolkit to create an html table, form, and several form fields in which to capture data.
    What I'd like to do is, link my custom region variables, etc. into the other pages that were generated by html db. The code snippet for my custom region is located below... After I navigate to my page with the custom region then click on Submit or even try to switch to another tab, I get the dreaded error: "The requested URL /pls/htmldb/wwv_flow.accept was not found on this server."
    I am learning this product and admittedly am just knowledgeable to be dangerous. There must be some way to link in the items on my form I created with the rest of the pages within the application.
    I am sure I'm missing an important piece. Has anyone else done something similar? Any ideas, or can you tell me if what I'm doing is not possible?
    In case you're curious, the reason I am writing my own region with PL/SQL using the WebToolkit, etc. is because our organization wanted an example of taking an html db page and porting it over for use in Portal.
    Thanks in advance for any comments.
    code snippet for my custom region:
    declare extracurtxt varchar2(500);
    worktxt varchar2(120);
    begin
    htp.htmlOpen;
    htp.headOpen;
    htp.title('Extracurricular, Community and Work Activities');
    htp.header(1,'Extracurricular, Community, and Volunteer Activities');
    htp.headClose;
    htp.bodyOpen;
    extracurtxt := 'Please list your principal extracurricular, community, church, and family activities and hobbies in order of interest to you. Include specific events and/or major accomplishments such as musical instrument played, varsity letters earned, etc. Please check those activities you hope to pursue in college';
    htp.small(extracurtxt);
    htp.formOpen(owa_util.get_owa_service_path || 'wwv_flow.accept');
    htp.nl;
    htp.nl;
    -- Test working with form elements in table now
    htp.tableOpen;
    htp.tableRowOpen;
    htp.tableHeader;
    htp.tableHeader('Grade level or','center',null,null,null,'5',null);
    htp.tableHeader('Approximate time spent','center',null,null,null,'2',null);
    htp.tableHeader('Positions held','center');
    htp.tableHeader('Do you plan','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableHeader;
    htp.tableHeader('post-secondary (PS)','center',null,null,null,'5',null);
    htp.tableHeader('Hours','center');
    htp.tableHeader('Weeks','center');
    htp.tableHeader('honors won,','center');
    htp.tableHeader('to participate','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableHeader('Activity','center');
    htp.tableHeader('9');
    htp.tableHeader('10');
    htp.tableHeader('11');
    htp.tableHeader('12');
    htp.tableHeader('PS');
    htp.fontOpen(null,null,'1');
    htp.tableHeader('per week','center',null,null,null,null,'small');
    htp.tableHeader('per year','center');
    htp.fontClose;
    htp.tableHeader('or letters earned');
    htp.tableHeader('in college?');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData((htf.formText('PT6_EXTRACUR_1','40','65',null,'id="P6_EXTRACUR_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_L9_1','0',null,'id="P6_EXTRACUR_L9_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_L10_1','0',null,'id="P6_EXTRACUR_L10_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_L11_1','0',null,'id="P6_EXTRACUR_L11_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_L12_1','0',null,'id="P6_EXTRACUR_L12_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_LPS_1','0',null,'id="P6_EXTRACUR_LPS_1"')));
    htp.tableData(htf.formText('PT6_HOURS_WEEK_1','3','3',null,'id="P6_HOURS_WEEK_1"'),'center'); htp.tableData(htf.formText('PT6_WEEKS_YEAR_1','3','3',null,'id="P6_WEEKS_YEAR_1"'),'center');
    htp.tableData(htf.formText('PT6_HONORS_1','25','45',null,'id="P6_HONORS_1"'),'center');
    htp.tableData(htf.formCheckbox('PT6_PARTICIPATE_1','0',null,'id="P6_PARTICIPATE_1"'),'center');
    htp.tableRowClose;
    --snip table has seven rows with associated variables.
    htp.tableClose;
    --WORK EXPERIENCE
    htp.header(1,'Work Experience');
    worktxt := 'List any job (including summer employment) you have held during the past three years.';
    htp.small(worktxt);
    htp.tableOpen;
    htp.tableRowOpen;
    htp.tableHeader; htp.tableHeader;
    htp.tableHeader('Approximate Dates','center',null,null,null,'2');
    htp.tableHeader('Approximate No.','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableHeader; htp.tableHeader;
    htp.tableHeader('Of Employment','center',null,null,null,'2');
    htp.tableHeader('of Hours','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableHeader('Specific Nature of Work','center');
    htp.tableHeader('Employer','center');
    htp.tableHeader('From','center');
    htp.tableHeader('Until','center');
    htp.tableHeader('Per Week','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData(htf.formText('PT6_JOB_1','25','45',null,'id="P6_JOB_1"'));
    htp.tableData(htf.formText('PT6_JOB_EMP_1','25','45',null,'id="P6_JOB_EMP_1"'));
    htp.tableData(htf.formText('PT6_JOB_FROM_1','20','30',null,'id="P6_JOB_FROM_1"'));
    htp.tableData(htf.formText('PT6_JOB_UNTIL_1','20','30',null,'id="P6_JOB_UNTIL_1"'));
    htp.tableData(htf.formText('PT6_JOB_HOURS_1','3','3',null,'id="P6_JOB_HOURS_1"'),'center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData(htf.formText('PT6_JOB_2','25','45',null,'id="P6_JOB_2"'));
    htp.tableData(htf.formText('PT6_JOB_EMP_2','25','45',null,'id="P6_JOB_EMP_2"'));
    htp.tableData(htf.formText('PT6_JOB_FROM_2','20','30',null,'id="P6_JOB_FROM_2"'));
    htp.tableData(htf.formText('PT6_JOB_UNTIL_2','20','30',null,'id="P6_JOB_UNTIL_2"'));
    htp.tableData(htf.formText('PT6_JOB_HOURS_2','3','3',null,'id="P6_JOB_HOURS_2"'),'center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData(htf.formText('PT6_JOB_3','25','45',null,'id="P6_JOB_3"'));
    htp.tableData(htf.formText('PT6_JOB_EMP_3','25','45',null,'id="P6_JOB_EMP_3"'));
    htp.tableData(htf.formText('PT6_JOB_FROM_3','20','30',null,'id="P6_JOB_FROM_3"'));
    htp.tableData(htf.formText('PT6_JOB_UNTIL_3','20','30',null,'id="P6_JOB_UNTIL_3"'));
    htp.tableData(htf.formText('PT6_JOB_HOURS_3','3','3',null,'id="P6_JOB_HOURS_3"'),'center');
    htp.tableRowClose;
    htp.tableClose;
    htp.formSubmit('P6_GO');
    htp.formClose;
    htp.bodyClose;
    htp.htmlClose;
    end;

    Thank you for your reply...
    I actually was probably not very clear about what I'm trying to do. Let me try to clarify and give more background info...
    I have found it very easy to utilize html db to create my web forms, and manage all the variables and session state for me. It is so easy to make a quick form, capture info in a few fields and then post it to the DB. I have found it very difficult to use, however, in terms of getting it to format things the way I wish them to be.
    For example: I cannot seem, for the life of me, to get it to wrap field labels. This results in oddly formatted tables. I have tried to utilize the stop and start html table controls, begin on new line, new field, colspan, rowspan, etc., but what I really need is for it to let me define the tables and field labels, as I have done so successfully with the PL/SQL web toolkit (the code snipped for this is in my first post). What I did unsuccessfully with my custom dynamic region was manage to incorporate my form fields into variables and session state that will be automatically managed by html db along with the other 6 pages in my application. I was perhaps, expecting code to write itself, in retrospect. I'm sure some coding will be necessary to bind my form fields to vars in my html db appl. But, after reading a blog by a Mr. Spledoni (forgive me if spelling is wrong,) I think I messed up by overlapping <FORM> elements in my custom region. I admittedly don't understand how html db renders the form elements and processes them behind the scenes. I do remember from the Portlet classes, however, that coding was certainly necessary to process the forms once submitted.
    Am I making sense?
    I guess I need to either figure out how to format field labels the way I want them to be, OR to be able to write a custom region in PL/SQL using the web toolkit and figure out how to incorporate the values captured within the region into items or variables within my application, all other pages of which are html regions with html db items within them (not dymanic PL/SQL regions).
    Thanks for reading this, I know it's tedious...

  • Java Server Page

    Good Day, Gentleman and Ladies
    I need help in Java Server Pages (JSP)
    I using Weblogic 6.1 as Development Environment.
    Developing in Macromedia Dreamweaver 4.
    When I preview using Dreamweaver, It can be display properly.
    But when viewing in Internet Explorer, it give following error
    unreachable statement - out.print("\r\n\t\t\t
    uses or override a deprecated API.
    Following is the statement in JSP Code
    <input name="<%=ParamName%>" type="text" value="" size="8">
                                  <a href = "javascript:show_calendar('parameterInputForm.<%=ParamName%>');"><img src="images/toolbar/calendar.gif" border=0 alt="Click to see calendar" align="abmiddle"></a>
    Could any kind souls please help me in it.
    Thank you very much, your help is deeply appreciated
    Luo_Sha_Zong_Zu

    Hi
    First, dont put msg with subjects like "Java Server Page". Put msg with subject showing the problem, like "unreachable statement - out.print("\r\n\t\t\t uses or override a deprecated API"
    Your problem is with the value of the var "ParamName". It has something with "return" and "tab". Check it

  • Using Java Beans in Java Server Pages

    Can we not use a method of Java Bean in a Java Server Page ?
    I am trying to retrieve the user email from a java bean method "getUserEmail". I am instantiating the class, but when I try to use that in JSP tags, I am getting an error.
    <jsp:useBean class = "formjavabean.application" id = "applicationId" scope = "session" />
    <%@ page import="java.io.*, java.lang.*" %>
    <%!
    String user = applicationId.getUserEmail() ;
    String f3 = "ftn03" ;
    String f3not = "ftn03 file not uploaded";
    ...........I am failing in debugging that, can anyone help plz ?

    Here is my whole code in parts:
    First the head section:
    <head>
    <title> Fastran </title>
    <jsp:useBean class = "formjavabean.application" id = "applicationId" scope = "session" />
    </head>JSP part in the body section :
    <%@ page import="java.lang.*, java.io.*" %>
    <%!
    private String f3 = "ftn03";
    private String f3not = "ftn03 file not uploaded";
    private String f7 = "ftn07";
    private String f7not = "ftn07 file not uploaded";
    private String f9 = "ftn09";
    private String f9not = "ftn09 file not uploaded";
    public String checkFile3()
        File ch3 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn03") ;
        if (ch3.exists() == true)
            return f3 ;
        else
            return f3not ;
    public String checkFile7()
        File ch7 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn07") ;
        if (ch7.exists() == true)
            return f7 ;
        else
            return f7not ;
    public String checkFile9()
        File ch9 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn09") ;
        if (ch9.exists() == true)
            return f9 ;
        else
            return f9not ;
    %>Java Script in the body section, using methods defined in the JSP part:
    <script type="text/javascript">
            function validate_file ( )
                    var file3 = "<%= checkFile3() %>" ;
                    var file7 = "<%= checkFile7() %>" ;
                    var file9 = "<%= checkFile9() %>" ;
                    if ( file3 != "ftn03" || file7 != "ftn07" || file9 != "ftn09" )
                        alert("Please upload the required file") ;   
                        return ("fastran.jsp") ;
                    else
                        return ("processForm.jsp") ;
            function validate_upload ( )
                    valid = true;
                    if ( document.val_file.filefield.value == "")
                            alert("Please select a file for upload") ;
                            valid = false;
                    return valid;
        </script>Finally the form and button part of the page, in the body section:
    <form name = "val_file" method="post" action="upload.jsp" name="submit" enctype="multipart/form-data" onSubmit = "return validate_upload();">
    Upload Files: <input type="file" name="filefield" >&nbsp&nbsp<input type="submit" name="submit" value="Upload"><br>
    <font color = "Red"><h5>(ftn03,ftn07, and ftn09)</h5></font><br><br><br>
    Files on the server :<br><br>
    <font color = "Green"><h5>
    <%= checkFile3() %><br>
    <%= checkFile7() %><br>
    <%= checkFile9() %><br>
    </h5></font>
    <br><br><br><br><br><br><br><br><br>
    <input type=button onClick="location.href='logintest.jsp'" value='Home'>  <input type=button onClick="location.href=validate_file()" value='Proceed' ><br>
    </form>Now try this:
    Change <%! to <%, or try using bean method as:
    String userEmail = applicationId.getUserEmail() ;..........and that is my problem. I would really appreciate any help, thanks

  • APEX on 10.2.0.3 & HTML Server from companion cd 10.2.0.1

    Hi,
    I am preparing to install Oracle Application Express(APEX) on already installed oracle 10.2.0.3 database on sun sparc(64) and hence I need to install Oracle HTML server also, as it's not already installed As I do not have access of Oracle 10.2.0.3 companion CD pack, Is it possible to download Oracle[b] 10.2.0.1 companion pack for sun sparc(64) from oracle download site and installed HTTP server instead of installing from 10.2.0.3 companion pack?
    Do you thing there will be any compatibility issues ??
    Appreciate your guidence.

    Hi Scott,
    Thanks for the reply. Sorry, I should have included in my example that I was using the begin and end code in the page processing section.
    I'm trying to execute a procedure because of a bug in htmldb that won't let me update a table accross a database link when using htmldb from a 10g database to a 9i database. I can do inserts but not updates.
    I was hoping that by executing a stored procedure that it would remove htmldb from the picture.

Maybe you are looking for