CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 Servlets web.xml index.do

Print topic Send  topic

Author Message
dekacode

Posts: 53
Posted: 07/07/2004, 5:00 PM

How to configure CCS to default to index.jsp instead of index.do

ENV:
CCS
Servlets 2.2 JDK -

1. This displays the web page correctly:
http://localhost:8080/helloworld/index.do
2. this displays File "/ccstags" not found:
http://localhost:8080/helloworld/index.jsp

default CCS web.xml contents
===============================================
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<!--
//webApp configuration head @1-20A8545C
-->
<web-app>

<servlet>
<servlet-name>controller</servlet-name>
<servlet-class>com.codecharge.ControllerServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>viewer</servlet-name>
<servlet-class>com.codecharge.ViewerServlet</servlet-class>
</servlet>
<!--

//End webApp configuration head

//siteInit head @2-560E289E
-->
<servlet>
<servlet-name>siteInit</servlet-name>
<servlet-class>com.codecharge.InitServlet</servlet-class>

<init-param>
<param-name>configuration.file</param-name>
<param-value>/WEB-INF/site.properties</param-value>
</init-param>

<init-param>
<param-name>languages.file</param-name>
<param-value>/WEB-INF/languages.properties</param-value>
</init-param>
<!--

//End siteInit head

//server specific parameters @3-09626FDE
-->

<init-param>
<param-name>controllerHandlerClassName</param-name>
<param-value>com.codecharge.util.DefaultControllerHandler</param-value>
</init-param>

<init-param>
<param-name>usedUnpackedWarFile</param-name>
<param-value>false</param-value>
</init-param>

<init-param>
<param-name>convertReturnLinkToAbsolute</param-name>
<param-value>false</param-value>
</init-param>
<!--

//End server specific parameters

//siteInit tail @5-5E3BCE44
-->
<load-on-startup>108</load-on-startup>
</servlet>

<!--

//End siteInit tail

//Servlet mapping @6-15175CD1
-->
<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>viewer</servlet-name>
<url-pattern>*.show</url-pattern>
</servlet-mapping>


<!--

//End Servlet mapping

//webApp configuration tail @7-398BFCF7
-->
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>

</web-app>
<!--

//End webApp configuration tail


-->
===============================================
View profile  Send private message
ignat


Posts: 55
Posted: 07/08/2004, 12:45 AM

Dekacode,

CCS provides two options for Java applications, Servlets with Templates and JSP. Seems you first generated a JSP application and then published Servlets application. In such case JSP part won't work any more. Republish your application as JSP to make it work again.

Regards,
Ignat.
View profile  Send private message
Bill
Posted: 02/09/2005, 9:22 AM

Quote ignat:
Dekacode,

CCS provides two options for Java applications, Servlets with Templates and JSP. Seems you first generated a JSP application and then published Servlets application. In such case JSP part won't work any more. Republish your application as JSP to make it work again.

Regards,
Ignat.

But what if you want a servlets deployment and not an JSP deployment. Why does CCS put index.do in a servelet web.xml file. For example, I downloaded one of the example applications, immediatly switched it from ASP to Servlets with Templates. And when you look in the web.xml file, it referes to index.do, however there is no such file.


peterr


Posts: 5971
Posted: 02/09/2005, 9:54 AM

Where did you download an example application?
I don't believe that we offer any downloads of applications created with CCS. They are includeded with CodeCharge Studio.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Bill
Posted: 02/12/2005, 9:51 AM

Quote peterr:
Where did you download an example application?
I don't believe that we offer any downloads of applications created with CCS. They are included with CodeCharge Studio.


That is what I meant, I opened one of the example applications that came with the CSS.

I did get the sample application to work with Sun J2EE reference server simply by changing the target server to TomCat 5 (i tried them all). I was kind of surprised not to see the Sun J2EE Reference as one of the pre-configured targets though. I guess it is really not that popular when you can use TomCat or some other application server.

I have just been trying this application out (9 days left) and I am very impressed with it, and will most likely buy this program. I just need to make sure it is going to work on the intended server. So now that I have it working, I now just need to get it to connect to my database (not using an DSN). I'm still having trouble with that. I will make another posting.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.