Linked Questions

3 votes
2 answers
2k views

Get configured url patterns in a Java Filter [duplicate]

I cannot find a way to get the url-mapping information inside a filter. For instance, web.xml: <filter> <filter-name>someFilter</filter-name> <filter-class>com.xxx....
codependent's user avatar
  • 23.9k
0 votes
0 answers
187 views

web.xml localhost servlet mapping [duplicate]

I am having a UI5 project in eclipse and trying to do servlet mapping in web.xml and want to update localhost to point to a odata url for db entries, right now UI loads fine but it gives error for ...
Justin's user avatar
  • 45
3 votes
3 answers
13k views

url pattern for html file in web.xml

we know how to set url pattern for servlet but I am unable to set url pattern for html in web.xml, can u help me to find solution, I googled but, can't able to get it, please find below for my problem....
Selva's user avatar
  • 546
3 votes
2 answers
3k views

using servlets name and servlets-url in web.xml in java eclipse

i want to know what should i put inside Servletname tag and url path in servlet-mapping in web.xml in eclipse.i tried googling it but i didnt find answer. Please suggest me in this, i am creating rest ...
allDroid's user avatar
  • 415
0 votes
2 answers
5k views

How to redirect on login page after logout

I want to when click on log out tab then redirect on login page after logout. This is not go on login page. Home.jsp <ul><li><a href="http://pushkalit.in/logout.jsp"> Logout</a&...
Deepak Singh's user avatar
1 vote
2 answers
3k views

How to hide the Url in the address Bar?

I want to hide the url when redirected to page on other server. For Eg : This is the index.jsp Page <body> <form id="inset_form" > <input type="submit" value="GO" onclick="func();"> ...
Vivek's user avatar
  • 77
1 vote
4 answers
832 views

About Welcome Page and Accessing Web Service Methods

I have a problem with configuration ( or basic understanding how things work at background). I create a JAVAEE project by checking Web application and ReSt api checkbox ( in intellij with glassfish 5....
Mert Serimer's user avatar
  • 1,235
0 votes
2 answers
2k views

Authenticate WSDL url or disable it from exposed

I need to either hide the WSDL url or only make it available for authenticated users . I.e I don't want to expose http://localhost:8080/services/Application?wsdl. Tomcat version 8.5.11, java 8, Axis ...
justMe's user avatar
  • 2,278
0 votes
1 answer
1k views

Spring Security 4.2 isn't working

I'm stuck. I don't understand why this thing doesn't work. I use Spring-Core 4.3.4.RELEASE and Spring-security 4.2.0.RELEASE I'm trying to implement basic http authentication. But it seems that I'm ...
Evgeny Mitrokhin's user avatar
2 votes
1 answer
1k views

GET request processed by wrong DispatcherServlet (spring, tiles2, thymeleaf)

I decided to move my authorization functionality to another controller, however this caused some issues for me. Mainly, my callback controller cannot forward the GET request to the appropriate ...
oxenfree's user avatar
  • 516
0 votes
1 answer
454 views

swagger2 not working with Spring REST

I have a spring application whose web.xml looks like below: <servlet> <servlet-name>app</servlet-name> <servlet-class>org.springframework.web.servlet....
zilcuanu's user avatar
  • 3,569
0 votes
1 answer
429 views

Servlet in Java using Tomcat server

Below are the warnings and error when i run my java file it contains only the basic override methods of servlet interface. I have configured tomcat in eclipse. Feb 18, 2016 12:14:25 AM org.apache....
Lalit Kushwah's user avatar
0 votes
1 answer
485 views

Why I am getting 404 error while hiding .jsp extension in web.xml file?

I configured all my JSP page in web.xml file to hide .jsp extension and I created custom URL in web.xml file corresponding to each JSP page due to SEO point of view but when I deployed this ...
Boolment Software's user avatar
0 votes
2 answers
465 views

Using html forms in servlet code not working

I'm trying to use forms in my servlet code like this; out.println("<FORM ACTION=\""+ BooksBought+"\"method = \"POST\">\n" + "<INPUT TYPE=\"SUBMIT\"\n "+ " VALUE=\...
user2162882's user avatar
0 votes
1 answer
365 views

How to use ConstraintMapping to exclude a specific path in jetty?

I have a Constraint/ConstraintMapping that enables authentication. However, I need to exclude exactly one path from it, where authentication is not needed (and only for GET requests). I created a ...
jhthewow's user avatar
  • 173

15 30 50 per page