Reusing the same jsp include multiple times on the same page

If someone knows a way out of this
I'd like to print out 2 records of the same data type I have a JSP include which does that.
Now my issue is how to use the same include twice on the same page
Ideally I would like to do the following:
<%
request.setAttribute("person", person1);
%>
<jsp:include page="./person.jsp"/>
<%
request.setAttribute("person", person2);
%>
<jsp:include page="./person.jsp"/>
And in person.jsp
I could have
<h:inputText name=#{person.name}/>
This fails in the updateModel phase - And I realize why it's failing. There really is no person managed bean.
It's just that I am at a kind of loss as to what I need to do now -
Am missing something or is it just impossible to use jsp:includes the way Ive tried to?

I do not understand, have you created a backing bean named person? Have you defined it in your config file?
Please copy/paster your backing bean code and config file.
Normally, you can set directly the value of the bean by using some java code in your jsp instead of setting the request attribute.

Similar Messages

  • Can't print a photo multiple times on a single page

    I just installed iLife 8 and am trying to print one 3X5 photo multiple times on a single page. When I consulted the help menu in iPhoto, I found what I thought was the answer. When I followed the instructions, I hit a snag because I don't have the Photos Per Page pop-up menu it references. Any ideas on how I can do this to save paper?
    Here's what the help menu said:
    Printing one photo multiple times on a single page
    If you have a favorite photo you want to share with many people, you can print multiple copies of that photo on a single page.
    To print one photo multiple times on a single page
    Select the photo you want to print.
    Click the Print button.
    Select the paper size (such as letter-size or legal-size).
    Select the print size (such as 2 x 3 or 4 x 6).
    If you want to make the photo a custom size, select Custom.
    Click the Customize button.
    Click the Settings button.
    Select “Multiple of the same photo per page” from the Photos Per Page pop-up menu.
    iPhoto will zoom and crop the photo to fit the space available. To make a photo appear full-frame, Control-click the photo and choose “Fit Photo to Frame Size” from the menu that appears.
    Click OK.
    Click Print.

    Well don't I feel stupid! I just installed iLife '08 and assumed that it would tell me right away if I needed any updates. I found and installed the needed updates (7.1.1), I got the right settings drop down menu to print multiples on one page. Thanks for your help

  • To print one photo multiple times on a single page

    The title of my question is the title of the page in iPhoto 8 help.
    "To print one photo multiple times on a single page"
    It says (a bit shortened) 1. Select photo 2. Click print button 3. Select paper size 4. Select print size 5 Click Customize button 6 Click Settings button 7. Select "Multiple of same photo per page from the Photos Per Page pop-up menu. 8 Click OK 9 Click Print.
    I can not find the pop-up menu referred to in Step 7. There are two "settings" buttons - neither produce a Photos Per Page pop-up menu. Settings appears if you click a double arrow to the right in the lower margin but only deals with font issues and "Print Settings" does not offer such a pop-up.
    I am using Leopard on a PowerBook G4 and just bought and installed the newest iLife 8.
    Grateful for help.

    Arthur:
    When you click on the Customize button there will be a Setting button in the next window. Click on it and in the drop down window that comes up will be the option to print multiple photos of the same photo per page.
    Select that option and click OK. You'll get the spinning cursor for a few seconds as iPhoto creates the multiple copies on the page you selected. Be sure that the print size is small enough so that you can have multiple copies of it on the paper size you selected.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • ADOBE FORM-static-called multiple times - data on different pages

    Hi Experts,
    I am calling an adobe form multiple times for each employee inside a loop.
    The layout is less than half the page.
    For each employee inside the loop when calling the ADOBE form it is triggering a new page.
    I want to continue the printing in the same page.
    Is this possible? Please advice.

    That is bc ADF life cicle... Is always executing 2 times...

  • Problems printing one photo multiple times on a single page

    Im trying to print multiple photos on a page so as to not waste paper. I have a 4 X 6 photo and want to print 2, 3X3 photos on the page. If you follow the HELP directions which are
    Choose FILE > Print, Select paper Size, in my case 4X6. click on customize, Click Settings button then choose "Multiple of the same photo per page"
    The "Multiple photo per page" option is grayed out. After troubleshooting it appears the software is telling me that two 3X3 photos cant fit in a 4X6 inch wide space and wont let me try. I was able to get around the problem by printing two 2.9 inch photos.
    The software should be friendlier - Allow me to print 2 photos that are a exact fit to the paper. If the photo needs to be adjusted the software should do the adjustments in the background.
    If Im having a problem here Im sure others are too.

    Eric
    Welcome to the Apple user to user assistance forums
    Note that this is NOT a reporting path to Apple - iPhoto menu ==> provide iPhoto feedback to do that
    No one but us users here - and I do not see a question in your post - just a rant and how you found a work around
    Note that in general you DO NOT want software to change your specs - if you need a 3"x3" print you do not want the software to change it to 2.9" x 2.9" in the background - if it can not do what you requested then not doing it and having you adjust the request is the most appropriate path IMHO
    LN

  • Printing one photo multiple times on a single page

    Hi I am trying to follow the instructions in iphoto HELP to let me print multiple copies of the same photo on one page. I can set it in the drop down menu but I can not see where to select the amount of photos on the page ie. 2, 4 6 of the same photo. Can anyone help ?

    sorry I sorted it myself works ok now.

  • Including multiple subviews

    Hi guys,
    There seem to be a fair bit of discussion on subviews in this forum. However, I couldn't find anyone bring up an issue that I came across.
    We are assembling JSPs dynamically using jsp:include. We have a number of JSP fragments, and I try to make each one of them a JSF subview. Only our business logic knows which fragments need to be included for the next screen.
    This all works fine as long as I don't have to include the same fragment multiple times into the same screen. Our business logic knows how to provide a unique ID for each JSP fragment that is included multiple times, but there seem to be no way to dynamically update the ID of the <f:subview> tag. This obviously causes a problem of two subview components having the same ID and JSF doesn't like it.
    I even tried to bind subview to a UINamingContainer component and change ID of that component in my backing bean. However, since ID is a mandatory attribute for the <f:sbuview>, ID value that I specify in the tag, overwrites the ID set for the UINamingContainer component.
    Any thoughts on how to solve/resolve this issue would be greatly appreciated.
    Thanks,
    Vadim.

    I am hoping it was just bad timing for my original post and someone on the list can tell me whether what I am trying to do is possible with the current <f:subview> tag.
    I am considering implmenting my own subview construct, but would like to avoid this if at all possible.
    Thanks a lot,
    Vadim.

  • Jsp:include doesn't work with Tomcat & IIS

    Hi, Guys,
    I installed IIS4.0 and Tomcat in my windows NT system. http://localhost/examples/jsp/index.html works fine.
    When I load http://localhost:8080/about.jsp, it's also working fine. But when I load http://localhost/about.jsp, it will ignore the part which the line is display as
    <%String topName = "/servlet/topServlet";%>
    <jsp:include page="<%=topName%>" flush="true"/>
    The other part will work just as a html file. And I didn't get any error message.
    Would can tell me how to figure out this problem. Thank in advanced very much!

    Oh, God, why not tell me earlier!!!!!! I do use tomcat 3.1 and it just support servlet. I have no way out but modify all my jsp:include to encoding into a servlet page. I almost re-do all my work. But anyway, thank you! Next time I will know.

  • Multiple selectOneRadio in a JSF page

    Hello,
    I'm a beginner on JSF. I got to develop a JSF page to be a quiz with multiple-choice questions, so I need to use multiple selectOneRadio structures, like the example below:
    Question 1 - <text of question 1>
    O Option 1
    O Option 2
    O Option 3
    O Option 4
    Question 2 - <text of question 2>
    O Option 1
    O Option 2
    O Option 3
    O Option 4
    Question 3 - <text of question 3>
    O Option 1
    O Option 2
    O Option 3
    O Option 4
    The quiz, questions and options are stored in database tables, so I need to build this quiz dynamicaly.
    I heard it's possible to use a data table to include multiple selectOneRadio structures in a page, so how can I add one selectOneRadio per line? To build each selectOneRadio to be added in a data table, can I create a method to return a HtmlSelectOneRadio object? Does it work in this case?
    Actually I know how to build dynamicaly just a single selectOneRadio, but I've never tried to add more than one of it dynamicaly in a page. Does someone can help me?
    Thanks
    -- Rahvena

    See this project: https://surveytool-sample.dev.java.net/
    It uses JAXB to dynamically create a survey which is displayed via JSF.
    The technique used here could easily be adapted for use with a DB.

  • I can convert almost things multiple times at the same time including CMYK to RGB (or sRGB), but not RGB to CMYK and not brighten/contrast. How?

    I can convert almost things multiple times at the same time including CMYK to RGB (or sRGB), but not RGB to CMYK and not brighten/contrast. How?

    If you want a relevant answer you may have to elaborate on what you actually mean. Posting screenshots might help, too.
    In any case multiple conversions of an image are not advisable in general.

  • Bapi_po_create1 is giving same system messages  multiple time in the joblog

    Hi Experts,
    Bapi_po_create1 is giving same system messages multiple times in the job log when we ran the program in the background
    can u plz suggest how to prevent these multiple appearances of same messages.
    I am pasting the code below whn i ran this program in backgorund job log is having the messages.
    Date       Time     Message text                                                                 Message class Message no. Message type
    08/06/2009 08:11:53 Job started                                                                       00           516          S
    08/06/2009 08:11:53 Step 001 started (program ZZZTEST, variant &0000000000008, user ID BREDDY)        00           550          S
    08/06/2009 08:11:54 Commitment plan contains no account assignment data                              MECP          020          S
    08/06/2009 08:11:54 Commitment plan contains no account assignment data                              MECP          020          S
    08/06/2009 08:11:54 Status "Initial Block" of material 20111 does not allow external procurement      ME           053          E
    08/06/2009 08:11:54 Status "Initial Block" of material 20111 does not allow external procurement      ME           053          E
    08/06/2009 08:11:54 Source not included in list despite source list requirement                       06           722          E
    08/06/2009 08:11:55 Pricing/euro: Attention: Euro Customizing not maintained                          VH           777          S
    08/06/2009 08:11:55 Pricing/euro: Attention: Euro Customizing not maintained                          VH           777          S
    08/06/2009 08:11:55 Status "Initial Block" of material 20111 does not allow external procurement      ME           053          E
    08/06/2009 08:11:55 Purchase order still contains faulty items                                       MEPO          000          E
    08/06/2009 08:11:55 Job finished                                                                      00           517          S
    Edited by: bhavani prasad kotharu on Aug 6, 2009 3:09 PM

    HERE IS THE CODE OF THE PROGRAM, WE R JUST PASSING SOME PO DATA TO THE BAPI_PO_CREATE1,ON RUNNING THIS PROGRAM IN BACKGROUND SAME SYSTEM MESSAGES ARE APPEARED MULTIPLE TIMES,----
    REPORT zzztest.
    DATA :    lwa_bapimepoheader TYPE bapimepoheader
             ,lwa_bapimepoheaderx TYPE bapimepoheaderx
             ,li_bapimepoitem TYPE STANDARD TABLE OF bapimepoitem
             ,lwa_bapimepoitem TYPE  bapimepoitem
             ,li_bapimepoitemx TYPE STANDARD TABLE OF bapimepoitemx
             ,lwa_bapimepoitemx TYPE bapimepoitemx
             ,li_conditions TYPE STANDARD TABLE OF komv
             ,li_return TYPE STANDARD TABLE OF bapiret2
             , n TYPE c
    PARAMETERS: p1 TYPE c AS CHECKBOX.
    IF p1 = 'X'.
      lwa_bapimepoheader-doc_type = 'NB'.
      lwa_bapimepoheader-purch_org = 'NA00'.
      lwa_bapimepoheader-pur_group = 'C02'.
      lwa_bapimepoheaderx-doc_type = 'X'.
      lwa_bapimepoheaderx-purch_org = 'X'.
      lwa_bapimepoheaderx-pur_group = 'X'.
      lwa_bapimepoitem-po_item = '10'.
      lwa_bapimepoitem-material = '000000000000020111'.
      lwa_bapimepoitem-plant = 'CA01'.
      lwa_bapimepoitem-vend_mat = '1000'.
      lwa_bapimepoitem-quantity = '10'.
      lwa_bapimepoitem-orderpr_un = 'M'.
      lwa_bapimepoitem-no_more_gr = 'K'.
      lwa_bapimepoitem-agreement = '4600000095'.
      lwa_bapimepoitem-agmt_item = '10'.
      lwa_bapimepoitem-pricedate = 'X'.
      lwa_bapimepoitem-price_date = '20071030'.
      lwa_bapimepoitem-no_rounding = 'X'.
      APPEND lwa_bapimepoitem TO li_bapimepoitem.
      lwa_bapimepoitemx-po_item = '10'.
      lwa_bapimepoitemx-po_itemx = 'X'.
      lwa_bapimepoitemx-po_itemx = 'X'.
      lwa_bapimepoitemx-material = 'X'.
      lwa_bapimepoitemx-plant = 'X'.
      lwa_bapimepoitemx-quantity = 'X'.
      lwa_bapimepoitemx-po_unit = 'X'.
      lwa_bapimepoitemx-orderpr_un = 'X'.
      lwa_bapimepoitemx-acctasscat = 'X'.
      lwa_bapimepoitemx-agreement = 'X'.
      lwa_bapimepoitemx-agmt_item = 'X'.
      lwa_bapimepoitemx-pricedate = 'X'.
      lwa_bapimepoitemx-price_date = 'X'.
      lwa_bapimepoitemx-preq_no = 'X'.
      lwa_bapimepoitemx-preq_item = 'X'.
      lwa_bapimepoitemx-no_rounding = 'X'.
      APPEND lwa_bapimepoitemx TO li_bapimepoitemx.
    DATA: lo_msg_handler  TYPE REF TO cl_message_handler_mm.
      CALL METHOD cl_message_handler_mm=>get_handler
        IMPORTING
          ex_handler = lo_msg_handler.
      lo_msg_handler->remove_all( ).
      lo_msg_handler->cleanup( ).
      CALL FUNCTION 'BAPI_PO_CREATE1' "in background task
           EXPORTING
             poheader   = lwa_bapimepoheader
             poheaderx  = lwa_bapimepoheaderx
             testrun    = 'X'
           NO_MESSAGING = c_x
           NO_MESSAGE_REQ = c_x
             no_authority = 'X'
           IMPORTING
             expheader  = lwa_bapimepoheader
           TABLES
             return     = li_return
             poitem     = li_bapimepoitem
             poitemx    = li_bapimepoitemx
             conditions = li_conditions.
    ENDIF.
    Edited by: bhavani prasad kotharu on Aug 6, 2009 3:38 PM

  • The same email sent multiple times

    I have seen this topic a few times but as yet have not read an answer to the issue. It appears that occassionally an email will be sent multiple times to the same recipient. This is very annoying for the recipient, but more importantly can become very expensive if this is happening whilst roaming. Does this only happen if the signal is poor at the point of sending? Replies welcomed.

    that is your problem.
    You are saying: run this workflow whenever the incident is updated with the sole criteria that the incident has the status resolved.
    What is happening is then that the workflow runs the first time and applies the template. This updates the incident which then triggers the workflow. This goes on until one of the runbooks has updated the incident to status closed. Then the criteria is no
    longer true.
    change the changed from to include the criteria
    status NOT EQUAL resolved.
    http://codebeaver.blogspot.dk/

  • The same podcast shows up multiple times

    In iTunes, the same podcast shows up multiple times. There is only one copy of the file on my computer, and the file it located in the right location, but in iTunes, the same podcast is repeated two or more times. When I delete a single podcast and try to play its copies, iTunes notifies me that it can't find the file. I believe this happens when I use the import folder utility and add music in the iTunes music default location (which includes the podcasts as well as the music I want to import). Does anyone know how to keep this from happening?
    Thanks

    Well, the easiest way would be to stop using the import folder utility. Sounds like you're adding the podcast multiple times. You're probably doing it to other files as well...

  • How can I have use the same div ID multiple times on the same page?

    Okay so a problem I encounter a lot is that often times I want to use the same div ID several times on the same page. An example of this is when I'm creating table like designs.
    Let's say for instance I create a div ID called 'product-container'. I want to use 'product-container' multiple times on the same page but if I do this it is improper XHTML and will throw errors in any XHTML validator (you are only allowed to use a div ID once on any XHTML page in order for it to be standards compliant).
    Now the first option is that I could define 'product-container' in my CSS style sheet multiple times by doing something like this...
    #product-container {
         width: 300px;
    #product-container-2 {
         width: 300px;
    #product-container-3 {
         width: 300px;
    #product-container-4 {
         width: 300px;
    What you will see there however is that it seems pointless to define the same ID numerous times over (just adding a number on the end) when each ID is the exact same thing and has the exact same attributes.
    Now what I have noticed is that there are some sites out there who manage to have the same ID appear several times in the code but add a number to it just like above. The difference is that they only have one definition for 'product-cointainer' in their CSS document but in their actual XHTML code they have IDs for 'product-container' but with numbers on the end like 2,3,4,5, etc. It's almost as if JavaScript or some other code is automatically appending a number on the end of the ID so the validator won't consider the markup to be invalid, but yet it knows that it's using the same 'product-container' style that is contained in the CSS style sheet.
    I hope I explained this correctly. I'm just hoping to find a way that I can put the same div ID on a page multiple times without having to define it over and over again in my CSS.
    Any help is much appreciated!

    Because it seems like by using a class you can't make this position as 
    well as you can by using an ID. Am I wrong?
    An ID name can be used only one time per page.  A class name can be used multiple times per page.
    .product {
    width: 300px;
    text-align:left;
    color: #FF0000
    border: 2px solid #666;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to play one clip multiple times at the same time?

    I am writing a little game where a certain sound has to be played quite frequently. I load it as a Clip and play it with
    myClip.setFramePosition(0);
    myClip.loop(0);If the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
    A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
    So here it goes: How can I play a single sound multiple times at the same time? Is that possible?
    Edited by: andrasz on Feb 27, 2009 12:37 AM

    If the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
    A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
    So here it goes: How can I play a single sound multiple times at the same time? Is that possible?Ummmm, if you're using a clip, you'll have to maintain one copy per object that needs to play the sound concurrently. You could keep one master copy, and then create copies of the clip as necessary to play them, and then just dump the copies to decrease memory consumption.
    A second idea would be to write your own Clip class. Esentially, all you would need to do is dump some sound data onto a TargetDataline to play it. It'll handle the buffering and playing at the correct speed itself. If that's all you did, you should be able to dump multiple times from the same instance and play it multiple times.
    Obviously, that's just a theory. In practice, it may not work that way...

Maybe you are looking for

  • Why is iTunes running slow

    I'm using iTunes 10.7 (avoiding iTunes 11 because you can't have multiple playlists open at the same time with it) on my MacBook Pro.  I have a large library on an external Thunderbolt drive.  I'm finding iTunes running annoyingly slow quite.  I've e

  • What GUI to use web application designer in BI 7.0 without support package

    I use BI in my ECC 6.0 system. I use tried both GUI 7.1 and GUI 6.40 to logon web application designer. But system display the message please logon to a Netweaver BI 7.x system. System A11 does not have a mimumium version required 7007. My system see

  • Security Update for exchange server 2013SP1 KB3011140 Stops all services and failes to install

    Hi All, Over the past 2 days this update has tried to run on the server in the evening but ends up failing. When it fails it is causing all of our exchange services to stop working and when we try to check e-mails the following day we find out the e-

  • Disable Email Alerts in Vibrate Mode?

    Hi. Is this possible? I've searched various forums and haven't come up with anything... I've disabled all my messages alerts: > Volume - Silent > LED - Off > Vibration - Off ... And I also tried Vibration - Custom, In Holster Only Everything works fi

  • Error opening OWA in environment coexisting 2010 2013

    Good Morning, I am facing the following problem was realziado uam mailbox migration from Exchange 2010 to Exchange 2013, however this account has link with BES for Exchange, where it was necessary to return to 2010 after it not possible to account be