Implementing Frames in Struts

I have an application that I have developed using the struts framework. I have a search page in here which consists of combo boxes, calendar and text boxes. This page is searchPage.jsp . From this page the results come in either a 'schedule.jsp' or a 'detailschedule.jsp' depending on the input given. This application works without error.
The problem is when i try to implement this using frames.
I put the 'searchPage.jsp' on the top frame and the lower frame is the target fame. the whole page is named 'searchResults.jsp'.
<frameset rows="38%,*">
     <frame name="top" src="http://localhost:8080/balloon-new/searchPage.jsp" target = "bottom">
     <frame name="bottom">
</frameset>
I have made necessary changes in the struts-config also for the changes to reflect. But when my application moves to this 'searchResults.jsp' i m getting the following error:
javax.servlet.ServletException: Cannot find bean searchPageForm in any scope
searchPageForm refers to an Action Form that I am using .
I would be really grateful if u could tell me how to solve this and work out frames well in struts.
Thanks.

leopala79 wrote:
Hello Friends,
We are developing a new application using Struts. i.e. i have a left side menu a header and footer and a Body. Left side menu consits of 10 links. when we click on each link only the body should change and the left side , header and footer should remain.
Can someone help me in this matter
Thanks and Regards,
LeoI recommend you learn some basic HTML before you try your hand at programming. In any case, your question has nothing to do with either Java or Struts and doesn't belong here.

