How map a specific exception in my web.xml
Hi all, i got a servlet that instantiates a JavaBean which has all the code to connect and get some data from my database, if some error ocurrs the JavaBean returns an string message which was an exception what i want is to get the error exception to use a tag like this <%@page ErrorPage="error.jsp"%> and then to catch the exception throw by the JavaBean and to show it in the jsp o really appreciate your help thanks...
Hi jcotillo,
I just have an idea..not even sure if I am thinking along the proper lines...
put this in ur catch block and pass the exception as a query string to the jsp...
<%@page ErrorPage="error.jsp?error="+e%>
now..collect the exception in the error page and display...
just try...and dont do that even if u know for sure that it cannot be done like that...:)))
Similar Messages
-
exception-type in web.xml does not appear to work
WLS 60 SP1 (#101616)
<exception-type> in web.xml does not appear to work. WLS shows standard
"Internal error 500" page instead of a custom error page. The custom error
page is shown if <error-code> is used instead of <exception-type>.
Any ideas? Thanks
Can you show me some of your code? This works for me.
Also, you say that you are working with 6.0sp3. Are you sure? sp3 hasn't been
released yet, except in a very limited beta. (I believe only internally, but I
could be wrong about that.)
David
[email protected] wrote:
Hi all,
I have created a very simple servlet and an index.html file with a link
to it, then packaged it into a WAR file with the appropriate web.xml and
ias-web.xml files. I then created an application.xml file referencing
only this servlet and adding a context root. After deployment via
"iasdeploy deployapp simple.ear" and cycling the web server, I can reach
the welcome file (index.html) correctly
-"http://localhost/NASApp/simple". When I attempt to follow the link to
the servlet ("simple servlet") the URL ends
up as "http://localhost/NASApp/SimpleServlet" whereas it should be
http://localhost/NASApp/simple/SimpleServlet If I type that url in, the
servlet executes fine.
I've deployed this into Tomcat and get the behavior I expect. It appears
that the element in the application.xml file is ignored by
iAS.
I'm using iAS SP3 on Win2k (same problem on NT).
This is such a basic behavior that I can't believe this is an existing
bug. I must be doing something wrong...
Any ideas?
Thanks in advance,
-Glen
Files are attached.
Name: simple.ear
simple.ear Type: application/x-unknown-content-type-ear_auto_file
Encoding: base64
Description: filename="simple.ear" -
How to add another secure url in web.xml?
hello i want to secure my web application i have two kind of users i have users and admin.each of them has each certificat users have permission to enter /users and admin have permission to enter /admins/ but i want also users to enter another folder which is /otheruserplace how can i add this in my web.xml file here is my code
http://pastebin.com/m3e13d3d9Just add another url-pattern.
This has nothing to do with JSF however. More suitable place would have been the Servlets forum. -
How to run java servlet without using Web.xml?
How to run servlet without using Web.xml? From a book, I know that web.xml descriptor is optional, but the book doesn't tell us how to run java servelet without web.xm descriptor. So how to do that? Thanks a lot.
How to run servlet without using Web.xml?But Tomcat now uses a web.xml for its global server-wide configuration.
If you'd like to invoke a servlet with:
http://host/servlet/ServletName
you have to enable the invoker servlet.
[from an HTML]
<FORM METHOD="POST" ACTION="/servlet/HGrepSearchSJ">
[from resin.conf of Resin Web Server 2.1.12]
<!--
- The "invoker" servlet invokes servlet classes from the URL.
- /examples/basic/servlet/HelloServlet will start the HelloServlet
- class. In general, the invoker should only be used
- for development, not on a deployment server, because it might
- leave open security holes.
-->
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
[from TOMCAT5.0.19/conf/web.xml, a global server-wide web.xml file]
<!-- The "invoker" servlet, which executes anonymous servlet classes -->
<!-- that have not been defined in a web.xml file. Traditionally, this -->
<!-- servlet is mapped to URL pattern "/servlet/*", but you can map it -->
<!-- to other patterns as well. The extra path info portion of such a -->
<!-- request must be the fully qualified class name of a Java class that -->
<!-- implements Servlet (or extends HttpServlet), or the servlet name -->
<!-- of an existing servlet definition. This servlet supports the -->
<!-- following initialization parameters (default values are in square -->
<!-- brackets): -->
<!-- -->
<!-- debug Debugging detail level for messages logged -->
<!-- by this servlet. [0] -->
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
---comment out below----------------------------------------------------------
<!-- The mapping for the invoker servlet -->
<!--
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
--> -
How to chage the welcome file in web.xml using creator?
Hi guys,
I want to set the welcome file in web.xml to index.html but every time I run my project in creator, creator replaces index.html by faces/index.jsp. I need the index.html to check if the browser enables cookies & javascript and then I redirect to index.jsp. If I change the web.xml in a common editor, build the war-file with ant and deploy the project with tomcat, everything is fine. but how can I change it in creator?
thanks in advanceSorry, that doesn't make much sense.
The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
Are you a user of this utility? -
URL Mapping for packaged JSP's in web.xml file
Hi,
I am using weblogic6.0sp2 enterprise edition.I have my JSP's in package structure.
Suppose my login.jsp is in package com.advice.document. So for URL mapping in
web.xml what should be given so that by giving that my JSP runs. I have tried
many options but not got success.
Here is my web.xml file..
<web-app>
<servlet>
<servlet-name> Login </servlet-name>
<jsp-file> com\advice\document\login.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name> Login </servlet-name>
<url-pattern> /Login</url-pattern>
</servlet-mapping>
</web-app>
If any body knows or have worked on the same then let me know.
Thanks in advance.
--- Vipul
Did you try specifying the jsp-file with forward slashes (e.g.,
com/advice/document/login.jsp)?
Vipul Garg wrote:
> Hi,
> I am using weblogic6.0sp2 enterprise edition.I have my JSP's in package structure.
> Suppose my login.jsp is in package com.advice.document. So for URL mapping in
> web.xml what should be given so that by giving that my JSP runs. I have tried
> many options but not got success.
> Here is my web.xml file..
> <web-app>
> <servlet>
> <servlet-name> Login </servlet-name>
> <jsp-file> com\advice\document\login.jsp</jsp-file>
> </servlet>
> <servlet-mapping>
> <servlet-name> Login </servlet-name>
> <url-pattern> /Login</url-pattern>
> </servlet-mapping>
> </web-app>
>
> If any body knows or have worked on the same then let me know.
> Thanks in advance.
> --- Vipul
-
JSF - How to set up tag libs in web.xml file?
Hello all,
I have a doubt... that in an JSF application we are using two tag libraries, one for the core and other for html components. Both these *.tld files are jared inside "jsf-impl.jar" file.
The problem is that when i start the web server (Tomcat4.0.6) the console shows that taglib tag must be configured... this means that we have to specify the "<taglib></taglib>" elements in the web.xml file of the jsf application... but how do configure the jar file...
please guide...Putting the JAR files in WEB-INF/lib and using the standard URIs in the taglib directives are all that's needed; the container locates the TLDs in the JAR files at startup.
If this doesn't work, it's a bug in the container. You may want to upgrade to a later version of Tomcat; 4.0.6 is ancient, and may very well be buggy in this area. -
How to resolve resource exception in a web-service
Hi
I have created a web-service which is using KM .It is giving resource exception.
What application references should be added ?I have already included security-api ,
com.sap.km.trex.client and com.sap.km.application.
Thanks in advance.Hi Shaily,
maybe you forgot to add the cluster.jar to your Web Service project.
Here you will find a good tutorial for creating web services based on portal applications:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca4ce590-0201-0010-0ab8-a15f313012d8
Bye Steve -
How to set specific URL for broadcasting web templates from WAD
Hi experts,
I have created a sample web template in WAD by using SAP BI standerd query.When I am executing the web template,it is redirecting me to some unintended web portal.I know the correct portal URL.Can anybody tell me where the redirecting portal URL settings are maintained in BI/BEx/WAD??
Regards,
Mandar.Hi Suman,
Thanks a lot for your valuable reply.
By the navigation you mentioned,I was able to identify where exactly I have to change the URL prefix.However,when I am saving the changes I made to URL prefix,system is redirecting me to "Varient Attributes" screen.I don't know what exactly this screen is about.Please help..
Regards,
Mandar. -
How to create a simple web.xml for using servlets
Hello i wanna configure the web.xml that i can use sevlets and beans, but how can i do that?
This is de directorie i have installed my webapp
C:\Tomcat 4.1\webapps\testapp
C:\Tomcat 4.1\webapps\test\WEB-INF\classes (in this dir, I wanna put my beans and servlets, I got one servlet and the name is LogIn.class).
And i wanna request my servlets with the url http://localhost:8080/testapp/servlet/LogIn
How can i create a very basic web.xml with working beans, servlets and session? It is for testing-use only, so the security is not important for me at this moment.
Tnxunder your web-inf
in your web.xml file you must map
the servlets
under the <web-app> tag type
<servlet>
<servlet-name>LogIn</servlet-name>
<servlet-class>com.LogIn</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LogIn</servlet-name>
<url-pattern>/LogIn</url-pattern>
</servlet-mapping>ps: start using some IDE such as NetBeans or Ecclipse
since they will take care of mapping all servlets and Beans
and generate all the necessary files for your web-app -
WEB-INF/web.xml not found exception for deployed war on server startup
Weblogic server is throwing an exception indicating that it can't find
web.xml on startup when a particular war file is deployed. The exception
and my web.xml follow below.
There are some other strange elements to this:
1) The deployed war in the application directory has a valid web.xml in the
web-inf folder.
2) The war in the servers temp directory corresponding to my war contains
only the files found in WEB-INF in the deployed jar, but not those found in
web-inf (case matters). These files are in the root of the war, not in a
WEB-INF folder!
3) The servlets in the war do load and are invokable.
4) If I redeploy the jar while the server is still running, I get no
exception, and the temp war then has the correct structure (with a WEB-INF
folder and contains web.xml).
The exception:
<Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
Could not find Web application
"D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
local_comp2079.war"
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
file
at
weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
r.java:207)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
78)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy23.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:494)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Controller Unit Tests</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
e>
<param-value>ConductEntityAccessTest</param-value>
</context-param>
<servlet>
<servlet-name>unitTestRunner</servlet-name>
<servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>unitTestRunner</servlet-name>
<url-pattern>unitTestRunner.srv</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>PPSDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Kumar,
Here it is.
Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
I have a webapp with the following entries in my web.xml and i can't seem to duplicate your problem.
Can you send us your webapp? I will try to duplicate it in my environment.
Kumar
Steve Demuth wrote:
Already tried that. No difference. Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
Interesting.
This shouldn't happen though.
Can you stop the server delete the .wl_temp_do_not_delete
dir? Let's see if that makes any difference.
Kumar
Steve Demuth wrote:
Weblogic server is throwing an exception indicating that it can't find
web.xml on startup when a particular war file is deployed. The exception
and my web.xml follow below.
There are some other strange elements to this:
1) The deployed war in the application directory has a valid web.xml in the
web-inf folder.
2) The war in the servers temp directory corresponding to my war contains
only the files found in WEB-INF in the deployed jar, but not those found in
web-inf (case matters). These files are in the root of the war, not in a
WEB-INF folder!
3) The servlets in the war do load and are invokable.
4) If I redeploy the jar while the server is still running, I get no
exception, and the temp war then has the correct structure (with a WEB-INF
folder and contains web.xml).
The exception:
<Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
Could not find Web application
"D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
local_comp2079.war"
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
file
at
weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
r.java:207)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
78)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy23.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:494)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Controller Unit Tests</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
e>
<param-value>ConductEntityAccessTest</param-value>
</context-param>
<servlet>
<servlet-name>unitTestRunner</servlet-name>
<servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>unitTestRunner</servlet-name>
<url-pattern>unitTestRunner.srv</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>PPSDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
[att1.html]
[controllerUnitTests.war]
-
How to set an 'alias' for a JSP page in web.xml
Hi
Suppose I have a JSP page called SimplePage.jsp and I want to refer to it by someother name while running the application how do I do this in the web.xml file. I have used <servlet-mapping> to do this in the case of a servlet. However I am not sure how to do this with a JSP
Could somebody show me how to do this. I would be very much grateful.
All help appreciated and acknowledged.
thanks in advance
ilangoIt worked. The correct web.xml version is as below:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app SYSTEM "http://java.sun.com/dtd/web-app_2_3.dtd" [
]>
<web-app>
<!-- Define servlets that are included in the example application -->
<servlet>
<servlet-name>ControllerServlet</servlet-name>
<servlet-class>ControllerServlet</servlet-class>
<init-param>
<param-name>base</param-name>
<param-value>http://localhost:8080/MVCIIapp/servlet/ControllerServlet</param-value>
</init-param>
<init-param>
<param-name>jdbcDriver</param-name>
<param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
</init-param>
<init-param>
<param-name>imageUrl</param-name>
<param-value>http://localhost:8080/MVCIIapp/images/</param-value>
</init-param>
<init-param>
<param-name>dbUrl</param-name>
<param-value>jdbc:odbc:Burnaby</param-value>
</init-param>
<init-param>
<param-name>ilangocal</param-name>
<param-value/>
</init-param>
<init-param>
<param-name>mangla</param-name>
<param-value/>
</init-param>
</servlet>
<servlet>
<servlet-name>Header</servlet-name>
<jsp-file>/MVCIIapp/jsp/Header.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>ControllerServlet</servlet-name>
<url-pattern>/Master</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Header</servlet-name>
<url-pattern>/Opener</url-pattern>
</servlet-mapping>
</web-app>
I have other jps files too.I am going to try and put aliases for them and see how they perform.
I hope I have not spoken too soon by saying that the aliases work. Let me wait and watch with bated breath.
But thanks a lot for your suggestions without which this would not have been possible
ilango -
How to configure ADF application to use OAM Identity Assertion ? web.xml
We have a web application developed using ADF (application development framework) and deployed on WebCenter 11.1.1.2 (weblogic 10.3.2)
OID Authentication and OAM identity assertion is configured in WebLogic 10.3.2 .
How to configure security in ADF application (web.xml or weblogic.xml) so that it uses OAM identity assertion (already configured as authentication providers in weblogic server)
Any pointers or documentation so that application (developed using ADF) check for identity tocken and verifies it with one of identity assertion providers.John,
I have to concur. With OAM you don't need this. OAM intercepts the calls and inserts a cookie for WLS to get user information from.
I strongly advise to go through the above mention OFM Security Guide. Esp. Chapter 10 tells you in every detail how to implement OAM SSO with WLS (with or without OHS as a proxy).
Reading this chapter saves you time and turnarounds on this topic...
--olaf -
How to edit the web.xml file
hi friends,
i have been working with netbeans for webapplications so far therefore its not ever been requerd to edit the web.xml file that automatically done by IDE itself.
now, i am just trying to deploy the servlet and jsp's externally without using any tool and i found a requrement to map the servlet and jsp in web.xml file. when i try to edit inside this file it seems noneditable, nothing gonna change. i have an alternate to do this is firstly copy the content of this file into txt file and after making the requred changes overwrite this file in .xml formate to orignal web.xml file.
am i going in right way?? please help me
regards
sanopen it in a text editor and modify it.
% -
I have some more problem in the web.xml file and url-pattern in my syste
HI ALL!
How can I create and place the web.xml and URL-parrten.Because I run
the tomcat in my computer with ME system.
Hocwhat is the problem? please be more specific and detailed? check a sample web.xml file and make your own one and place it in your <application-context>\WEB-INF folder..
Maybe you are looking for
-
Ok, So I am on Friends and Family 2000minutes and unlimited Text. 4 phones. My phone has Unlimited Data and Hotspot Other 3 do not have any data. I am curious what I can do and can't do that will keep keep the plan as is and not force things to share
-
New Markup using JVue applet with default colors that override .ini setting
Goal: To load the JVue applet initially populated with a given document(drawing) and if there are no markups at all: • Give the user a markup with a custom filename • Configure the applet so that all markups: o Have a specific custom outl
-
Hi Is there any option in MDG to download the CR processing time , Like Creation time, approved time and activation time of the CR. display change request option shows creation and finalized time only. thanks in advance Regards syam
-
How To Hide the Record after Update from ADF Front End
Hi Every One, I have done the Scenario of Database Table rows displayed in ADF front end. It is editing and updating also. My Query is after update the record, how to hide that record from adf front end. Could any one please help me. Thanks, Narasimh
-
i have updated firefox, updated or installed java (JRE), and it still does not work. i keep geting a message "could not connect to game server. error UOO" but it works fine with explorer.