Skip to Content
author's profile photo Former Member
Former Member

JspDynpage dont execute

Hi

I'm developing a JspDynpage, when I deploy to portal and preview it, the JSP is show, but I found the JSPDynPage class are not executed, just redirecte to the jsp file. What's the problem?

public class ServerState extends PageProcessorComponent {

public DynPage getPage(){

NaiveLogger.log("ServerState.getPage()");

return new ServerStateDynPage();

}

public static class ServerStateDynPage extends JSPDynPage{

public ServerStateDynPage() {

NaiveLogger.log("ServerStateDynPage()");

}

public void doInitialization(){

NaiveLogger.log("ServerStateDynPage.doInitialization()");

}

public void doProcessAfterInput() throws PageException {

NaiveLogger.log("ServerStateDynPage.doProcessAfterInput()");

}

public void doProcessBeforeOutput() throws PageException {

NaiveLogger.log("ServerStateDynPage.doProcessBeforeOutput()");

this.setJspName("dddddddd.jsp");//does't matter

System.exit(0);//doesn't matter

}

public void startup(Event e) {

NaiveLogger.log("ServerStateDynPage.startup(event)");

}

}

}

<?xml version="1.0" encoding="utf-8"?>

<application name="com.dimension.s2s2">

<application-config>

<property name="PrivateSharingReference" value="htmlb"/>

</application-config>

<components>

<component name="ServerState">

<component-config>

<property name="ClassName" value="com.dimension.s2s.ep.ServerState"/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/serverstate.jsp"/>

<property name="SafetyLevel" value="low_safety"/>

</component-config>

<component-profile>

<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>

</component-profile>

</component>

<component name="StartS2S">

<component-config>

<property name="ClassName" value="com.dimension.s2s.ep.StartS2S"/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/startup.jsp"/>

</component-config>

<component-profile/>

</component>

<component name="Shutdown">

<component-config>

<property name="ClassName" value="com.dimension.s2s.ep.Shutdown"/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/shutdown.jsp"/>

</component-config>

<component-profile/>

</component>

</components>

<services/>

</application>

Thank you very much!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2005 at 05:52 AM

    hi

    change your portalapp.xml file to the following code and try.

    <?xml version="1.0" encoding="utf-8"?>

    <application name="com.dimension.s2s2">

    <application-config>

    <property name="SharingReference" value="htmlb"/>

    </application-config>

    <components>

    <component name="ServerState">

    <component-config>

    <property name="ClassName" value="com.dimension.s2s.ep.ServerState"/>

    <property name="SafetyLevel" value="low_safety"/>

    </component-config>

    <component-profile>

    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>

    </component-profile>

    </component>

    <component name="StartS2S">

    <component-config>

    <property name="ClassName" value="com.dimension.s2s.ep.StartS2S"/>

    </component-config>

    <component-profile>

    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>

    </component-profile>

    </component>

    <component name="Shutdown">

    <component-config>

    <property name="ClassName" value="com.dimension.s2s.ep.Shutdown"/>

    </component-config>

    <component-profile>

    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>

    </component-profile>

    </component>

    </components>

    <services/>

    </application>

    hope this helps.

    regards

    Yoga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2005 at 05:42 AM

    HI,

    The JspDynpage is a controller which calls the JSP page. if you place a component in the JSP page and write the function for the components event in the JspDynpage then that function in the JspDynpage will be executed when the event occurs.

    If you donot have any events then the JspDynpage just calls the JSP page.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.