Similar Messages

  • How to implement paging in struts

    is any body tell me how to implement paging in struts. because it works on action not on page URI.

    u will get so many TLDs' for this. just go googe

  • Implementing SOA in Struts

    Hi All,
    I am new to Web Services, and can any one help me with some articles where I can find how to implement SOA in struts for an webservice.

    Hi Mohit,
    I have got one link which has some information regarding SOA implementation.
    May be it will help you.
    http://www.eweek.com/article2/0,1895,1781147,00.asp
    Reward points if useful...
    Regards,
    Mandeep.

  • 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

  • How to use frame in struts

    Hi all,
    I am using Struts framework.
    I have two part in a jsp page, in which i am getting data from previous page by using request.getParameterValues("date");
    i.e i am getting multiple date.
    Now in first part of jsp page i have checkbox tree ,where user can select checkbox, then click on submit .Now on click submit data will pass second part of jsp page.where with checked data
    and date i have to do some process.
    it is like frame type structure, where data from one frame will pass in second frame in jsp page.
    I request to all JGuru to guide me how to do it.
    Deepak

    Just let it access the request parameters the same way? Using HttpServletRequest#getParameter() and so on.

  • How to implement frames in dashboards?

    hey guys i want to implement a dashboard with html frames. i could not find a way to do it. the frames should be such that..
    frame 1 - contains some static information which remains unchanged for any information displayed in frame 2
    frame 2 - is dependent on frame 1 for a prompt value. otherwise the display might change with drill down options or navigation options on the tables displayed in this frame.
    thanks in advance for the help

    Not sure why you must have HTML frames...
    What exactly are you trying to do?
    There is a Static Text object in Dashboards you can use for your unchanging text. Also, if you click on "Contains HTML Markup," you can include HTML.
    Not sure what you mean for "frame 2." Are you trying to protect the value of a prompt that is being used to filter a report in "frame 2"? You can do this as well. Simply click on the filter and choose "protect filter." This will keep the filter from being overwritten.
    See if the above helps you.

  • Simulate frames using struts?

    Hi,
    I'd like to create a webpage composed of 3 smaller pages, each of which would be able to have forms submitted/be refreshed, etc. individually. Is this possible to do with struts alone? I'd rather not actually use frames, but I'm not sure if this can be done without them.
    Thanks

    It appears that AJAX on top of Struts will be the best way to go about this...it seems there are some limited tutorials on the net..hopefully one will have some good information.

  • Error while creating Frame work Purchase order

    Hi Gurus,
    We are trying to implement Frame work order process with following configurations.
    1)Item cat  B for acc assingment Y
    2)Allow  item catg B with acc *** K and Y.(How to config this in SPRO)
    So when i am creating a PO adopted through Purchase Req (account ***  K and item cat B) i am getting error message "Pricing Error :Mandatory condition NAVS is Missing".So how do i configure this pricing process.
    Also when i am creating a Frame work order do i need to select the document type both in PO and PR as frame work order or NB order type will work with these config of Item cat B and acc *** Y?
    When i am creating a PR or PO with doc type frame work order the order unit is automatically populating as "AU" is this something std or do i have to do anything in configuration?
    When i created a PO with ref to PR aith account *** K into the PO and add the item category B the charging information was not maintained so how to maintian this?
    How to maintain the accounting info from PR?
    Also if there is a complete process link releated to config of frame work order that will be great.
    Thanks in Advance.

    Hi
    We are trying to implement Frame work order process with following configurations.
    Item cat B for acc assingment Y
    Create new acct assignment category in IMG -MM - Purchasing -Account Assignment - Maintain Account Assignment Categories (If you are sure of fields to be used then you can directly create Y, if not then copy existing category say K to new one and choose required fields)
    Allow item catg B with acc *** K and Y.(How to config this in SPRO)
    In Purchasing - account assignment - Define Combination of Item Categories/Account Assignment Categories - set combination for Y and B.
    Hope your documement types (PO & PR) allows item category B.
    So when i am creating a PO adopted through Purchase Req (account *** K and item cat B) i am getting error message "Pricing Error :Mandatory condition NAVS is Missing".So how do i configure this pricing process.
    Check the pricing procedure in IMG - Purchasing - Conditions - Define Price Determination Process - Define Calculation Schema - Check for calculation schema - NAVS has been maintained.
    Also when i am creating a Frame work order do i need to select the document type both in PO and PR as frame work order or NB order type will work with these config of Item cat B and acc *** Y?
    You need to choose document types while creating purchase transactions. If that document type doesnt support item category B- then you will get an error message.
    When i am creating a PR or PO with doc type frame work order the order unit is automatically populating as "AU" is this something std or do i have to do anything in configuration?
    For services (D category) we define AU as default unit (IMG - MM - External Services Management - Source Determination and Default Values - for Client/for Purchasing Organizations)
    When i created a PO with ref to PR aith account *** K into the PO and add the item category B the charging information was not maintained so how to maintian this?
    How to maintain the accounting info from PR?
    create Framework requisition and then copy it to a PO.
    Thanks

  • Is this possible to access arbitrary frame and to modify the mask?..

    Sorry for a bit messy discussion title. Please, let me explain.
    I have some experience in implementing video processing algorithms, but as our own software and never under AE. Now there is an idea to implement something for AE and first of all, I'm curious, if this is possible at all.
    1) When processing the n-th frame, I need the full access to the data of (n-k)-th and (n+k)-th. Is this possible to do in general case? Or the only variant is to implement frames buffering during the first pass?
    2) Our algorithm uses the mask as one of the inputs. But in contrary to the usual case, mask does not define an area of interest. In any case the full frame is processed, but the processing differs for different regions, depending on mask. In our software, it works like this: user defines a mask (and some parameters). Then effect is slightly modifying (let say – refining) the mask during the render and renders final images. After this user can modify the mask somehow again if he/she is not satisfied with what algorithm has done. Can I produce the same workflow in AE? The only way is using a drawbot (this means CS 5.5 and higher)? And what if I want masks to be raster images?
    The second question in the framework of this one is how to do two video inputs for an effect (first – the video to be processed and second – the mask (grayscale sequence in general case))?
    The possible workflow is that user provides trivial mask – lets say, the black solid. But even during the first pass effect should produce the mask, according to its sight to the video – so, it should somehow substitute the black solid with the sequence on black'n'white images. Is this all possible in AE?
    3) Is this possible (should be, I guess) to implement multipass algorithms? How the preview works then, if I need, for example, to pass all the video length 3-4 times, to produce the final render?
    I can expect that all this is solvable in AE, but may be experienced users could be so kind to give me some basic recommendation on how to do this. Looking through the PDF, which accompanies the SDK has not allowed to come to a distinct answer for the question: is this possible or not. So, I rely on your consultation.

    hi Theofil Mulony, welcome to the forum!
    in short, yes, what you want to do is possible, but some parts may be tricky.
    and now the long version:
    1) When processing the n-th frame, I need the full access to the data of (n-k)-th and (n+k)-th. Is this possible to do in general case? Or the only variant is to implement frames buffering during the first pass?
    you can access the pixel data of any layer at times other than the currently processed time. this concept of getting that data is referred to as "layer checkout" in the AE SDK, and "wide time" is the name of getting pixel data at times other than the current.
    the following thread discusses the difference between two methods of getting such data:
    http://forums.adobe.com/message/4033930#4033930
    you can also look at the "checkout" sample project to see how both concepts are implemented.
    2) Our algorithm uses the mask as one of the inputs. But in contrary to the usual case, mask does not define an area of interest. In any case the full frame is processed, but the processing differs for different regions, depending on mask. In our software, it works like this: user defines a mask (and some parameters). Then effect is slightly modifying (let say – refining) the mask during the render and renders final images. After this user can modify the mask somehow again if he/she is not satisfied with what algorithm has done. Can I produce the same workflow in AE?
    masks in AE generate a matte by default. the user can turn that mask off, so that the shape remains, but the mask does not... mask. (you can also set the mask mode to "none" via API commands).
    you can then read the "off" mask attributes and either render using an API command (see "pathmaster" sample to see how), or write your own algorithm if the API constraints on that operation are a problem for you. (and there are a few constraints on rendering masks in the API)
    now. when you say "modifying the mask" do you mean you modify it's generated matte, or do you mean change it's defining vector?
    both are possible, but completely different.
    if you turned the mask off, and rendered it's alpha yourself, then you can modify that alpha as you wish.
    if you want to use AE's generated matte of the mask and change the mask's outline shape, then you need to look into "streams" and the "mask outline suite".
    the user can modify a mask's shape as he/she pleases, unless you lock that mask or otherwise sabotage the user's operation.
    The only way is using a drawbot (this means CS 5.5 and higher)?
    drawbot is the API for drawing over AE's interface in CS5 and up.
    it's only a drawing tool. previous versions used OS drawing tools. that's all the difference.
    what i think you're asking is weather you need to create the mask drawing/handling capabilities or not.
    the answer is: you can, but you don't have to.
    unless you need control over the mask drawing that AE's existing masks don't have, i would have used AE's masks and not create a brand new mechanism (that the user need to learn as well).
    if you insist at creating a custom UI for drawing masks, the "CCU" sample project would be a good place to start the research.
    (just don't come crying to me when you get a splitting head ache)
    And what if I want masks to be raster images?
    The second question in the framework of this one is how to do two video inputs for an effect (first – the video to be processed and second – the mask (grayscale sequence in general case))?
    The possible workflow is that user provides trivial mask – lets say, the black solid. But even during the first pass effect should produce the mask, according to its sight to the video – so, it should somehow substitute the black solid with the sequence on black'n'white images. Is this all possible in AE?
    by default, "effect" plugins (as opposed to AEGPs) get only one input - the image of the layer, post masks and previous effects (but before transformations).
    you can put as many "layer param"s in your effect and let the user select any number of other layers, which you can the "checkout" and use as second inputs.
    you can also checkout other layers without the user selecting them manually.
    however, checked out layer results are pre-masks and effects. so if the user draws a mask over a black solid, you will not be able to read the "post mask" image unless the user pre-composes the layer with the mask inside the pre-comp. it's a common practice for users to do so, as many effects rely on a second input, and that's the only way to make the input pos-masks and effects. (so it's no biggie from the user's point of view)
    in the same manner, you can read any layer's image and use it as a mask.
    you get the image buffer, so it's up to you to decide whether to use the alpha channel of that image or the rgb (or any other method you see fit).
    3) Is this possible (should be, I guess) to implement multipass algorithms? How the preview works then, if I need, for example, to pass all the video length 3-4 times, to produce the final render?
    AE doesn't do multi pass rendering.
    it actually can render arbitrary frames, in no particular order.
    but as you already saw, you can access the image data from any time - of any time, so you can emulate passes.
    if you need to fly through the whole sequence for every frame, that would of course be very time consuming and wasteful.
    in such a case, you can try to do these passes only once, when effect is implemented, and cache the results.
    look up "sequence data", to see how to manage memory specific to a single instance fo you effect.
    but i must say that if you have to do full length scans of the footage, a couple of times over, and cache EVERYTHING, then you're in a bit of a problem in AE.
    it's just not set up for such rendering logic.
    not impossible, but highly inefficient in the AE rendering pipeline.
    there is a lot more to al of the above, but i hope this gave you a clearer picture of how things are in AE.

  • JSF Tiles and Struts ActionForward

    Hi All
    I would like to use Tiles with my JSF application.
    In order to get the best from Tiles i would like to use definitions.
    the problem that most of the power of Tiles and definitions is coming from the use of ActionForward.
    Does any one now how i can implement ActionForward with struts definition name in the Navigation in JSF.
    I understand that i need to hack the Navigation model and get the Tiles bean from the Tiles using the outcome value.
    Then i know that i need some how to get the tree that generates and forward it to the JSF or somthing like this.
    Does any one have an idea how to do it???
    Thanks
    Noam

    hi,
    in MyFaces there is an example using JSF and Tiles.
    MyFaces provides a custom ViewHandler faciltity.
    see http://sourceforge.net/projects/myfaces
    hope that helps.
    Regards,
    Matthias

  • Best way to inject EJB's in Struts 2

    Hi all,
    I'd like to ask you what do you think is the best way to inject EJB's in Struts 2 Actions (and perhaps other struts classes such as type converters).
    I've read and implemented both a Struts 2 Interceptor and used CDI. About CDI I've read there's a discussion whether the injected resource should be a private field or injected through the constructor which would help testing.
    Personally I seem to prefer CDI as it looks a bit simpler after you are familiar a bit with the technology.
    What is your preferred solution and why?

    Make sure you are using JDeveloper with a "regular Oracle DB" and not Oracle XE - Oracle XE doesn't have support for JPublisher.
    And make sure you are trying to invoke this from the database navigator window and not from the connection manager of your application.
    Anton - I think you are mixing JPublisher with something else - maybe with Java stored procedures?
    JPublisher just creates a JDBC wrapper that calls the functions in the DB - it doesn't run inside the DB so I don't get your point about the mini JVM?
    So it basically does exactly what you recommended: "access PL/SQL procedures from java directly?"

  • Creating Frames in iWeb

    I creating websites on iWeb, my client has asked if I can create what is essentially a frame. I never have really worked with frames before, and was wondering if it is at all possible to create on in iWeb. I may not use it at all, but I would like to see what it might look like.
    Thanks in advance,
    Jordan, Meow =3

    here is reference w3.org to frame element: http://www.w3.org/TR/html4/present/frames.html
    I creating websites on iWeb, my client has asked if I can create what is essentially a frame.
    iweb does not have way to implement frame element.
    but can be done with javascript and knowing frame element (without post editing), here is my sample:
    http://temp.cyclosaurus.com/BkgndMusic/Welcome.html
    there are two frames in my example.
    ot reply is reference to iframe (inline frame element) which is very different from frame element.
    here is w3.org reference to iframe: http://dev.w3.org/html5/markup/iframe.html

  • JSF vs. Spring vs. Struts - any comparison info ???

    Hi
    I am looking at any articles or posts that compare and contrast the 3 MVC frameworks (JSF, Struts, and Spring)..
    Thanks
    Z

    Both Equinox and AppFuse have their web layer implemented using JSF, Struts, Spring MVC, Tapestry and WebWork. You can choose which framework you want to use when using these projects to start your next webapp.
    http://appfuse.dev.java.net
    http://equinox.dev.java.net
    Also, the next chapter in Spring Live (www.springlive.com) will cover all 5 of these frameworks and how to integrate them with Spring for your middle-tier. More information at:
    http://jroller.com/page/raible?anchor=revised_update_chapters_schedule
    Hope this helps,
    Matt
    Disclaimer: I'm the author of Spring Live and founder of both AppFuse and Equinox.

  • How to perform logical comparison using struts

    Hi all, I know this is probably not the best forum for a question regarding struts, but am sure most developers here are familiar with it.
    how do you implement this using struts logic present or logic no present tags ?
    if ((a != null ) && (b != null))
         // perform operation
    else
         // perform altername operation
    I am familiar with the stuts logic tags but not sure about the nesting levels to perform this type of operation.
    Cheers

    <logic:present name="XXXXForm" property="a">
         <logic:present name="XXXXForm" property="b">
              // perform operation
         </logic:present>
    </logic:present>
    <logic:notPresent name="XXXXForm" property="a">
         <logic:notPresent name="XXXXForm" property="b">
              // perform altername operation
         </logic:notPresent>
    </logic:notPresent>
    /code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Struts Conditional Validations

    Hi All,
    I am doing client side validation using struts frame work (struts 1.3).I wrote validations for a jsp
    JSP
    It’s having 2 radio buttons, 2 DIV.Based on the user selection I am showing DIV.
    Logic:
    If(radio== BusinesslegalEntityDIV)
    Then show BusinesslegalEntityDIV
    Else If(radio== IndividuallegalEntityDIV)
    Then show IndividuallegalEntityDIV
    <html:radio name="LookUpSearchForm" property="lookByIndOrBusiness"  value="BusinesslegalEntityDIV"    onclick="javascript:showDiv(this.value);">
    </html:radio>
    <html:radio name="LookUpSearchForm" property="lookByIndOrBusiness"  value="IndividuallegalEntityDIV"  onclick="javascript:showDiv(this.value);">
    </html:radio> 
    <div style="display: none"  id="IndividuallegalEntityDIV">
            <html:text property="UserlastName" size="33" maxlength="25"/>
    </div>
    <div style="display: none"  id=" BusinesslegalEntityDIV ">
            <html:text property="BusinessEntityName" size="33" maxlength="25"/>
    </div>Validations.xml
    <form      name="LookUpSearchForm">
    <field property=" UserlastName " depends="validwhen">
    <arg key="UserlastName"/>
          <var>
                  <var-name>test</var-name>
                  <var-value>((lookByIndOrBusiness=="IndividuallegalEntityDIV") and (*this* == null))</var-value>
             </var>
    </field>
    <field property="businessEntityName" depends="validwhen">  
                 <arg key="businessEntityName"/>
                        <var>  
                         <var-name>test</var-name>  
                         <var-value>((lookByIndOrBusiness== "BusinesslegalEntityDIV") and (*this* == null))</var-value>
                         </var>                          
                </field>
    </form>If I Selects Radio BusinesslegalEntityDIV then its asks for UserlastName,similarly if I select radio IndividuallegalEntityDIV then its asks for businessEntityName.Which I don’t want.

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:219
    Put onKeyUp="Check(this)" in the Tabular Form Element attributes box for the COMM field.
    Put the following script in the Region header
    <script type="text/javascript">
    function Check(pComm)
    var comm=pComm.value;
    var sal=pComm.parentNode.previousSibling.getElementsByTagName('input')[0].value;
    if (Number(comm)>Number(sal)) {
      alert('Commission cannot be greater than salary!');
      pComm.focus();
    </script>Enter a number like 3000 in the COMM field on the first row, you will get the alert box. Be sure to click OK on the Alert box and not hit Enter. :-)
    But I agree 100% with Chris, these kind of data validations need to be enforced on the server as well as the client. If some other front-end is written on the same tables, you don't want to compromise data integrity if that front-end "forgets" to enforce this business rule.
    Hope this helps.
    Message was edited by:
    Vikas

Maybe you are looking for

  • Server 2012 Local Shares - Cannot access using \\IP but works via \\localhost

    I've been stuck on this problem for the last couple of days and I can't find a solution on the internet that works. I have a Windows Server 2012 instance running on Amazon AWS with a public IP address. I am using it as an SCCM (System Center 2012 Con

  • Swap the Tabs in Task (Cprojects 4.5)

    Hi Experts I want to swap the Tabs becouse my client deos not use all the tabs so they want what ever they use the tabs it must next to each other . we are on Cprojects 4.5 is ther any config or Program . Thanks

  • Interactive Report with Calculated Aggregates - possible?

    I'm search for a possibility to create an aggregated column that is simply a computed value of two other aggregates. Example This how the basis data can look like Orderitem  | price |  no. A          | 100   | 3     B          | 10    | 1     The int

  • I5,i7 macbook pro

    why mac is waiting to much to start using i processors, i am just waiting because i need a computer and i don't want to buy one that will be old in a few months. i don't think to much people is buying macbooks pro right now. so they should take the n

  • DTP fails after up gradation of BW from 7.0 to 7.01

    Hi All, We have upgraded BW 7.0 to 7.1 in Dev, when trying to load the existing PSA data to DSO error arises, The error came because of Integrity check   " You have set the info Object 0Vendor to be checked for referential integrity against the check