You just need to add another servlet mapping to your web.xml for that
web-app:

By default, the $RESIN_HOME/conf/app-default.xml defines, that Quercus is
used for all *.php URL's:

  <servlet servlet-name="resin-php"
           servlet-class="com.caucho.quercus.servlet.QuercusServlet">
  </servlet>

...

  <servlet-mapping url-pattern="*.php" servlet-name="resin-php"/>


If you want that *.do files are treated as *.php files, just add:

  <servlet-mapping url-pattern="*.do" servlet-name="resin-php"/>


But be aware that *.do might be used by other web-apps as well (e.g. for
struts). So I would recommend to add the servlet and the servlet-mapping
explicitly to the required web.xml or resin-web.xml

Regards,
Steffen


2007/12/17, zendfreak <[EMAIL PROTECTED]>:
>
>
> Hi, I installed resin-3.1.4 on server. My client asked me to change all
> the
> php files extension name from .php to .do. But then I found that all the
> <?php ... ?> code not work within html.  Here is an example:
> <TABLE>
>        <TR>
>                        <td colspan="2"><? include 'Header.do'?></td>
>        </TR>
>                <tr>
>                        <td width="20%" height="100%"><? echo "test"
> ?></td>
>                        <td valign="top">
> .....
>
> The program just execute the html, but all the code inside <?...?> not
> executed. If I change extension name from .do back to .php, then
> everything
> wroks fine. So how can I fix this problem if I need the file extension
> name
> to be .do?
> --
> View this message in context:
> http://www.nabble.com/php-not-work-within-html-tp14374036p14374036.html
> Sent from the Resin mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to