For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 2 voices, and was last updated 21 years, 6 months ago by
Riyad Kalla.
-
AuthorPosts
-
ezekiel12MemberI 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.jspfThe 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
February 20, 2005 at 11:56 am #225499
Riyad KallaMemberWill 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?
February 20, 2005 at 1:14 pm #225502
ezekiel12MemberThese ‘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.jspfServer:
-webapps/a/main.jsp
-webapps/a/part1.jspf-webapps/b/main.jsp
-webapps/b/part1.jspf…
February 20, 2005 at 3:53 pm #225507
Riyad KallaMember1) 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.
-
AuthorPosts
