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

Pls help! How to put JSP import statement...

Hi, I just created a simple iView JSP that imports htmlb classes and now I'd like to import my own java classes onto it. For example, in my other projects, my JSP's have <%@ page import="project28.practice.contextClass" %> on top of the page. I currently have a file called practice.jar

If I want to put this import statement into my simple iView JSP and use it, what would I have to do/configure?, do I have to transform it into a .par file? Or can I transport the jar file to the portal? Any changes on NetWeaver?

I am new to this so any detailed help or suggestions are greatly appreciated!

Thanks again,

Baggett

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on May 31, 2005 at 10:20 PM

    See /thread/42867 [original link is broken]

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Detlev, thank you for your response! I'd like to include more details of my situation right now: I have 2 projects on NetWeaver:

      Project#1: Java Web application Project. (jar files, WEB-INF, WEB-INF/web.xml, JSP's...)

      Project#2: Portal Application Project. (JSPDynPage, sap plugins, PORTAL-INF/portalapp.xml, JSP)

      I'd want my JSP file in Project#2 to call some classes from the jar files of Project#1.

      From my understanding, to do this I need to make a .par file out of Project #1 and then upload the par file to my SAP EP6.0 so that my future JSP's can import classes from it. Am I correct?

      I am confused right now as to how to really do this. On Netweaver, I am getting a Error when I try to do: File --> New --> Project --> Portal Application --> Create a Portal Application Project > I then enter Project Name: TestProject28, Project root folder: c:\TestProject\webapps\project1

      --> "ERROR: Invalid project description, Reason:An error has occured while trying to create the project structure"

      If possible can you please provide detailed instructions on how to configure or build a par file out of my java web application stated above?

      Thank you so much for your time and help!

      Baggett

  • Posted on Jun 02, 2005 at 10:54 AM

    Hi Baggett,

    From ur scenario i can infer a situation which I recently encountered.

    The way u said for deploying ur jsp files in EP 6.0 is the correct one.U have to deploy it as a JSP Dynpage I mean ur project in EP.

    If u want to include ur jsp files in anther jsp files

    use the following syntax

    <% @ include file= <filename> %> in the jsp where u want to include the other file.

    Hope this helps.

    Regards,

    Guru

    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.