Sharing jsp between multiple controllers

Is there a way to share a jsp between 2 different controllers?
If I put the shared jsp in its own directory and the 2 controllers in their own directories - I seem to be able to use netui:anchors and specifying the fully qualified "href" attribute - but not the "action" attribute. For example this works (but means I have to specify the exact controller):
<netui:anchor href="/portlets/Controller1/findAction.do">
            find
</netui:anchor>This does <b>not </b>work:
<netui:anchor action="findAction">
            find
</netui:anchor>Additionally, if I want a form to be on this shared jsp - I don't know of a way to use the netui tags to accomplish this... This example results in an error (as if it's trying to find the action in Global.app):
        <netui:form action="submitSharedForm">
            <table>
                <tr valign="top">
                    <td>Foo:</td>
                    <td>
                    <netui:textBox dataSource="{actionForm.foo}"/>
                    </td>
                </tr>
            </table>
            <netui:button value="submitSharedForm" type="submit"/>
        </netui:form>Are there other better techniques for sharing jsps between multiple controllers (jpf)? The only other thing I was thinking of trying to have a jsp found within the same directory as the controller include the shared jsp (which seems kind of tacky)...

You may consider using a base pageflow controller that has the common JSPs
in its directory. I have done that before like this:
// inheritLocalPaths=true lets us inherit the JSPs from the base pageflow
@Jpf.Controller(
inheritLocalPaths=true
public class MyChildController extends MyBaseController
Ture Hoefner
WebLogic Portal Engineering
<Tim Rafert> wrote in message news:[email protected]..
Is there a way to share a jsp between 2 different controllers?
If I put the shared jsp in its own directory and the 2 controllers in
their own directories - I seem to be able to use netui:anchors and
specifying the fully qualified "href" attribute - but not the "action"
attribute. For example this works (but means I have to specify the exact
controller):
<netui:anchor href="/portlets/Controller1/findAction.do">
find
</netui:anchor>This does <b>not </b>work:
<netui:anchor action="findAction">
find
</netui:anchor>Additionally, if I want a form to be on this shared jsp - I don't know of
a way to use the netui tags to accomplish this... This example results in
an error (as if it's trying to find the action in Global.app):
<netui:form action="submitSharedForm">
<table>
<tr valign="top">
<td>Foo:</td>
<td>
<netui:textBox dataSource="{actionForm.foo}"/>
</td>
</tr>
</table>
>            <netui:button value="submitSharedForm" type="submit"/>
</netui:form>Are there other better techniques for sharing jsps between multiple
controllers (jpf)? The only other thing I was thinking of trying to have
a jsp found within the same directory as the controller include the shared
jsp (which seems kind of tacky)...

Similar Messages

  • Sharing photos between multiple users on one Mac

    I'm trying to figure out how to easily share photos imported in by one user to other users in my family on my mac. I'm assuming we don't have to import them multiple times. It seems cumbersome to this new mac user to share them. I find the issue with iTunes. Any help?

    HI Darien,
    Here are all the links I have for the different kinds of sharing:
    SHARING IPHOTO LIBRARIES
    Sharing libraries between users on the same local network
    You can also share a library on the same machine between users the same way.
    Sharing libraries between users on the same machine...
    -both users must have sharing enabled in their iPhoto Preferences
    -both users must be logged in and have iPhoto running
    -Remember that you can only view the other library. You can't edit the photos or play the saved slideshows or view the made books or burn them to CD or DVD. The books and slideshows will show up as an album. You can play that album as an "on the fly" slideshow. You can drag images from the sharing library to your library in the source column to import them to your library. You can then edit, add to albums, books, slideshow, etc.
    Sharing links from Apple....
    Sharing your photos between computers
    About shared photos
    Turning off photo sharing
    Looking for shared photos
    SHARING ONE IPHOTO LIBRARY BETWEEN USERS ON SAME MACHINE
    You can try one of these three methods:
    1- Use iPhoto Library Manager-the paid version
    The documentation page will give instructions on how it is done.
    2- Sharing one iPhoto library between several users on one machine
    3- Share an iPhoto Library in tiger Using ACL's
    4- I have also read about ShareAlike
    There is no other info on the site about how it works.
    I strongly urge anyone wanting to try any of the methods for sharing one iPhoto Library folder among more than one user to backup all iPhoto Library folders before attemptin anything.

  • Sharing SharedObjects between multiple .swfs

    Relatively simple problem; I have a project that I think may be more manageable if I break it up into multiple small .swf files rather than having a gargantuan mega .swf.
    Now, I know that I could use a root .swf and load data from the others, but I think that it'll be a lot easier to debug and update if I'm using separate self-contained .swfs, so this is the direction I'm currently investigating.
    However, the .swfs won't really work unless I can have user-data persist between them, so I'm wondering if I can load a SharedObject saved by another .swf file? Are there any important caveats that I need to be aware of?
    In particular, can anyone give me sample code that would allow me to do this with both an online and offline copy of the files; i.e - if I run the same set of .swfs from haravikk.com, and locally, I want them to still be able to share data with one-another. In this case though I won't need to worry about sharing data between a local copy and haravikk.com, just so long as the files themselves can pass data within whatever domain they're loaded it should be fine.

    To do this I still need to make sure that all .swfs are retrieving/flushing their SharedObjects to the same domain though, right?
    I'm curious, is there a good way to work out what the right domain is dynamically?
    For example; say I have "Menu.swf", and "About.swf", both store in the same folder "MySite", so the files are located at "MySite/Menu.swf" and "MySite/About.swf" respectively. To avoid tying the files to a particular domain-name (so it can still work offline) I'd like to grab the current location of the .swf, and remove the file-name so that I have a domain containing just the enclosing folder.
    Is there a best way to do this? Basically so I can have my .swf files using a consistent domain for storing/saving, while still supporting relocating the files, so they will work offline if I copy them to my local machine for example.

  • Sharing images between multiple help outputs

    Hi Everyone,
    Question: does anyone know if it is possible to have an image repository that sits outside of the help SSL such that multiple Webhelp systems can reference a common image repository?
    I'm using Rh10 to write help in English which then gets translated into many languages.
    The problem we face is that our installation DVD is now huge thanks to all these different help langauge resources.
    The images are repeated within each different language output.
    Thus I was asked recently if there are any efficiencies possible here - for example by sharing images (that are common to each language output) in one central folder.
    It makes a lot of sense, but as far as I can see it's not possible in Rh10.
    Can anyone confirm or deny?
    Many thanks in advance.
    Cheers,
    Andy

    You can have a Resource Manager for images but that is only so that you can ensure an image used in a project is the same as that repository. It is copied into each project and you get a warning if the two are different. It does not mean the image is outside the project.
    Try this though. It might just work. All your outputs are under one folder something like:
    Help Files
    ... English
    ... French
    etc.
    Now add a folder called shared images. Create a relative link in a topic to an image in that folder. You will lose functionality like missing images and they will likely not show in the Design Editor so it will be pretty horrible. Might give you what you want though. Can't stop right now to test it.
    Let us know the outcome.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Sharing library between multiple Computer accounts

    I have 2 users on my computer, with equal access. When I use the primary account, the iTunes functions normally. I placed the iTunes music library in the shared file.
    The other account cannot access the library without manually importing the songs, and this obviously is not updated when I buy/import new songs as the primary user.
    Any way to have the second user able to access the same library as the primary?
    Thanks in advance.
      Windows XP  

    (As long as we don't take the laptops on vacation and leave the external drive behind...)
    In those cases just copy the Domain.sites2 file to the laptop and run it from there while you're on the road. When you get home move it back to the external HD replacing the one there.
    Using it on the iDisk would be glacially slow.
    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.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • HT1203 hello, tried to follow the instructions for sharing music between multiple users on one computer however it does not seem to be working.

    hello, purchased a new iphone 5 and i now want to put all my music and picture from my 3gs onto it.  however its been several years since ive updated my 3gs and now itunes wont fint it when i try and conect it.

    Reset the iPhone & try again.
    Try a different cable.
    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Problem sharing media between multiple users on same Mac

    My wife and I have an eMac, running Mac OS 10.4.11, with iTunes 9.2.1(4).  We each have separate user accounts.  Previously, I had imported several albums into my iTunes library.  Now, my goal is to be able to share the albums that I had imported with my wife.  Simultaneously, our available hard drive capacity is getting limited, so I decided to put my iTunes media on an external fire wire drive by Iomega.  I followed article HT1449, transferring my media (and, not the other associated library files) and that part, at least, seems to be working fine.  The folder "iTunes media" is now located on a partition of the external drive.  As far as I can tell, both my wife and I have "read and write" permissions for this partition.  Ownership of the partition volume is "ignored".
    Now, as for setting up my wife's iTunes library and linking it up to the iTunes media folder on the external drive, I have followed HT1203 as a guide, changing the path of the media folder to the partition on the external drive.  But, it simply doesn't seem to have any effect.  There are no songs available within iTunes from her user account.
    I would appreciate any guidance on how to resolve this.  Thank you.

    AndyMcKay wrote:
    Chris, won't this copy the music contained in the external media folder, to the media folder under his wife's account?
    They are both using the same media folder so iTunes won't copy it anywhere.

  • "Sharing" Updates Between Multiple Macs?

    So I have three Macs in the house now, one iMac, and two Macbooks. So When there is a big update, I currently have to download the same update three times. Is there a way to download the package once on one computer and distribute it to the others across my LAN?

    Every update is eventually posted at http://www.apple.com/downloads/ Download them, install them manually after transferring them to the other machines.

  • Sharing Library with Multiple Users on  SAME COMPUTER

    My wife and I use Windows XP Pro. We imported all of our CDs to the iTunes on her user account. How do I access or import the library to the iTunes on my account? I want to avoid logging into her account to listen to the music.
    The help index has info on sharing music for multiple computers on a network but I didn't see an answer for sharing music between multiple user accounts in XP on one computer. PLEASE HELP!!!!

    Use tweakUI, google on it to get it and install it.
    More details are here or do a search discussions for "TweakUI" if you need more.
    http://discussions.apple.com/thread.jspa?messageID=1175181&#1175181

  • One ssid share between multiple companies

    Just curious, is it possible to create a single SSID and shared it between multiple dompanies?
    Any info, advice or documents would be greatly appreciated.

    Hello,
    May the link below help you out in solving your query:-
    http://www.wi-fiplanet.com/tutorials/article.php/2196451
    http://www.dummies.com/how-to/content/multiple-ssids-with-a-single-access-point-ap.html

  • Any improvements in sharing an iPhoto Library between multiple users?

    It is possible and Apple Approved to share an iPhoto Library between multiple users, but the Library must be stored on a drive or disk image that ignores permissions:
    http://tech.kateva.org/2008/10/apple-supports-multi-user-iphoto.html
    This doesn't work for me. Has Apple changed anything with iLife '09 to make it easier to share a Library? For example, have they changed from the prior Package format?
    Message was edited by: jfaughnan

    Alternatives to a trip to the Terminal:
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc. The problem here is that OS X works very hard to keep your data safe and secure from the other users. You're trying to beat what's built in to the system. So, to beat the system
    Quit iPhoto in both accounts
    Move the iPhoto Library Folder to an external HD set to ignore permissions. You could also use a Disk Image or even partition your Hard Disk.
    In each account in turn: Hold down the option (or alt) key and launch iPhoto. From the resulting dialogue, select 'Choose Library' and navigate to the new library location. From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Lastly: This method seems a little clunky at first, but works very well. Most importantly, it uses the System to do the job for you.
    Create a new Account on your Mac, call it Media. Create an iPhoto Library there. (BTW: This will work for iTunes too.)
    Enable Sharing on the Library:(Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other accounts. In those accounts, enable 'Look For Shared Libraries'. The Library will appear in the other source pane.
    This means that both users will be able to see the pics. If you want to use a pic then simply drag it from the shared Library to your own in the iPhoto Window. This means that each user can have their own edits.
    If you want to add photos to the Library: Log into the Media account for that purpose.
    To make it all seamless: Set your Mac to log into the Media Account automatically. Set iPhoto to launch on log-in. Then switch to your own account using Fast User Switching.
    Net result: a Library that's permanently available to all users but also protected. Each user can have their own versions of the pics if they want.
    No partitioning, no permissions issues. Uses no extra disk space. What's not to like?
    Regards
    TD

  • Question/Problem Sharing iTunes Library between multiple users

    Hello all,
    I have a question (potential problem) regarding sharing an iTunes Library between multiple users.
    In the past, I had placed the iTunes folder in /Users/Shared, and created an alias to it in the "Music" folder of each user, and it worked fine.  However, with a recent upgrade to Mac OS 10.5, only the Home user account can access the library. 
    I read the Apple Support Document http://support.apple.com/kb/ht1203 uner Mac OS X which specifically states *not* to move the iTunes folder, just the iTunes Media folder (which I don't have, would that be iTunes Music?).
    Any recommendations?  Should I delete the different alias, move the iTunes folder back to the home user, and then follow the instructions in the support document?
    We're also looking to sync music purchsed on our iPod touches, as well as apps (which weren't supported in our privous Mac OS X version.
    Any advice is appreiciated.

    David Guay wrote:
    ... iTunes Media folder (which I don't have, would that be iTunes Music?).
    yes.
    specifically states *not* to move the iTunes folder
    *do* keep the entire iTunes folder in /users/shared, however, instead of creating aliases, launch iTunes while holding the option (⌥) key, click choose library when prompted, and select the iTunes folder in /users/shared.
    obviously, only one iTunes at a time can access the library !

  • Using home sharing, can you sync libraries between multiple users in a household?

    Using home sharing, can you sync libraries between multiple users in a household?

    Hey lindsay146,
    Home Sharing lets you to stream or transfer music, movies, and more with up to five authorized computers in your household. You can learn more about it in this link:
    Understanding Home Sharing
    http://support.apple.com/kb/HT3819
    Welcome to Apple Support Communities!
    All the best,
    Delgadoh

  • Sharing of video between multiple applications,

    Is there software that allows the sharing of the iSight cam between multiple applications at the same time.

    Welcome to Apple Discussions, HappyMacste
    Apple's iSight "Your camera is in use by another application" message says "iSight can be used by one application at a time."
    http://b-l-a-c-k-o-p.com/CamCamX.html claims "you can use all your favorite cam applications AT THE SAME TIME."
    EZ Jim
    PowerBook 1.67 GHz   Mac OS X (10.4.10)    G5 DP 1.8  External iSight

  • Sharing custom display profiles between multiple users

    Hello,
    I'm brand new to Mountain Lion and I can't figure out how to share a custom display profile between multiple users on the same MBP. I'm a photographer and I have two users set up on my laptop - one personal and one for shooting. I'm using a Color Munki to calibrate my external monitor and the software creates a profile.
    Previously, I could go into my library, copy the profile and drag it into the colorsync folder for my other user, then switch to my other user and find that profile in system preferences/displays.
    I have no idea how to do this in Mountain Lion.

    Let me simplify this by refering to User A and User B to represent the two separate users I've created on my MBP.
    I've done some more digging and here's what I've found: In the Color Sync utility for User A my custom profile is in a user folder, represented by the name I gave the file when the profile was created. That's no problem
    When I switch to the User B, there are two profiles in the Color Sync Utility named "Display". The "Display" file was created at the same time my custom profile was created, however, the file names don't match and I don't know why there are two of them.
    I'm fairly certain that "Display" profile is the custom profile I want to use, but there's a problem coming down the road: what's going to happen when I profile my monitor again in 3 weeks.

Maybe you are looking for