URL 1 « Web « Spring Q&A





1. Relative paths in spring classpath resource    stackoverflow.com

I have a bunch of spring config files, all of which live under the META-INF directory in various subpackages. I have been using import like the following...

  <import resource="../database/schema.xml"/>
So ...

2. Disable Spring URL resource loading in context file    stackoverflow.com

I have the need to specify a URL in a Spring context file but don't want Spring to turn it into a resource, i.e. I want the URL to be passed ...

3. Schema URL error - Spring 3.0    stackoverflow.com

am trying out the petcare spring sample program but i get the following error in servlet-context

- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/petcare/spring-petcare-3.0.xsd', because 1) could not 
 find the document; ...

4. Spring: Inject URL for classpath resource    stackoverflow.com

I want to inject the URL of a classpath resource in a way that does not create a dependency on Spring in the Bean. Meaning, the bean should not use Spring's ...

5. https url in Spring ClassPathXmlApplicationContext    stackoverflow.com

I, i used a Spring SingletonBeanFactoryLocator and the xml file passed to .getInstance() method contains this contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-lazy-init="true"> 
<bean id="it.rules.bean.commands" 
     ...

6. How to differentiate domains using Spring RequestMapping    stackoverflow.com

I'm trying to use different methodes depending on from which domain the request is send. e.g.

@RequestMapping(value = "/index.html", domain = "google.de", method = RequestMethod.GET)
public ModelAndView handleDeRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
}

