facebook

Combine web projects and includes

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #225497 Reply

    ezekiel12
    Member

    I like to link or combine several web projects and I want to have validation support too. My files have to be ordered as shown below:

    general/main.jsp
    specific/a/part1.jspf
    specific/b/part1.jspf
    specific/c/part1.jspf

    The main.jsp code looks like this:

    ...
    <%@inlude file="part1.jspf"%>
    ...
    

    The main goal of this construct is to have 3 different web modules on the server after deploying, a b c. All of them have a main.jsp and differ by the specific parts, organized in the specific folders.

    I’ve tried to achieve it by editing the .mymetadata, creating an ear project and including the three web modules, but it won’t work. The main.jsp can’t resolve the part1.jspf include.

    Questions:

      Would it be possible to convince the parser by connecting the web modules in some way?
      Will there be a fix in the next weeks to resolve to problem of errors in jspf files shown in the main file instead of be shown in the part file?

    “This can be frustrating, there is already a bug filed against these ‘illpositioned compile errors’. I’m hoping it is something simple and can get knocked out soon, but I have a feeling it might need to wait until we move back to using the JDT compiler instead of the Javac compiler for compiling JSP pages, which is a major change I’m told.”

    Thanks

    #225499

    Riyad Kalla
    Member

    Will there be a fix in the next weeks to resolve to problem of errors in jspf files shown in the main file instead of be shown in the part file?

    No, this will happen after our next release which is looking like an April time frame.

    I like to link or combine several web projects and I want to have validation support too. My files have to be ordered as shown below:

    Are these ‘specific’ modules really independent web modules? They all have their own web.xml files and /classes and /lib folders? Or are you just trying to organize a single web project like this?

    #225502

    ezekiel12
    Member

    These ‘specific’ modules are all independent, means they have their own web.xml, libs’s and classes. But if there is a approach to handle the problem with a single web project, I’ll merge the web.xml and the other stuff.
    The idea is to deploy the independent web modules without replacing or changing the pathes of the include statement, cause the web module like a or b will be the web root on the server.

    Repository:

    -general/main.jsp
    -specific/a/part1.jspf
    -specific/b/part1.jspf
    -specific/c/part1.jspf

    Server:
    -webapps/a/main.jsp
    -webapps/a/part1.jspf

    -webapps/b/main.jsp
    -webapps/b/part1.jspf

    #225507

    Riyad Kalla
    Member

    1) If they are all web modules, then they need to each be a web project.

    2) You can tie them all together in an Enterprise Project (like you were trying)

    3) You cannot use <%@include %> if you are trying to include contents across web contexts, please look into <jsp:include /> instead, I also think there is an JSTL tag that will do something similar, check that out as well.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Combine web projects and includes

You must be logged in to post in the forum log in