Creating a JSP Element Using a Remote URL

If the JSP is not part of a Web application in the same Web container as the portal, you can create the JSP element using a remote URL.

  1. From the Mobile Development perspective, select File|New|Mobile Application.

  2. When the New Mobile Application wizard appears, select Launch Element Wizard, select JSP from the drop-down list and click Finish.

    Alternatively, right-click the Mobile Applications status folder in which you want to create the mobile application, and select Create (status name) Mobile Application With|JSP Element.

  3. In the JSP Element dialog, select Use Remote URL.

    Since the JSP is not deployed in the portal Web container, you need not fill in the fields associated with the Use Web Application option. You cannot select the Single Sign on option.

    In the Remote URL field, specify the fully-qualified URL to the remote JSP, starting with HTTP(S).

  4. Input Parameters – enter the input parameter names as defined by the JSP code.

    1. You must use a name-value pattern like this:

      name1=value1&name2=value2&name3=value3
    2. The name must be exactly the same as your JSP code's input parameter's name. For example, if the JSP page's code is:

      <BR>EPLogin:<input type ="text" name="epuser"> <BR>EPPswd:<input
      type="password" name="eppassword"> <BR>HostName:<input type="text" name="hostname"> <BR>AssetDN:<input
      type ="text" name="asset"> <BR>PAI URL:<input type="text" name="paiURL"> 

      The Input Parameters must then be:

            
             epuser=tester&eppassword=test123&hostname=drillbit2k&asset=a1=pubs,
      dc=sybase,dc=com&paiURL=jdbc:sybase:Tds:sapphire:5000/pubs2 

  5. When you are satisfied with your entries, click Next. Preview the JSP element.

  6. Click Finish.

Related Tasks

Creating Mobile Applications

Configuring Mobile Applications

Using Rules and Record Layout

Setting CGI Parameters

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com