Errors with JSP

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors with JSP

damien.peymirat
Hi all,


   I'm testing a simple jsp but it does not function because of the character % in my markup <%@ include file="bonjour.htm"%> .

Here is my simple jsp :

<HTML>
<HEAD>
<TITLE>Essai de page JSP</TITLE>
</HEAD>
<BODY>
<p align="center">Test d'inclusion d'un fichier dans la JSP</p>
<%@ include file="bonjour.htm"%>
<p align="center">fin</p>
</BODY>
</HTML>


bonjour.htm

<p><table border="1" cellpadding="4" cellspacing="0" width="30%" align=center >
<tr bgcolor="#A6A5C2">
<td align="center">BONJOUR</td>
</tr>
</table></p>


on the page-flow : <page id="main" path-info="/xmldbrr/jsp" view="test.jsp"/>


Can you help me please ??



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Errors with JSP

Erik Bruchez
Administrator
Damien,

You cannot refer to JSP pages in a page flow. Actions, models, and views
in the page flow must refer to either:

* static XML files, including XHTML files
* XSLT files
* XPL files

I strongly recommend you read the Page Flow Controller documentation
before proceeding further:

   http://www.orbeon.com/ops/doc/reference-page-flow

Note that Orbeon PresentationServer (OPS) is a platform heavily biased
towards XML and is designed to use of XHTML and XForms to build pages
and user interfaces. In this particular case, I recommend using a static
XHTML file for your view and using XInclude to include the "bonjour"
fragment into the main page, which has to be a well-formed XML document.

If you really, really want to use JSP alongside XHTML, XForms, XSLT and
XPL, you can serve those pages directly or by using third-party
controllers like Struts, but this is not covered in the scope of OPS.

-Erik

[hidden email] wrote:

> Hi all,
>
>
>    I'm testing a simple jsp but it does not function because of the character % in my markup <%@ include file="bonjour.htm"%> .
>
> Here is my simple jsp :
>
> <HTML>
> <HEAD>
> <TITLE>Essai de page JSP</TITLE>
> </HEAD>
> <BODY>
> <p align="center">Test d'inclusion d'un fichier dans la JSP</p>
> <%@ include file="bonjour.htm"%>
> <p align="center">fin</p>
> </BODY>
> </HTML>
>
>
> bonjour.htm
>
> <p><table border="1" cellpadding="4" cellspacing="0" width="30%" align=center >
> <tr bgcolor="#A6A5C2">
> <td align="center">BONJOUR</td>
> </tr>
> </table></p>
>
>
> on the page-flow : <page id="main" path-info="/xmldbrr/jsp" view="test.jsp"/>
>
>
> Can you help me please ??
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws