How can I have a backing file call a JavaScript function?

I have a Weblogic portal with a JSP portlet. The portlet has a backing file. How can I get the backing file to call a JavaScript function in my portlet?
thanks

Hi
your questions are not correct because you are mixing up server side operations with client side operations.
First server side code executes then the page is sent to the browser , then any javascript executes on the browser. So asking for javascript to be called from backing file (server side) doesn't make sense or asking for javascript to read a parameter doesnt exactly work either.
However in your server code suppose you have a variable action in the request that you want javascript to know then in your JSP you would add something like
<script type="text/javascript">
var action = '${requestScope.action}';
alert(action);//or whatever you want to do
<c:if test="${requestScope.someOthervariable == ''xyz'}"><%-- this check is done on the server --%>
callSomeJavascript(); <%--this javascript is only executed when the server side value of someOtherVariable is xyz --%>
</c:if>
</script>
i.e. you can output the javascript that has the variables you need or the function calls you want.
Like I said understand whats server side and whats client side.

Similar Messages

  • HT1766 How can I have my contacts back on my phone? some of them does not appear, others are still there ? How can I have them back?

    How can I have my contacts back on my phone? some of them does not appear, others are still there ? How can I have them back?

    Welcome to the Apple Community.
    Try unchecking the tones and syncing, then re-checking them and syncing again.

  • HT1725 I forgot the answers for my security questions. How can I have it back?

    I forgot the answers for my security questions. How can I have it back?

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (106187)

  • How can I have a smaller file in export ?

    Hi! I have the last version of Imovie, if I import a video of 120 minutes (500 mb / 720p) and then I want to share it as file, with the same quality, the dimension of the video go up to 7gb... How can I have a smaller file? 

    You might try "Export as QuickTime..., click on the Options, then Settings, and select a lower level of compression, fewer key frames, a restricted lower data rate.  Also, click on the Size... button and make sure your setting it to 720p, not to 1080. 
    Lower "Quality" in compression may affect fast motion, but not the resolution of most images. 

  • I erased my macbook pro and for got to get backup. How can I have it back?

    I thought I already get the nackup in my externak hard drive but couldn't find it. I erased all data and I anly see file image flashing at start up. How can I reinstall OS X Maverick and fix my mac book?
    Thanks

    Then I need to know the EXACT model MBP that you have.  You can check for that here by entering the serial number which is on the bottom of the MBP:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    Ciao.

  • How can i have the same files on my iMac as i do my Macbook Pro?

    Im no computer whiz but i know more than the average joe. But when it comes to things like this im not an expert. I am a Photograher, Graphic Designer, and Videographer. I use my Macbook Pro on the go and my iMac in home. I would like to be able to have a matching folder structure for all my files and have both computers running the same aperture libraries and final cut libraries. Essentially a mirrored machine. Or just a directory that i can acsess from both of them. I assume this would be the work of a server? I just dont know enough about how fast would it be if i had my aperture library referenced off of a server attached to my home network and i was connected via wireless N "i could do ethernet but that would require me to venture to the basement" Also i assume that i would be able to connect all of these external drives i have to it? Say i had drive A1 and B1 A1 would be the master and B1 would be the back up and so on for A2 and B3? kinda like a raid set up so i can have a drive for photographery thats backed up one for video thats backed up and so on thanks.
    Also could i use such server to remotely render files for my applications? Such as Final Cut, After Effects, or Cinema 4D?
    Also this is all based around a Mac Mini Server as i dont have the money to be spending thousands of dollars. "I already did with my computers haha."
    Thanks i appreciate it in advance!
    If any of this was confusing i can re write it all thanks!

    I'm trying to do something similar with my iMac set up as an Open Directory server with network accounts, and then having my MacBook bind to it for login and home folder syncing. I still don't have it working the way I would like, maybe someone here could help me. I'm no expert, I found an up-to-date book at my university library, but it doesn't mention mobile accounts.
    What I did:
    1. Installed Server on my iMac and configured it for network accounts. I made a few test accounts.
    2. Configured the test accounts for mobile home folder and mobile syncing. I also configured the path to the home folder to be the server (iMac).
    3. Under Users and Groups preferences on my MacBook, made my iMac the network account server.
    What I got:
    1. I could login to any of my test network accounts from either computer.
    2. I could could create files on my MacBook and have them automatically sync with my iMac, and vice versa.
    What I didn't get:
    1. When I removed my iMac from the network, I could not log in to ANY account on my MacBook, not even local user accounts.
    2. If I made a change, such as in iPhoto on my MacBook, then made some other changes in iPhoto on my iMac, the sync can sometimes produce the wrong results, i.e. imports added photos, but not changed foto albums. (This would not be a problem on a dedicated server, but this could be a show stopper for the parent unless there is a good work around.)
    For me the show stopper is not being able to login without the iMac on the network. I remember NetInfo from the NeXTSTEP days and I thought the reason we went with OpenDirectory was so we could login without the server being connected. If anyone knows how to get OpenDirectory to work without a network, please let me know, and no - I do not want to install Server on my MacBook and make a clone directory.

  • HT4314 My gamr was back to level 1 after logging in to game center!!!! How can I have it back?!!!

    I am playing trigger fist and was playing for a whole week and sleeping late at night just to play this game! And after work I just saw my game back to 1 because my sister downloaded Plants vs Zombies 2 and logged in to game center! I was really mad at her for logging in to game centwr! Even I havent used it before! Please help me!

    '''Did you backup whatever bookmarks you did have on the computer ? '''
    Remember any restoring of bookmarks overwrites whatever he current set is, and you may not want to loose them.
    Even if up until now you have not made any backups of Desktop bookmarks Firefox will have backed up some of them into sets of daily bookmark backups. Once you have backed up your current set you could look at what it has by restoring those bookmarks, you may find one of those sets is fairly complete.
    By the way if you look at the profile files and folders that you should now have on the desktop you should see it contains a bookmarks backup folder, the size of the files within should indicate whether they contain anything.
    You need to go into the bookmarks library and try the restore option. Backup each set that you look at if it has anything of use in it, before trying the next set. With look one of those will be a fairly complete set of bookmarks.
    * USE '''Show All Bookmarks -> Import and Backup -> Restore '''
    ** see [[Restore bookmarks from backup or move them to another computer#w_restoring-from-backups]]_restoring-from-backups
    I do not use Firefox on mobiles, but before you try anything further you do need to backup the desktop bookmarks and learn what existing backups you have. Unless you master that you are in continual danger of overwriting and loosing bookmarks.
    Presumably you have already found this listing of help articles for mobiles
    * [/products/mobile/bookmarks]

  • I updated I tunes and my iPhone as well, I lost my ring tones, how can a have them back?

    I updated my iPhone in a computer at home. But I have my phone synchronized with a computer at the office wich I can't download the last version of iTunes. The thing is that the computer back at the office does not recognize anymore the iPhone coz it has an older version and politics at work don't allowed to download anything, so iTunes store is now blocked. I know I can download the apps and the music with the clod but what can I do about the ring tones? I can't grab them anymore from the computer at work and I dont have them at home? Please help... My computer at the office will be erased and replaced in any moment and I don't want to lose anything. Thank you,
    Lutka

    Did you try the suggestions mentioned here?
    iOS: Device not recognized in iTunes for Windows
    Connecting in recovery mode can also help:
    iOS: Unable to update or restore

  • HT3529 i delet some messages on my iPhone by mistake how can i have them back on my phone

    i have deleated some messages in my iphon by mistick , is there any way i can have these messages back on my phon please

    you can restore your phone from a backup if that message was included.
    If you don't have a backup or the message wasn't included, then your text is gone sorry.

  • How can i have everything back on my ipad?

    hi, I recently had a problem with my ipad, I couldn't syncronized my music on it so, like many website propose me to do, I restore it, and I save all my info at first, but I hadn't made my update yet so it updated it. Sadly my computer decided to save my info on my ipad, and I don't know why, when he was restored, so I lost all my work, all my apps and well everything. So when I try to restored my saving, my ipad is empty. I tried restored an older saving but it's asking me a password, and I don't recall givin one and I tried all my usual password. WHAT CAN I DO!!! Please help me I need my ipad for school badly.
    Thanks in advance.

    Think of it this way...
    There's a lot of stuff that's in iOS5 that you'll probably never use.  You don't worry about trying to delete that stuff, do you?
    Some of the Apple apps have direct ties into the iOS which makes it difficult to selectively delete them.
    No way to get rid of tabs that I know of.
    Let Apple know what you think here:
    http://www.apple.com/feedback/ipad.html
    Matt

  • My itunes data are gone how can i have them back ?

    so I was planing to restore my iPod ... since i changed my computer and my iPod didn't connect with the computer for some reason but it worked today ... I have an 8th GB iPod so I couldn't have all of my apps on my device and some of them were in my iTunes in my old computer . so I put what I had on my ipod in my new iTunes but when i went to put my other apps on my iPod ... there weren't any data on my old iTunes !!! and I need them to restore my iPod please answer fast

    here is the Solution for the (App Store home page isnt working)
    check it out bro
    https://discussions.apple.com/thread/3275295?tstart=0

  • How can I have a csv file read from excel to labview.

    Hi,
    I would like to read multiple csv files from excel to labview, creating a duplicate of the tables in excel, which would allow me to then draw some graphs for data analysis and comparison between the two.
    Are there any examples that could be useful to what I am trying to do?
    Thanks

    Patel33 wrote:
    From one of the csv files, I only require 3 of the columns. Is there a way to only read that part of the csv file?
    No. The characters in a file are just one long string and delimiters and linefeeds are special characters that defined where fields and lines start and end. As such, columns are interlaced into the file and consists of many small sections, where the position depends on the number of characters in each field, which is typically variable. You really need to read the entire file, then only look at the interesting columns later.
    LabVIEW Champion . Do more with less code and in less time .

  • I used a third party programme called Mackeeper UGHHH,it moved loads of files to the trash now i do not know where they originally came from or belong!! the put back option is in grey??how can i manually put these files back where they belong?SO upset!!

    I used a third party programme called Mackeeper UGHHH SOOO Stupid i know,it moved loads of files to the trash now i do not know where they originally came from or belong!! the put back option is in grey??and will not work even when i highlight one by one!!
    how can i manually put these files back where they belong?
    i know i should have used time machine but i have not set it up and its too late for that now
    i have been researching and racking my brain on how to put these folders and contents of them back to where they once were all of the contents of the folder are still in tact AND i have not emptied my trash,my programmes and some of my apps are not working properly now...i use my computer alot for making music and things are jumbled up now...
    is there anyone out there who knows the answer to my prayers on how to go about putting these folders/files back to where they came from to restore functionality to my mac..Yes and thank u if u were going to tell me i HAVE un installed mackeeper...A very sad and upset Mac user!! Cheers Shane

    hello there thank u so much for ur reply!! ok i uninstalled mackeeper now and the put back option is still in grey im so confused...i tried restarting my computer like u said and put back still in grey??!! the files that are in my trash are everything from Accounts,address book plug-ins,address book,adobe,aim.........then stuff like apple,Audio,....to caches color pickers,colors,com.apple.TCC,to DVD player to facebook,google to ilifemedia browser to itunes to keychains to movie effects,preferences printers to skype...my Native instruments files BUT not all of them my garage band but not all of it...it seriously looks like my whole library is in the trash i tried to put things back where i THINK they belong and it just added the item or folder under where i thought it went and didnt restore functionality to for instance google chrome and all my book marks are there....they seem to be only certain things from my library that would have added some functionality to apps and programmes like my garageband is missing stuff photobooth wont work so on.......kinda looks a bit like this thats only the half of it!! Cheers shane!!!

  • I have problems with seeing my bookmarks, file, view, edit...buttons. I tried other shortcuts. I noticed that all of my bookmarks are located in the Internet Explorer browsers, how can I restore setting back to Mozilla Firefox?

    I have problems with seeing my bookmarks, file, view, edit...buttons. I tried other shortcuts. I noticed that all of my bookmarks are located in the Internet Explorer browsers, how can I restore setting back to Mozilla Firefox?

    Is the menu bar missing (the one containing File, View, Edit etc)? If it is, the following link shows how to restore it - https://support.mozilla.com/kb/Menu+bar+is+missing

  • Upgrading to V4 has lost all of my Bookmarks, I still have the restore files in my profile data but they will not load, I have tried importing the html backup file too but it didn't work either. How can I get them back?

    Upgrading to V4 has lost all of my Bookmarks, I still have the restore files in my profile data but they will not load, I have tried importing the html backup file too but it didn't work either. How can I get them back?

    Ok this is bizzare!
    Thank you for your response, I went throught each and every step without any luck, even got the recovery programme, and painstakingly tried to sift through all that mumbojumbo to find what i needed. finally found the bookmark bit, but it had been fully overwritten :(, so on reading about previous ff versions, found the sqlite thingys, and they were relatively unscathed(partly written over, but saveable apparently TG), saved them to adiff drive, amongst other possibly good folders. Then looked up how to install them, and it said to close FF, and install to profile folder.
    So i tried to close FF, and the original problem from a few days ago, where it asked me if 'i was sure i wanted to close this window as it has X tabs open', popped up again. This is where 'open blank page' selection was set, over 'open previous tabs'. Wanting to save that info on how to sort out these friggin files, I reset the Option to 'open previous tabs', and closed FF. After unsucessfully searching for the profile folder on my laptop, i opened FF intending to search online for where i could find said folder.
    AND BANG, surprise surprise, the FF I had just closed with only tabs open about finding out what the heck to do, had disappeared, and instead my original saved tabs were up, and my bookmarks are there..... I am gobsmacked! what the heck just happened there???
    I have made 3 back up in different folders now, of those friggin bookmarks. I am weary now tho of shutting it all down.... what if its back to the other pages I had with no bookmarks, tomorrow :(

Maybe you are looking for