Is there a command cheatsheet for personalization server?

Hello,
I am having trouble understanding how different commands work to forward a
page. Is there a simple cheat sheet that explains when to use different
commands? Here are some examples:
How do I forward control to a standalone JSP page? Currently from
portal.jsp, I use <jsp:forward page="somepage.jsp"/> Is this the best way
from portal.jsp. What about from other pages?
How do I get back to the main jsp page. In the somepage.jsp I have tried
the following:
<%
response.sendRedirect(response.encodeURL("/TestProduct/application/TestProdu
ct")); %>
<jsp:forward page="<%=createURL(request, getHomePage(request), null)%>">
<jsp:forward page="<%=createURL(request,
response.encodeURL(getTrafficURI(request)), null)%>">
<jsp:forward page="<%=createURL(request, 'portal.jsp', null)%>">
<jsp:forward page="<%=createURL(request, getHomePage(request), null)%>">
<jsp:forward page="<%=getTrafficURINoContext(request)%>">
Sometimes one of them works, other times they don't. I still don't get the
difference between these. Yes, I have looked at the JavaDocs, but I still
don't get it. I am hoping that there is someone out there that has been
through these leaning pains that can help out with this!
I have one situation where I am at a standalone jsp page in the portals
directory. Depending on which button the user selects, I either want to
redirect back to the main portal page, or back to a login screen by logging
the user out (I require a login on all pages except the login page). Going
to the main page required using the sendRedirect. None of the jsp:forward
commands would work. I still havent been able to figure out how to log a
person out. I was trying to use jsp:forward back to portal.jsp with a
jsp:param of headerAction="signout", but that didn't work either.
Am I making this harder than it should be?
Thanks for any help any one can offer.
Ken Lee
[email protected]

Hi Kenneth,
I assume you are talking about WLCS/WLPS 3.5. You will want to check out
Webflow http://edocs.bea.com/wlcs/docs35/wflopipe/index.htm , which is included
with WLCS 3.5, but only if you have the Commerce Server license. The
Webflow/Pipeline framework has been popular and it is included with the basic
WLPS 4.0 license in the newest release and will enable you to manage your
application navigation without changing your initial JSP code.
That said, it looks like you are talking about navigation without using
Webflow, so I'll address that. I would not recommend simply doing a JSP forward
out to a standalone .jsp page from your WLPS application because you will lose
track of your WLPS/WLCS session attributes that were set with
JspBase.setSessionValue(), JspBase.setLoggedIn(), etc. You should navigate by
passing requests through the FlowManager servlet, which will put an attribute
into the request, containing a String representing your web application's
context. This is used as a namespace for session attributes so that you can
have things like "exampleportal.SERVICEMANAGER.LOGGED.IN" and
"testportal.SERVICEMANAGER.LOGGED.IN" session attributes that are independent.
In other words, if you do a jsp:forward to a JSP page without going through the
FlowManager then the special key won't be present in the request, and then
JspBase.getLoggedIn() will always be false because JspBase.getLoggedIn() will
look for an attribute with a null component to the key like
"(null)SERVICEMANAGER.LOGGED.IN" and won't find it because it was set with
something like "myapplication.SERVICEMANAGER.LOGGED.IN" when you were in your
main application (which was accessed through the FlowManager servlet, which set
the special key in the request).
Look at
<wlcs3.5-install-dir>/config/wlcsDomain/applications/wlcsApp/exampleportal/portals/repository/_userreg.jsp:
<%
setOverrideDestination(request, JSP_USER_REG_SUMMARY);
setLoggedIn(request, response, true);
%>
<jsp:forward page="<%=getTrafficURINoContext(request)%>"/>
This setOverrideDestination() call sets a request parameter that the FlowManager
servlet uses to forward to the real destination (after putting a "key" into the
request that will be used by all subsequent JspBase.getSessionValue() ,
getLoggedIn(), etc. calls). Then the jsp:forward is done to the FlowManager
servlet.
Another common way to go through the FlowManager to another JSP page is through
the use of an HTML form. To do this, look at the example in
<wlcs3.5-install-dir>/config/wlcsDomain/applications/wlcsApp/exampleportal/portals/repository/loginSuccess.jsp.
Look at the hidden input in the HTML form:
<input type=hidden name="<%=DESTINATION_TAG%>" value="<%=getRequestURI(request)%>">
and the action:
<form method="post" action="<%=response.encodeURL(getTrafficURI(request))%>" name="UserLoginForm">
The hidden input sets a request parameter that says, "the real destination is
getRequestURI(), which is this page, so submit the form back to this .jsp
page". The action says, "submit the request to the FlowManger servlet that is
registered with this application in the Application Init property set ( search
for application_init and 'application init' in the docs, for instance:
http://e-docs.bea.com/wlcs/docs35///////portal/portldev.htm#1042719 ) The
FlowManager servlet forwards the request to the destination set with the hidden
parameter (or with JspBase.setOverrideDestination, or with a request parameter
in the query string like "dest=/mystuff/index.jsp".
Note that the FlowManager implements a security feature that will not allow you
to go through the FlowManager servlet to a resource that is not in your
applications workingdirectory, as specified in the application init property
set.
It is a long story. I would recommend that you use exampleportal to create a
few simple test portlets that practice these techniques. You should also create
a portlet that iterates through all session attributes and request attributes
and parameters so that you can see what I am talking about with the "key" used
to fix up WLPS session keys.
After you practice a little bit, you can contact support with a specific
navigation problem and they can help you solve it: (
http://www.bea.com/support/index.jsp )
Kenneth Lee wrote:
Hello,
I am having trouble understanding how different commands work to forward a
page. Is there a simple cheat sheet that explains when to use different
commands? Here are some examples:
How do I forward control to a standalone JSP page? Currently from
portal.jsp, I use <jsp:forward page="somepage.jsp"/> Is this the best way
from portal.jsp. What about from other pages?
How do I get back to the main jsp page. In the somepage.jsp I have tried
the following:
<%
response.sendRedirect(response.encodeURL("/TestProduct/application/TestProdu
ct")); %>
<jsp:forward page="<%=createURL(request, getHomePage(request), null)%>">
<jsp:forward page="<%=createURL(request,
response.encodeURL(getTrafficURI(request)), null)%>">
<jsp:forward page="<%=createURL(request, 'portal.jsp', null)%>">
<jsp:forward page="<%=createURL(request, getHomePage(request), null)%>">
<jsp:forward page="<%=getTrafficURINoContext(request)%>">
Sometimes one of them works, other times they don't. I still don't get the
difference between these. Yes, I have looked at the JavaDocs, but I still
don't get it. I am hoping that there is someone out there that has been
through these leaning pains that can help out with this!
I have one situation where I am at a standalone jsp page in the portals
directory. Depending on which button the user selects, I either want to
redirect back to the main portal page, or back to a login screen by logging
the user out (I require a login on all pages except the login page). Going
to the main page required using the sendRedirect. None of the jsp:forward
commands would work. I still havent been able to figure out how to log a
person out. I was trying to use jsp:forward back to portal.jsp with a
jsp:param of headerAction="signout", but that didn't work either.
Am I making this harder than it should be?
Thanks for any help any one can offer.
Ken Lee
[email protected]
Ture Hoefner
BEA Systems, Inc.
2590 Pearl St.
Suite 110
Boulder, CO 80302
www.bea.com
[att1.html]

Similar Messages

  • Are there any JDBC Drivers for SQL Server 2000?

    Hello Everyone,
    Any news on the JDBC drivers for SQL Server 2000? I know it is not
    certified yet but is there a date when it will be.
    Which versions of WLS will they work with? Any help is appreciated.
    Sincerely,
    --Luis

    Hello Michael,
    Any news on the JDBC drivers for SQL Server 2000? I know it is not
    certified yet but is there a date when it will be.
    Which versions of WLS will they work with? Any help is appreciated.
    Sincerely,
    --Luis
    "Michael Girdley" <[email protected]> wrote in message
    news:3a6549bb$[email protected]..
    Not yet, but they will appear on the web site in about two weeks.
    Thanks,
    Michael
    Michael Girdley, BEA Systems Inc
    Learning WebLogic? Buy the book.
    http://www.learnweblogic.com/
    "Stefano Picozzi" <[email protected]> wrote in message
    news:[email protected]..
    Are there any JDBC Drivers for SQL Server 2000 for Weblogic Server.

  • Are there different licensing schemes for WebLogic Server?

    Is there different licensing schemes for WebLogic server?
    For example,
    Is there a licensing scheme to purchase a runtime WLS license so we can run only ADF and BIP?
    Is there a licensing scheme to purchase a runtime WLS license so we can run only ADF and Oracle Reports?
    Edited by: 957072 on Jan 28, 2013 5:43 AM

    Please go through below metalink id for weblogic licensing.
    Master Note on WebLogic Server (WLS) Licensing and License Files [ID 1076283.1]
    Thanks,
    Kishore

  • Set Command Timeout For SQL Server

    Hello,
    How do you set the command timeout for the 'open' statement? I am running a Database via SQL Server and I tried the dialog box timeout statement (the check box on the advanced tab) and simply get an error. The manual shows a 'step.commandtimeout' but how is it implemented?
    Thanks,
    Kevin

    Kevin -
    I looked at the internal implementation of the CVI SQL Toolkit. The toolkit function that the step type uses is DBNewSQLStatement. Internally to the toolkit the function opens a recordset instead of a command object. The command timeout attribute is only available on a command object and not on a recordset object, so as implemented inside the toolkit the error is appropriate. I think the toolkit could have used a command object to create the recordset object and this would allow the toolkit to let you set the timeout attribute. Unfortuneately this is not the way it was done.
    For the future I may investigate to see if there is a way to bypass this limitation by using different toolkit functions, but I am not sure if there a
    re any side effects.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • I want to have pages speak with more than one voice. Is there a command / script for this.

    This may seem strange but I teach ESL and want my students to practice listening exercises.
    What I want is to prepare a dialog and have it speak in two different voices like a normal conversation between a man and woman.
    Is there some script or command that I can insert into my text document that will basically change the voice from one person to another.
    Ex: How are you Jim? (in allison voice)
            Fine thanks. (in Fred voice)
    BTW: I recently found that there is a command [[slnc 3500]] that causes the computer to wait an amount (in milleseconds) between phrases, but have not found any other commands.
    Thanks for your help!

    Let's say you have a TextEdit document, that contains clusters of passages:
    [Allison]How are you, Jim?
    [Fred]Fine, thanks.
    The best you can hope for without considerable complexity, expense, or both is to fall back on the Automator application on OS X. You can create a very simple Automator Service that speaks selected text in the chosen voice. This Service can be tied to a unique keyboard shortcut, and each voice can have its own unique keyboard shortcut that provides a voice start/stop speaking capability for longer text passages.
    Once the individual Automator Services for Allison and Fred voices are saved, the student can triple-click on a sentence or paragraph. I have embedded the [voices] at the beginning of the sentence, and added a feature to the Automator Service that tests the [voice]. Select the [Allison] sentence and use Fred's keyboard shortcut and nothing is spoken.
    Automator is found in your /Applications folder. It is the robot with the pipe. When you first launch Automator, it will prompt you for a new document. Select new document and then double-click the Service gear. In the left Automator panel, are Libraries of actions. Select the Text category. Immediately to the right, will be a column of Text related actions. Locate, single-click, and drag the Filter Paragraphs action to the much larger workflow window and release it. Locate the Text action Speak Text, and drag/drop it below the Filter Paragraphs workflow item. Make certain that these are configured to reflect the following completed Allison Service workflow. You should now have the following (single-click to enlarge the image):
    Save this via Automator > File > Save... and name it just Allison, or Allison-voice. From the Automator File menu, close the Allison Service workflow. Now, following the above instructions, repeat this process to make the Fred Service with Automator > File > New.
    Copy the above TextEdit text into a new TextEdit document. Select the [Allison] line, and then see if the Allison Service is available under TextEdit > Services > Allison. If it is, select it and listen. If no Allison Service appears here — select from the Dock, System Preferences, and then the Keyboard preference. Select Shortcuts > Services and then scroll the right list of Services to find Text > Allison. It is probably selected, but deselect, and then reselect it. It should now appear under the TextEdit > Services menu. In the following Screenshot, you will see the Allison Service activated and assigned a control-A key to activate the voice on the selected text in your document. Repeat this process for the Fred voice Service, with a different keyboard shortcut than Allison.
    It is a good idea to be aware of reserved keyboard shortcuts.
    OS X
    Pages ’09
    Pages v5.
    Voices
    If you want to fine tune Allison's (or Fred's) speaking rate, you can do this in the Dictation & Speech > Text to Speech preference panel. If you check the Speak selected text when the key is pressed item, you can start and stop Allison speaking the selected document text in longer text passages. Since the default system voice uses Control+S, you probably want another short-cut specific to Allison. I chose Control+Q. Once Allison is speaking, press Control+Q to pause, and Control+Q to resume speech to the end, or until encountering [Fred]. When you configure Fred, you will need a separate Text to Speech shortcut for that voice.
    In Summary, you now have two different voices that are initiated as Voice Services with two unique keyboard shortcuts. The individual voices can be paused or resumed once initial Voice Service is started. For a given voice, the student selects the voice specific text passage, and presses the associated keyboard shortcut for that voice. If the passage is a larger paragraph, the student may pause the voice with its unique pause/resume keyboard shortcut. If a student doesn't select a passage of text and presses the voice's pause/resume key, it will start speaking until it runs out of text. An undesirable side-effect.
    You should have sufficient guidance above to create and activate two voices as you initially described.

  • Is there any monitoring tool for web server and application server ?

    experts,
    I just want to know that is there any monitoring utility which being used to monitor the web server activities like threads web console session tracking and so on..
    I am using Jboss as my application server.If you suggest any monitoring tool for Jboss It would be helpful for me,

    You may use jConsole

  • Are there any sequential labs for the Server 2012 Exams?

    Virtualbox might work on Win 8.1 home:
    https://www.virtualbox.org/wiki/Downloads

    I have been studying the Server 2012 Videos and doing the online free labs, but they cover different parts of 2012 server. What I would like to get are sequential labs for 70-410, 70-411 and 70-412 so that I may have hands on as well as video and book training. I would even pay for the service. Please let me know if such a thing exists. I guess what I am asking is, can I get what a course wares lab books are also available online.Thank you, I have been using the below link up to this point, it's good practice, but I would really like better structure.https://technet.microsoft.com/en-us/virtuallabs?id=f9E0rhsEF74&f=255&MSPPError=-2147217396Thanks
    This topic first appeared in the Spiceworks Community

  • Need api docs for personalization server and 5.1 server

    Hi,
    I can't seem to find the javadocs for the apis described above...can
    someone please help?
    thanks
    Neelam Checknita ; ~ )

    Javadoc:
    WLPS 2.0: http://e-docs.bea.com/wlcs/javadoc/p13n/index.html
    WLCS 2.0: http://e-docs.bea.com/wlcs/javadoc/comp/index.html
    WLS 5.1: http://www.weblogic.com/docs51/classdocs/javadocs/index.html
    Main docs:
    WLPS/WLCS 2.0: http://e-docs.bea.com/wlcs/index.htm
    WLS 5.1: http://www.weblogic.com/docs51/resources.html
    If you have a slow internet connection then download the docs at
    http://www.beasys.com/download.html
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com

  • BPA for SQL Server

    Hi Experts,
    Need to configure BPA 2008 R2 and 2012. Can you please help confirm if needed to run this tool for remote scan of SQL Servers,i.e install BPA on one central server and use it to scan the rest of the SQL servers in the environment, it is needed to run the
    below metioned command on the remote servers through powershell :
    1. Enable Remoting using "Enable-PSRemoting".
    2. Configure MaxShellsPerUser using "winrm set winrm/config/winrs `@`{MaxShellsPerUser=`"10`"`}" .
    a)Is there anything else needed to be done on the remote servers to allow BPA to run.
    b)Does it differ operating system wise.
    b)How do i reverse these commands after my scan is done.
    Thanks

    Hi,
    The latest version of Best Practices Analyzer for SQL Server is SQL Server 2012 Best Practices Analyzer.
    You can download it from
    http://www.microsoft.com/en-us/download/details.aspx?id=29302
    I will update this thread when there is any update for SQL Server 2014 version.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Thin driver for SQL server 2000

    Hi,
    Is there a thin driver for SQL server 2000?
    If so where can i find it?
    I searched the net but in vain.
    thanx in advance
    Partha

    Did you try the search engine available at the java soft site
    http://industry.java.sun.com/products/jdbc/drivers
    I used this engine some time ago and found that the thin driver at http://www.inetsoftware.de was the best fit for our project.
    hope this helps.
    regards,
    Abhishek.

  • Using JSP & JDBC driver for SQL Server 2000 on Red Hat

    I successfully have a .jsp app running on windows server 2000 using JDBC
    driver for SQL Server 2000. Which I installed in order to the following
    Red Hat:
    http://msdn.microsoft.com/MSDN-FILES/027/001/779/install.htm
    I moved the .jsp app over to the Red Hat 9 server running Tomcat, while
    keeping the MS SQL 2000 on windows. The issue I have is setting up the
    JDBC driver for SQL Server 2000 on the Red Hat server.
    I created a folder called /usr/java/MSSQLdriver and unzipped the tar file with
    the driver for SQL Server 2000. And ran the install.ksh script.
    The /usr/java/MSSQLdriver/lib has the following files within it:
    msbase.jar, msutil.jar, & mssqlserver.jar
    I chmod 0777 each of the *.jar files.
    I then went into /etc/profile.d/tomcat.sh and adding the following:
    CLASSPATH=.;/opt/msSQLjdbc/lib/msbase.jar;/opt/msSQLjdbc/lib/msutil.jar;/opt/msSQLjdbc/lib/mssqlserver.jar
    Each time I login and pull up the termial I get the following error:
    bash: /opt/msSQLjdbc/lib/msbase.jar: cannot execute binary file
    bash: /opt/msSQLjdbc/lib/msutil.jar: cannot execute binary file
    bash: /opt/msSQLjdbc/lib/mssqlserver.jar: cannot execute binary file
    And can't connnect to the database within the .jsp app.
    Is there anyone out there using DBC driver for SQL Server 2000 on the Red Hat server?
    Michael

    Sorry, I needed to correct some information of where the drivers were installed.
    I created a folder called /usr/java/MSSQLdriver/new and untar the Microsoft file with the driver for SQL Server 2000. I ran the install.ksh script "sh install.ksh"
    installed the driver into the default directory "/opt/msSQLjdbc".
    The /opt/msSQLjdbc/lib has the following files within it:
    msbase.jar, msutil.jar, & mssqlserver.jar
    Michael

  • GDS repository for MDM server

    Greetings,
    A couple questions for GDS experts...
    1. Is there a GDS repository for MDM server? I am asking about an .a2a file. I am not able to find one. Could you please guide me to the location from where I can download it?  Thanks.
    2. When we extract data from ERP, it is stored on MDM server. This much I gathered from different presentations but in which repository does it go to?
    3. If there is an MDM repository for GDS solution then can we modify it and add more fields to it?
    Regards,
    -T

    Hi,
    I checked the directory listing of the folder where I extracted that zip file and as you can see below there is no a2a file.
    Regards,
    -T
    Directory of C:\software\SAPSWs\new folder
    11/04/2008  08:12 AM    <DIR>          .
    11/04/2008  08:12 AM    <DIR>          ..
    11/04/2008  08:00 AM    <DIR>          Connector
    01/27/2008  05:21 PM        30,149,843 GDS_1.0.6.1.ear
    01/27/2008  05:21 PM        16,109,596 GDS_ExternalValidations_1.0.6.1.ear
    11/04/2008  08:00 AM    <DIR>          MDM
                   2 File(s)     46,259,439 bytes
    Directory of C:\software\SAPSWs\new folder\Connector
    11/04/2008  08:00 AM    <DIR>          .
    11/04/2008  08:00 AM    <DIR>          ..
    01/25/2008  09:38 AM            67,243 com.sap.mdm.tech.connector.sda
    01/25/2008  09:38 AM         5,008,269 com.sap.mdm.tech.mdm4j.sda
    01/25/2008  09:38 AM         5,078,356 MDMJAVAAPI05_2.sca
                   3 File(s)     10,153,868 bytes
    Directory of C:\software\SAPSWs\new folder\MDM
    11/04/2008  08:00 AM    <DIR>          .
    11/04/2008  08:00 AM    <DIR>          ..
    01/25/2008  08:16 AM        24,251,867 MDMConsoleInstall_Ver5.5.42.103.exe
    01/25/2008  08:18 AM        27,671,239 MDMDataManagerInstall_Ver5.5.42.103.exe
    02/08/2008  12:15 PM       168,756,751 MDMServerInstall_Ver5.5.42.103.exe
                   3 File(s)    220,679,857 bytes
         Total Files Listed:
                   8 File(s)    277,093,164 bytes
                   8 Dir(s)   5,152,546,816 bytes free

  • StoreVault Manager for Windows Server 2008 R2

    There is this software for Windows Server 2008?I need to keep one Windows Server 2003 just to have this software installed.Any one knows any procedure for that?Best RegardsRobson

    I know this post is older then dirt but am running into this issue as well after raising the functional level to 2008. If you are still out there were you successful with doing this as I tried and am still not able to access. Wondering if i'm missing something. Has anyone else heard of a way around this? Thanks!

  • Merge Module for Windows Server 2008

    Hallo,
    I made a project with C# in VS 2005, and when I ran this project on a XP machine where no VS 2005 was installed, I needed to make a Setup-Project with a CrystalReportsRedist2005_x86.msm on this machine.
    Now I want to run this project on a Windows Server 2008, and this Setup-Project can´t be run on Win Server 2008.
    Is there an other Mergemodule for Windows Server 2008?
    Every thing runs exept Crystal Reports!
    Can somebody help me please???

    it was just a beginner mistake, i just had to convert the VS 2005 Project into VS 2008 Project, and install the runtime on the target machine (CRRedist2008_x86.msi). and that´s it!
    it was not possible with the Merge Module.
    at first I tried to do it with CrystalReportsRedist2005_x86.msm on a Windows 2008 Server.

  • EWA via solman for SQL Server

    Hi,
    I'm trying to configure EWA via solman for an ECC 6.0 system on MS SQL 2005.
    I've completed all the necessary steps i.e. all the RFC's are working fine, RTCCTOLL is ok, the report is getting generated in SDCCN on the satellite system...however it doesnt seem to get transfered to solman.
    RSCOLL00 gives a weird "database system not supported " message although it shows finished successfully.
    Is there some other program for SQL Server or maybe something that I'm missing...
    Pls. help.
    Thanks a lot,
    Saba.

    Hi Saba,
    you can't schedule EWA for Solution manager sessions in SDCCN of the satellite. The only kind you can schedule in the satellite is the kind you send directly to SAP, that's why SDCC_OSS appears as the RFC connetion. You have to fetch EWA for Solution Manager sessions from the solution manager using a refresh sessions task. Does anything happen when you perform a refresh sessions task in SDCCN on the satellite (when you pick the RFC to Solution Manager as the destination)?
    You should also check that the service definitions are current in both satellite and solution manager systems. Note 727998 explains how to delete and replace them. (Often the only way of being totally sure that the service defintions are correct.)
    best regards,
    -David.
    Edited by: David Murphy  on Nov 20, 2008 4:26 PM

Maybe you are looking for