I'm new to Struts 2 and would like to run it without being connected to the internet all the while(as I think ,every time i try to run my app , the struts.xml references--
IS there any way I could perform my development offline . I'm using the Eclipse IDE , if that's of any help.
In your struts.xml write DTD configration this way.
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
Put struts dtd file in WEB-INF directory
<?xml version="1.0" encoding="UTF-8"?>
* $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0 *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
<!-- START SNIPPET: strutsDtd -->
Struts configuration DTD.
Use the following DOCTYPE
Welcome to the JavaRanch, ravidream.
You should be aware that this question was answered in 2011, so hopefully the posters are no longer waiting for an answer. Also, there are several updates to the DTD you posted, so if one is using features introduced since Struts 2.0, they would get errors. DTD's are located in the src\core\src\main\resources\ directory of the Struts distribution. This would be a more reliable source than copying and pasting from here.
Personally, I would not make changes to the Struts distribution unless absolutely necessary (i.e. the application is to be deployed inside a subnet that is isolated from the internet in general).