ADF Faces - access to content in WEB-INF directory
Hello,
I create simple JSF application that use ADF Faces and deploy it to Oracle iAS. But why can i also access files in WEB-INF directory? For example, the following URL - http://myserver.si/MyApp/faces/WEB-INF/web.xml - will return the content of XML file. By my knowledge of J2EE architecture, access to this directory should be forbidden.
Should I set some parameter on javax.faces.webapp.FacesServlet servlet filter to prevent access to WEB-INF directory? Thank you for help.
Google also found the following links:
- http://mail-archives.apache.org/mod_mbox/myfaces-dev/200602.mbox/%[email protected]%3E
- http://svn.apache.org/viewcvs.cgi//myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.java/?rev=375489&view=diff&r1=375489&r2=375488&p1=/myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.java&p2=/myfaces/core/trunk/api/src/main/java/javax/faces/webapp/FacesServlet.java
Regards,
Matic
Hi,
the reason for this is that the WEB-INF directory is protected against direct client (browser) requests. Using Faces, the JSF servlet performs this access as a server side forward request in which case there is no container-managed protection.
If you want to avoid this then you can write a servlet filter in fron of JSF in which you check for any occurences of directories you want to prohibit access to.
Its not a bug, its the way J2EE is designed ;-(
Frank
Similar Messages
-
Access JSF Pages within WEB-INF directory
Hi,
I am generating a project using JHeadstart 10.1.3
with the default setting for the UI Pages directory (/WEB-INF/page).
This means that the generated pages are placed in the page directory
within the WEB-INF directory.
The generated pages use ADF Faces and the problem is that I can't
get access to the pages in the WEB-INF directory
When I try to deploy to OC4J standalone, the pages in the WEB-INF directory
are not accessible.
I read that I have to construct a index.jspx file that forwards to
the first page (Home.jspx)
This is my index.jspx:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:scriptlet> request.getRequestDispatcher("WEB-INF/page/Home.jspx").forward(request,response);
</jsp:scriptlet>
</jsp:root>
This works, but I now have the problem of not getting a valid FacesContext:
500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find FacesContext
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:405)
at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:105)
at web2d_inf._page._Home_jspx._jspService(_Home_jspx.java:100)
[SRC:/WEB-INF/page/Home.jspx:9]
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:662)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:370)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
etc. etc.
What is the required way of setting up the forward (and having a valid FacesContext)?
I know that this is a JHeadstart problem, but maybe you guys know how to solve it.
Part of my web.xml:
<description>Empty web.xml file for Web Application</description>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml,/WEB-INF/custom-faces-config.xml,/WEB-INF/JhsCommon-beans.xml,/WEB-INF/AppModule-Breadcrumb-beans.xml,/WEB-INF/Bpas-beans.xml,/WEB-INF/BpasLookup-beans.xml,/WEB-INF/GroupsLookup-beans.xml,/WEB-INF/PersonsLookup-beans.xml,/WEB-INF/OrganizationsLookup-beans.xml</param-value>
</context-param>
<context-param>
<param-name>CpxFileName</param-name>
<param-value>sumawest.view.DataBindings</param-value>
</context-param>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<servlet-name>ordDeliverMedia</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>ordDeliverMedia</servlet-name>
<servlet-class>oracle.ord.html.OrdPlayMediaServlet</servlet-class>
<init-param>
<param-name>releaseMode</param-name>
<param-value>Stateful</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ordDeliverMedia</servlet-name>
<url-pattern>ordDeliverMedia</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jspx</welcome-file>
</welcome-file-list>I do something similar in my index.jspx file - but I needed to add "faces" to the url path. This will have the faces servlet process it and setup the faces context.
Have you tried changing
request.getRequestDispatcher("WEB-INF/page/Home.jspx").forward(request,response);to
request.getRequestDispatcher("faces/WEB-INF/page/Home.jspx").forward(request,response); -
Access jsp pages in WEB-INF directory
Hi,
I've a problem with my jsp web project;
practically I've created a web project that uses jsp pages and servlet.
I never use links to jsp pages, directly in my web pages, but I call always first servlet;
the servlet call jsp pages.
My project is completed and works fine, but any user can access to my jsp pages directly simply writing the url.
So I've tried to move my jsp pages in the WEB-INF directory, but now I doesn't manage in accessing index.jsp page;
how must I do to access index.jsp page?
I've tried to modify web.xml like this
<welcome-file-list>
<welcome-file>WEB-INF/index.jsp</welcome-file>
</welcome-file-list>
but doesn't work;
besides also servlet calls to jsp pages doesn't work anymore.
How can I solve?
Thank you in advance
MargNatok, so first you have to implement the Filter interface, with 3 methods,
the main method u have to put logic in is doFilter()
public class YourClass implements javax.servlet.Filter {
doFilter(ServletRequest req, ServletResponse res, FIlterChain chain) throws ... {
//check first if is HTTP, if in this case permission is not granted as well
if(req instanceof HttpServletRequest{
HttpServletRequest httpReq = (HttpServletRequest)req;
//now check if its called for index.jsp
if(!httpReq.getRequestURI().toLowerCase().endsWith("index.jsp"))
throw new ServletException("access permitted");
else
chain.doFilter(req,res); //go on with processing
}else
throw new ServletException("only HTTP requests allowed");
}and of course you have to register that filter in your web.xml doing
<filter>
<filter-name>yourFilter</filter-name>
<filter-class>yourFilterClass</filter-class>
</filter>
<filter-mapping>
<filter-name>yourFilter</filter-name>
<url-pattern>/**.jsp</url-pattern>
</filter-mapping>actually that's it -
Locating the contents of WEB-INF/classes
Hi,
We have a web-app deployed as a WAR file (unexploded) and we want to be able to the contents of WEB-INF/classes (ie properties). However when I try and access these files via a web browser, I receive a 404. I tried putting a simple HTML page in there which also gave a 404. I also tried the same method with a simple dummy WAR and was able to retrieve the HTML opage in WEB-INF/classes.
Is there some setting which allows the contents of WEB-INF/classes to be read, or not to be read?
The java version is J2SDK 1.4.2-05, and the app server is JRun 4 updater 4.
Thanks,
Jon DanielsNo - fundamentally what we are aiming for is to have the unexploded WAR app read properties (i.e. log4j.properties, etc) from the WEB-INF/classes folder. To simulate this I attempted to access properties via a web browser; however I'm not sure that's the best way to test, so to rephrase: the problem is that my WAR-file based web-app is not loading properties files from the WEB-INF/lib classes directory.
-
PLEASE HELP. How do you access properties files in WEB-INF and classes directory
We have a war file that needs to access properties files that are in the WEB-INF directory
of the war file. We also need to load one of the properties files from the classpath.
However, when we deploy the application ( an ear which inlcludes an ejbjar and a
war and the libraries both the ejbjar (with a manifest setting the classpath ) and
war need ) the properties don't get extracted.
In some of our servlets we are trying to access those files with the path "WEB-INF/foo.properties"
and we get a FileNotFoundException. Then we check and see that NO properties files
have been extracted into their appropriate places ( not even those we throw into
the WEB-INF/classes directory ).
PLEASE HELP,
Christian HargravesThe file doesn't have to be extracted from the war. For example, you can place
test.properties into your app WEB-INF and write a simple JSP to see how it
works:
<%
InputStream in = application.getResourceAsStream("/WEB-INF/test.properties");
%>
It will return you a zip inputstream if you deployed your application as a .war.
Christian Hargraves <[email protected]> wrote:
I try this, but I get a NullPointerException. The file never actually gets extracted
from the war. Under tomcat and resin this works great ( that's why I am having all
of the trouble i am having ), but there are absolutely no properties files in the
extracted directories for WebLogic deploys. only:
WEB-INF/some_tmp_dir/WEB-INF/lib
and then some dynamically generated jor file with all of the classes that would normally
go in WEB-INF/classes ( all except the properties, of course, which are no where
to be found. ).
There has to be some kind of setting I am missing. Please don't make me seperate
these properties files from the war/ear and then put the path to these properties
files in the CLASSPATH, changing one step to three steps to deploy!!
I have found a documented bug where you can't even put the properties files in a
jar file and that bug will never be fixed for WebLogic 6.1.
"Dimitri I. Rakitine" <[email protected]> wrote:
To access files in WEB-INF you can use ServletContext.getResourceXXX("/WEB-INF/filename")
Christian Hargraves <[email protected]> wrote:
We have a war file that needs to access properties files that are in theWEB-INF directory
of the war file. We also need to load one of the properties files fromthe classpath.
However, when we deploy the application ( an ear which inlcludes an ejbjarand a
war and the libraries both the ejbjar (with a manifest setting the classpath) and
war need ) the properties don't get extracted.
In some of our servlets we are trying to access those files with the path"WEB-INF/foo.properties"
and we get a FileNotFoundException. Then we check and see that NO propertiesfiles
have been extracted into their appropriate places ( not even those wethrow into
the WEB-INF/classes directory ).
PLEASE HELP,
Christian Hargraves--
Dimitri
Dimitri -
DefaultServlet bug? forwarding to static content under WEB-INF
I've encountered what seems to be a bug in the DefaultServlet in WebServer 7.0u2, when trying to do a requestDispatch->forward to static content (e.g., a .png file) under WEB-INF. In general, I can forward into content under WEB-INF, and my servlet works fine when forwarding to dynamic content under WEB-INF (e.g., a .jsp file), but when I try to forward to static content, a 404 error is sent. The same servlet also works fine if I put the static content outside of WEB-INF. In summary:
forwarding to /WEB-INF/foo.png responds with error 404 (even though the content exists)
forwarding to /WEB-INF/foo.jsp works fine
forwarding to /other-dir/foo.png works fine
I'm baffled as to why I can't forward to static content under WEB-INF. I have a very simple web.xml file, and no suffix-based mappings, so the only servlet that should be responding to the forward is the servlet container's DefaultServlet. Is there some bug in DefaultServlet? Am I misunderstanding something?pl. upgrade to latest update (web server 7 u5 as of now) and see if your problem is still reproduced.
-
Why cant I access a WEB-INF directory?
Hi,
I had a war file from a book that I did jar xvf on. It created a directory structure of the nature
<TOMCAT>/ex0101/WEB-INF/etc...
If I go to
http://localhost:8080/ex0101it works
If I create anotherDirectory inside ex0101, and do
http://localhost:8080/ex0101/ANOTHER-DIRECTORYit works
But If I do
http://localhost:8080/ex0101/WEB-INFI get:
HTTP Status 404 - /ex0101/WEB-INF/WHY?The WEB-INF directory is designated to be hidden from
the end user. It is used for configuration files
like web.xml, struts-config.xml, and other "utility"
files. For security purposes, the end user is not
allowed to browse this directory directly.oh thank you so much, I was sitting here going crazy, I looked at the directory property and it was not hidden on Windows, so I was so confused, but I guess it is hidden in Tomcat, thanks a lot, you are a truly kind man -
Serializing a JavaBean to the WEB-INF directory or subdirectories
Hello, I'm hoping someone can help me on this.
I'm working with two scenarios in WSAD Enterprise Edition 5.0.0.2 for
serializing a JavaBean (called AddressBean) to the following location
in my Web application:
/WEB-INF/classes/resources/serializable
The data corresponding to the bean I'm serializing is being stored in
a file with a name that makes it unique on the file system (e.g.
jeff.ser, jill.ser). In the first scenario, I start by getting a
FileOutputStream, then an ObjectOutputStream which is then used to
write my JavaBean as needed. All of this is done in the first
scenario from a JSP located in:
myWebApp/Web Content/jsp/JSP1.jsp
That works fine and as I'd expect. However, I'm not able to do that
in the second scenario. In this scenario, I created an additional
method in the bean itself that will actually serialize an object of
its own type to the same directory structure that I showed above (i.e.
under the WEB-INF directory). That is, in my bean, I have the
following:
public void writeDataToFile(AddressBean bean, String path) {
FileOutputStream fos = null;
ObjectOutputStream oos = null;
try {
fos = new FileOutputStream(path);
oos = new ObjectOutputStream(fos);
oos.writeObject(bean);
oos.close();
catch(Exception e) {
e.printStackTrace();
In this scenario, another JSP (call it JSP2.jsp) is creating an
instance of AddressBean by using the jsp:useBean tag. The real path
for the .ser file is figured out in the JSP code (same as was done in
JSP1.jsp), and then I delegate the serialization part to the bean
itself like so:
// In JSP2.jsp
<jsp:useBean id="ab" class="examples.beans.simple.AddressBean" />
AddressBean address = (AddressBean) pageContext.getAttribute("ab");
// get the path
String path = ...
String realPath = application.getRealPath(path);
// write the object
address.writeDataToFile(ab, realPath);
What happens is that I get a FileNotFoundException while trying to
create the FileOutputStream in the writeDataToFile() method in
AddressBean at runtime. The message in the console states:
java.io.FileNotFoundException:
C:\WINNT\Profiles\myself\Personal\IBM\wsad\myworkbench\myWebApp\Web
Content\ (Access is denied)
The source file for AddressBean is located at:
myWebApp/Java Source/examples.beans.simple.AddressBean
WHAT is going on here!? I know that everything stored underneath the
WEB-INF directory is not served to clients so I'm also assuming that
whatever stored in that directory or its subdirectories is not
accessible to clients by default. The only real difference between
the two scenarios that I've described is that in the second one, the
attempt to get a FileOutputStream is being made by a resource (i.e.
AddressBean) that is outside of the "Web Content" directory structure
in WSAD. However, the "Java Source" directory, which contains the
package housing my AddressBean class, is also under myWebApp so I'm
not seeing what the problem is at the moment.
If anyone has any ideas, suggestions, solutions, please let me know.
I'm stumped. Thank you!
JeffI figured it out, and it was my mistake. The problem was in a method defined in my AddressBean class that would take a String argument and use it to help create a unique file name (i.e. one with a .ser extension to contain the serialized bean data) for purposes of serialization later.
Basically, I was using a local variable in the method unintentionally instead of the instance variable that I had defined in the bean so my path value was null at runtime--hence the FileNotFoundException.
I'm still not sure why the (Access is denied) message was appearing, but I suspect it was b/c the absolute path that I'd end up with at runtime wasn't kosher; or, not having a destination .ser file was the problem.
In any event, I fixed the mistake and could serialize a JavaBean in several ways:
1. From a JSP directly
2. By using a method defined in the JavaBean itself
3. By passing on the request, which contained the JavaBean as an attribute, to a servlet that took care of the serialization
Jeff -
Possible to put JSPs used by JSF in WEB-INF directory?
I'm used to storing my JSPs in the WEB-INF directory so that they can only be accessed through a controller servlet and not directly. Does anyone know if this is possible with JSF?
I have an application that has 3 pages. I want to force the user to go from page 1 to page 2 to page 3. I don't want the user to be able to jump straight to page 2 or 3 without first going through the previous pages. How can I acheive this using JSF?
Furthermore, if the session times out while the user is on page 2 or 3 and they attempt to submit, I want the application to go back to page 1 (or, preferably a page that states that the session has timed out) and force them to start over.May be you should just restrict access to your *.jsp files and doing your logic by the beans and navigation rules?
<security-constraint>
<!-- This security constraint illustrates how JSP pages
with JavaServer Faces components can be protected from
being accessed without going through the Faces Servlet.
The security constraint ensures that the Faces Servlet will
be used or the pages will not be processed. -->
<display-name>Restrict access to JSP pages</display-name>
<web-resource-collection>
<web-resource-name>
Restrict access to JSP pages
</web-resource-name>
<url-pattern>*.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>
With no roles defined, no access granted
</description>
</auth-constraint>
</security-constraint> -
Find path to Web-inf directory from root
Hi All,
I have a application for which the "config.txt" file is placed in "Web-inf" directory. I want to get the complete path to this file so that I can access it and read config info.
I am able to acheive this if I write the following piece of code and it gives me the complete path.
String configPath = getServletContext().getRealPath("config.txt");
My problem is that this code works only if the class extends from HttpServlet. I want to get the complete path to this file from a normal java bean, where I don't have the servlet context.
If there is any alternative way to achieve this or if somehow I can get the servlet context in the java bean then please let me know. We use iPlanet 6.0 server.
Thanks for your help.
RMThanks for your reply. Do you mean, I should use
getResourceasStream() method which return inputstream.
But even that would require servletcontext object ?No it doesn't require the servlet context; if it did, you'd still be able to get the servlet context from the servlet itself.
Maybe I have not understood, your approach. Can you
please give me some example.
class SomeServlet extends HttpServlet {
// servlet stuff
private void handleConfiguration() {
InputStream configStream = getClass().getResourceAsStream("config.txt"); // may return null
YourBean bean = getYourBeanInstance();
bean.someMethod(configStream);
// close configStream
public class YourBean {
public void someMethod(InputStream configStream) {
// handle configStream
} -
Support for JSP's located in WEB-INF directory
Several application servers support the use of placing JSP pages underneath the WEB-INF directory, to insure that only server side workflow forwards requests to those pages and not direct URL access. IN addition the JSTL specification supports the use of
<c:import url="/WEBINF/published/campaign_Arts.jsp" />
Does OC4J 9.0.3 support this syntax? I cannot get it to work. Is there an application configuration file I need to update to support this?
Thanksthank you for your reply...
but...
My problem is that i want to serve jsp pages that include various other jsp pages.
But i don't want those other pages to be served directly. The approach of putting
the jsp files in the WEB-INF, or in a sub directory of it, worked fine on Tomcat.
The way i look at it is that the server has direct access to them when putting
togetter the main jsp, but they can't be accessed from the outside. But this seems
not to be the case.
Any ideas?
"ilya Devers" <[email protected]> wrote:
>The WEB-INF is not perceived as a directory to the engine. Resources
>in it
>are not exposed and should not. It can hold sensitive resources such
>as
>application deployment descriptors that can contain database log in
>information to name something. The engine should never serve resources
>located here.
>
>This directory should only contain the normal directories: lib and classes,
>and the web.xml files (and weblogic.xml).
>
>Hope this helps.
>
>ilya
>
-
Storing .jsp files in the web-inf directory
Has anyone ever heard about storing JSP files in the web-inf directory instead of the web app root directory.
Apparently it improves security.
If this is so, how is the user suppose to access the jsp file since I thought that users were not able to access what is stored in the web-inf directory.
Any thoughts
Thanks
NatI didn't tyr this but I think it is possible. You can do it using <servlet-mapping/> as you do with any other servlet.
For example include lines below, in web.xml of web-inf,
<servlet>
<servlet-name>ReportRouter</servlet-name>
<jsp-file>/web-inf/jsp/ReportRouter.jsp</jsp-file>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>ReportRouter</servlet-name>
<url-pattern>/myrouter</url-pattern>
</servlet-mapping>
This may work. Don't you think so?
Sudha -
Log4J - reading properties file from /WEB-INF directory issue..
I'm just learning to implement Log4J; the approach I am taking for my JSF application running under Tomcat 5.5x is to create an initialization servlet to initialize the logger, and then access the logger instance within my backing beans and application module services. I include log4j.jar file in /WEB-INF/lib and log4j.properties in /WEB-INF.
First I wanted to see if this was a good approach, and secondly I'm having trouble accessing the log4j.properties file from the /WEB-INF directory (see below) - any suggestions on how to set up the path so that the properties file can be found (I receive a java.io.filenotfoundexception)?
Where I'm looking for direction is how to define a single instance of the logger and then access that instance from my java classes versus re-creating the logger in each class.
----- web.xml --------
<servlet>
<servlet-name>LogServlet</servlet-name>
<servlet-class>com.sidehire.view.util.LogServlet</servlet-class>
<init-param>
<param-name>setup</param-name>
<param-value>/WEB-INF/log4j.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
------ LogServlet class ------
public void init()
throws ServletException {
String config = getInitParameter("setup");
PropertyConfigurator.configure(config);
Thanks
Message was edited by:
javaXTry to put the log4j.properties in your WEB-INF/classes/ directory.
You could wrap one log4j instance in a static method in a utility class, but then you would probably lose other information depending on your logger configuration.
If you create an instance in each class, which after all is just one line like this:
static Logger logger = Logger.getLogger(ChangePasswrdAction.class.getName());
then you are able to get time and method information. -
Invalid Flex WEB-INF directory
Please someone help me !
I've instaled LiveCycle Data Series and ColdFusion MX7 and I
want to create a Flex Project to access a database that is in SQL
server locally in my computer.
When I try to create it FLEX using CF or DataSeries always
says that the WEB-INF directory isn't available.
Can someone explain me Step by Step how should I do it
?The Flex documentation - Building and Deploying Flex
Applications, Chapter 3, page 45 - states that you can create your
Flex project under your own Java web application folder (a opposed
to the flex.war folder), but is very scarce with details.
Anyone from Adobe to enlighten us ?
What should a Java web application folder contain so that
Flex Builder allows to create a Flex project within it ? -
How can I reference a dtd in the Web-Inf directory from an xml file?
Hi,
I've placed my test.xml and test.dtd files in the following
direcory (part of my web application)
weblogic\config\MyDomain\applications\sample\Web-inf
When I refer to the dtd from the xml file, as follows,
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE application SYSTEM "test.dtd">
Weblogic tries to look for the dtd in the weblogic directory(the
place where I started the server from). How can I get it to read
the dtd in the Web-inf directory?
I'm using Weblogic6.0 SP1 on Windows NT 4.0
Thanks.Two options:
1) Use SYSTEM "http://localhost:7001/sample/test.dtd"
2) Or use XML registry in WLS6.0
Cheers - Wei
"Paromita" <[email protected]> wrote in message
news:3aaff997$[email protected]..
>
Hi,
I've placed my test.xml and test.dtd files in the following
direcory (part of my web application)
weblogic\config\MyDomain\applications\sample\Web-inf
When I refer to the dtd from the xml file, as follows,
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE application SYSTEM "test.dtd">
Weblogic tries to look for the dtd in the weblogic directory(the
place where I started the server from). How can I get it to read
the dtd in the Web-inf directory?
I'm using Weblogic6.0 SP1 on Windows NT 4.0
Thanks.
Maybe you are looking for
-
I just recieved a new Ipod classic. I am currently trying to sync it with my Itunes (on my Mac computer), but my computer and itunes isn't even showing that it is hooked up to my computer. Can you help me set it up?
-
Weblogic portal + firefox?
Hello!, I'm developing a portal and in one of the portlets I use netui tags. For those tags there are created some javascript functions but they doesn't seem to work in firefox :-(. Is there a solution? or should I get married with IE :^O? Thanks for
-
Unable to record "Arrange windows" in new action
I used to have ctrl-shft-F12 and Ctrl-F12 to toggle between two panel vertical and consolidate all to tabs in my actions (no I had no backup of this) I had it working in CC 2014, but after a reinstall, I cannot get these actions recorded. The Window
-
Skips to the next song while in the middle of a track (in Shuffle mode)
On some tracks, my iPod suddenly skips to the next track when it is in shuffle songs mode. This seems to happen randomly in the middle (or close to the beginning...e.g. 30 seconds in) of tracks, and I can't figure out why it isn't playing the whole t
-
Error message 8008. Files seem to be corrupted
It tells me to click on 'check for purchases' to redownload it, but when I do the same message pops up. How do I get my tv shows to download??