Read Server name in JSPDynpage to call a JSP Application

Hi Experts,
I am new Portal Content Development.
I have a JSP application deployed on SAP NW portal server as ear file using Eclipse.
Now to integrate this application in portal i have to create an Iview.
To Create Iview i have to create JSPDynpage.( Since URL Iview will not be useful in my case)
I am trying to follow Approach #2 as mentioned by Detlev in this thread  [iViews based on J2EE;
Now in this JspDynPage I have to call my JSP application.
In this application i want to read SAP NW server name and port name to create URL of JSP Application.
after which URL would be :
http://<Server host name >:<port>/JSPapplication.jsp
Now how do i read Server Host name and Server Port name from JSPDynpage?
Thanks in advance for the answer.
Regards,
Ashish Shah

Hi Michael,
Thanks for your suggestion , i tried it.
However it seems to be struts application and url for the application is http://<server>:<port>/MyStruts/MyStrutsHome.do.
I tried following relative paths: and these are the errors
MyStrut/MyStrutHome.do  --> Unable to fetch site http://MyStrut/MyStrutHome.do.Error # 502
/MyStrut/MyStrutHome.do --> Unable to fetch site http:///MyStrut/MyStrutHome.do.Error # 400
MyStrut/                          --> Unable to fetch site http://MyStrut/.Error # 502
/MyStrut/                         --> Unable to fetch site http:///MyStrut/.Error # 400
MyStrutHome.do             -->Unable to fetch site http://MyStrutHome.do.Error # 502
Not sure weather i can create a URL Iview for Struts based applications.
Can you share your thoughts on this?
meanwhile i am trying to fetch server name and port in my JSPDynpage as suggested by you.
Thanks for your help till now.
Regards,
Ashish Shah

