Deploying a single jsp file in weblogic 9.2

Hi All,
I have installed weblogic server 9.2 on production environment . I have deployed a web application in exploded way, where i will be updated the JSP files frequently.
Whenever a JSP file is updated , the changed are not taking place.
Please suggest me , after changing a jsp file do i need to update the deployemnt or there is any to deploy a single JSP file using wenlogic.deployer utility.
Please suggest where to find documents for the same.
Please guide me on this issue.
Regards,
Krikar

Hi Kirkar,
As you have mentioned that your WLS92 Server is running on Production mode. In production mode we dont change our JSPs frequently. The JSPs are Automatically updated within 1-Second in Development environment (PRODUCTION_MODE=false if this is mentioned in your serverSatrtScript).
In Production Environment if you want that your JSPs whould be updated then Please specify the *<page-check-seconds> Tag in "weblogic.xml" file*.
NOTE: The value <page-check-seconds>1</page-check-seconds> means check the pages every second. This is the default value in a development environment.
For more informations...Please refer to http://download.oracle.com/docs/cd/E11035_01/wls100/webapp/weblogic_xml.html#wp1038491
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Is Wonderful...Proofs are here)

Similar Messages

  • Deploying a single JSP file

    Hi All,
    I have installed weblogic server 9.2 on production environment . I have deployed a web application in exploded way, where i will be updated the JSP files frequently.
    Whenever a JSP file is updated , the changed are not taking place.
    Please suggest me , after changing a jsp file do i need to update the deployemnt or there is any to deploy a single JSP file using wenlogic.deployer utility.
    Please guide me on this issue.
    Regards,
    Krikar

    Hi,
    As you have mentioned that your WLS92 Server is running on Production mode. In production mode we dont change our JSPs frequently. The JSPs are Automatically updated within 1-Second in Development environment (PRODUCTION_MODE=false if this is mentioned in your serverSatrtScript).
    In Production Environment if you want that your JSPs whould be updated then Please specify the *<page-check-seconds>* Tag in *"weblogic.xml"* file.
    NOTE: The value <page-check-seconds>1</page-check-seconds> means check the pages every second. This is the default value in a development environment*.
    For more informations...Please refer to http://download.oracle.com/docs/cd/E11035_01/wls100/webapp/weblogic_xml.html#wp1038491
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Is Wonderful...Proofs are here)
    Edited by: Jay SenSharma on Dec 16, 2009 3:24 PM

  • Can I use a select and update statement in a single jsp file?

    I want to update the BUY table everytime I would add a SELL transaction.....I want to minus the stocks that I sold to those that Ive bought before.....
    note: I used a seperate table in BUY and SELL transaction
    After I Have added a transaction, I want to update the buy table. This is my problem, can I used both SELECT and UPDATE statement at the same time in a single jsp file for example like this:
    select * from test, test1;
    update test
    set total_shares=total_shares-Stotal;
    where stock_code=Scode AND name_broker=Sbroker;
    Can i have both of these statements in the same jsp file in oder to update the buy table?
    Or can anyone suggest how can process that update?THANKS!
    --------------------

    Can i have both of these statements in the same jsp file in oder to update the buy table?Yes. But wouldn't it have been easier just to try it?

  • Help in executing jsp files using weblogic server 6.0.

              I have an operating system Windows2000, i have downloaded 30 day trial version of weblogic server 6.0.
              I have a file called hello.jsp.
              Where do i have to save hello.jsp file in weblogic server 6.0.
              How do i execute hello.jsp through browser using weblogic server6.0.
              As there is no properties file in weblogic server6.0.
              TO run it i started default server and when i started default console it got opened in the browser as http://127.0.0.1:7001/console/index.jsp
              Where do i have to save it and how do i open it in the browser.
              Any help will be greatly appreciated.
              Thanks,
              

              I started the Start default Server and opened the http://localhost:7001/ in the bowser and by default
              this loaded the index.html file
              and when i tried to change index.html to hello.jsp i got the same error message as before
              Error 404--Not Found
              From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              10.4.5 404 Not Found
              The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
              If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
              "mils" <[email protected]> wrote:
              >
              >There are quite a few reasons it couldn't be working, and things you can try...
              >
              >Ensure there are no errors on startup of the server in the console, especially that there is not an error about another web listener running on the same port.
              >
              >Try just http://localhost:7001 by default this should load the index.html file that comes with the WebLogic installation.
              >
              >If you are running on a corporate LAN, your browser settings may not be set correctly to find "localhost", ensure that your browser is not using a proxy server for local addresses, or put localhost:7001 in the list of exceptions for which the browser should not look at the proxy server.
              >
              >Hope this helps!
              >
              >"Red" <[email protected]> wrote:
              >>
              >>I created hello.jsp file under E:\weblogic\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\hello.jsp
              >>and i started the Start Default Server and when i try to open
              >>http://localhost:7001/hello.jsp in the browser
              >>getting an error message as
              >>
              >>Error 404--Not Found
              >>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              >>10.4.5 404 Not Found
              >>The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
              >>
              >>If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
              >>
              >>Any help?
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>
              >>"Mils" <[email protected]> wrote:
              >>>
              >>>In WebLogic 6.0, to run simple JSP pages with the default installation, the JSP files should be put in....
              >>>
              >>>C:\bea\wlserver6.0\config\DefaultWebApp_myserver
              >>>
              >>>...assuming you installation was on the C: drive.
              >>>
              >>>To access a file bar.jsp in this directory, go to http://localhost:7001/bar.jsp
              >>>
              >>>"Red" <[email protected]> wrote:
              >>>>
              >>>>I have an operating system Windows2000, i have downloaded 30 day trial version of weblogic server 6.0.
              >>>>I have a file called hello.jsp.
              >>>>Where do i have to save hello.jsp file in weblogic server 6.0.
              >>>>How do i execute hello.jsp through browser using weblogic server6.0.
              >>>>As there is no properties file in weblogic server6.0.
              >>>>
              >>>>TO run it i started default server and when i started default console it got opened in the browser as http://127.0.0.1:7001/console/index.jsp
              >>>>
              >>>>Where do i have to save it and how do i open it in the browser.
              >>>>
              >>>>Any help will be greatly appreciated.
              >>>>Thanks,
              >>>>
              >>>>
              >>>>
              >>>>
              >>>
              >>
              >
              

  • Deploying a .jsp file in weblogic

    How can we deploy a .jsp file in obiee or weblogic ? Is there anyway we just put the .jsp in some path and then restart the admin and managed server and then use the URL in browser as http://ipaddress:7001/default.jsp or http://ipaddress:9704/default.jsp
    any inputs as how to deploy the jsp
    Thanks,
    RM

    You need to go for virtual directory or deploy it (you and I need to refer doc to know how) :)
    Since you are using BI and analytics is pointing to web\res folder
    create a new folder under res and place it the jsp file
    you may have to call that jsp file something like
    localhost:port/analytics/FolderName/name.jsp
    you might have to restart services to reflect folder and its contents in analytics (ie. localhost:port/analytics/).
    Let me know updates.
    If helps mark

  • Deployed Application Missing JSP files

    I have deployed an web appliclation Using JDeveloper 10.1.3.3 to a remote Oracle AS When I look at the Deployed Application on the Server I only see the Servlet, the JSP files are missing. I looked at the .ear and .war files and the have all the components in them but the JSPs seem to be missiong from the server. I did not get any error messages from the deployment log
    ---- Deployment started. ---- Mar 13, 2012 2:19:32 PM
    Target platform is Oracle Application Server 10g 10.1.2 (Windows) (bantest).
    Wrote WAR file to C:\jdev\jdev\mywork\NJTransit\NJTransit\deploy\njtransit.war
    Wrote EAR file to C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear
    Invoking DCM servlet client...
    C:\jdev\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\jdev\jdev\lib\oc4j_remote_deploy.jar http://207.200.160.20:18100/Oc4jDcmServletAPI/ ias_admin **** redeploy D:\oracle\FRHome_1 C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear NJTransit
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command redeploy D:\oracle\FRHome_1 C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear NJTransit UNDEFINEDCommand = REDEPLOY
    Reading application's ear file
    Ear file was successfully read
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = 5e8e9abcf2b84b9639667c4ea36dccf4a8199cf3785755d564948b1e8d096849
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=5e8e9abcf2b84b9639667c4ea36dccf4a8199cf3785755d564948b1e8d096849
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    DCM command completed successfully.
    Output:
    Exit status of DCM servlet client: 0
    Elapsed time for deployment: 13 seconds
    ---- Deployment finished. ---- Mar 13, 2012 2:19:45 PM
    The only odd thing I can see is that UNDEFINED statment in the log.
    I followed the recipe for Deployment from the tutorial so I don't understand why the JSPs are missing.

    I have two version's of JDeveloper running on my machine when you pointed out to me that I was using 10.1.3.0 I downloaded 10.1.3.5 and used it instead. However we still have a problem. One our test and production machine we are running Oracle AS 10.1.2 with Java SDK 1.4. Now the documantation says that this supports JSP runtime 2.0 and Servlet Runtime 2.4. My problem is I still have to get this working for Oracle AS 10.1.2 with Java SDK 1.4. Here's what happens when I deployed to that environment.
    500 Internal Server Error
    java.lang.NullPointerException
    at njtranenrll.jspService(_njtranenrll.java:45)
    [SRC:/njtranenrll.jsp:15]
    at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:575)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:311)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    12/03/19 23:10:27 Oracle Application Server Containers for J2EE 10g (10.1.2.3.0) initialized
    12/03/20 09:17:21 Notification ==> Application Deployer for NJTransit STARTS [ 2012-03-20T09:17:21.865EDT ]
    12/03/20 09:17:21 Notification ==> Do not undeploy previous deployment
    12/03/20 09:17:21 Notification ==> Copy the archive to D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear
    12/03/20 09:17:21 Copy file C:\WINDOWS\TEMP\dir51939.tmp\NJTransit.ear to D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear
    12/03/20 09:17:21 Notification ==> Unpack NJTransit.ear begins...
    12/03/20 09:17:21 Auto-unpacking D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear... done.
    12/03/20 09:17:21 Notification ==> Unpack NJTransit.ear ends...
    12/03/20 09:17:21 Notification ==> Initialize NJTransit.ear begins...
    12/03/20 09:17:21 Auto-unpacking D:\oracle\FRHome_1\j2ee\home\applications\NJTransit\njtransit.war... done.
    12/03/20 09:17:21 Copying default deployment descriptor from archive at D:\oracle\FRHome_1\j2ee\home\applications\NJTransit/META-INF/orion-application.xml
    to deployment directory D:\oracle\FRHome_1\j2ee\home\application-deployments\NJTransit...
    12/03/20 09:17:21 Notification ==> Initialize NJTransit.ear ends...
    12/03/20 09:17:21 Notification ==> Initialize njtransit begins...
    12/03/20 09:17:21 Notification ==> Initialize njtransit ends...
    12/03/20 09:17:21 Notification ==> Application Deployer for NJTransit COMPLETES [ 2012-03-20T09:17:21.990EDT ]
    12/03/20 09:25:31 Error: null
    12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/fn.tld
    12/03/20 09:25:31 Error: null
    12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/*permittedTaglibs.tld*
    12/03/20 09:25:31 Error: null
    12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/*scriptfree.tld*
    12/03/20 09:25:37 Error: null
    12/03/20 09:25:37 Error: null
    12/03/20 09:25:37 Error: null
    12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
    12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
    12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
    notice the error in parsing the jar file this jar file is standard.jar do I need this jar or can I leave it out?

  • Want to deploy BI Office.ear file on weblogic version 10

    Hi,
    I want to deploy BIOffice.ear file on weblogic 10version.
    As per oracle weblogic version 9 is supported with OBIEE 10.2.3.4.1 version.
    Please let me know if anyone hase done that.
    Thanks
    Nitasha
    Edited by: user13005863 on Jan 11, 2011 4:03PM

    Do you have solution for this?

  • How do I Deploy a single HTML file that is part of a project without redeploying the project?

    We have an HTNL file that we load dynamically into our web page.  This file contains ToolTips and by making it an external file to the build it allows us to modify the tool-tips as the processes the tooltips describe change (government processes that
    are being re-designed under the PPACA).
    Since the file is integral to our project, it is checked into our VS Online repository under source code control and gets automatically redeployed when the whole package gets redeployed.   And this works fine
    But if we check out the file, make some edits and try to deploy ONLY this file, we get a prompt for a password.   And I have no idea what password it wants.
    What is the correct way to do this?

    I am the project owner and have not only admin rights but full admin rights to create admin rights  - and I am being prompted for a password.  so that's not the issue..
    And the link you sent me to suggests you did not read what I had posted:
    I have no problems doing a full build and a full deployment.  That works fine.
     I DO NOT WANT TO DO A FULL DEPLOYMENT.
    I want to make a single change to a single resource file that we have under source control since it is a critical component of the solution.   And I want to publish ONLY THAT FILE. 
    So I
    make the change in VS 2013 to the file (to a project that is already linked to Azure services and which we have done publishing from before)
    Check in the file
    Right cliick on the file
    Choose "Publish XXXX.html"
    And I get a prompt to lot onto the FTP server
    ftp://waws-prod-blu-005.azurewebstes.windows.net/site/wwwroot
    HUH!!! I don't have any service or server remotely with that URL anywhere my system.   see attached image below

  • Two scrollbars appear for single jsp file

    hi,
    i have a jsp file which displays on one section lik frame in a page.
    the contents are normal but it have 2 scrollbars. how to resolve it.
    please help me ASAP.

    Seriously. Do you honestly believe the above is enough information for anyone else other than you to understand what is happening. I'd like to help but you need to give a bit more to go on.
    Does your application use html frames? My guess is it does, and your 'content' frame (jsp) does not have enough layout space without a scrollbar (which maybe browser client dependent so that would help too). Try running the page and saving the output as an HTML page from the browser. Then open that page in again using the browser. If you see the same issue, you need to look at the HTML otherwise, post some more info.

  • Can i merge multiple jsp files into single jsp file

    i have two jsp pages,and these two jsp pages generate different outputs,then i want merge these jsp pages output and generte new single file.

    yes what the do what the previous poster said.. this can also help to limit the file size of your jsp..

  • Deploying 9i Reports JSP file using Jdev

    Hello,
    I have created two JSP reports using 9i Reports Developer. One of them is a Paramater form which calls the other.
    I am able to run them from the OC4J demo instance directory structure.
    How can I create an ear file using JDeveloper so that I can deploy that as a new OC4J instance using OEM?
    Appreciate you help.
    Thanks.

    To create war and ear files thro Jdeveloper please refer to Oracle jDeveloper online Help .you can also create ear and war files using open source tool ant ,please refer to following URL for downloading this tool and documentation - http://jakarta.apache.org/ant/
    Thanks
    Rohit

  • How to deploy a single file in all servers

    Hello
    I could not find the answer in the OC documentation, so I'm trying here.
    I need to deploy a single text file in all our Solaris serves and I have no idea how we can use OpsCenter to to that. Can somoene please point a web page whith instructions how to accomplish that?
    Cheers
    Andreas

    Hi Andreas,
    You need to do the following:
    - Upload the text file as a local configuration file in the "Local Content":
    http://wikis.sun.com/display/OC2dot5/Uploading+a+Local+Configuration+File
    - Create an OS Update Profile for the configuration file:
    http://wikis.sun.com/display/OC2dot5/Creating+an+OS+Update+Profile
    - Create a job and select the profile you have created as well as the servers you want to deploy the text file on:
    http://wikis.sun.com/display/OC2dot5/Updating+From+a+Solaris+OS+Profile
    Regards,
    [email protected]

  • Difficulty deploying an EAR file to WebLogic 10.0

    Hello, I've been having severe difficulty trying to deploy a particular EAR file into WebLogic, using either the Weblogic's wldeploy Ant task or doing a manual upload of the EAR using the Weblogic Console. Looking at the error stack below, for some reason there may be a keystore reading problem, but I'm not certain why keystores are important here while deploying an application. I'm also puzzled because when I start WebLogic, the server output claims it read the wlidentity.jks keystore without a problem:
    <Jun 27, 2008 6:29:18 PM EDT> <Notice> <Security> <BEA-090171> <Loading the iden
    tity certificate and private key stored under the alias weblogic from the JKS ke
    ystore file C:\myprograms\bea\user_projects\domains\business_domain\wlidentity.j
    ks.>
    <Jun 27, 2008 6:29:18 PM EDT> <Notice> <Security> <BEA-090169> <Loading trusted
    certificates from the JKS keystore file C:\myprograms\bea\user_projects\domain
    s\business_domain\wltrust.jks.>
    Here is the error message I keep getting:
    <Jun 27, 2008 6:35:18 PM EDT> <Error> <Security> <BEA-090133> <Could not load a
    JKS keystore from the file C:\myprograms\bea\user_projects\domains\tomcat_doma
    in\wlidentity.jks. Exception: java.io.IOException: Keystore was tampered with, o
    r password was incorrect>
    <Jun 27, 2008 6:35:18 PM EDT> <Warning> <HTTP> <BEA-101162> <User defined listen
    er weblogic.wsee.deploy.ServletDeployListener failed: weblogic.wsee.deploy.WSEES
    ervletEndpointException: Failed to prepare wsse module: alsb/samlrecipient/Consu
    merR.war.
    weblogic.wsee.deploy.WSEEServletEndpointException: Failed to prepare wsse module
    : alsb/samlrecipient/ConsumerR.war
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDep
    loyListener.java:32)
    at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run
    (EventsManager.java:480)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.EventsManager.notifyContextPreparedEvent(Ev
    entsManager.java:149)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.ws.WsException
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:129)
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDep
    loyListener.java:29)
    at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run
    (EventsManager.java:480)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.getX509Credent
    ial(ServerBSTCredentialProvider.java:168)
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initCredential
    FromContext(ServerBSTCredentialProvider.java:149)
    at weblogic.wsee.security.bst.ServerBSTCredentialProvider.initCredential
    s(ServerBSTCredentialProvider.java:99)
    at weblogic.wsee.security.configuration.WssConfiguration.initDefaultConf
    iguration(WssConfiguration.java:327)
    at weblogic.wsee.security.configuration.WssConfiguration.init(WssConfigu
    ration.java:119)
    Truncated. see log file for complete stacktrace
    >
    Anyone see this before--know what the solution to it might be? The java.lang.NullPointerException above at ServerBSTCredentialProvider.java:168 might point quickly to the problem, so if any Weblogic team members can clue me in on what the problem is there, that would be great.
    Thanks,
    Glen

    Fixed the problem. I was following these instructions[1] to set up my ALSB/WebLogic configuration, and had entered the wrong password for the "IntegrityKeyStorePassword" field.
    [1] http://forums.bea.com/thread.jspa?threadID=300003724

  • Redirect to their corresponding index.jsp files from multiple sub folders

    Hi,
    I have a doc root in the location /opt/htdocs/defaultapp, where defaultapp is the application with war file(with jsps and java code) in weblogic.
    There are multiple sub folders in docroot like /opt/htdocs/defaultapp/ra, /opt/htdocs/defaultapp/info, ...etc.
    ra, info has index.jsp files from weblogic but not in docroot. So, If there are 12 sub folders like this, how can I use a single <If> condition to do that.
    I can also do in this way
    NameTrans fn="restart" from="/ra/" uri="/ra/index.jsp"
    NameTrans fn="restart" from="/info/" uri="/info/index.jsp"
    If I don't define in the above manner, the browser is giving me the directory listing.
    again I have subfolders under /ra, /info but without jsps, so when a user tries to open these folders it should return him an error page
    finally, if the user requests
    http://192.168.1.1:10000/<any-sub-folder>/ it should open http://192.168.1.1:10000/<any-sub-folder>/index.jsp
    if the user requests http://192.168.1.1:10000/<any-sub-folder>/<any-sub-folder2> it should redirect to error page
    Thanks,

    If /opt/htdocs/defaultapp is a Java web application being served by WebLogic then you shouldn't be configuring Sun Web Server to do the welcome file processing for directories. Instead, you should look at the welcome file configuration in WebLogic and in your web application.

  • How to provide multiple links in a single JSP

    Hi Experts,
    I am done with a single doc link in jsp file ,now my requirement is to use a single jsp file for multiple docs.
    Like I have 10 WEBI reports and I want to open it from separate application without passing BO user name and password .Can I achive it with a single JSP.
    Please advice how to do it.

    Hi Vikas,
    You can use something like the below code
    ===================================
    <%@ 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="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr"%>
    <%@ page import = "com.crystaldecisions.sdk.framework.*"%>
    <%@ page import = "com.crystaldecisions.sdk.properties.*" %>
    <%@ page import = "com.crystaldecisions.sdk.framework.*" %>
    <%@ page import = "java.util.*" %>
    <html>
    <body>
    <%
    IEnterpriseSession eSession = null;
    try
      String CMS = "cmsname";
       String username = "username";
      String password= "password";
       String Auth = "secEnterprise";
      ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
      eSession = sessionMgr.logon(username,password,CMS,Auth)
      ILogonTokenMgr logonTokenMgr = eSession.getLogonTokenMgr();
      String defaultToken = logonTokenMgr.getDefaultToken();
      String open = "http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AZQxKFpLb2JDqfKNxVI_10g&sIDType=CUID&token="+defaultToken;
      String open1 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AUGC0aj3IsdDngyQfsguyjw&sIDType=CUID&token="+defaultToken;
      String open2 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AXDEPU6w1J1Bgp69rr7Ir0c&sIDType=CUID&token="+defaultToken;
      String open3 ="http://localhost:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=ATL0N_2D8JNDmx.DblcXoMM&sIDType=CUID&token="+defaultToken;
    %>
    <div align="center">
    <b>Open Document Sample Application</b>
    </div>
    <br />
    <br />
    <b>Select Reports List:</b><br />
    <br />
    <a href = "<%= open %>" target= "myframe">Report1</a><br />
    <a href = "<%= open1 %>" target= "myframe">Report2</a><br />
    <a href = "<%= open2 %>" target= "myframe">Report3</a><br />
    <a href = "<%= open3 %>" target= "myframe">Report4</a> <br />
    <iframe src="" name="myframe" width="900" height="500" align="center">
    </iframe>
    <%
    out.println("<br />");
    catch(Exception e)
      out.println(e.getMessage());
    %>
    </body>
    </html>
    ================================================
    Thanks,
    Prithvi
    Message was edited by: Prithviraj Shekhawat

Maybe you are looking for