Add or remove elements from a list attached to session duplicated the size

Hi All,
I have a jsp page that in there I'd like to show three columns in a table:
     <c:forEach var="thesaurus" items="${sessionScope.collection.thesaurusList}">
       <tr>
                    <td class="check"><input type="checkbox" name="word" value="${thesaurus.key}" ></td>
                    <td><c:out value="${thesaurus.key}"></c:out></td>
                    <td>${ts:getThesuaursRelationDescription(thesaurus.relation)}</td>
                    <td>${ts:getThesaurusSynonymsDescription(thesaurus.synonymsList)}</td>
          </tr>
       </c:forEach>thesuaurList is an ArrayList that holds object of type Thesaurus class ( a simple java bean). collection object is attached to session via a servlet.
ts are tag that i have defined in my tag library.getThesuaursRelationDescription and getThesaurusSynonymsDescription are two static method and there's no problem with any of these classes.
It all works ok but when I refresh the page, the list size gets duplicated each time and i can't see why? why items are added again to my list? Is that because i have collection object as an session attribute?
If i replace the above code with jsp scriptlet it works fine:
<%
                Collection collection = (Collection) session.getAttribute("collection");
                List< Thesaurus> thesauruses= collection.getThesaursList();
                int i = 0;
                for (Thesaurus thesaurus: thesauruses)
                %>
                 <tr>
                    <td class="check"><input type="checkbox" name="word" value=<%=thesaurus.getKey()  %> ></td>
                    <td><%=thesaurus.getKey()%></td>
                    <td><%=ThesaurusUtil.getThesuaursRelationDescription(thesaurus.getRelation())%></td>
                    <td><%=ThesaurusUtil.getThesaurusSynonymsDescription(thesaurus.getSynonymsList())%></td>
                </tr>
                <%
                %>Thanks in advance.

Gr8 not a problem why do you use a composite view pattern.
--->In that case make use of Proper patterns in your design before forwading it to a view.
---->Use a Public JSP Statically include JSP's in WEB-INF folder using static page include which happens at compile time.
REGARDS,
RaHuL

Similar Messages

  • Impact of selecting "Removing Query from Selection List" in 2 channels.

    HI All ,
    I have customized a query in one channel (My Agreements and Contract Documents query in Master Agreements List channel) and have removed the standard query from the channel by checking the  "Remove Query from Selection List" and introduced my custom query in that query group .
    But  it resulted in break in chain for  "Master Agreements" link in "Contracts To Do List" channel as the link was pointing to standard  "My Agreements and Contract Documents" query and is displaying "The query can not be executed. Contact your system administrator" when ever I click on that.
    Any pointers on how to overcome above scenario wud be gr8!
    Regards,
    Uday

    Hi Uday,
    In order for To Do List channel to work, the query definition should be in the Master Agreement List query group. Do you still want the standard query in the To Do List? If so, you would have to leave it on the Query Group as To Do list is pointing to it. May be change the display name of the query so you can differentiate between the 2 queries. The other option is change the To Do channel to point to the custom query.
    Regards,
    Vikram

  • Remove element from xml using dom.

    i want to remove an element from an xml file using dom.
    i remove the element but the whole content of the file is also deleted.
    how can i rewrite the file.

    vij_ay wrote:
    subject :Remove element from xml,but if empty element in input file then output should be <tag></tag>, not like <tag.xml/>I assume you mean <tag/> but why do you want this? Any application that will not accept this valid XML construct is flawed and a bug report should be raised against it.

  • Is there any API to add and remove certs from acrobat trusted identities?

    Is there any API to add and remove certs from acrobat trusted identities? if this is not possible any work around for this. Please help me

    No, there is not – that would be a security concern.

  • How am I able to add and remove people from a group message?

    How am I able to add and remove people from a group message?

    You'd need to start a new thread.

  • How do I add and remove mp3s from my iPhone?

    I've forgotten again how to add and remove mp3s from my iPhone.  Can someone please remind me?  I am an iTunes subscriber using a PC running Windows 7 and iTunes 11.1.

    dj003 wrote:
    Where are all these places, and how do I do it, step-by-step?  I really have zero understanding at all.  I know how to drag-and-drop mp3s onto my Sandisk mp3 player.  It's basically one-step.  I can't figure out how this is done in iTunes for an iPhone.
    Make sure you have iTunes 11.1.1 installed on your computer.
    Plug your iPhone into your computer.
    Open iTunes. Create a new Playlist and name it whatever you want. I use iPhone Sync.
    Go to your Music Library, click and drag the music you want into your new Playlist.
    Click on your iPhone along the top right. Click on Music and select Sync Music and choose just the new Playlist.
    Click on the Sync button on the bottom right of the iTunes screen.

  • Add and Remove Publishers from Replication Monitor using T SQL

    Is there any possibility to add an Publishers from Replication Monitor using T SQL.i am trying to configure the replication using T SQL..i can create all other steps but didn't find any way to add publisher to the replication monitor..kindly suggest..

    Hi Snehasis,
    Tom is correct, there is no T-SQL command to add a publisher to Replication Monitor.  However, the server from which you launch Replication Monitor will automatically be added to Replication Monitor if it is a Publisher.  Also, you can add additional
    Publishers using the Add Publisher dialog.
    This is covered in
    Add and Remove Publishers from Replication Monitor
    Brandon Williams (blog |
    linkedin)

  • Strange problem with removing element from node

    Hi,
    I have a problem when I removed elements from a node.
    here is the code:
    String text = "123456";
    IANode nodeA= wdContext.nodeA();
    wdContext.nodeB().invalidate();
    IBNode nodeB = wdContext.nodeB();
    for(int i=0; i<nodeA.size(); i++)
    IAElement e = nodeA.getEt_Emp_RespElementAt(i);
    if (e.getID().compareTo(text)!= 0)
         nodeB.removeElement(e);
    else
    wdComponentAPI.getMessageManager().reportSuccess(e.getID() + " was not removed");
    The node A does have a row with field "ID" equals to 123456.
    When running the application, it does write that "123456" was not removed...but it removes it....In fact my table is now empty.
    How is it possible if it didn't perform the remove operation for ID = 123456 ?
    Thanks in advance.

    David,
    Because you are iterating node in wrong direction: see my reply to your post Re: Loop problem (seems that you assigns me 2 points without reading reply, and mark it as solved just because you stop solving it
    So, in example in this thread, you must iterate node B in reverse direction, get element from B and remove it from B if it has some specific ID.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • My laptop crashed and it was an authorized computer for my iPhone.  How do I remove this from my list of computers?

    My laptop crashed and it was an authorized computer for my iPhone.  When I downloaded iTunes to my new laptop and authorized it, I see that my old laptop is included in the count of authorized computers.  How do I remove this from my list of computers?

    You do not, nor do you need to until you reach the limit of 5. Then you can deauthorize all.

  • Emergency!! How to remove elements from a set? or..?

    How do I remove elements from a Set?
    If I have Set s1and s2, I want to create a new set which consist of all elements in s1 but not in the s2.
    Which means, I have to s1.union(s2) and then remove elements of s2.
    Is there any method which has this function (remove elment from a set)?
    Or is there any other better way to solve this (which doesn't have to remove anything)?
    If not, how to design a method which will do this job?
    Your help will be very much appreciated.

    Hi
    you can use method removeAll() from set
    s1.removeAll(s2);
    so s1 contains all the element not in s2.
    If you want to lef s1 unmodifyed you have to create a copy.
    Set s3 = s1.clone();
    s3.ramoveAll(s2);
    bye
    Nicola.

  • Can't add or remove members from an exchange 2010 distribution group

    Hello.
    i have exchange 2010 SP1. When i connect to the server with administrator login in the EMC, i can't add or remove members from distribution group. I don t understand why because i am admin. I have this error : "You
    do not have sufficient permissions. This operation can be performed by a group leader"
    how i can change this. I wan t only admin can edit members group
    hanks for help

    Hi,
    If you have checked the permission, I suggest you checking the Membership Approval configuration.
    1. Closed the option “owner approval is required to join the group”
    2. Open the option “anyone can leave this group without being approved by the group owners”
    To do this, follow the details at
    http://technet.microsoft.com/en-us/library/bb125178.aspx
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Can't add or remove programs from dock

    I suddenly have a problem where I can't add or remove programs from the dock.  When I try to drag a program icon to the dock it won't stick to it and shows a "+" next to it in green.  When I try to drag an icon off the dock it shows a shadow of the icon that won't go away.  I tried making a new user and the same behavior occurs in that user.  I tried finding my com.apple.dock.plist but couldn't locate it.  I was able to find com.apple.dockfixup.plist and tried deleting that but it didn't help.  Any recommendations on where to go next?
    Thanks

    Thanks, I will try this when I get home today.  However, the fact that the problem was not corrected when I made a new user makes me think that deleting this file from my user Library folder may not correct the problem.  Any other suggestions if deleting the dock.plist file doesn't work?

  • Automatic Removal  materila from error list

    Hi
    When i do confirmation and if some material which needs to be backflushed  is not available in stock, then that confirmation goes in error.
    Is there is any program which when run in background will remove material from error list(COGI) when that particular material is available in stock.

    Mayuresh,
    when you run "CORUAFWP", foreground, hope you have not activated the "Simulation" check box, if you have, then please remove the Check Box and process.
    In fore ground if you are running, the output report would contain 2 sections,
    First "Overview of Material Documents"
    Second " Overview of Failed Material documents".
    If you dont get any material documents in the first section, it means that the error still exists. In your sandbox or Test system, I would suggest you to first intentionally create a COGI error record by removing the stock, and then check whether COGI record is available or not. If available you can create the stock and then try running "CORUAFWP" program. You would now find a material document in the First section of the output report as explained by me.
    Please dont expect COGI error records like Posting Period Problem or Storage Location not maintained problem to get posted through  "CORUAFWP" , these records have to be processed manually after correcting the dates or inputting the storage location in COGI transaction.
    "CORUAFWP" Program would be helpful in automatically clearing error records of Less stock or Record Lock Problem.
    Hope this helps....
    Regards,
    Prasobh

  • I have about 130 gigs of movies on my iTunes and was wondering if I can just put them on my backup hard drive and remove them from my main computer to free up the space

    I have about 130 gigs of movies on my iTunes and was wondering if I can just put them on my backup hard drive and remove them from my main computer to free up the space.

    I haven't done this with an external drive, but I would imagine it works the same way as if you have multiple internal drives.  Also hopefully it works with less headache in OSX than in windows.
    Anyway, move all your music over to your external, and then go into itunes -> preferences -> advanced -> iTunes media folder location.  Navigate to your drive, and pick the folder you want.  Ensure that your folders are set up like they are in your ~/Music/iTunes folder, or wherever your iTunes is currently pointing.  Then quit and restart itunes.  If your music doesn't show up, try dragging your music folder from your external onto itunes, and it will hopefully update your library.xml.
    As far as Jerry's problem goes, you could try adding another music folder to your library.xml, but I really have no idea whether this will work or not.  If you want to give it a try (can't promise you won't corrupt your library.xml, so make a copy beforehand) you can find the music folder xml element right near the top of the xml file (open it with textedit/textmate/whatever text editor you want (NOT WORD)).  Curious to know if this works, and if it doesn't I have other ideas so let me know.

  • I have a macbook pro with OSX 10.9.3 and Safari 7.0.4. How do I remove BING FROM SEARCHING when i type something into the search bar

    I have a macbook pro with OSX 10.9.3 and Safari 7.0.4. How do I remove BING FROM SEARCHING when i type something into the search bar

    See below if the search engine setting was changed without your knowledge and you can't change it back.
    You installed the "Genieo/InstallMac" rootkit. The product is a fraud, and the developer knowingly distributes an uninstaller that doesn't work. I suggest the tedious procedure below to disable Genieo. This procedure may leave a few small files behind, but it will permanently deactivate the rootkit (as long as you never reinstall it.)
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data. You must know how to restore from a backup even if the system becomes unbootable. If you don't know how to do that, or if you don't have any backups, stop here and ask for guidance.
    Step 1
    In the Applications folder, there may (or may not) be an application named "Genieo". Genieo may be partially installed even if this item is absent. If it's present, select it and open the Finder Info window. If it shows that theVersion is less than 2.0, download and install the current version from the genieo.com website. This may seem paradoxical, since the goal is to remove it, but you'll be saving yourself some trouble as well as the risk of putting the system in an unusable state.
    There should be another application in the same folder named "Uninstall Genieo". After updating Genieo, if necessary, launch "Uninstall Genieo" and follow the prompts to remove the "newspaper-style home page." Restart the computer.
    This step does not completely inactivate Genieo.
    Step 2
    Don't take this step unless you completed Step 1, including the restart, without any error messages. If you didn't find the Genieo application, or if you couldn't complete Step 1 for any reason, stop here and ask for instructions.
    Triple-click anywhere in the line below on this page to select it:
    /Library/Frameworks/GenieoExtra.framework
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.
    If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder should open with an item named "GenieoExtra.framework" selected. Move that item to the Trash. You'll be prompted for your administrator password.
    Move each of these items to the Trash in the same way:
    /Library/LaunchAgents/com.genieo.completer.update.plist
    /Library/LaunchAgents/com.genieo.engine.plist
    /Library/LaunchAgents/com.genieoinnovation.macextension.plist
    /Library/LaunchDaemons/com.genieoinnovation.macextension.client.plist
    /Library/PrivilegedHelperTools/com.genieoinnovation.macextension.client
    /usr/lib/libgenkit.dylib/usr/lib/libgenkitsa.dylib
    /usr/lib/libimckit.dylib
    /usr/lib/libimckitsa.dylib~/Library/Application Support/com.genieoinnovation.Installer~/Library/LaunchAgents/com.genieo.completer.download.plist
    ~/Library/LaunchAgents/com.genieo.completer.update.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those listed above, move them as well. There's no need to restart after each one. Some of these items will be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
    Step 3
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including ones called "Genieo" or "Omnibar," and any that have the word "Spigot" or "InstallMac" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Your web browser(s) should now be working, and you should be able to reset the home page and search engine. If not, stop here and post your results.
    Make sure you don't repeat the mistake that led you to install this software. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad has a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If youever download a file that isn't obviously what you expected, delete it immediately.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Genieo developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    Finally, be forewarned that when Genieo is mentioned on this site, the perpetrator of the scam sometimes shows up under the name "Genieo support." He will tell you to run the provided uninstaller. As he knows and intends, the uninstaller does not completely remove the malware.

Maybe you are looking for

  • How do I get the Movies off my new Sony Handycam using iMovie?

    WOW! I didn’t think that this would be such an issue! So, I purchase a new Sony Handycam DCR-SR42 with a 30 GB Hard Drive in it. I ask the sales person “Is this camera compatible with my G5 Mac?” He says, it sure is! I take it home record the kids ar

  • RWB error in Sender JDBC adapter

    Hi All, I am using SP at sender communication channel. When I am activating the Sendr CC I am getting the The statement did not return a result set. error. But when I lgged to database server and checked the SP it was working fine and giving the valu

  • Can i connect two monitors to my mac book pro with HDMI?

    can i connect two monitors to my mac book pro with HDMI?

  • Convert MySQL timestamp field to a Unix timestamp

    I have a process where I want to compare the current date with an expiration date that is so many months after a registration date. The registration date is stored in a MySQL timestamp format. I want to convert this to a Unix timestame so I can do th

  • Location Services in Standby

    Does location services continue to drain battery power if the phone is in standby? Does it also drain power if you're using an app that does not use location services? Thanks.