Similar Messages

  • Read server name

    Hi
    Is there any java code to read the server name? i need the server name in my mapping. by server name i want to know if its triggered from dev, qual or prod. by knowing this based on the server i have to  insert a condition accordingly. Or can it be wriiten using a UDF?
    Thanks
    SG

    Hi,
    You can do it with an UDF, make sure to treat all your decentral adapter engines::
    public String runtime_environment(Container container) throws StreamTransformationException{
    // Get SAP system name
    String sapSystemName = (String) System.getProperty("SAPSYSTEMNAME");
    // Production:
    if  ("PRP".equals(sapSystemName) )  return "P";
    if  ("PR1".equals(sapSystemName) )  return "P";
    if  ("PR2".equals(sapSystemName) )  return "P";
    // Quality
    if  ("QAQ".equals(sapSystemName) )  return "Q";
    if  ("QA1".equals(sapSystemName) )  return "Q";
    // Development
    if  ("DEV".equals(sapSystemName) )  return "D";
    // Prototype (indicated as developent)
    if  ("SND".equals(sapSystemName) )  return  "D";
    if  ("SN1".equals(sapSystemName) )  return  "D";
    // Runtime environment type unkown -> raise exception
    throw new StreamTransformationException("Unknown runtime environment type for system " + sapSystemName);

  • Can Forms call ADF (JSP) applications of Jdeveloper?

    Hallo all, i created a JSP application to show Master-Detail page, Guages,Pivottable. Gantt charts in Jdeveloper using the ADF BC. I want to create a button in Forms that will call these application without dependency on Jdeveloper.Pls can anyone advice me step by step on the possibility. I tried useing the web.show_document package in Forms. it only works if the jdeveloper embedded server is running. But i dont want to have any dependency to jdeveloper at all.
    Is there any suggestions to doing this. pls help!!

    no chance.
    Forms is running in an Oracle Container 4 Java in the middle-tier. This Forms Service communicate via HTTP with the generic java applet locally in your browser. They communicate with some meta-data to show you the forms application in your browser. Your form runs in the application server.
    You can communicate via web.show_document with other URL's, but you cannot integrate them into forms.
    Here is a good example how you can interact from forms to ADF (thx 2 Wilfred)
    http://www.oratransplant.nl/2008/02/11/integrate-oracle-forms-and-jsfadf-faces-with-drag-and-drop/
    have fun
    Gerd

  • How to know report server name in oracle forms and reports with weblogic server 10.3.5

    Hello Experts,               I am new in oracle forms and reports.I have installed Oracle forms 11g with weblogic server 10.3.5 at windows 7.Forms and reports are working well.But I want to call a report from an oracle form button press trigger. For This I need to know the my report server name which i dont know.Please tell me how can I know my report server name.

    I want to call a report from an oracle form button press trigger. For This I need to know the my report server name
    You can find the name of the standalone reports server in $ORACLE_INSTANCE/config/ReportsServerComponent.
    Or you can use Fusion Middleware Control Console, normally at  http://<machine name>:7001/em

  • ODBC call SQLDriverConnect for data source Server name failed: [ . Notify Customer Support.

    Need help !
    While running DS job through designer we are getting below error:
    ODBC call <SQLDriverConnect> for data source <SErver name> failed: <[>. Notify Customer Support.
    Additional notes:
    1. Source and Target datastore are getting connected properly as i have imported table's definition using it.
    2. Source and target data store pointing to SQL server 2008 R2 express edition DB (64 bit).
    3. It seems like server machine has both 32bit and 64bit drivers installed on it. Please refer attached driverdetails.jpg file for more details.
    Thanks

    Hi did you referred this :
    ODBC call <SQLDriverConnect> for data source <MyComputer\SQLServer2008R2> failed: <[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.>. Notify Customer Support.

  • DDE server name of Adobe Reader DC

    After I updated to Adobe Reader DC, some applications (e.g., WinEdt) do not work due to the unknown DDE server name of Adobe Reader DC.
    Can anybody help me? Thanks in advance.

    Adobe Reader DC: DDE open command

  • Why does Reader 11 incorrectly set the DDE Server Name?

    It appears to me that the installer is setting the DDE Server name in the registry to 'AcroviewR10' instead of the 'AcroviewR11'.
    I confirmed by upgrading from Reader 9.5.x (DDE == Acroview) to Reader 11 (as of Oct 22, 2012) and the new value in the registry (XP and 7) was AcroviewR10.
    I know there was a similiar issue when Reader 10 was released. Is there any idea when an update might come out that will fix this? I hate having to give customer's .reg files to fix these issues.
    I understand that you are new to updating this variable every release, and so it isn't a part of your checklist yet, but it would be highly appreciated if you could remember that for version 12.

    I had this working using the registry lookup this week. During testing on various machines, I found a discrepancy between the registry dde name and the dde name that acrobat would respond to.  I finally just made an array of possible names and iterated through them.
    I'm harvesting the application name from HKEY_LOCAL_MACHINE \Software\Classes\acrobat\shell\open\ddeexec\application in the registry.
    Capitalization does not seem to matter but I'll include the exact caps from my tests.
    Today :
    Acrobat XI Pro (11.0.06) shows up in the registry as AcroViewA10 but it responds to acroviewa11.
    Acrobat XI Pro (11.0.0) shows up in the registry as AcroViewA10 but it responds to acroviewa11.
    Acrobat Reader XI (11.0.06) shows up in the registry as AcroView
    R10 but it responds to acroviewr11.
    Acrobat X Reader (10.1.9) shows up in registry as AcroViewR10 and responds to acroviewr10.
    Reader 9 (9.0.0) shows up in registry as AcroViewA10 and responds to acroview. (The registry may be skewed by having Acrobat XI Pro installed on this machine.)
    Reader 7 (7.1.0) shows up in registry as AcroView and responds to acroview.
    So, I'm just brute forcing through all 5 known combinations plus 2 for version 12 on the off chance that the naming doesn't break pattern again.
    #define maxnames 7
    DIMENSION acronames (maxnames )
    acronames(1) = "acroview"
    acronames(2) = "acroviewa11"
    acronames(3) = "acroviewr11"
    acronames(4) = "acroviewa10"
    acronames(5) = "acroviewr10"
    acronames(6) = "acroviewa12"
    acronames(7) = "acroviewr12"
    loop
         AcroChanNum = DDEINITIATE(acronames(namecounter ), "Control")
         namecounter = namecounter + 1
          blah blah
    until AcroChanNum >=0

  • Report server name issue

    Dear All,
    I am stucking with the following problem,
    I have deployed my ERP apllication (developed in oracle forms & reports 10g) on oracle apllication server 10g forms & report services. my apllication server has two LAN card. out of two one has been configured with statis IP for web access. but while running report from parameter form i am taking report url from table. table contain report server name as my local server name.
    My problem is,
    If i am accessing erp from web using static ip and running report then server name is not recognized
    because it is my local server name coming from table. so for that every time i need to change report url & replace server name with statis ip in browser addr for web users.
    Please guide me what should i do to resolve this issue.
    Your reply would be greatly apprecited.
    Thanks

    If "Credentials supplied by the user running the report" is selected, when the report is run, the user will be prompted to provide credentials.  They would need to provide credentials that have the appropriate permissions (e.g., read, execute) to the
    database.  This prevents the double hop.
    If "Credentials stored securely in the report server" is selected, you have to enter the username and password of a user (or service account) that has the appropriate permissions (e.g., read, execute) to the database. When the report is run, SSRS will use
    these stored credentials each time to authenticate to the database engine and query the data.  Users running the report are not prompted to provide credentials.  With this option you can use an Active Directory or SQL Server account.
    In order to access/run the report, a user will need to authenticate to SSRS.  There are options here as well. You can provide them the link to the report manager and they can authenticate, navigate to, and run the report.  You can also provide
    direct links to reports that users click in a document or application.  At this point the user is typically still prompted to authenticate to SSRS.  You can also programmatically call the report using API's and essentially build a proxy that authenticates
    to SSRS and open the report.
    Not sure if that answers your question.

  • Problem with Connection Manager. Can't change connection string / Server name

    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';}
    .MsoChpDefault
    {font-size:10.0pt;}
    .MsoPapDefault
    {line-height:115%;}
    @page Section1
    {size:612.0pt 792.0pt;margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.Section1
    {page:Section1;}
    Hi,
    I have copied a number of SSID packages from a live server to my test server and am trying to get them up and running but I have a problem with the connection. The only thing that is different is the server name. I decided to keep the same connection in the connection manager as it is referenced in a dtsConfig file. I changed the dtsConfig file to reference the new servername [Data Source= new test server name]. I also check my paths and they are pointing to the correct config locations etc.
    I found this post which was similar to my problem but I still get problems with the connection
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1319961&SiteID=1
    I updated the connection by changing the server name in the actual connection. I did this from the data flow tab in the Connection Managers sections (MS Visual Studio). Right clicked - Edit - changed the name of the server name to my test server and selected the database. Test connection was fine, and saved this.
    Once I saved this, the connection string changed to my current test server in the properties of the connection. However when I run the package I get the following error:
    Error: 0xC0202009 at ReportsImport, Connection manager "myconnectionstring": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Login timeout expired".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Named Pipes Provider: Could not open a connection to SQL Server [53]. ".
    Error: 0xC020801C at Myprocess import from file, BuyAtReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionstring" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    Error: 0xC0047017 at Myprocess import from file, DTS.Pipeline: component "ReportsImport" (79) failed validation and returned error code 0xC020801C.
    Error: 0xC004700C at Myprocess import from file, DTS.Pipeline: One or more component failed validation.
    Error: 0xC0024107 at Myprocess import from file: There were errors during task validation.
    So even if I change the existing connection properties and save and Build my package again, my connection properties (connectionstring, servername etc) all revert back to its original data source when I re-open the package. Simply it does not seem to be saving the connection properties i put in.
    What am I doing wrong or how can I change the existing connection manager to look at the new server. The database is  the same and I have full admin privilege on the server.
    I don't want to recreate my packages as there are alot and they are not simple.
    After changing the connection properties, saving and reloading I get a connection error. But this is because it is not retaining the new connection manger setting i entered.
    Incidentally - I created a new SSID to perform a simple connection and write to the the server and it was OK so there is no problem with actually seeing the my test server.
    Thanks in advance

    Yes, the package is in visual studio and I have executed it. There are no errors but in the output i have the error message about my connection. My dtsConfig file is added to the project in the 'Package Configuration Organizer' and path and files are correct. This is the output error:
    Error: 0xC020801C at xx import from file, xxReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionname" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    I will try and run it using dtexec.exe. if I have two config files do i use
    dtsexec.exe /f <packagename> /conf <configfile> /conf <secondconfigfile>

  • Server side function not get called after dispatching cairngorm event second time on same page

    Hi All,
    I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
    and  clicking of any button I do the respected functionality. For ex:
    I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
    I displayed a message that the record is added & update the data source.
    After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
    event not call the server side function  -  after debugging I find out that cairngorm event  reach to the corresponding excutecommand function & called that function  but it is not calling my server side function & I also din't get any error message .
    I dont know why  the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second  time.
    Could any of  you please tell me why the cairngorm event not calling the server side function.
    Thank you for your kind assistance.
    Regards,
    Ujjwal

    Okay, well I think I've worked out the problem.
    In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
    I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
    One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
    <%@ Assembly Name="AssemblyName" %>

  • Report server name in rwservlet.properties file

    Hi all,
    I dont want to hard code the report server name while calling report from the form...
    I have used....
         vrep := RUN_REPORT_OBJECT(myreport1);
    /* Checking for Report Server is started or not, if not throw an exception else proceed */
         if vrep = vrep||'_0'then
         raise form_trigger_failure;
    end if;
         vjob_id := substr(vrep,length(vc_reportserver)+2,length(vrep));
         vrep_status := REPORT_OBJECT_STATUS(vrep);
    where vc_reportserver is assigned a value of my report server name...
    If I edit rwservlet.properties file and give
    server=<my rep server name>,
    How can i read this value from the form ? Any help please?
    I know there is a way to do in formsweb and default.env. But I want to know the way how to used in rwservlet.properties file and use it in the form.
    Kindly help
    Priya

    Thanks Francois for your reply.
    You can pass this value in the formsweb.cfg file (otherparams=)So, in forms I have to create a parameter matching with the one what I have mentioned in otherparams. right?
    you can read it from a database parameter's table (solution I prefer).So, just storing the report server name in database and fetch like
    select --- from tablename! Is it so?
    And apart from this, may I know why you prefer this method?
    And why not rwservlet.properties??
    Regards
    Priya

  • How to display report server name in oracle reports 9i.

    I need to do some validation based on report server name.Pl. suggest.

    How do you execute the call for a Report?
    URL?

  • How to get managed server name  in Weblogic10.2 ?

    Hi
    I want to get managed server name from a cluster in a servlet or util project class whom that one is called by ?
    Do I have to implement any interface or I have to extends a class ? Please help me to resolved.
    Thanks

    Here is a snippet of code that I use in WL10 MP1 that works fine:
    import javax.management.MBeanServer;
    import javax.management.ObjectName;
    import javax.naming.InitialContext;
    String managedServerName = null;
    InitialContext ctx = null;
    try {
    //fetch managed server name by accessing the
    //RuntimeServerMBean using the
    //MBeanServer interface
    ctx = new InitialContext();
    MBeanServer server = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
    ObjectName service = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
    managedServerName = (String) server.getAttribute(service, "ServerName");
    } catch (Exception ex) {
    //error occurred
    } finally {
    if (ctx != null) {
    try {
    ctx.close();
    } catch (Exception dontCare) {

  • Server name message when triggering process chain through ABAP PROGRAM

    Hi all,
    When I am trying to execute one process chain with variant as a APD ( In this APD data is getting loaded form one Query to Transactional ODS.) This process chainis being executing through one ABAP program using the following code
    CALL FUNCTION 'RSPC_API_CHAIN_SCHEDULE'
         EXPORTING
           I_CHAIN      =  'XYZ'. ( Dummy Process chain name)
    While executing this program I am getting following message :
    You can specify the name of the application server here
    on which all jobs in the chain are scheduled
    If you do not specify a name, the jobs from batch
    management are divided between the available servers
    How to avoid this message.
    Can we write any code in the above program to assign any fixed server name so that it will not ask for any server name.
    Your help is much appreciated.
    Thanks,
    Uday.

    Hi Shanthi,
    How to write exception handling for this.
    Quick reply is nedeed.
    Thanks,
    Uday.

  • Finding Server name

    Hi All,
    In my application i communicate with SQL database.
    Now, we create DSN file for accessing table...We can create DSN file through labview also, what i want to know is, how to create it how can i find  SERVER name in labview itself.
    This is how DSN file format is...
    [ODBC]
    DRIVER=SQL Server
    UID=sa
    DATABASE=TBP314
    WSID=PI-1501I-C2016
    APP=Microsoft Data Access Components
    SERVER=PI-1501I-C2016
    [ODBC]
    DRIVER=SQL Server
    UID=sa
    DATABASE=TBP314
    WSID=PI-1501I-C2016
    APP=Microsoft Data Access Components
    SERVER=PI-1501I-C2016
    How can i find "BOLD" part in it in labview? I hope my question is clear to you all.
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

    Hello Gaurav;
    I am not sure where you got that code, but i found out that It's not recommended to create databases on-the fly and to store all datasets in defferent tables. With Microsoft Acces and other databases, you can use relationships betweeen recordsets and tables to organize large amount of different types of data, which can be easily retrieved from one source.
    To do so, you can find a set of instructions in the following link
    http://digital.ni.com/public.nsf/allkb/151C96CC8EFAB6A786256CC2007C1178?OpenDocument
    However if you want to dinamically create a database, you can either create a .udl file file in labview by using the open/create file function with a .udl extension. To configure the UDL properties you have to call the SDK for the MicrosoftHost Integration Server by using  .NET Assembly.
    Another method of connecting to Access without using UDLs can be found in the following link
    KnowledgeBase 2E7GIDDT: What Is the Difference between a System DSN, a User DSN, a File DSN, Univers...
    I hope this information works for you!!
    Good luck!

Maybe you are looking for