Servlet 2.5 Specification?
I've seen some articles on Servlet 2.5 and its several new features, but I don't see a specification for it on the Sun website. Only 2.4. Where is the 2.5 specification available?
Also, I can't tell whether it has been finalized and released and is in use today, or whether its something that is being planned for the near future.
Thanks.
try this link
https://sdlc2b.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=AF1B9C9276339F00724B7E5662B33843;jsessionid=AF1B9C9276339F00724B7E5662B33843
or seach in google for Servlet 2.5 Specification
Why do you need it anyway ?
Similar Messages
-
How to access servlet only via specific port?
Hi all,
I have an app with 2 servlets, I want each servlet to be accessible via a different port.
so I open HTTP on my web server, on port 80 and 18080, but now BOTH servlets are available via BOTH ports.
how can I make sure that servlet 1 is accessible only via port 80, and servlet2 is only accessible via port 18080?
tnxRun two servers.
-
Reload servlet to a specific area on the page
Hi, gang
I have a servlet that refreshes at user defined rate and displays a bunch of different things on the page.
I would like to the user to be able to click on a link that would take him to (for instance) a middle of the page, and when the servlet refreshes again the user will still be in the same area, and not at the top of the page.
I am using meta-refresh to refresh the servlet, and I know I have to use the "A HREF" and "A NAME" commands, but I am unable to do it dynamically.
The simplified segments of my code look like this.
protected void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException {
response.setContentType("text/html");
java.io.PrintWriter out = response.getWriter();
int time = (new Integer(request.getParameter(REFRESH_RATE))).intValue();
out.println("<html><head>");
out.println("<meta http-equiv='refresh' content='"+time+";URL=MyServlet?"+REFRESH_RATE+"="+time+"' frame='self'>");
out.println("</head><body>");
out.println("<A HREF='#MIDDLE'>Jump to Middle</a>");
out.println("<A NAME=TOP>");
out.println("<FORM NAME=setTime METHOD=GET ACTION="MyServlet?"+REFRESH_RATE+"="+time+"'>");
out.println("<input type=textfield name='"+REFRESH_RATE+"' value='"+time+"'>");
out.println("<input type=submit value='Refresh after this many seconds'>");
out.println("</form>");
out.println("<P>Blah blah blah<P>");
out.println("Back to Top");
out.println("<A NAME=MIDDLE>");
out.println("<P><P>More Blah Blah Blah<P><P>");
out.println("</body>");
out.println("</html>");
out.close();
Thank you in advance,
Val.Try this... modify your initial part of the code as below
response.setContentType("text/html");
java.io.PrintWriter out = response.getWriter();
String time = request.getParameter(REFRESH_RATE);
String area = request.getParameter("area");
out.println("<html><head>");
out.println("<meta http-equiv='refresh' content='"
+time
+";URL=MyServlet?REFRESH_RATE="
+time
+ "#"
+ area
+"' frame='self'>");
out.println("</head><body>"); and the part where you hav links as shown below...
out.println("<A HREF='MyServlet?"
+REFRESH_RATE
+"="
+time
+"#MIDDLE'>Jump to Middle</a>");
out.println("<A NAME=TOP>");
out.println("<FORM NAME=setTime METHOD=GET ACTION='MyServlet?"+REFRESH_RATE
+"="
+time
+"#MIDDLE'>");
out.println("<input type=textfield name='"+REFRESH_RATE+"' value='"+time+"'>");
out.println("<input type=submit value='Refresh after this many seconds'>");
out.println("</form>");Just a giude line... Hope this may help you. -
? about executing servlet at a specific time
I have a need to execute a servlet once per day unattended to do a database
function. Any idea on this (must be done from servlet without sucking up cpu
time).
Tom K.
I agree with Robert. You shouldn't be creating your own threads in the server vm.
Instead you should rely on the time service api.
Prasad
Robert Patrick wrote:
> Of course, this means that your startup class either starts its own thread or
> monopolizes one of the servers execute threads. The WebLogic Time service is
> probably the suggested way of accomplishing this...
>
> Just my two cents,
> Robert
>
> Marc Mazas wrote:
>
> > You can write a startup servlet which iterates on computing the
> > remaining delay and sleeping for this time with the standard wait(...)
> > java call.
> >
> > Tom Kochanowicz wrote:
> > >
> > > I have a need to execute a servlet once per day unattended to do a database
> > > function. Any idea on this (must be done from servlet without sucking up cpu
> > > time).
> > >
> > > Tom K.
-
Auto-Run the servlet class at specificed time
Hi,
I am new to Jsp. I remember there is a feature where I define something in web.xml to auto-run a servlet at certain time.
something like for everyday 4:30am, I want to clear up all the log file in my server.
Please tell me how to do it or any reference.
Thank you.if you are using a windows machine you can just schedule a task every day at that specified time and just run it. As far as the web.xml file telling the servlet to run at a specified time, I haven't heard of that. I just know that you can tell the server at what precedence you want the loading of the servlet(s).
Hope this helps. Also, search the forum for more information on this matter. I'm sure that there are more posts on this matter that could assist you further.
Good luck -
Where can I find the final release of 2.5 Servlet specification?
The page Java Servlet Technology page (http://java.sun.com/products/servlet/index.jsp) includes a link as it reads to the "Final Release Of the Servlet 2.5 Specification", But it leads to a maintenance release version.In the maintenance release page where we were led it includes two links
1 If you want to read the specification for evaluation, or to build an application that uses the specification, click here.
2 If you intend to build an implementation of the specification, click here.
But these two links downloads the same specification, actualy a API specification
In the beginning of the page there is another link as "For the original Final Release of the Specification, please go to the original Final Release for JSR 154 page.". but this link leads to a link which downloads a 2.4 ; .pdf version specification and which includes a detailed description about Servlet technology.
1 Where can I find a detailed(like the .pdf version) 2.5 ; final release specification and a final 2.5 API specification release , or is there not one?
VarunaHi Varuna,
As you specified the page leads to "JSR 154: JavaTM Servlet 2.4 Specification" but you click the link Maintenance Release 2 under Final Stage Menu. It leads to the page Servlet 2.5 specification download Page.
Regards,
Anil Reddy -
How to get SSLSession in Servlet?
Hello,
Is there any new way to get a SSLSession object inside Servlet?
Why javax.net.ssl.session attribute is no longer available since Servlet 2.1 specification?
See:
http://java.sun.com/products/servlet/2.1/api/javax.servlet.ServletRequest.html#getAttribute(javax.servlet.String)
Thank you.I agree with you, but the question is still remind - how can I destroy Application Session so that transport level (SSL) session will be destroyed also?
The problem is that I need to force the browser to check user certificate which is stored on the smart card. -
Full servlet 2.3 support in WLS 6.1 available?
Hi,
I have succeffully ported a servlet 2.3 based web app to WLS 7.0. The same code
generates compile errors when compiling against WLS 6.1 sp4 jar.
Here is the list of inconsistencies as documented in 6.1 notes - go to http://edocs.bea.com/wls/docs61/notes/new.html
and search for "Servlet API Classes" you should see table with the following classes
that are not fully 2.3 compatible.
javax.servlet.Filter
javax.servlet.ServletContext
javax.servlet.ServletContextAttributesListener
javax.servlet.http.HttpServletResponse
javax.servlet.http.HttpSession
javax.servlet.http.HttpSessionAttributesListener
For some classes I a rename works fine, however other are more problematic.
Is there a patch for WLS 6.1 that fully supports servlet 2.3 specification? Or,
what else would you suggest?
Thanks,
Radu
WLS6.1 supports Public Final Draft 1 of Servlet 2.3 specification, not the Servlet
specification 2.3.
Refer to
http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_clfydoc&answerpage=solution&page=wls%2FS-10618.htm
thanks,
Deepak
"Radu" <[email protected]> wrote:
>
>Hi,
>
>I have succeffully ported a servlet 2.3 based web app to WLS 7.0. The
>same code
>generates compile errors when compiling against WLS 6.1 sp4 jar.
>
>Here is the list of inconsistencies as documented in 6.1 notes - go to
>http://edocs.bea.com/wls/docs61/notes/new.html
>and search for "Servlet API Classes" you should see table with the following
>classes
>that are not fully 2.3 compatible.
>
>javax.servlet.Filter
>javax.servlet.ServletContext
>javax.servlet.ServletContextAttributesListener
>javax.servlet.http.HttpServletResponse
>javax.servlet.http.HttpSession
>javax.servlet.http.HttpSessionAttributesListener
>
>For some classes I a rename works fine, however other are more problematic.
>
>Is there a patch for WLS 6.1 that fully supports servlet 2.3 specification?
> Or,
>what else would you suggest?
>
>Thanks,
>Radu
>
>
>
-
Cannot run a servlet using Tomcat. Urgent
I have a webapplication which uses some jsp's and servlets. The jsp pages work fine when I use
http://hostname:8080/MyWebapp/Filename.jsp
However, when I developed a java servlet and put the class file in WEB-INF/classes directory of my web application and tried to access it.
I got a resource not found error.
The strange thing is that when I put the file in the web-inf/classes folder of examples webapplication (which comes with Tomcat) I am able to run the servlet using
http://hostname:8080/examples/servlet/Class file
I am not sure what is wrong.
Can someone help me.
Thanks in advance
Vamsi.It's predictable. The Servlet and JSP specifications mandate that you cannot directly access resources under WEB-INF directory. You have to set up servlet mapping configuration in your web.xml to specify how to access the resources, both Servlet and JSP, there.
When you copied your files in a demo webapp of Tomcat, the web.xml of the demo app already set up the mapping like following for you. So you could use http://hostname:8080/examples/servlet/Class to visit the servlet.
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
The default setting since Tomcat 4.1 turned off servlet invoker in web.xml under conf directory. You can uncomment the above lines in this file to turn it on. Then you are able to visit your servlet without <servlet-mapping> configured using the following syntax,
http://hostname:8080/<your_app_name>/servlet/<your_servlet_name> -
NON-SERVLET, NON-EJB DYNAMIC CLASS RELOAD
hi,
In weblogic 5.1, is there a way to reload a class from the clientclasses directory without restarting the server? it's just a class in the clientclasses used by the JSPs. a kind of hotdeploy for NON-EJB, NON-SERVLET CLASS. SPECIFIC guidance will be immensely appreciated..
Thanks in advance
Vijay
please show us the full error message.
it sounds like a classpath problem... -
Can we use the constructor, instead of init(), to initialize servlet?
But remember to due a supper().The compiler will implicitly add a call to super() for you. Personally, I think it's clutter to add one when it's not necessary.
Or use the init method. Actually it�s like a constructor. Not really. At least, no more so than any other method. It simply gets called by the servlet container as part of the servlet lifecycle, by specification.
~ -
Hello,
I am new to Java Servlet programming and I need some help with calling a servlet via a HTML link.
I have a class which generates a html page:
package HccMembers;
public class HccMemberServlet
public StringBuffer buffer;
public HccMemberServlet(String sHccId, String sHcId)
buffer = new StringBuffer(4096);
this.buffer.append("<HTML>\n ");
this.buffer.append("<HEAD>\n ");
this.buffer.append("<TITLE>Members</TITLE>\n");
this.buffer.append("</HEAD> \n");
this.buffer.append("<BODY> \n");
this.buffer.append("<p><ahref='http://localhost:8080/transport/HccMembers/servlet/JCSJobOrderServlet'>New Job Order</a></p>");
this.buffer.append("</BODY></HTML>");
Basically, when the user clicks the link a servlet should be invoked. (Below)
package HccMembers;
//import java Servlet classes
import javax.servlet.*;
import javax.servlet.http.*;
//import java classes
import java.io.IOException;
import java.io.*;
import java.util.*;
import java.sql.*;
public class JCSJobOrderServlet extends HttpServlet
public void init(ServletConfig config) throws ServletException
System.out.println("hello");
public void service(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
System.out.println("Hey");
The problem is that, when I click the link I get a 404 page not found error. Any ideas?
I really appreciate any help.You need to add couples of lines to the configuration file of your application (web.xml) : first you must say that the class CSJobOrderServlet is a servlet that you want to use, second you must map the servlet to a specific url, then you can use this url whenever you like.
As an advice, don't use absolute URLs on your application, use only URLs relative to your application root.
Example for web.xml:
<servlet>
<servlet-name> MyFirstServlet</servlet-name>
<servlet-class>JCSJobOrderServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyFirstServlet</servlet-name>
<url-pattern>/custom_url</url-pattern>
</servlet-mapping>Now, about the servlet implementation: if you are using System.out.println("Hey") you will see the message on the standard output of the server, and not on the browser as you expected.
here is a small example:
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
response.setContentType("text/html");
PrintWriter writer = response.getWriter();
writer.println("<html>");
writer.println("<head><title>Hello response</title></head>");
writer.println("<body>Hello !</body></html>");
}For more information see the documentation for servlets and / or a book.
Iulian -
Non-standard HTTP methods in Servlet 2.4
Hi,
I have application Servlet 2.3 compatible and I want to migrate it to the Servlet 2.4 specification, but I faced a problem with non-standard HTTP-methods that my application uses (WebDAV HTTP methods).
In the web-app_2_4.xsd there are only seven valid HTTP methods and my xml editor cannot validate web.xml because of the non-standard HTTP methods.
Can someone help me to solve this issue?
Regards,
@n@stell_Hi,
if you have an empty <http-method> element then all methods are constrained. Does this help?
Matthew -
Servlet Filters with WLS 7 webservice?
I'm currently in the process of porting our application from WLS 6.1 to WLS 7.
On our current webservice, we use a servlet filter that grabs the SOAP message
(request body), and some misc. request headers and stores it in a database. The
purpose of this is to have the raw request saved in case we need to rerun the
message (recoverability). This filter is also used for a non-SOAP servlet that
uses URL variables instead.
I'm a bit confused with Web Services in 7. There isn't a web.xml, so I'm not
sure what servlet the filter should map to, or if it's even possible. I have looked
into Handlers, but this is more than I need and would also be specific to SOAP
messages.
Any help that can be provided would be greatly appreciated!
- jzThanks!
The reason for wanting to know the servlet is that I was thinking of mapping the
service itself to a different url (instead of using the same one for the wsdl
and webservice home page). This is because I only want to use the the filters
on the actually webservice. I'm assuming you can modify the service url that
is reflected in the WSDL through the web-services.xml descriptor. If not, I am
going to have to build in additional logic in the descriptor, which isn't an ideal
solution.
Your help is enough to get me going towards the end goal. If you know of a better
way to go about the above scenario, please let me know.
Thanks...
- jz
"manoj cheenath" <[email protected]> wrote:
>
>
You can map the filter based on the url-pattern
in which case you dont have to know about the
servlet.
will this work for you?
Any way, the name of the servlet is:
weblogic.webservice.server.servlet.WebServiceServlet.
regards,
-manoj
"Josh Zook" <[email protected]> wrote in message
news:[email protected]...
Thanks for the reply... I understand how filters work and how to implement
them.
My point of confusion is how to determine which servlet is being executed
so
I can map the filter against it. I checked out the we-services.xml,
but this
doesn't provide me enough information to determine the servlet mapping.
Once
I know this information, I think I will be able to implement the filter.
Is there someplace where I can determine which servlet is being executed?
Thanks...
"manoj cheenath" <[email protected]> wrote:
In 7.0 the mapping between URL and the Web
service servlet is done internally (based
on the info provided in web-services.xml
DD file).
There is still a web.xml file in side a
web-service war file. You should be able
to define a filter inside this web.xml
file.
check out the details about filter at:
http://e-docs.bea.com/wls/docs70/webapp/filters.html#165478
To create a filter mapping using a URL pattern, specify the nameof
the filter
and a URL pattern. URL pattern matching is performed according tothe
rules
specified in the Servlet 2.3 Specification from Sun Microsystems,in
section
11.1. For example, the following filter-mapping maps myFilter to requests
that
contain /myPattern/.
a.. <filter-mapping> <filter-name>myFilter</filter-name>
<url-pattern>/myPattern/*</url-pattern></filter-mapping>
regards,
-manoj
"Josh Zook" <[email protected]> wrote in message
news:[email protected]...
I'm currently in the process of porting our application from WLS6.1
to WLS 7.
On our current webservice, we use a servlet filter that grabs the
SOAP
message
(request body), and some misc. request headers and stores it ina database.
The
purpose of this is to have the raw request saved in case we needto
rerun the
message (recoverability). This filter is also used for a non-SOAP
servlet
that
uses URL variables instead.
I'm a bit confused with Web Services in 7. There isn't a web.xml,
so I'm not
sure what servlet the filter should map to, or if it's even possible.
I have
looked
into Handlers, but this is more than I need and would also be specific
to SOAP
messages.
Any help that can be provided would be greatly appreciated!
- jz
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DCourier size=3D2>In 7.0 the mapping between URLand
=
the=20
Web</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>service servlet is done internally=20
(based</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>on the info provided in=20
web-services.xml</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>DD file). </FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2>There is still a web.xml file inside
=
a=20
</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>web-service war file. You shouldbe=20
able</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>to define a filter inside this=20
web.xml</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>file.</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2>check out the details about filter=20
at:</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2><A=20
href=3D"http://e-docs.bea.com/wls/docs70/webapp/filters.html#165478">http=
://e-docs.bea.com/wls/docs70/webapp/filters.html#165478</A></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><A name=3D173065> To create a filter mapping using a URL =
pattern,=20
specify the name of the filter and a URL pattern. URL pattern matching
=
is=20
performed according to the rules specified in the <A=20
href=3D"http://java.sun.com/aboutJava/communityprocess/first/jsr053/index=
..html">Servlet=20
2.3 Specification from Sun Microsystems</A>, in section 11.1. For=
example, the=20
following <FONT class=3Dcode>filter-mapping</FONT> maps <FONT=20
class=3Dcode>myFilter</FONT> to requests that contain <FONT=20
class=3Dcode>/myPattern/</FONT>.</A> <A name=3D173076>
<LI type=3Ddisc>
<BLOCKQUOTE><PRE><FONT face=3DCourier =
color=3D#000000><filter-mapping><BR> <filter-name>=
myFilter</filter-name><BR> <url-pattern>/myPattern=
/*</url-pattern><BR></filter-mapping></FONT></PRE></BLOCKQUOT=
E></A>
<P>-- <BR><BR>regards,<BR>-manoj</P></LI></DIV>
<DIV> </DIV>
<DIV><BR> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px;=
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Josh Zook" <<A=20
href=3D"mailto:[email protected]">[email protected]</A>> wrote
=
in message=20
<A=20
=
href=3D"news:[email protected]">news:[email protected]=
a.com</A>...</DIV><BR>I'm=20
currently in the process of porting our application from WLS 6.1to
=
WLS=20
7.<BR> On our current webservice, we use a servlet filter that
=
grabs the=20
SOAP message<BR>(request body), and some misc. request headers and
=
stores it=20
in a database. The<BR>purpose of this is to have the raw request
=
saved=20
in case we need to rerun the<BR>message (recoverability). This
=
filter is=20
also used for a non-SOAP servlet that<BR>uses URL variables=20
instead.<BR><BR>I'm a bit confused with Web Services in 7. There
=
isn't a=20
web.xml, so I'm not<BR>sure what servlet the filter should map to,
or =
if it's=20
even possible. I have looked<BR>into Handlers, but this is morethan
I =
need=20
and would also be specific to SOAP<BR>messages.<BR><BR>Any helpthat
=
can be=20
provided would be greatly appreciated!<BR><BR>- =
jz</BLOCKQUOTE></BODY></HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DCourier size=3D2>You can map the filter based on the=20
url-pattern</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>in which case you dont have to know
=
about=20
the </FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>servlet.</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2>will this work for you?</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2>Any way, the name of the servlet =
is:</FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2>weblogic.webservice.server.servlet.WebServiceServlet.</FONT></DI=
V>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV>-- <BR><BR>regards,<BR>-manoj</DIV>
<DIV> </DIV>
<DIV><BR> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Josh Zook" <<A=20
href=3D"mailto:[email protected]">[email protected]</A>> wrote
=
in message=20
<A=20
=
href=3D"news:[email protected]">news:[email protected]=
m</A>...</DIV><BR>Thanks=20
for the reply... I understand how filters work and how to implement=20
them.<BR> My point of confusion is how to determine which servlet
=
is=20
being executed so<BR>I can map the filter against it. I checked
=
out the=20
we-services.xml, but this<BR>doesn't provide me enough information
to=20
determine the servlet mapping. Once<BR>I know this information,
=
I think=20
I will be able to implement the filter.<BR><BR>Is there someplace =
where I can=20
determine which servlet is being =
executed?<BR><BR>Thanks...<BR><BR>"manoj=20
cheenath" <[email protected]>
=
wrote:<BR>><BR>><BR>>In 7.0 the mapping between URL and the=20
Web<BR>>service servlet is done internally (based<BR>>on the
=
info=20
provided in web-services.xml<BR>>DD file).<BR>><BR>>There
is =
still a=20
web.xml file in side a<BR>>web-service war file. You should be=20
able<BR>>to define a filter inside this=20
web.xml<BR>>file.<BR>><BR>>check out the details about filter
=
=
at:<BR>><BR>>http://e-docs.bea.com/wls/docs70/webapp/filters.html#1=
65478<BR>><BR>><BR>>=20
To create a filter mapping using a URL pattern, specify the name =
of<BR>>the=20
filter<BR>>and a URL pattern. URL pattern matching is performed
=
according=20
to the<BR>>rules<BR>>specified in the Servlet 2.3 Specification
=
from Sun=20
Microsystems, in<BR>>section<BR>>11.1. For example, the =
following=20
filter-mapping maps myFilter to requests<BR>>that<BR>>contain=20
/myPattern/.<BR>>a.. <filter-mapping> =20
=
<filter-name>myFilter</filter-name><BR>><url-pattern>=
;/myPattern/*</url-pattern></filter-mapping><BR>>--<BR>>=
;<BR>>regards,<BR>>-manoj<BR>><BR>><BR>><BR>><BR>>&n=
bsp;=20
"Josh Zook" <<A=20
href=3D"mailto:[email protected]">[email protected]</A>> wrote
=
in=20
=
message<BR>>news:[email protected]...<BR>><BR>> =
; I'm=20
currently in the process of porting our application from WLS =
6.1<BR>>to WLS=20
7.<BR>> On our current webservice, we use a servlet
=
filter that=20
grabs the<BR>>SOAP<BR>>message<BR>> (request body),
and =
some=20
misc. request headers and stores it in a =
database.<BR>>The<BR>> =20
purpose of this is to have the raw request saved in case we need=20
to<BR>>rerun the<BR>> message (recoverability). This
=
filter=20
is also used for a non-SOAP<BR>>servlet<BR>>that<BR>>
=
uses URL=20
variables instead.<BR>><BR>> I'm a bit confused with Web
=
Services=20
in 7. There isn't a web.xml,<BR>>so I'm not<BR>>
=
sure what=20
servlet the filter should map to, or if it's even possible.<BR>>I=20
have<BR>>looked<BR>> into Handlers, but this is more than
=
I need=20
and would also be specific<BR>>to SOAP<BR>> =20
messages.<BR>><BR>> Any help that can be provided would
be =
greatly=20
appreciated!<BR>><BR>> - =
jz<BR>><BR>><BR>><!DOCTYPE=20
HTML PUBLIC "-//W3C//DTD HTML 4.0=20
Transitional//EN"><BR>><HTML><HEAD><BR>><META=20
http-equiv=3D3DContent-Type content=3D3D"text/html;=20
=3D<BR>>charset=3D3Diso-8859-1"><BR>><META =
content=3D3D"MSHTML=20
6.00.2713.1100"=20
=
name=3D3DGENERATOR><BR>><STYLE></STYLE><BR>></HEA=
D><BR>><BODY=20
bgColor=3D3D#ffffff><BR>><DIV><FONT face=3D3DCourier
=
size=3D3D2>In=20
7.0 the mapping between URL=20
=
and<BR>>=3D<BR>>the=3D20<BR>>Web</FONT></DIV><BR>>=
;<DIV><FONT=20
face=3D3DCourier size=3D3D2>service servlet is done=20
=
internally=3D20<BR>>(based</FONT></DIV><BR>><DIV>=
<FONT=20
face=3D3DCourier size=3D3D2>on the info provided=20
=
in=3D20<BR>>web-services.xml</FONT></DIV><BR>><DIV&g=
t;<FONT=20
face=3D3DCourier size=3D3D2>DD file).=20
</FONT></DIV><BR>><DIV><FONT face=3D3DCourier=20
size=3D3D2></FONT> </DIV><BR>><DIV><FONT=20
face=3D3DCourier size=3D3D2>There is still a web.xml file in=20
=
side<BR>>=3D<BR>>a=3D20<BR>></FONT></DIV><BR>><=
;DIV><FONT=20
face=3D3DCourier size=3D3D2>web-service war file. You should=20
=
be=3D20<BR>>able</FONT></DIV><BR>><DIV><FONT=20
face=3D3DCourier size=3D3D2>to define a filter inside=20
=
this=3D20<BR>>web.xml</FONT></DIV><BR>><DIV><F=
ONT=20
face=3D3DCourier=20
=
size=3D3D2>file.</FONT></DIV><BR>><DIV><FONT=20
face=3D3DCourier size=3D3D2></FONT>=20
</DIV><BR>><DIV><FONT face=3D3DCourier =
size=3D3D2>check out=20
the details about=20
=
filter=3D20<BR>>at:</FONT></DIV><BR>><DIV><FON=
T=20
face=3D3DCourier size=3D3D2></FONT>=20
</DIV><BR>><DIV><FONT face=3D3DCourier=20
size=3D3D2><A=3D20<BR>>href=3D3D"<A=20
=
href=3D'http://e-docs.bea.com/wls/docs70/webapp/filters.html#165478">http=
'>http://e-docs.bea.com/wls/docs70/webapp/filters.html#165478">http</A=
=3D<BR>>://e-docs.bea.com/wls/docs70/webapp/filters.html#165478</A=
</FONT></DIV><BR>><DIV><FONT=20face=3D3DCourier size=3D3D2></FONT>=20
</DIV><BR>><DIV><FONT face=3D3DCourier=20
size=3D3D2></FONT> </DIV><BR>><DIV><A=20
name=3D3D173065> To create a filter mapping using a URL=20
=3D<BR>>pattern,=3D20<BR>>specify the name of the filter and
a =
URL pattern.=20
URL pattern matching<BR>>=3D<BR>>is=3D20<BR>>performed =
according to the=20
rules specified in the <A=3D20<BR>>href=3D3D"<A=20
=
href=3D"http://java.sun.com/aboutJava/communityprocess/first/jsr053/index=
">http://java.sun.com/aboutJava/communityprocess/first/jsr053/index</A>=3D=
<BR>>..html">Servlet=3D20<BR>>2.3=20
Specification from Sun Microsystems</A>, in section 11.1. For=20
=3D<BR>>example, the=3D20<BR>>following <FONT=20
class=3D3Dcode>filter-mapping</FONT> maps=20
<FONT=3D20<BR>>class=3D3Dcode>myFilter</FONT> to =
requests that=20
contain =
<FONT=3D20<BR>>class=3D3Dcode>/myPattern/</FONT>.</A>=
;=20
<A name=3D3D173076><BR>><LI=20
type=3D3Ddisc><BR>><BLOCKQUOTE><PRE><FONT =
face=3D3DCourier=20
=3D<BR>>color=3D3D#000000><filter-mapping><BR>=20
<filter-name>=3D<BR>>myFilter</filter-name><BR>=20
=
<url-pattern>/myPattern=3D<BR>>/*</url-pattern><BR>&=
lt;/filter-mapping></FONT></PRE></BLOCKQUOT=3D<BR>>E=
</A><BR>><P>--=20=
<BR><BR>regards,<BR>-manoj</P></LI></DIV=
<BR>><DIV>=20</DIV><BR>><DIV><BR>=20
=
</DIV><BR>><BLOCKQUOTE=3D20<BR>>style=3D3D"PADDING-RIGHT:
=
0px;=20
PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =3D<BR>>BORDER-LEFT: #000000
=
2px solid;=20
MARGIN-RIGHT: 0px"><BR>> <DIV>"Josh Zook"=20
<<A=3D20<BR>> href=3D3D"<A=20
=
href=3D'mailto:[email protected]">[email protected]</A'>mailto:norepl=
[email protected]">[email protected]</A</A>>>=20
wrote<BR>>=3D<BR>>in message=3D20<BR>> =
<A=3D20<BR>> =20
=3D<BR>>href=3D3D"<A=20
=
href=3D'news:[email protected]">news:[email protected]=
'>news:[email protected]">news:[email protected]</A=
=3D<BR>>a.com</A>...</DIV><BR>I'm=3D20<BR>> =;=20
currently in the process of porting our application from WLS 6.1=20
to<BR>>=3D<BR>>WLS=3D20<BR>> 7.<BR> On our =
current=20
webservice, we use a servlet filter that<BR>>=3D<BR>>grabs=20
the=3D20<BR>> SOAP message<BR>(request body), and some
=
misc.=20
request headers and<BR>>=3D<BR>>stores it=3D20<BR>>
in =
a database.=20
The<BR>purpose of this is to have the raw=20
request<BR>>=3D<BR>>saved=3D20<BR>> in case we need
to =
rerun=20
the<BR>message (recoverability). This<BR>>=3D<BR>>filter=20
is=3D20<BR>> also used for a non-SOAP servlet =
that<BR>uses URL=20
variables=3D20<BR>> instead.<BR><BR>I'm a bit
=
confused with=20
Web Services in 7. There<BR>>=3D<BR>>isn't a=3D20<BR>>
=
web.xml, so=20
I'm not<BR>sure what servlet the filter should map to,<BR>>or
=
=3D<BR>>if it's=3D20<BR>> even possible. I have =
looked<BR>into=20
Handlers, but this is more than<BR>>I =
=3D<BR>>need=3D20<BR>> and=20
would also be specific to =
SOAP<BR>messages.<BR><BR>Any help=20
that<BR>>=3D<BR>>can be=3D20<BR>> provided would be
=
greatly=20
appreciated!<BR><BR>-=20
=
=3D<BR>>jz</BLOCKQUOTE></BODY></HTML><BR>><BR>>=
;<BR></BLOCKQUOTE></BODY></HTML> -
Hello everyone,
I'm hoping you can point me in the right direction. I'm looking for
articles or books that cover the pros and cons of implementing solutions
using EJBs and/or servlets. More specifically, when and where it makes the
most sense to use EJBs or servlets or both, and how the two compare. Also,
how well regarded are EJBs in the marketplace (seems to be a love/hate
relationship).
I've read some of Jason Hunter and Richard Monson-Haefel's older material
but I'm hoping you might know of (or have) something more recent.
Thanks in advance!
JoeOf course the best article is the one that Xiang suggested, J2EE blueprints.
If you want something quickly to read, I enjoyed this one very much:
"How to Build a Really Big Distributed J2EE System Using Tools You Have Around
the Office"
http://www.javasuccess.com/design_wp.html
And of course this one:
"J2EE Design Considerations for Weblogic Server"
http://www.bea.com/products/weblogic/server/papers.shtml
Regards,
David
"Joe Martins" <[email protected]> wrote:
>Hello everyone,
>
>I'm hoping you can point me in the right direction. I'm looking for
>articles or books that cover the pros and cons of implementing solutions
>using EJBs and/or servlets. More specifically, when and where it makes
>the
>most sense to use EJBs or servlets or both, and how the two compare.
> Also,
>how well regarded are EJBs in the marketplace (seems to be a love/hate
>relationship).
>
>I've read some of Jason Hunter and Richard Monson-Haefel's older material
>but I'm hoping you might know of (or have) something more recent.
>
>Thanks in advance!
>
>Joe
>
>
Maybe you are looking for
-
AddressBook - Is there a way to change multiple addresses at the same time?
To be clear....I have 25 contacts at 1 company and that company moved. Is there a way to link the cards together so that when I change the address on one card it automatically updates the other 24 cards?? Rather than having to change each contact ind
-
Went to Apple store and the "genius" was no help - Spent $70.00 for 2 cords - 1 that is the thunderbolt connection and the 2nd was for a belkin cord that was suppose to convert and make my old firewire cord compatible - when I went to hook everything
-
Installed Apps not showing in list - Windows 8, No...
I have a new Nokia 620 running Windows 8. I have installed a number of apps and only around half of them show in the app list. I know that they have properly installed because the show up in the memory as installed apps and when I have tried to reins
-
Can't open Library and Inspector tab
Hi, I can't open the Library and Inspector tab and can't activate the Add Behavior and Add Filter function. Can anyone help me to fix that? Thanks.
-
MIRO error F5507 for GL Account not found
When executing MIRO I am getting error " G/L account XXXXXX not defined in COA XXXX' (message # F5507) in ECC 6.0. We are migrating from 4.6B to ECC 6.0 and this account does not exist in 4.6B too for COA, but it works fine in 4.6B. The concerned acc