Convert JSP to SharePoint Web Part

We have a large number of Java servlets / portlets running on the BEA portal that we want to convert to SharePoint 2007 websites. Many portlets use custom settings, but implementations are divided between preferences that are processed directly by the portlet and stored in a separate portal database . Others use the BEA WebLogic API for user preferences.

Three questions:

  • Has anyone got a Java Servlet / JSP (compiled against JRE 1.4.2 and runs on Tomcat 4.1) to run as a SharePoint 2007 web part?
  • How big were the efforts in general (like, was it measured in days / weeks / months)?
  • Would it be easier to rewrite the portlet as a native website, at least in terms of user preferences?
+3
source share
2 answers

Here's what I did for one portlet, stock quotes panel.

We have a gadget that displays stock quotes. We have an account with Tickertech to provide us with quotes information. There are user settings that allow people to add the gadget to their personal page, and then select the shares that are of interest to them as individuals. You can also select the columns to display. This is achieved using JavaScript. The selected stock symbols are sent along with a token that identifies the request as coming from a valid client.

- - JavaScript. , , Tickertech.

Webpart. WSPBuilder Visual Studio. , , , , , .

- , script.

public class MarketSummaryWP : Microsoft.SharePoint.WebPartPages.WebPart
{     
    string m_scriptBlockPre = "<script language='javascript'> \n"+ // the beginning of the JavaScipt block 

CreateChildControls() .

this.Controls.Add(new LiteralControl(this.Script));  

script . , script .

    //Script Property
    [WebBrowsable(false),
    WebDisplayName("Script"),
    WebDescription("The JavaScript to insert in the page.")]
    public string Script
    {
    get { return m_scriptBlockPre + m_stockSymbolsList + m_scriptBlockPost; }
    //set { ; }
    }

    //Stock Symbol list Property
    [Personalizable(PersonalizationScope.User), WebBrowsable(true),
    WebDisplayName("Stock Symbols"),
    WebDescription("The stock symbols to retrieve quotes for, seperated by commas.")]
    public string StockSymbols
    {
        get { return m_stockSymbolsList; }
        set { m_stockSymbolsList = value; }
    }


    string m_stockSymbolsList = "GE,CAT,$DJI,AMR,JNJ,";

    string m_scriptBlockPost = " *other JavaScript code* </script> \n"+

-, ​​ , -. -, - html, JavaScipt , , " ", , HTML-, , JavaScipt; . , -, .

0

, BEA Sharepoint.

, - Java JSP -/, - .net( -.).

Java , Sharepoint .

1. . BEA - SharePoint , .

100 -/ 1 , 1 1 / sharepoint.

3... . /-, , - -... , SharePoint .

, , .
, .

+1

Source: https://habr.com/ru/post/1721201/


All Articles