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

Create jsp iview

Hi guys

we are working on EP 6.0.

We want to create iviews which is simply a jsp page, the jsp file is ready, but we are not able to make a usable par from it.

Could any one teach how can we make it a par file to upload to Portal, then we can create iview out of it?

Thanks a lot with reward points 😊

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 12:46 PM

    Hi,

    what is the run-time error you are getting. normally, we can create jsp file by deleting the following generated content.

    <hbj:content

    id="myContext">

    <hbj:page

    title="An Easy Start">

    <hbj:form>

    The error may be due to some other mistakes.

    Rds,

    Shanthakumar.

    Assign points for useful answers

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi

      you can write this code in your jsp for css files

      <% String webpath=componentRequest.getWebResourcePath()+"/css/";%>

      <link rel=stylesheet href="<%=webpath%><css file name>">

      and similiar code for images

      Thanks & Regards

      Harsimran

      Message was edited by:

      Harsimran Kaur

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 11:41 AM

    hi,

    Create a new project in NWDS & use JSP Dynpage. now write code in jsp page & save it..

    now deploy it in to the portal with portal loging & Password....

    Create a iview based on the PAR file ...

    Refer this blog

    Beginning EP Development

    Regards,

    Senthil K.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi,

      Yes its a<b> htmlb</b> format, so u write a code within

      <hbj:content id="myContext">

      <hbj:page title="An Easy Start">

      <hbj:form>

      Here paste ur HTML content

      </hbj:content id="myContext">

      </hbj:page title="An Easy Start">

      </hbj:form>

      then add " <%@taglib uri="htmlbtld" prefix="hbj" %> " in the top of the jsp page...

      also add this

      <component-profile>

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

      </component-profile> instead of <component-profile/>

      in the portalapp.xml..

      reward points..

      Regards,

      Senthil K.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:05 PM

    Hi,

    Refer the following threads content. it contains answers for your question

    how to give css path in jsp

    How to display images ?

    To include a jsp file ,

    <%@include file="/pagelet/Common.jsp"%>

    Rds,

    Shanthakumar.

    Assign points for helpful answer.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 07:08 AM

    Hi Feng.

    I guess you dont want JSPDynpage, but normal JSP. Here is the way for it

    1. Create Java component in src core, and write following code in it, Abstract Portal Component.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    public class <CLASS_NAME>extends AbstractPortalComponent

    {

    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)

    {

    IResource jspResource = request.getResource(IResource.JSP, "jsp/<YOUR_JSP_NAME>.jsp"); response.include(request, jspResource);

    }

    }

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    2. Now create a JSP file in JSP folder with name used in Java file source.

    3. Write your HTML or JSP code in this file.

    4. Compile and Upload, create iView from that. Now You can use JSP in your code.

    regards

    -Kedar Kulkarni

    Reward points if useful.

    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.