How to change Portlet Theme from JSP or Java on fly?

Is it possible?
For exmaple by using PortletBackingContext or thomething..
Thanks

Please ask this question in the WebLogic Portal forum:
WebLogic Portal

Similar Messages

  • Help me to control the transactions from jsp to java bean

    Please anyone can guide me how to control the transactions from jsp to java bean. I am using the Websphere studio 5.1 to develop the database application. I would like to know two method to handle the database. First, I would like to know how I can control the transactions from jsp by using java bean which is auto generated for SQL statement to connect to the database. Following code are jsp and java bean.....
    // call java bean from jsp
    for (i=0;i<10;i++)
    addCourse.execute(yr,sem,stdid,course,sec);
    I write this loop in jsp to call java bean..
    here is java bean for AddCourse.java
    package com.abac.preregist.courseoperation;
    import java.sql.*;
    import com.ibm.db.beans.*;
    * This class sets the DBModify property values. It also provides
    * methods that execute your SQL statement and return
    * a DBModify reference.
    * Generated: Sep 7, 2005 3:10:24 PM
    public class AddCourse {
         private DBModify modify;
         * Constructor for a DBModify class.
         public AddCourse() {
              super();
              initializer();
         * Creates a DBModify instance and initializes its properties.
         protected void initializer() {
              modify = new DBModify();
              try {
                   modify.setDataSourceName("jdbc/ABAC/PreRegist/PRERMIS");
                   modify.setCommand(
                        "INSERT INTO informix.javacourseouttemp " +
                        "( yr, sem, studentid, courseid, section ) " +
                        "VALUES ( :yr, :sem, :studentid, :courseid, :section )");
                   DBParameterMetaData parmMetaData = modify.getParameterMetaData();
                   parmMetaData.setParameter(
                        1,
                        "yr",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.SMALLINT,
                        Short.class);
                   parmMetaData.setParameter(
                        2,
                        "sem",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.SMALLINT,
                        Short.class);
                   parmMetaData.setParameter(
                        3,
                        "studentid",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.CHAR,
                        String.class);
                   parmMetaData.setParameter(
                        4,
                        "courseid",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.CHAR,
                        String.class);
                   parmMetaData.setParameter(
                        5,
                        "section",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.SMALLINT,
                        Short.class);
              } catch (SQLException ex) {
                   ex.printStackTrace();
         * Executes the SQL statement.
         public void execute(
              String userid,
              String password,
              Short yr,
              Short sem,
              String studentid,
              String courseid,
              Short section)
              throws SQLException {
              try {
                   modify.setUsername(userid);
                   modify.setPassword(password);
                   modify.setParameter("yr", yr);
                   modify.setParameter("sem", sem);
                   modify.setParameter("studentid", studentid);
                   modify.setParameter("courseid", courseid);
                   modify.setParameter("section", section);
                   modify.execute();
              // Free resources of modify object.
              finally {
                   modify.close();
         public void execute(
                   Short yr,
                   Short sem,
                   String studentid,
                   String courseid,
                   Short section)
                   throws SQLException {
                   try {
                        //modify.setUsername(userid);
                        //modify.setPassword(password);
                        modify.setParameter("yr", yr);
                        modify.setParameter("sem", sem);
                        modify.setParameter("studentid", studentid);
                        modify.setParameter("courseid", courseid);
                        modify.setParameter("section", section);
                        modify.execute();
                   // Free resources of modify object.
                   finally {
                        modify.close();
         * Returns a DBModify reference.
         public DBModify getDBModify() {
              return modify;
    I would like to know that how can I do for autocommit from jsp. For example, the looping is 10 times which mean I will add 10 records to the db. If the last record is failed to add to db, "how can I rollback the perivious records?" or guide me to set the commit function to handle that case. Thanks a lot for take your time to read my question.

    Hello.
    The best method is using a session bean and container managed transactions. Other method is using sessions bean and the user transaction object (JTA-JTS).
    so, JDBC has transaction management too.
    good luck.

  • HT4759 I lost all my contacts in my iphone. How can I get them from my icloud back to my iphone?

    All my contacts got deleted from my iphone 4s. How do I transfor them from icloud back to my phone?

    joephilipose,
    If the contacts are still in Address Book on your computer, but just not on the phone, you can tell iTunes to force replace the contacts on your phone with those from your computer. You can do this by going into the Info tab when your iPhone is connected, and checking the Contacts box under the Advanced section at the bottom of the page.
    You may also want to backup your Address Book information as well. It's a good idea to make periodic backups of your contact and calendar information in case information accidentally gets deleted or changed. You can find out how to backup your Address Book data here:
    http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/ad961.html
    To backup your iCal information, follow the steps in this article:
    http://docs.info.apple.com/article.html?path=iCal/3.0/en/9889.html
    Hope this helps,
    Jennifer B.

  • When deploying the new CU4 x64 and x86 users see that the install is happening. How do I prevent them from seeing this?

    When deploying the new CU4 x64 and x86 users see that the install is happening. How do I prevent them from seeing this?
    Thanks
    James A+, Network+, MCP

    If the program settings are set to hidden, it should be hidden. You do not need to specify any client settings. If you changed the program settings and the machines already had policy, you will have to wait up to your 60 minute policy setting or just manually
    kick off a policy update to see the new hidden program.
    If they are still getting the interactive install, then you need to troubleshoot if the machine has gotten proper policy. Run a 'Machine policy retrieval and evaluation cycle' manually, wait a few minutes and then test again.
    Suppress program notifications are the tray icons and bubble notifications about installations happening. Hidden is the method in which the executable/msi will install.
    Daniel Ratliff | http://www.PotentEngineer.com |
    @PotentEngineer

  • HT5624 Someone I don't know is using my email address as their Apple ID to sign and purchase apps ect and I keep getting notifications in my emails. How do I stop them from using my email address????????

    Someone I don't know is using my email address as their Apple ID to sign and purchase apps ect and I keep getting notifications in my emails. How do I stop them from using my email address????????

    If a person is using your email address, you should change your email password and make sure there aren't any forwards to some strange email address.
    An example if you were using gmail, under account settings, a forward can be set up to send messages to another email address.
    If your email address is say, you own domain, such as somename@somename dot com, make sure the forwards are forwards you set up.
    If your email account was hacked and the bad guy has access, you need to cut him off, first by changing the password and second cut off any message forwarding to the bad guy if he set it up.  Just changing the password would keep a bad guy out, but if the bad guy set up a forward, he will still get your email.
    A confirmation from Apple would have come to your email address in order to confirm that Apple ID.  If you are getting the other person's purchase notifications, you would have gotten a confirmation of that account from Apple.

  • How to change images dynamically in jsp?

    Hi All,
    i Want to know how to change images dynamically in jsp, for example in any site if u look at advertise or any images, it will be changed after every few seconds.
    Please guide me
    Thanks
    Sandesh S

    sandeshas wrote:
    Hi BlusC,
    i was searching your mail Id to ask the question directly to u,i checked in your blog also, but i didnt get,I want to keep my email spam safe. Only trusted people and direct friends have it. Just use the forums for discussion.
    my question is suppose if i want to display and change the advertise(adds from different company ) in my web site,how can i do it by using jsp?
    Do i need to create animated gifs which contains all company adds??one might be from movie add,after few seconds next one migth be some other web site add like that, how can i achieve this in my servet,jsp or using struts.You create animated gifs with an [animated gif editor|http://google.com/search?q=animated+gif+editor]. There is nothing what JSP can do for you here.

  • I've had three laptops all connected to my itunes account, one was stolen, the other broke, how can I remove them from my itunes account?

    So, in three years, after getting an iphone and an apple account I've had to replace a laptop twice due to theft or damage. When I link my phone to my new computer, it asks me if I want to connect the computer with the phone and I say yes, but you can only have 5 devices connected to one account, since one was stolen, and the other laptop broke, how do I remove them from my account??

    De-authorise all, then authorise the one you still have.

  • When I had a PC I simply took the wire going to my monitor and connected to my big screen TV to watch Netflix movies...How do I take them from my IMAC and connect them to my TV now?

    When I had a PC I simply took the wire going to my monitor and connected to my big screen TV to watch Netflix movies...How do I take them from my IMAC and connect them to my TV now?

    This could be problematic.
    It will depend on what model of iMac you have.
    You may want to post machine info.
    blue apple > about this mac > more info button. Click on the hardware line. It has a little triangle in front of the work hardware.
    Leave out the serial number.
    Example:
    Machine Name: iMac
    Machine Model: PowerMac4,1
    CPU Type: PowerPC 750 (33.11)
    Number Of CPUs: 1
    CPU Speed: 600 MHz
    L2 Cache (per CPU): 256 KB
    Memory: 768 MB
    Bus Speed: 100 MHz
    Boot ROM Version: 4.1.9f1
    Most of the iMac's have sometype of video output port on the back.  You will problably need a converter.
    The 'hollywood' industry has been making it more difficult to get video out over time to prevent copying.
    Robert

  • I have playlists on my original iPod but are not in the library.  How can I move them from the iPod to the library?

    I have playlists on my original iPod but are not in the library.  How can I move them from the iPod to the library?

    She can choose to either enable the setting on her iPod to Manually manage music and videos.  With setting enabled she can sync content to her iPod from multiple computers without it affecting whats already stored her iPod. For more information on syncing content to an iPod manually see this article. 
    http://support.apple.com/kb/ht1535
    However, I would recommend copying whats on her iPod to her iTunes library first.  There are several ways to accomplish this.  See this older post from another forum member Zevoneer discussing the different ways to do it.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • I have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device?

    i have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device? one is an iphone 6 and the others are ipad mini first gens, each ipad has 64gb and the iphone has 128, need to keep the data seperate as they are not all mine

    Itunes content and pics are NOT part of the backup that itunes performs.
    Backing up, updating, and restoring iPad, iPod touch, and iPhone software
    You should transfer any purchases from iphone regularly:  File>Transfer Purchases  , if they fail to be transferred when you sync.
    You buy one and only one download.  It is your responsibility to move/copy/backup your purchases.
    You can try contacting itunes support and asking for an exception, but they are under no obligation to allow.
    http://www.apple.com/support/itunes

  • How do i get my podcasts to go from the one i just finished to the next one and how do i sort them from oldest to newest?

    how do i get my podcasts to go from the one i just finished to the next one withouth me having to click on it, and how do i sort them from oldest to newest?

    Not sure if you tried this, but did you hold down both the sleep and home button for 10 seconds? 

  • How do I remove them from my itunes account as authorized accounts for my new macbook iphone and ipad to use? I CANNOT access them can i call you?  also if i have an old itunes account on another email

    help 4 of my authorized computers crashed or are gone how do I remove them from my itunes account as authorized accounts for my new macbook iphone and ipad to use? I CANNOT access them can i call you?
    also if i have an old itunes account on another email can i transfer those songs i still have access to both emails?
    thank you

    De-authorise all, then authorise the one you still have.

  • How can i remove them from my purchased(no hidden them)and my account for ever?

    hello
    I got a few free app before and did not download them completely and dont want to do this,
    but they stay in my purchased and start automatly when i connect to itunes store and going to crazy me
    How can i remove them from my purchased(no hidden them)and my account for ever?
    (I want to delete all free apps and Books from my purchases.)
    please help me
    thank you.

    There is no way to do it. Others have asked for the very same thing that you are asking for, but currently it just cannot be done. You can't remover purchases from your Purchase History - you can hide them - but you can't delete them from the history.
    You can delete the Apps from the iPad and you can delete them from iTunes on the computer. Delete them from iPad, delete them fromiTunes so that when you sync there is no chance that they will come back. Then hide the purchases. That's the best that you can do.
    On the iPad, tap and hold down on the app icons until the X pops up. Tap the X to delete the apps.
    In iTunes, clcik on Apps under the Library heading on the left. Right click on the apps that you want to delete and follow the prompts.

  • I got a few free app before and did not download them completely how can i remove them from my account forever

    i got a few free app before and did not download them completely and dont want to do this
    but they stay in my download list and start automatly when i connect to itunes store and going to crazy me
    how can i remove them from my account for ever
    please help me

    Try Here  >  https://discussions.apple.com/thread/4074945?tstart=0

  • I brought up my itunes through a friends laptop. I signed out thinking I could get on my home computer and still have my iTunes accessible, how do i access them from this computer? HELP

    I brought up my itunes through a friends laptop. I signed out thinking I could get on my home computer and still have my iTunes accessible, how do i access them from this computer? HELP

    Copy everything from the old computer or your backup copy of your old computer, to your new one.

Maybe you are looking for

  • Printing QR codes and Barcodes together

    Dear All, I have referred the following link to print QR code as a post script: http://scn.sap.com/people/robert.russell/blog/2010/10/25/barcodes-in-sap-with-the-barcode-writer-in-pure-postscript While printing my SAP Script/ SMARTFORM output on any

  • Registers as HDMI sound output?

    Hi, I am using a Macbook Pro 13 in Retina. I have been using an HDMI cord to plug sound in, but after disconnecting the HDMI cord... my Mac still is registering the HDMI cord as the primary sound output? There is no sound even when I plug the HDMI co

  • Converting JSP to PDF

    Hi All, I have a JSP file and I want to convert it into a PDF and save it in a specified directory. Can anybody suggest what should Ido ..?? Any help would be appreciated. Thanks a lot in advance.

  • Add an icon in JBuilder

    how can i add an icon to a button in JBuilder 4. the icon property for a button allways show <none>.

  • How do I SAFELY uninstall Premiere Photoshop Elements on Mac Mountain Lion. Program is useless.

    How do I SAFELY uninstalll Premiere Photshop Elements on Mac with Mountain Lion. Program is useless. Wasted $$.