Alternative to HTML Frame in struts/jsp

I am using Struts/JSP for my application..
I have 3 panels(3 jsp's) each with a table of information.. each jsp has a summary part to it.. the data & information in the summary is the same across all panels.. Currently I've copy pasted the code for the summary in all 3 jsp's & Actions & ActionForms... I would like to change this to using a 4th panel sort of for the summary information... not sure what would be the best way to do this.. html frames or anything better maybe.. ?
Thanks

did u consider using struts tiles?
http://struts.apache.org/userGuide/dev_tiles.html

Similar Messages

  • How Can i use Html frames with  simple JSP???

    How Can i use Html frames with simple JSP???
    Actually i am creating an application in which i have used Index.html as frame.
    Noew i am trying that if i click on a link of one frame(say menu frame) the \result shoul come to some other frame(say frame named mainwindow).
    Hoe can i do like this???
    Anand Pritam

    Well i am using..
    < Base target="mainwindow">
    But it is no working is there some other way??

  • How to bring Login.jsp under a html frame ?

    hi all.
    I have customized the Login.jsp and actually have lot of static content to be displayed in our proposed entry page.
    I decided to use Html frames - something like the one below.
    When i point on the frame to the Login.jsp ( i referred it as 'amserver/UI/Login') --> it loads all frames then redirects the page to the /amserevr/UI/Login -> the Login.jsp now occupies the entire screen and i c none of the html frames..
    any idea how to bring in the portal Login.jsp under a html frame ?
    Thanks
    Vee
    <html>
    <frameset noresize="noresize" frameborder=0 rows="25%,70%,5%">
    <frame frameborder=0 noresize="noresize" src="/amserver/UI/Login" name="banner_frame" scrolling=no>
    <frameset frameborder=0 noresize="noresize" cols="30%,70%">
    <frame frameborder=0 src="./images/menus.gif" name="menu_frame" scrolling=no>
    <frame frameborder=0 src="./images/content.gif" name="content_frame" scrolling=no>
    </frameset>
    <frame frameborder=0 src="./images/copyright.gif" name="copyright" scrolling=no>
    </frameset>
    </html>

    is it possible to write jsp code or javascript code inside this Login.jsp ?
    I got a bunch of content - menu driven to displayed additional to the identity server login module.
    veera

  • HTML Frames not using custom scrollbar in Flex 3 mx:HTML

    I've been working on an app that uses a custom skin in Flex 3. The app has a help window. The help contains an HTML with frames. Problem is, the main app vertical scrollbar custom skin is being ignored for the HTML Frames scrollbar (what looks like the classic version of Halo - maybe). This only happens with frames. It happens no matter how or where I place my HTML or HTMLLoader. If I dont have frames the custom scrollbar is used. Is there a node im missing in my skin css (obviously not VScrollBar or ScrollBar - the two standard used by Flex)? or some other way to connect the HTML Frames scrollbar to my custom skin.
    I'm not a noob but not an expert.
    Thanks.
    See attached image for example.

    Take the code of the jsp file :
    <%@ page language="java" %>
    <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
    <html>
       <head>
         <title> First Struts Application </title>
       </head>
         <body>
            <table width="500" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td> </td>
            </tr>
            <tr bgcolor="#36566E">
              <td height="68" width="48%">
                <div align="left">
                  <img src="images/hht.gif" width="220" height="74">
                </div>
              </td>
            </tr>
            <tr>
             <td> </td>
            </tr>     
           </table>
           <html:form action="Lookup"
                      name="lookupForm"
                      type="wiley.LookupForm" >
           <table width="45%" border="0">
            <tr>
              <td>Symbol:</td>
              <td><html:text property="symbol" /> </td>
            </tr>
             <tr>       
              <td colspan="2" align="center"><html:submit/> </td>
             </tr>       
            </table>              
          </html:form>
         </body>
    </html>

  • Any success with html frames + JSF

    Hi all, did anybody succeed in building a JSF-based application which uses HTML frames ? If yes, could be an example (jsp pages) posted here ?
    I read that JSF navigation should not work with frames. If true, what about alternatives ? Facelets ?
    Thanks -- Renzo

    Well, it worked perfectly for me...
    index.html :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>InteliIdent 0.1a</title>
        </head>
        <frameset rows="10%,80%,10%">
            <frame name="_header" src="layout/header.jsp" noresize scrolling=no>
            <frameset cols="15%,*">
                <frame name="_menu" src="layout/menu.jsp" noresize scrolling=no>
                <frame name="_home" src="layout/home.jsp" noresize>
            </frameset>
            <frame name="_footer" src="layout/footer.jsp" noresize scrolling=no>
        </frameset>
    </html>Every page is simple JSP page, but it is also possible to use JSF pages by modifing the links to /faces/layout/footer.jsp" (if you JSF servlet is configured to listen to /faces/*) or /layout/footer.faces (if you JSF servlet is configured to listen to *.faces)

  • JSF seems not to support the use of the back buttons and html frames.

    I�m having the following problem. I have a JSP which contains a button that register a listener. Here is part of the code:
    <h:command_hyperlink label="<%=engineBean.getId()%>" commandName="<%=engineBean.getId()%>">
    <f:action_listener type="helloDuke.CommandAction"/>
    </h:command_hyperlink>
    This action listener only forwards the request to other simple JSP.
    The problem appears in the following situation:
    1 � I click in the button that generates the event that will be processed by helloDuke.CommnadAction listener.
    2 � It forward to a second JSP page.
    3 � This second page is rendered to the user properly.
    4 � The user clicks in the browser�s back button to return to previous page.
    Then if is the user clicks in first page button, the CommandAction listener was removed. You must click again in the button to forward to the correct page.
    The same happened if you are using html frames. If you have a frame with 2 pages and both pages register action listeners.
    The last loaded page cleans the actions listener of the other.
    Does anybody have any solution?.
    It seems JSF doesn�t support the use of frames and I think that in some situation the frames are the solution to several problems.
    Any help will be really appreciated.

    Using the saveStateInClient=true produces a faulty output when using the command_button and an action_listener. The page that is rendered is totally useless: the button won't work, and due to the faulty rendering there's an output like: >com.sun.faces.saveStateMarker
    So, why is it, that pressing the button (not using the saveStateInClient option) will only work the second time, same thing pressing the backbutton. Pressing the reload button will toggle between two pages - the one before the session id is assigned and the one that it's supposed to show.
    Any guess will be greatly appreciated !!!!

  • HTML Comments in a JSP Document

    I am writing a JSP Document that has a number of comments. Some I want to be server-side such as version history and some I want to be client-side.
    Using a JSP page this is easily achieved using JSP comments <%-- JSP comment for server-side --%> and HTML Comments<!-- HTML comment client-side -->.
    Using XML syntax a number of things are apparent:
    1. There is no XML equivalent of a JSP comment (this has been well doc'd for a long time).
    2. In the Java EE tutorials the recommended alternative to a JSP coomment is a HTML comment.
    3. Using HTML comments in a JSP document the web container omits these in the page output - and so they are server-side only just like a JSP comment.
    Code Snippet:
    <template xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" version="1.2">
    <!-- this comment will not appear in the generated source on the client browser -->
    </template>
    <!-- JSP fragment for no caching policy -->
    So, my question is how do I generate a client-side comment in a JSP Document?
    Thanks
    Edited by: DJT on Mar 3, 2008 4:28 AM
    Edited by: DJT on Mar 3, 2008 4:30 AM

    I found this ....
    http://www.javaworld.com/javaworld/jw-07-2003/jw-0725-morejsp.html
    One significant disadvantage of JSP documents is that no XML-compliant version of JSP comments exists. A JSP document developer can use client-side (HTML-/XML-style) comments or embed Java comments in scriptlets, but there is no JSP document equivalent to <%-- -->. This is a disadvantage because the other two commenting styles JSP documents can use have their own drawbacks. You can see the client-side comments in the rendered page using the browser's View Source option. The Java comments in scriptlets require placing Java code directly in the JSP document.
    So try to embed the HTML comment inside scriptlet tags...
    <%
    <!-- HTML comment here -->
    %>

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • How to use javascript functions in struts jsp page

    hi
    iam using struts jsp pages. here iam calling one javascript function. but iam not able to access the form in javascript.
    wat i have to give as form name to get the elements of the form.
    please reply me soon
    it is urgent
    vamsi

    your form has no name liek this one:
    <html:form action="/userRegistration.do" >so you cannot access the elements inside your form?
    accessing the elements inside the form will be like this:
    document.forms[0].propertyName.value;

  • Object Expected error in Struts JSP file

    Hi,
    I have a very simple JSP file as shown below.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <html>
    <head>
    <title>pqGlobalStoreProfile.jsp</title>
    </head>
    <body onLoad="getSessionData();disableFieldsLocale();">
    <html:form action="/pqGlobalStoreProfile.do">
    <table cellpadding=5 cellspacing=0>
         <tr><td colspan=2><h3><b>Pq Global Store/Modify Profile</b></h3></td></tr>
         <tr><td>Profile Key *</td><td><html:text property="profileKey"/></td></tr>
    </table>
    </html:form>
    </body>
    </html>
    It is throwing an "Object Expected' error at Line 9 Char 1.
    I am not sure about what is causing this error.
    Thanks.

    it's a Javascript error, cuz it's calling these 2 methods when the page loads...
    onLoad="getSessionData();disableFieldsLocale();"
    Where are these methods defined? Cuz I don't see any inline Javascript, nor a linked script.
    I hope you don't think that those onload functions are going to call Java code defined in the JSP page or something, cuz... well, they aren't.

  • COMMIT problem in TopLink, Struts, JSP and ADF Databinding sample

    In the sample Developing a J2EE Application using TopLink, Struts, JSP and ADF Databinding,
    I followed all the steps to build a department browse page and a edit page.
    But when I get to Step number 23 in "Create a JSP to Edit Departments" I have a problem with the commit.
    Only after I make a change in the form and click the sumbit button, the commit and rollback buttons become active. And After I click the commit button the data gets commited to the database but the page inofmation changes to the very first department record, not the current one.
    How do I make those buttons active with out the extra click on the submit?
    After I click the commit button, how do I keep the current data on the screen?
    Thanks for you help.

    Shay,
    Thanks for the reply.
    For #1, I was able to do the following and get away with not having to press submit first. I just removed the bindings for disable. I hope that does not cause any problems?
    <input type="submit" name="event_Commit" value="Commit" />
    <input type="submit" name="event_Rollback" value="Rollback" />
    For #2, How I add an action on an HTML button? My UIModel.xml for the edit department page currently has two actions on it. Commit and RollBack. Is it linked through the "name" attribute of the input tag?

  • Accessing ApplicationModule in Struts/JSP application using JDev 11g TP3

    Hello All,
    I am using Oracle JDeveloper 11g Technical Preview 3
    I got one "AppModule" created under my (Struts/jsp) project "MODEL" structure.
    Now, how can I access that ApplicationModule in my Action Class
    BC4JContext bc4jContext = BC4JContext.getContext(request) is not working, returns null everytime,
    Can anyone please let me know, how can I achieve this?
    Thanks
    user625610

    Hi don't know your name,
    if you get null from BC4JContext.getContext(request) you should check you configuration. Check your web.xml file where you should see something like...  <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>mapping</param-name>
          <param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
        </init-param>
        <init-param>
          <param-name>BC4JDefinition</param-name>
          <param-value>your_model_project_name</param-value>
        </init-param>
    ...The init parameter BC4JDefinition is used to set up the context in the BC4JRequestProcessor class. My guess is that you don't have this parameter in your web.xml (or are pointing to a wrong name). the value should be the name of the cpx file without the .cpx you have in your viewcontroller project.
    If you have migrated your project from JDev 10.1.2 you should check the 10.1.2 web.xml against the 11TP3 web.xml after the migration. The servlet part should be identical.
    Timo

  • [freelance job] Experienced ADF/Struts/JSP View-Controller developer

    Hi,
    I'm looking for a freelance "10.1.2 JDeveloper":
    - First task: Development of multi-lingual Struts View and Controller for login, logout, contact, free registration(create/modification of account info, new password, ...) pages.
    Period: may, june 2005 and more if first collaboration is succesful.
    Skills on following technologies are required:
    - View: Struts tags , Struts-el tags , JSTL , JSP , Servlets => no javascript, no UIX, no faces
    - Controller: ADF/Struts
    - Model: Oracle ADF-BC 10.1.2 Oracle 10g Database
    We provide the static html pages + css files and the ADF-BC model components.
    We develop/enhance the Model service methods based on your requirements.
    You "translate" the static html pages to Struts/Struts-EL/JSTL/JSP and the necessary ADF-Struts controllers that inter-act with our ADF-BC Model.
    Contact: [email protected]
    Regards
    Fred
    PS Sorry for polluting this technical forum with this kind of request.

    Dear all..
    I have change the block program, but still can't run..
    My EmpAction.java like these
    ==============================================
    package BindTest7.view;
    import BindTest7.model.EmpViewImpl;
    import java.text.DateFormat;
    import java.text.ParseException;
    import
    oracle.adf.controller.struts.actions.DataActionContext;
    import
    oracle.adf.controller.struts.actions.DataForwardAction;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.ViewObject;
    import java.util.Date;
    public class EmpAction extends DataForwardAction
    protected void prepareModel(DataActionContext ctx) throws Exception {
    super.prepareModel(ctx);
    ctx.getBindingContainer().findIteratorBinding("FindEmpView1Iterator")
    .setFindMode(true);
    public void onSearch(DataActionContext ctx) {
    ctx.getBindingContainer().findIteratorBinding("EmpView1Iterator")
    .executeQuery();
    //-public void onFilter(DataActionContext ctx)
    //recovery view
    ApplicationModule
    am=ctx.getBindingContainer().getDataControl().getApplicationModule();
    ViewObject EmpView=am.findViewObject("EmpView");
    //recovery dates
    String
    d1Str=ctx.getHttpServletRequest().getParameter("hiredate");
    String
    d2Str=ctx.getHttpServletRequest().getParameter("endDate");
    java.text.SimpleDateFormat formatter =
    new java.text.SimpleDateFormat("dd/MM/yyyy");
    Date d1=null;
    Date d2=null;
    // parse method could try a ParsingException,
    // it doesn't happpeend when dates are correct
    try
    d1=formatter.parse(d1Str);
    d2=formatter.parse(d2Str);
    catch (Exception e)
    //set where clausole
    EmpView.setWhereClauseParams(null);
    EmpView.setWhereClause("Hiredate>=:1 and Hiredate<=:2");
    EmpView.setWhereClauseParam(0,d1);
    EmpView.setWhereClauseParam(1,d2);
    EmpView.executeQuery();
    ===============================================
    Please help me....
    I just want to make a little modification on Steve Muench's Example
    by placing two input form for hiredate column so that
    the user only put the date
    on the query " between hiredate :1 and :2
    I'm waiting...
    regard
    erie

  • What do I download for Struts/JSP/Hibernate?

    My organization has purchased a five-user license for "Workshop" and I would like to use it for Struts/Hibernate/JSP development. However, it's not clear what I need to download and install.
    I tried downloading and installing both of these files:
    workshopstudio102_win32.exe
    workshop102_win32.exe
    In both cases, after the dust settled there was no application called "Workshop" on my Windows XP system.
    There is now something called "WorkSPACE Studio 1.1." ("Space," not "shop.")
    What is "WorkSpace Studio?" I never heard of it before I ran this installer.
    What is the difference between "Workshop Studio" and "Workshop for WebLogic?"
    What do I download to get Eclipse-based Struts/JSP/Hibernate development tools?
    How do I install it?
    Thanks,
    Ethan
    Edited by ethanmichaels at 03/26/2008 4:48 PM

    Hi Ethan,
    The license you have purchased is for WorkshopStudio 10.2
    This allows you to develop Struts/Hibernate/JSP applications against both BEA and non BEA servers.
    Workshop for WebLogic allows users to develop applications against BEA WebLogic Servers and does not require a special license
    More information on Workspace Studio is available at http://edocs.bea.com/wlw/docs102/workspaceFAQ.html
    Hope this helps
    cheers
    Raj

  • FREEEEE struts/jsp editor plugin for Eclipse

    Hi guys,
    I am tired of searching for struts/jsp editor plugin for Eclipse. I tried the trail version for Exadel, My eclipse, Lomboz, but none of them are good enough. I dont want to pay for a plugin.
    So I downloaded Netbeans IDE which has good support for struts. But I dont want to change my Eclipse IDE because its much better.
    In case you are already using a good struts/jsp editor plugin for Eclipse then please advice me ASAP.
    I dont want to type up the code like <html:text or wait for runtime compilation to realize that there is a problem in the syntax. Wouldnt it be a lot better if the IDE help us reduce the development time.
    Thanx
    Rohit Kumar

    Thanx for your reply.
    I used JDeveloper with Oracle many years back. That time I found it to be slow. Maybe it must have improved by now.
    Today I downloaded EasyEclipse which is built on Excipse 3.1
    EasyEclipse
    http://www.easyeclipse.org/site/home/index.html
    EasyEclipse Plugins
         -----> Amateras JSP, HTML, XML editor
         -----> Weblogic Server Plugin for Eclipse
         -----> JBoss IDE
         -----> J2EE Tools
         -----> ....................
    http://www.easyeclipse.org/site/plugins/index.html
    I would say WOW. It satisfies most of my needs. Maybe all u guys might wanna try it too.
    Regards
    Rohit Kumar

Maybe you are looking for

  • Fault in initializing asynchronous process

    Hi Guys, As many posts and articles suggest, asynchronous process is better because of its flexibility. I am very happy with it until I encounter the following problem. We do the fault handling on all of our processes, using both the catch and fault

  • About mackeeper how can i stop it disturbs me

    hi sir i have a problem with my macbook pro 13 mid 2012. whenever i open a page it opens another page for mackeeper and i have never dawnload it. i try evertime to escape it but now the notebook start to slow down please how can i stop any idea help

  • CALL_FUNCTION_REMOTE_ERROR - Logon not possible (error in license check)

    Hello, We are getting the following dump in production system -SAP ECC 6.0. The wp s are getting terminated automatically as shown in dev_disp file. Sun Aug 10 12:15:38 2014 DpHdlDeadWp: W2 (pid=25722) terminated automatically Sun Aug 10 12:16:46 201

  • Size in JTable

    Hi! I have a little problem with JTables. If I want to show more than 20 files (it�s 20 because of the size of the window, this number is not important), it only shows a certain number of them, the others don�t appear. The autoscrolls field is "true"

  • OBIEE 10G count distinct problem

    Hi, I am really new to OBI now runs into this problem. I have a fact and three dimension tables as follows: fact: 1. sales: sold_vlaue (sum) transactions (count distinct receipt_id) branch_id (foreign key) daykey (foreign key) receipt_id (foreign key