Login to infoview directly to the home page

Hi
I am triying  to create a jsp script that will aloow to enter to the infoview without entering the log in page
but the page that comming up is the log in page with an error  message  "your session is not valid or has expired"
did any one solved this issue?
here is the script:
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
<%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
<%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession" %>
<%@ page import="com.crystaldecisions.sdk.framework.ISessionMgr" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore" %>
<%@ page import="java.io., java.net., javax.servlet., java.util."%>
<%
String authMethod = "secEnterprise";
/* Log on using the Enterprise SDK */
String userID = request.getParameter("user");
String userPwd = request.getParameter("password");
String cmsName = request.getServerName()+":6400" /=request.getParameter("cms")/;
try {
IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userID, userPwd, cmsName, authMethod);
session.setAttribute("EnterpriseSession", enterpriseSession);
IInfoStore iStore = (IInfoStore)enterpriseSession.getService("InfoStore");
session.setAttribute("InfoStore", iStore);
String logonToken = enterpriseSession.getLogonTokenMgr().getDefaultToken()/createlogontoken/;
String openDocURL="http://" + request.getServerName() ":8080/InfoViewApp/listing/main.do?token="logonToken;
response.sendRedirect(openDocURL);
} catch(Exception e) {
out.println("Error: User, Password or CMS name is wrong or Not all parameters sent by URL");
%>
Thanks

Hi,
I have the same requirement where I need to check BO InfoView login.
Could you please let me know how did you ran the jsp code. I tried to run to but its giving me error. I used the same code provided by you and replaced the URL and Login Token as mentioned by you.
Error:
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Only a type can be imported. com.crystaldecisions.sdk.exception.SDKException resolves to a package
Generated servlet error:
Only a type can be imported. com.crystaldecisions.sdk.framework.CrystalEnterprise resolves to a package
Generated servlet error:
Only a type can be imported. com.crystaldecisions.sdk.framework.IEnterpriseSession resolves to a package
Generated servlet error:
Only a type can be imported. com.crystaldecisions.sdk.framework.ISessionMgr resolves to a package
Generated servlet error:
Only a type can be imported. com.crystaldecisions.sdk.occa.infostore.IInfoStore resolves to a package
An error occurred at line: 8 in the jsp file: /new.jsp
Generated servlet error:
IEnterpriseSession cannot be resolved to a type
An error occurred at line: 8 in the jsp file: /new.jsp
Generated servlet error:
CrystalEnterprise cannot be resolved
An error occurred at line: 8 in the jsp file: /new.jsp
Generated servlet error:
IInfoStore cannot be resolved to a type
An error occurred at line: 8 in the jsp file: /new.jsp
Generated servlet error:
IInfoStore cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Please let me know how to do this.
Thanks,
Nikhil

Similar Messages

  • Directing to the home page

    Hello everybody,
    If an user enters in the url address as http://zoramsite.com/UsernameOrAnything
    what I want is that the user will be directed to the home page of the site as
    http://zoramsite.com
    Where should I make changes in the application so as to succeed?
    Please advice,
    Thanks

    That's "Nope, I don't know how", rather than "Nope, I'm not telling you" by the way. If I knew how, I'd be happy to tell you
    By the way, you've got a few unrelated questions live here at the same time. Can I give you some advice? Concentrate on getting one thing working before trying something else. You'll save yourself an enormous amount of time

  • I use BT Yahoo! but when I try and navigate to email from the home page it keeps jumping between 'connected and waiting for login' and never loads up.

    My internet service provider is BT in the UK. The home page is www.btinternet.com. After I've logged on, the home page displays fine - I can see the summary of my emails in one of the windows on the home page. The problem comes when I click on the mail application. The page then tries to load the email application. However, it never actually loads, it keeps jumping between connected and waiting for login. It never achieves it so I just have to click the 'back' button to get to the home page. I use chrome and ie but neither has this problem.

    I retraced my steps to how i got the Google app:
    App Store icon on Home Screen > Search, at bottom > entered Google
    The first Google App on the screen appears:
    Google logo small g in blue square: Google Search; Open (because it is already installed).  Below that is a picture of the iPod with the usual  Google Search screen.  I have never inserted a link into a discussion group so i hope you can open this. 
    http://https://itunes.apple.com/us/app/google-search/id284815942?mt=8
    Does this bring us any closer? 

  • Change the home page to a login page

    Hey,
    I've set up web services so that they can be accessed from the open internet, however the home page is set to the standard OSX Server page (eg with details for the different services offered by the server). Is there any way to set this as a login page so users have to login before they get anything at all?
    That is, I want users to login before they get anything from the server, rather than seeing a little then having to log in for more.
    Thanks!

    Set up a realm for your entire webserver/documents directory or for your index page.

  • When I open Firefox, I get a page that says that Firefox did not direct properly and to try again. When I click the try again, the home page opens. What can I do to avoid this. It just started today. Rebooting does not help.

    This happens only with the home page when I open the browser.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • Netflix just 'hangs' and won't even open the home page, although if i log in as a guest then I can access it.

    Netflix won't even open the home page to let me register and just hangs for ages. I have the same trouble on both safari and firefox but have updated both anyway. I'm guessing this is an 'identity' issue because if I log in as a guest on my own laptop I can open the netflix site, although there are all sorts of parental controls on there that I can't seem to override!
    I have un-installed silverlight, tried again but no luck.
    I re-installed silverlight. Still no luck
    It's not a disaster as I'm still able to watch on my ipad, however it's annoying me and I like a mystery to solve!
    any ideas?

    A password reset would certainly be a good idea. However, it could be an iCloud issue. If you Mac matches your user password to your Apple password, it could be that when you initially start up, you don't have an internet connection...
    Logging in as guest gets you connected, thus being able to authenticate. So when you change it, either make sure it's stored locally, or run some diagnostics on wifi connection upon startup. Out of interest, are you connected at the login screen (top right next to the time will tell you)?

  • How can I create a working link from the home page to other pages?

    Using iWeb, I created links on the Home page directed to other pages within my web site. The links are located in the main body of the Home page (on the right side) and are not included in the Navigation Menu. The links function correctly when I test them in iWeb, however, the links do not function at all after publishing to the internet.
    Within the inspector, I have chosen, Link To: "One of my pages" and the appropriate page is selected.
    The links within the gray rectangles do not function. The same links below the gray rectangle links go to a "Page Not Found" page.
    See the home page at http://www.daleenstrom.com
    How can I make these links function correctly?

    Welcome to the Apple Discussions. I've found that using the "One of my pages" often doesn't work. Since you've published the site go to each page, copy its URL and use it for the hyperlink. I've found that to me more reliable.
    Are those two links inside the shapes or just on top? Both of those items are one large image file. If you inserted the link in the shape be sure you've selected the text (might take a few clicks to get inside and select it) to use for the hyperlink. Also make sure there are no other objects overlapping each of the shaped with the hyperlinked text.
    Also it appears that the entire text box is an image. Turn on iWeb's preferences to display the text image indicator:
    Click to view full size
    and then you'll see the following on any object that will be converted to text once published:
    Click to view full size
    The two links below work for me. Be sure to clear your browsers cache (CommandOptionE for Safari) and reload the page.
    OT

  • Apps Stopped Working and go back to the home page

    Today suddenly my apps stopped working. When i would press them it would come up for a few secs and then go back to the home page. So i deleted all my apps on my ipod and figured i can dl again from my itunes. When i tried syncing the apps i got the msg: Some apps(all of them) were not synced because this computer is not authorized blah blah. I can Sync my songs/photos/vids fine. Can anyone help?

    From the message you need to authorize the computer for the account that purchased the apps.  See:
    About iTunes Store authorization and deauthorization
    ALso make sure the iPod is also sign into that account.
    You can also redownload the apps directly to the iPod if you have iOS 4.3 or later,  see:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • No matter which page i run... i should get the home page first

    Hi,
    i have some jspx pages in my application
    No matter which page i run... i should get the home page first
    Because there is a chance that the user might remember the url of a certain page and copy paste that one in the browser... in such type of scenarios also home page should come first
    After i implemented Adf security in the redirect upon successful login i took the home.jspx page... but it is not going to home.jspx when i run some 'x' page and give the credentials for authentication.
    This for our project they dont want to implement at taskflow level for each and every taskflow... is there any higher level where we can implement such feature because home page is common for all.
    Thanx,

    No matter which page i run... i should get the home page first
    Because there is a chance that the user might remember the url of a certain page and copy paste that one in the browser... in such type of scenarios also home page should come first
    After i implemented Adf security in the redirect upon successful login i took the home.jspx page... but it is not going to home.jspx when i run some 'x' page and give the credentials for authentication.Just create a filter and put some logic like the one below:
      if(!request.getRequestURI().contains("homePage"))
                 ((HttpServletResponse)servletResponse).sendRedirect("http://server/yourApp/faces/homePage");
      else
          filterChain.doFilter(request, servletResponse);You can easily search for how to create a web application filter and register it in web.xml ..

  • Start page lacks menu items - unlike "How to set the home page" view

    I have just downloaded the beta of Firefox 4 and am attempting to reproduce opening home page from previous version. Directions on accomplishing this (loading the NY Times front page) depend on a menu bar with "File, Edit, View, History" etc. There are not visible. They are shown in the directions on Firefox Help but not on my computer. How to do this??

    Click the Firefox button, then click Options. This will open the options dialog that the [[How to set the home page]] article refers to.
    When viewing the support articles, in the right-hand column there is a section titled "Help With:", make sure it is set to Windows and Firefox 4 to get help relevant to the version you are using. In some articles you get different content when you select Firefox 4.

  • Only safari doesn't show the home page image - why?

    Hello
    Wonder why the home page image/masthead doesn't show on the home page, ONLY in Safari/mac - every other browser shows it. Would love a fix.
    Thoughts?
    thank you
    KB
    http://www.truthandlife.info

    Thanks very much for the thoughts - I redid that alternate masthead for ie5.5 and updated the link - yes, now the ALTERNATE banner shows but NOT the image I need, which does still show in other browsers. Only in Safari does the alternate masthead now show, but not the main masthead needed.
    Below is the code that directs the image for ie 5.5 but why would this affect Safari?
    =============
    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    public partial class DefaultPage : BasePage
    protected void Page_LoadComplete(object sender, EventArgs e)
    if (!IsCallback)
    // IE 5.5 isn't able to render the dynamic menu items correctly if
    // the size of the header image is too large. To work around this problem,
    // IE 5.5 gets a different header image than the other browsers.
    if (Request.Browser.Id == "ie55")
    mastheadImg.ImageUrl = String.Format("~/Images/homepage/masthead9.jpg", Page.Theme != null ? Page.Theme : Page.StyleSheetTheme);
    mastheadImg.Height = 206;
    litHeaderHeight.Text = "206px";
    ===============
    Also, here's the code that fixed the Safari fly out menu problem but has caused Safari to not show the proper masthead/image. Any thoughts?
    =====================
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    /// <summary>
    /// Summary description for BasePage
    /// </summary>
    public class BasePage : Page
    public BasePage()
    protected override void OnPreInit(EventArgs e)
    base.OnPreInit(e);
    if (this.Request.ServerVariables["httpuseragent"].ToLower().Contains("safari"))
    Page.ClientTarget = "uplevel";
    ================
    Thanks
    KB

  • Since installing the latest FF version 14.0.1 the search boxes on the home page don't work with google

    The normal google page works fine, but the search boxes on the home page (below firefox logo and the one top RH corner) just go nowhere unless you change the search provider using the dropdown, to yahoo or bing etc, in whcih case it searches fine - just won't work with google, which I prefer to use. I have an older version 3.6.13 on another desktop and that still works fine.
    Any ideas team?

    golden-grace, to answer some of your questions:
    * Firefox 3.6 is no longer supported and will no longer be updated for security vulnerabilities or any other updates.
    *On resetting '''browser.startup.homepage_override.mstone''': It's normal for the "welcome to Firefox" tab to open and for that preference to revert back to user-set and show Firefox 14.0.1 afterwards.
    *On deleting the chromeappsstore.sqlite file in the Firefox Profile Folder and then resetting that preference again: You can open the Profile folder from the Firefox Help -> Troubleshooting Information page. See the [[Profiles]] article for more information.
    * On installing new search engines from http://mycroft.mozdev.org that simply adds new search providers to the [[Search Bar|Search Bar]]. It does not install a new search bar. You will still have a single Search Bar and the "normal" Google will still be listed.
    Getting back to Google not working from the about:home homepage or from the upper right corner search box, you said,
    ''the page tab changes to "connecting" and the little circle starts revolving, just as though it is looking for the page as normal and at the bottom of the home page the message appears "waiting for www.google.com"''. You also said in your original post that, ''The normal google page works fine.'' Which normal google page is that?
    If you can go to www.google.com directly, and it works fine:
    I would try removing Google from the list of search providers and then use the "Restore Defaults" button in the Search Bar "Manage Search Engine List" dialog to add it back to the list, then select it again as your default. The [[Search Bar|Search Bar]] article explains in detail how to do that. (Alternately, try the [https://addons.mozilla.org/firefox/addon/searchreset/ Search Reset] add-on. This should also add back Google and set it as the default.)
    If you try going to www.google.com but it never connects, that's a whole other issue. Putting that aside for now, if you would rather use google.co.uk from the Search Bar, you can install it <u>as an additional choice from the Search Bar drop-down menu</u>, by going here:
    * http://mycroft.mozdev.org/google-search-plugins.html ... where it's listed as '''''Google UK - the Web (google.co.uk) by Mycroft Project'''''. (You will still have a single Search Bar and the "normal" Google will still be listed.)
    If you try going to www.google.com but it never connects, you could troubleshoot that by following the [[Basic Troubleshooting]] article (I would start with clearing cookies and cache) but all of these steps may be frustrating for you. Another option is to simply reset Firefox (which saves your bookmarks, passwords, and some other essential data) to see if that resolves the problem. You can do that from the Firefox Help -> [https://support.mozilla.org/en-US/kb/provide-detailed-information-for-firfox-issues#w_accessing-the-troubleshooting-information-page Troubleshooting Information page]. For details, read the [[Reset Firefox – easily fix most problems]] article. You can then go to http://mycroft.mozdev.org/google-search-plugins.html and select your preferred Google search engine to use from the Search Bar.

  • Can I change the content of the home page ?

    Hello,
    Can I change the content of the home page ( http://127.0.0.1:8080/apex ) ?
    Can I change the text ?

    You can add a message to the login page by signing on as SYSTEM and navigating to Administration -> Manage Login Message. The text displays on the lower left of the Login page.
    Steve

  • Firefox STILL does not open the home page when a new tab is selected

    I have just 'upgraded' to FF4 and expected that the irritating 'new tab homepage load situation' would have been resolved by now: sadly, it looks to STILL be around.
    MS IE has been loading the homepage DIRECTLY when a new tab is selected for about FOUR YEARS now, so I'm staggered that such a simple but very useful feature is not available in Firefox.
    The obvious question is WHY??
    In IE, you don't have to keep hitting the home page button to carry out a search in google when a new tab is selected, and IE does NOT need an 'add-on' to incorporate this functionality; it really is quite irritating that the function is still not built-in to FF, and the coding requiret to incorporate the function ain't rocked science Mozilla people - WHY has this not been put into effect by now?

    Some people prefer a blank tab because it takes no time to load. Some people prefer their home page. Some people prefer a list of most frequently used sites. It would be convenient if all of these options were built in, but obviously no one stepped up and made it a priority.
    By the way, another way to search in a new tab is: Using the search box (on the toolbar), after typing your query, either press Alt+Enter or Ctrl+click the magnifying glass. This opens the search in a new tab and saves that step.

  • I can not access the home page

    I have installed Oracle Portal 3.0 EA on a Windows NT 4.0 Workstation
    running Oracle 8.1.6.
    And now I can not access the home page and login from a local browser installed on the server by typing http://<hostname>/pls/portal30/portal30.home.
    Apache is still working.

    Jan-Peter,
    Obviously the browser recognizes the servername:port because your sample works. It must have a problem with the pls or DAD.
    Can you access:
    http://servername:80/pls/admin_/gateway.htm
    If yes,
    Then check to make sure you are calling the correct DAD and they are setup. You can do this through the gateway.htm page.
    If no,
    Then your 9iAS did not setup mod_plsql correctly. Check oracle_admin to see if it points to plsql.conf
    null

Maybe you are looking for

  • WiFi Internet connection lost after iMac wakes up, what to do ?

    Hi, I used my iMac for a while with an older D-link product and Internet connection was fine. I purchased a new D-link product and whenever my iMac goes to sleep and wakes up again, I lose INternet connection although my airport icon still recognizes

  • Just Got My MBP In The Mail!!! Should I Wait?

    I just got my FedEx delivery of my new MBP!!! Should I wait until it gets to room temp before I fire it up? It feels really cold since here in Michigan it was 10 degrees overnight and feels like it sat on the truck all night.

  • LAP cannot discover WLC after static IP set

    I have an 1131 LAP that I originally configured with DHCP and it found the WLC fine. Then I forced the LAP to a static address from the WLC manager. Upon rebooting the LAP it could not find the WLC since it no longer uses DHCP and for some reason it

  • AE CS6 keeps crashing??

    Here is my crash log....Any help would be appreciated. Need to do school project and it keeps crashing. Im using the Mavericks operating system. Process:         After Effects [31795] Path:            /Applications/Adobe After Effects CS6/Adobe After

  • Regarding Idoc Change Pointer

    Hi All, I created a generic article in ECC 6.0 with 5 variants.I gave them sales price n created the idoc with 05.05.2008 to 31.12.9999 validity period.when i check the idoc, idoc consist of only two records of them. for next 3 variants, idoc was not