@RequestMapping(value ...

7. Spring 3 how to handle multilanguage URL with same content    stackoverflow.com

I want to fully internationalize my web page and have URLs translated to different languages. For example

all aforementioned pages should be handled by same controller and show ...

8. Spring url not resolving correctly first time jsp page is loaded, works correctly after first hit    stackoverflow.com

Source code:

<c:url var="images" value="/images/" />
<link rel="icon" type="image/png" href="${images}myImage.png">
In firebug, first hit (the sessionid changes each time)
 <link href="/images/;jsessionid=05083AEAAE29DE81A5CB390407041282myImage.png" type="image/png" rel="icon">
Second hit (without clearing cache, if I clear cache it goes back ...

9. change spring root url name    stackoverflow.com

I have a little problem with a web application. I'm using this tutorial with a glassfish 3.1 server, and having problems with the start url It start with:

http://localhost:9090/com.mkyong.common_SpringMVC_war_1.0-SNAPSHOT/login
when its supposed(I want ...





10. Lout Url interception not happening.    forum.springsource.org

Lout Url interception not happening. Hi I wrote a servlet(filter) which should intercept logout url and audit the messag in database. but spring is ignoring logout but intercepting all other urls. ...

11. Preserving URL anchor when redirecting    forum.springsource.org

Preserving URL anchor when redirecting I have developed a solution I'd like to share to the problem that in some cases the anchor/fragment part of a URL ("#anchor") is lost when ...

12. HttpInvoker Dynamic URL    forum.springsource.org

HttpInvoker Dynamic URL Hi , Below is the configuration on the client side for httpinvoker, I want to set the service Url based on the application which user logged in. Whats ...

13. intercept-url    forum.springsource.org

intercept-url Hello I am trying to pass user roles as a variable from a properties file to the access attribute of intercept-url sort of like: And I ...

14. URL encoding issue    forum.springsource.org

Hi All, I am usong Spring 1.2 version and whenever i use redirectView object for redirecting the request object is displayed in URL. Please help.

15. @RequestMapping on root "/" URL bug?    forum.springsource.org

@RequestMapping on root "/" URL bug? Hello, I've found a very strange Spring behavior, when mapping a controller's method on the root ("/") URL in Spring 3.0. Here is what I'm ...

16. How sessionId is appended to each url ?    forum.springsource.org

I use Spring Security 2.5 Currently, after a successful login, the url address bar doesn't show sessionid Ex : http://localhost:8080/WebApp/main.html Expect : http://localhost:8080/WebApp/main.html?sessionId=...... In spring security 3.0, use disable-url-rewriting to disable ...





17. Need to URL rewrite with Spring    forum.springsource.org

Need to URL rewrite with Spring Im using a J2ee application with spring framework 2.0 on a apache tomcat 5.5. I have used URL mapping to change the extension from .jsp ...

18. Spring 3.0 case insensitive urls    forum.springsource.org

I am using Sping 3.0 and I am trying to make it so my controller will treat paths like /test/SomeVar/a the same as /Test/somevar/a. I found an older post in here ...

19. url-pattern "/"    forum.springsource.org

The DefaultAnnotationHandlerMapping automatically matches to .* so that you can do /accounts, /accounts.json, /accounts.pdf, etc. It does provide a flag to turn that behavior off. It's called useDefaultSuffixPattern.

20. URL-encoded / in PathVariable value causes problems    forum.springsource.org

URL-encoded / in PathVariable value causes problems I have defined the following request mapping: @RequestMapping(value = "/services/{serviceKey}/vos", method = RequestMethod.GET) There is a problem if the value of {serviceKey} contains a ...

21. Getting "WEB-INF" in output of     forum.springsource.org

Getting "WEB-INF" in output of ">Login And my springapp-servlet.xml and web.xml contain what's below. The problem: The above href is rendered as ...

22. Login success URL for each browser tab    forum.springsource.org

Login success URL for each browser tab Hi I am using Spring Security for access control and I have two pages in my application page1.html and page2.html. All the html pages ...

23. selective request interceptor by URL    forum.springsource.org

I'd like to write an interceptor that checks if the user is logged in, but only apply it (declaratively if possible) to certain URLs. e.g. if the user enters /login.action the ...

24. Intercept-url who intercept?    forum.springsource.org

Intercept-url who intercept? Hello, I'm using spring security 3.0.5 and have to check 2 cookies for this /** url ... Whatever url there is on the browser, the application must retrieve ...

25. original url    forum.springsource.org

Hello, I spent 1hr googling and still didn't find a answer to this. Basically I am trying to retrieve the original url. For example, the original url is http://testxxx.com/en/yp/list, but when ...

26. get the requested URL    forum.springsource.org

Hi, I want to make an authentication based on login, pwd and the domain name. I created a custom authentication provider that works well. The problem I face now is that ...

27. Save original request URLs to the RequestCache for invalidSessionUrl redirects?    forum.springsource.org

Save original request URLs to the RequestCache for invalidSessionUrl redirects? Greetings, I have a need to show a custom timeout page only in certain circumstances. Otherwise a timeout should result in ...

28. Best way to expose constant URLs to the View Layer?    forum.springsource.org

Best way to expose constant URLs to the View Layer? I've searched the forums for this and I see that the question has been asked, but I can't seem to find ...

29. How to poll a url? http outbound nor feed inbound seem to fit? :(    forum.springsource.org

Hi all, I'm having a hard time figuring out how we should poll a url. (I'm creating some kind of webserver-polling print client) This seems like something inbound, but the only ...

30. Can I use URL without extension?    forum.springsource.org

Can I use URL without extension? Hey guys, I have a little issue in my job. I'm working on a web application using spring3 and apache tiles. Anyway, everything was fine ...

31. (Very) minor bug in 1.1.4 - Wrong create_url in table.tagx (Jira 2420)    forum.springsource.org

Hi As mentioned the table.tagx file contains the incorrect path for the create_url as far as I can see. Looking forward to the release, keep up the good work. Chris Mein ...

32. URL Hiding    forum.springsource.org

33. how can i dynamically render the view based on url parameter with freemarkder    forum.springsource.org

Hi Guys, I need your idea on how can i implement a method to return a view name based on url parameter with spring mvc and freemarker. For example the ff ...

34. Problems with Extensions URL    forum.springsource.org

I don't know if anyone is experiencing this, but I am having problems with the "Extensions" in the Dashboard on the SpringSource Tool Suite. The problem seems to originate from the ...

35. RequestMapping - Problem with variables in URL    forum.springsource.org

Hello, Im using Spring 3.0.5 and Ive got one problem with Spring MVC. I use @Annotations and everything works fine, but: Ive got two methods which use @RequestMapping, which interfere. Here ...

36. ISO.DATE_TIME as URL param - problems with the +    forum.springsource.org

ISO.DATE_TIME as URL param - problems with the + I want to use a datetime as parameter e.g. 2011-05-24T00:00:00.000+02:00 e.g. .....?start=2011-05-24T00:00:00.000+02:00&end2011-05-25T00:00:00.000+02:00 Using curl I need to escape the "+" using %2B ...

37. URL [bundleresource://62/] cannot be resolved to absolute file path because it ....    forum.springsource.org

Jun 15th, 2011, 10:47 AM #1 anupradhan View Profile View Forum Posts Private Message Junior Member Join Date Jun 2011 Posts 2 URL [bundleresource://62/] cannot be resolved to absolute file path ...

38. c:url errors    forum.springsource.org

39. ASPXs URLs    forum.springsource.org

ASPXs URLs Hi! It's been a while since I used Spring.NET for the last time. I remember developing a web application a couple of years ago where I had all my ...

40. Use request param while defining url-pattern    forum.springsource.org

Hi, I'm attempting to enforce authorization rule based on url-patter using spring security 3.0 There are two roles a user can assume ADMIN and ADMIN_EXT. A part of the application shows ...

41. Render different layout by url parameter    forum.springsource.org

Render different layout by url parameter I have a roo project with a lot of complex forms. Into this forms their are select-fields with depending objects (ManytoOne-Relations). For better usage I ...

42. how to get redirected to a method at login/logout before target-url called?    forum.springsource.org

how to get redirected to a method at login/logout before target-url called? I am trying to do the following after successful login and before target-url in my mvc controller is called ...

43. preserving url parameters through login    forum.springsource.org

Hello I have implemented security to an app such that the app can use both CAS and a spring security login form. The current behaviour set through config is to always ...

44. redirected request url    forum.springsource.org

Hi, in our setting we redirect with mode_rewrite behind our appache all requests to the tomcat. Is there a possibility to get the rewritten url from the tomcat within our spring ...

45. Specifying which urls to apply Spring OAuth 2 provider to    forum.springsource.org

Specifying which urls to apply Spring OAuth 2 provider to Hi, I have implemented a basic oauth2 provider configuration, which works, but also interferes with other parts of the web application ...

46. How to change the base-url of all scaffolded views?    forum.springsource.org

I want to use the scaffolded views as my admin interface and therefore point all of them to /admin/ instead of / . How can I do this?

47. Usage of expressions in http namespace element 'url'    forum.springsource.org

Aug 16th, 2011, 02:38 PM #1 srikondoji View Profile View Forum Posts Private Message Senior Member Join Date Jan 2010 Posts 119 Usage of expressions in http namespace element 'url' I ...

48. RedirectView, url, expose    forum.springsource.org

RedirectView, url, expose I just need someone to strengthen my belief I use a SimpleFormController subclass and I'm using it's doSubmitAction method, and after a successful submit I use a RedirectView ...

49. Proper way to redirect to a URL with an id in the path?    forum.springsource.org

I remember reading something about not putting Id's in the path of a redirect String in Spring like the following: Code: return "redirect:/person/123789"; The problem was something about Spring caching each ...

50. url required ...!!    forum.springsource.org

Hi, I am looking for adding a spring batch job functionality in my spring integration application, can you guys please provide me the url's wher i can see samples of integrating ...

51. Style not working on url parameter page    forum.springsource.org

Style not working on url parameter page I have spring MVC app (version 3.1.M2) app working fine so far. However when I tried to access a page with a variable in ...

52. Autorization with Dinamic URL    forum.springsource.org

I am implementing a class in my application, however, does not work. What should I do in context.xml? What should I do with the tag ? And ? Where to put ...

53. Interceptor multiple url pattern    forum.springsource.org

Hi all, I have one request Interceptor. All I need to filter request coming from "/secure/" To achieve this I am using following mapping for the interceptor: Code: ...

54. url without extension    forum.springsource.org

url without extension Hi All, I am working on a project that involves Freemarker and Spring MVC and in the presentation layer all the pages have a ".ftl" extention. Now a ...

55. How do I exclude URLs?    forum.springsource.org

How do I exclude URLs? I'm using good ol' container-managed authentication and migrating to Acegi. I'm protecting *.html in my web.xml and I allow some URLs to pass through using a ...

56. URL parameters    forum.springsource.org

URL parameters I ran into an issue that I believe is more specific to rich clients (though I could be wrong). We had several beans defined in our spring config on ...

57. hide url    forum.springsource.org

Is there a way to hide the url in the address bar with Acegi security system. I 'm using get as form method(because I want my clients to use back button ...

58. Interceptor to redirect to another url?    forum.springsource.org

Interceptor to redirect to another url? In our group we have a web application that uses spring+acegi. The acegi part of it was developed by someone that has left the company. ...

59. puzlle : can't change the default login url?    forum.springsource.org

puzlle : can't change the default login url? puzlle : can't change the default login url? acegi 8.0 I can't open any page under protect after I changed the login url ...

60. login page with url parameter    forum.springsource.org

login page with url parameter I'm now developing a web app which serve several groups. I use the same login form but every group need different logo image. and two groups ...

61. Cannot be resolved to URL because it does not exist    forum.springsource.org

Cannot be resolved to URL because it does not exist Hi, Take a look at this file: Code: ...

62. Capturing URL Parameters    forum.springsource.org

This is more a general HTTP response question than something directly related to the Spring Framework. I'm trying to capture url prameters: http://server/formProject.htm?id=3 But all I've been able to get is: ...

63. how to intercept url with parameters in FilterSecurityInterc    forum.springsource.org

how to intercept url with parameters in FilterSecurityInterc I want to secure my web using url FilterInnvocation. I have configurated a simple url filter like sample given, and it works well. ...

64. Search engine friendly URLs    forum.springsource.org

Can anyone recommend the best way to handle search engine friendly URL's with Spring MVC? I'd like to have URLs that look as follows: http://www.somedomain.com/spring.pag.../param2/value2 One approach that looks like it ...

65. How to avoid hard coding URL's in JSP pages    forum.springsource.org

How to avoid hard coding URL's in JSP pages I noticed that in Spring MVC I end up doing a lot of hard-coding of URL's in my JSP pages. So if ...

66. Setting welcome page to a virtual URL    forum.springsource.org

Setting welcome page to a virtual URL Hi, Started to play around with Spring MVC, looks great. Thanks. Is it possible to set the welcome page to a virtual URL? Tried ...

67. Passing variable from an URL    forum.springsource.org

I want a variable from an URL be available in the next form as a hidden field. How do I do this? e.g http://localhost:8080/myhost/firstForm.jsp?id=1 I want the value of id to ...

68. Newbie issue understanding dynamic URLs    forum.springsource.org

Newbie issue understanding dynamic URLs Hello, I have a simple HTML form that is designed to submit to a concrete extension of MultiActionController using ParameterMethodNameResolver, with an action=myMethod syntax. What I'm ...

69. Is it possible to set Locale based on URL pattern?    forum.springsource.org

Is it possible to set Locale based on URL pattern? Hi all, I'm somewhat new to this stuff so be kind I would like to know if it is possible to ...

70. how to get client request URL    forum.springsource.org

Hi, Inside a custom tag, I'd like access the url seen by the client. request.getRequestURL() returns me the location inside the application of the JSP to which the controller has forwarded. ...

71. directory like URL, no extension?    forum.springsource.org

Hi, all Is it possible to configure my web application to use directory like URL without using file extension? I mean: http://localhost/myspring/signon, that is, pattern /signon will invoke signon.class to handle ...

72. Problem with URL resolution in action-servlet.xml    forum.springsource.org

Problem with URL resolution in action-servlet.xml Hi there, I need a hint: in my action-servlet.xml I have a SimpleUrlHandlerMapping which maps a subclass of AbstractController to /foo/* and /foo/**/*, the controller ...

73. Newbie question: linking URLs to actions    forum.springsource.org

Newbie question: linking URLs to actions Hi, I am a total spring n00b, as it were, and I have a basic problem with using Spring MVC and Velocity that I can't ...

74. URL request    forum.springsource.org

You can use a org.springframework.web.servlet.mvc.Parameterizabl eViewController which takes a single property, the view name. Example: Code: loginController

75. Browser URL    forum.springsource.org

Browser URL Hello i can't fetch the browser url. I'm using spring controllers and Tiles. instead of having http://www.myhost.it:8080/webapp/public/store/store.details.htm with those Code:

<%=request.getPathInfo()%>
<%=request.getPathTranslated()%>
<%=request.getQueryString() %>
<%=request.getRequestURI() %>
<%=request.getRequestURL() ...

76. RedirectView and URL encoding    forum.springsource.org

RedirectView and URL encoding I'm using RedirectView to redirect a user to a login page where necessary. The idea is that I pass the original URL and any query parameters as ...

77. Accessing vanilla URLs from JSP inside WEB-INF    forum.springsource.org

Accessing vanilla URLs from JSP inside WEB-INF I've got a Spring app that's running along nicely, except for one thing: in my jsp files I can't refer to another file that's ...

78. Getting the current URL in the view    forum.springsource.org

Getting the current URL in the view Hello, I've to provide a system to change the language from the current page. To this, I've just to add the parameter siteLanguage=en or ...

79. RubyOnRails-Style URL Patterns    forum.springsource.org

RubyOnRails-Style URL Patterns Anyone have a solution on how to set-up the pattern matching similar to RubyOnRails so that an object ID gets passed in through the request path? Example: (where ...

80. form action = "url" not working in spring    forum.springsource.org

form action = "url" not working in spring I have a simpe jsp with a form as follows :

...

81. How to disable URL decoding?    forum.springsource.org

82. How to Change URL?    forum.springsource.org

83. HttpInvokerProxyFactoryBean set url dynamically    forum.springsource.org

Hello, I'm using HttpInvokerProxyFactoryBean to access my http remote object. my applicationContext.xml: Is it possible to ...

84. How to clear parameters from url?    forum.springsource.org

How to clear parameters from url? Maybe its very obvious how to do it, but i'm struggling with it since 2 hours and found no answer on the forums. I am ...

85. Support for HTTP URL requests and raw XML    forum.springsource.org

Support for HTTP URL requests and raw XML Hi, We've been using Spring in our company with great success and are about to start implementing a couple of Web Services. Luckily, ...

86. PersistenceUnit and multiple root URLs    forum.springsource.org

I'm trying to createa a PersistenceUnitInfo with multiple URLs for class discovery. But I'm not seeing a clear mechanism. I might like to extend PersistenceUnitReader to accept classpath*:, and scan for ...

87. How to exclude url from Spring processing?    forum.springsource.org

I need to exclude some blabla.html from Spring processing. My mapping: *.html But I need exclude script/*.html. How can I do this? Please help? I really need this.

88. Sending Variables to next page in URLs    forum.springsource.org

Sending Variables to next page in URLs I am using: Spring Framework, Struts, and Hibernate for my web project. I am not sure if this is a servlet question, spring question, ...

89. URL and parameter    forum.springsource.org

URL and parameter Has anyone had any experience of customizing Spring MVC to allow for pretty, search-engine friendly URLS like: http://mywebsite.com/blog/2004/11/2002/post.html Of course SimpleUrlHandlerMapping can already handle resolving the path to ...

90. Find out previous page's URL    forum.springsource.org

Find out previous page's URL I am trying to make a login script that does the following: When you goto the login page, it saves the URL of the previous page ...

91. custom url    forum.springsource.org

custom url Hi! I wonder if anyone could give me a brilliant advice in how to solve the following problem with spring! Working on a site where alot of companies regierster ...

92. Logout Problem with URL    forum.springsource.org

Logout Problem with URL Hi all! i am working with one application and i need to implement logout use case... the only thing i need to do is to get out ...

93. How to pass a variable in url rewriting    forum.springsource.org

How to pass a variable in url rewriting Hi all, I just wanted to pass one variable to the url mapping in the view page like . When i ...

94. Passing variables in url    forum.springsource.org

I have a spring mvc app and what i want to do is, if there is an variable in the url when loading a jsp page (ie. http://www.site.com/db.nsf/test.jsp?arg1=4), read the variable ...

95. URL encoded parameter names (BUG?)    forum.springsource.org

My controller has a command object with a property of type Map. When the controller handles the following GET URL: http://server/webroot/controller?map%5Bkey%5D=value the data binder will try to find a property named ...

96. del.icio.us/myspace/etc style urls    forum.springsource.org

del.icio.us/myspace/etc style urls Ok, here's what I want to do. I'm trying to build an app, where the url will look like this: www.domainname.com/username. So when I go to www.domainname.com/username1, I ...

97. application URL    forum.springsource.org

How can I retrieve the full application URL from a backing bean? The following only returns only a partial path: Code: String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath(); This will return /myApp What I ...

98. How to redirect NON *.do URL Patterns?    forum.springsource.org

How to redirect NON *.do URL Patterns? Hello, As we all know, in web.xml, we do the for *.do patterns as shown below: