URL 2 « Web « Spring Q&A





1. URL Parameters Redirect    forum.springsource.org

URL Parameters Redirect This is my first time configuring ACEGI. When a user attempts to login to a page that has parameters in the URL, the user is able to log ...

2. Case insensitive URLs    forum.springsource.org

Case insensitive URLs Is there any mechanism within Spring that would allow me to specify case insensitive in my URL-controller mappings? If not, does anyone have any ideas? For example, I ...

3. Cannot resolve bundle: url handler    forum.springsource.org

Cannot resolve bundle: url handler Started felix in a web application, however when I install a bundle, I get the following exception: java.net.MalformedURLException: unknown protocol: bundle at java.net.URL.(URL.java:574) at java.net.URL.(URL.java:464) at ...

4. redirecting to an external URL    forum.springsource.org

I have a display page .. the controller for this is extended from the AbstractCommandController .. From this page on click of a link i have to redirect to an external ...

5. extracting parameter from the URL while redirecting using a href    forum.springsource.org

extracting parameter from the URL while redirecting using a href Here is my issue .. I have a SimpleFormController .. And on click of a link .. link is rendred using ...

6. Authorities for certain url's    forum.springsource.org

Authorities for certain url's Hi there, For my application, I would like to find out on a certain URL which Authorities are permitted. For instance: here is snippet of my acegi.xml ...

7. Clean URLs Issue    forum.springsource.org

Clean URLs Issue Hi there, I've notice that a major clutch among Spring users is the lack of a best practice about having URLs like /user/25 /user/sales/25 /listproducts and not being ...

8. spring parameters in url after posting of a form    forum.springsource.org

spring parameters in url after posting of a form I have setup a SimpleFormController with corresponding view and a validator. After a submit (and validation), I redirect back to my form. ...

9. lookupAttributes(String url) of PathBasedFilterInvocationDefinitionMap    forum.springsource.org

lookupAttributes(String url) of PathBasedFilterInvocationDefinitionMap Hi there, It seems to me that the method lookupAttributes is logically flawed. Given the following source code of lookUpAttributes() from PathBasedFilterInvocationDefinitionMap: Code: public ConfigAttributeDefinition lookupAttributes(String url) ...





10. Replace_with_actual_url    forum.springsource.org

11. Redirect to anther url    forum.springsource.org

Let suppose i have a request that comes to the following URL : /first_url.htm I want to forward the same request to another url, with an extra parameter /another_url.htm?myParam=myValue How can ...

12. Changing URL in CommonsHttpMessageSender    forum.springsource.org

Changing URL in CommonsHttpMessageSender I am trying to use Spring Web Services on both the client and server side. I am having trouble with the client side at the moment. Our ...

13. How to shorten the URL's    forum.springsource.org

How to shorten the URL's Hello, Let's say I have a server: "test.com", a web-app named "testapp" running on Tomcat 5.5 I can't really figure out how to configure my ...

14. URL in Value - Problem with &-Character    forum.springsource.org

Hey, i am trying to pass a java.net.URL via list with value items to a bean in my applicationContext. code: Code: http://www.muh.net?&timerange_3=next the problem is the ...

15. fully qualified object name in the URL    forum.springsource.org

fully qualified object name in the URL Good morning all, hope a good weekend was had? I have a small issue at the mo, in that when I have a simpleFormComtroller, ...

16. GoogleSearch friendly url/app puzzler    forum.springsource.org

GoogleSearch friendly url/app puzzler Greetings! I have some articles stored in PostgreSql and a controller presents the article to a viewer as a jsp. The url that one clicks to see ...





17. HTTPInvoker and URL Provider    forum.springsource.org

18. HTTPInvoker and URL Provider    forum.springsource.org

HTTPInvoker and URL Provider Hi, all. I ran into an issue converting a hardcoded URL into a URL provider resource reference... wondering if I'm missing something obvious. I am trying to ...

19. URL/links management    forum.springsource.org

Hi folks, Just wanted to ask how do you cope with the links management inside your web applications. Particularly I mean managing the links within the application itself. Let's say that ...

20. Can't figure out how to do multiple intercepters for different urls    forum.springsource.org

Can't figure out how to do multiple intercepters for different urls Hi, I've been studying intercepters and handlermappings and how they interact with Spring MVC all night, and I'm stuck. I'm ...

21. expected URL given a configuration..    forum.springsource.org

Jul 29th, 2007, 11:12 PM #1 wowiesy View Profile View Forum Posts Private Message Member Join Date Apr 2007 Posts 52 expected URL given a configuration.. Given the applicationContext: Code:

22. URL's with =    forum.springsource.org

Hi friends, How to declare Url's containing "=" for example: Code: CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /protected/**=ROLE_ADMIN,ROLE_PUBLISHER /dcecontroller/loginaction?action=defaultUser=IS_AUTHENTICATED_ANONYMOUSLY /**=IS_AUTHENTICATED_ANONYMOUSLY ...

23. "redirect:url" ....???    forum.springsource.org

24. spring.url macro not resolving as expected    forum.springsource.org

25. Non-ASII characters in URL    forum.springsource.org

Hi, I configured my CharacterEncodingFilter correctly. Input Chinese characters through form posting is working fine. I am able to store and display Chinese characters successfully. To make my pagination working, I ...

26. getting the parts of a url    forum.springsource.org

It seems like this ought to be simple but I can't find anything in the spring docs that explains how to do it. Suppose I have the two urls Code: http://localhost:8080/mywebapp/part1/index.xxx ...

27. Authenticating using an URL?    forum.springsource.org

Authenticating using an URL? I need to login to a webapp without prompting for a username and password, is this possible? e.g. posting username and password using an url? (The problem ...

28. URL Rewriting    forum.springsource.org

I am using cookies to maintain the session state for my current project, but now i want to use URL rewriting without going through all the jsp pages and encode the ...

29. request.getRequestURL() does not return URL in browser navigaiton bar    forum.springsource.org

Hi all, I am running tomcat and using Struts tiles. In a jsp page I have the following line of code <%=request.getRequestURL() %> However, it does not return http://mydoamian/mycontext/mypage.jsp it returns ...

30. Getting Params from URL???    forum.springsource.org

Getting Params from URL??? I have a screen that makes a list and display some links for the user to click on. once the user clicks on the link i goto ...

31. Multiple failure URL    forum.springsource.org

Multiple failure URL My knowledge of ACEGI is quite limited, so I apologize if my question sounds stupid (and I don't have the time to dive into it either). We log ...

32. Question about URLs    forum.springsource.org

Question about URLs I am just learning Spring and I have a simple (I think) question. I have a footer include page that is used as an include from all my ...

33. Can't have *.jsp URL pattern?    forum.springsource.org

Can't have *.jsp URL pattern? I'm attempting to retrofit spring mvc onto an existing JSP based site. It's a production system and the URLs in place cannot change. The problem is, ...

34. edit url from processFormSubmission    forum.springsource.org

edit url from processFormSubmission Hi! I'm making a small forum in my webapp. It has a editPostController that extends simpleFormController. When posting, if some fields are empty spring sends the user ...

35. The url cannot be null    forum.springsource.org

The url cannot be null Hello, I am using "org.springframework.jdbc.datasource.DriverManager DataSource" and set the all the properties as follows. I still get error as "java.sql.SQLException: The url cannot be null" when ...

36. XSD not available via URL/HTTP    forum.springsource.org

XSD not available via URL/HTTP I've deployed my webservice, but I've problems exposing the XSD through the URL. This is needed for external tools/applications to resolve all the schema definitions dynamically. ...

37. URL Rewriting    forum.springsource.org

Using Spring MVC am I able to dynamically alter the URL depending on results from a search operation For example, imagine I have a search page for a large store where ...

38. [2.0M1] requires-channel of intercept-url    forum.springsource.org

How can I introduce a port mapping? Previously I used PortMapperImpl to configure this mapping. A practical example of how to introduce the mapping based on my current setup would be ...

39. Resful URL support in Spring 2.5    forum.springsource.org

Hi guys : Is there any neat way to parse the url, turn that into parameter in spring 2.5 for example: my url is like : /build/[project]/[time] I want spring call ...

40. URL rewriting for schema includes in SimpleWsdl11Definition    forum.springsource.org

URL rewriting for schema includes in SimpleWsdl11Definition I was wondering if it is possible to enable proper resolution of the xsd schema includes and imports for static wsdl definitions (i.e. for ...

41. URL encoding - is it worth it?    forum.springsource.org

URL encoding - is it worth it? Hi, My app is about finished, but I forgot about url encoding. My app is completely dependent on cookies being enabled. I am wondering ...

42. Wrong URL after forwarding to acceddDenied page    forum.springsource.org

Feb 6th, 2008, 02:39 PM #1 fabatt View Profile View Forum Posts Private Message Junior Member Join Date Apr 2007 Posts 9 Wrong URL after forwarding to acceddDenied page Hi all, ...

43. Using @RequestMapping with dynamic URLs    forum.springsource.org

Suppose I were writing a blog/forum/whatever where I would like pretty urls. IE: http://site/archive/some-title/ instead of: http://site/archive/?id=some-title, etc... I know I can use @RequestMapping("/archive/*"), but is there a simple way to ...

44. URL rewriting in Spring    forum.springsource.org

I have the same issue. I wish to rewrite my current URLs as follows: myservice.com/userProfile?name=Chris&location=USA to: myservice.com/location/USA/user/Chris It's just an example. Does anybody know how to achieve that? Regards.

45. Help with dynamic target URLs    forum.springsource.org

Help with dynamic target URLs I've been scouring the forums for a day now trying to find an answer to this question. I've seen lots that are close (and lots that ...

46. SSO, RequiresAuth, direct urls -- need help    forum.springsource.org

SSO, RequiresAuth, direct urls -- need help Hey all, I have an app with mixed authentication (Form and Siteminder). My question is with the requires authentication method and siteminder. Can acegi ...

47. Redirect to another target Url in EndpointInterceptor    forum.springsource.org

Redirect to another target Url in EndpointInterceptor Hi, in the soap header of a client's message call to my web service is given a specific different target url which I have ...

49. using NO url file extension    forum.springsource.org

requestSimulatorController

50. How to forward to a URL?    forum.springsource.org

How to forward to a URL? I want the user to type a URL , such as /theUrlUserEnters?id=123 but it forwards to /MyApplicationProcessor?id=123 However, I only want the user to see ...

51. URL Parameters not in request    forum.springsource.org

URL Parameters not in request I am new to Spring and having trouble getting my parameters from the request object from a datagrid. My href in the jsp looks like this: ...

52. SS 2.0M2 - form-login & login-processing-url    forum.springsource.org

SS 2.0M2 - form-login & login-processing-url Hi! I'm using Spring Security 2 in order to secure my application. The configuration was really easy but I'm stuck with the following error: org.springframework.beans.factory.xml.XmlBeanDefin ...

53. RedirectView and URL Encoding    forum.springsource.org

RedirectView and URL Encoding The RedirectView by default encodes the model attributes as UTF-8. This seems reasonable at first glance. But, it appears to be quite difficult to read these parameters ...

54. Ambiguous constructor argument types ( URL / File )    forum.springsource.org

Ambiguous constructor argument types ( URL / File ) Hello, I'd like to create an instance of PropertiesConfiguration (apache commons-configuration) : This fails with ...

55. URL pattern regular expression    forum.springsource.org

In spring security 2.0.0, I can not add into my applicationContext-security.xml, it is using like the following: Code:

56. redirect url problem    forum.springsource.org

redirect url problem Hi, I am trying to redirect url from controller. my url mapping is as follows:- searchController 0 ...

57. Redirecting to a "non-page" URL on login    forum.springsource.org

Redirecting to a "non-page" URL on login I have an JSF web application using Spring Security (Acegi) 1.0.5, and upon logging in with a fresh browser redirecting takes places to a ...

58. How to get the exact URL the client sends?    forum.springsource.org

How to get the exact URL the client sends? I have to support a specific URL ending with "?" and "??", i.e. 1) http://domain.com/metaData? 2) http://domain.com/metaData?? By the time, the Controller ...

59. New update site URLs    forum.springsource.org

Updatesite URL not working Just tried to fetch updates for Spring IDE. But the URL doesen't work. Following error in Eclipse : Network connection problems encountered during search. Unable to access ...

60. No URLs for fifteen posts?    forum.springsource.org

I was trying to put some references in my first post here in the Spring forums, and was blocked with the message that I couldn't use URLs in my first 15 ...

61. URL from Servlet    forum.springsource.org

URL from Servlet From a jsp, how can I access the URL used to request the page? For example, assume the user would browse to "http://localhost:8080/servletName/app/viewName" This is mapped to WEB-INF/jsp/viewNameView.jsp ...

62. Switch/Rewrite "friendly URL" to Url with Requestparameters?    forum.springsource.org

Switch/Rewrite "friendly URL" to Url with Requestparameters? Hi all. Environment: Spring 2.5, JSF 1.1 with facelets and SWF 2.0. I need a simple suggestion about mapping a friendly url to technical ...

63. custom login and logout url.    forum.springsource.org

hi is it possible for spring security to define its own custom url. Like instead of /spring_security_check it goes to /myapps/spring_security_check or /myapps/my_security_check inside the filterProcessUrl for both login and logout. ...

64. springSecurityFilterChain and url-pattern    forum.springsource.org

Hello everybody ! I searched a little but found nothing or maybe I didn't understand it, so here is my question: I'm a total newbie with spring security, and for the ...

65. viewresolver -> resolve view based on url parameter    forum.springsource.org

Hi, Is there a way to resolve a view based on a url parameter? This would be for development purposes, not used in production. Thanks, Josh

66. Displaytab GET param appended to the form action URL    forum.springsource.org

Code: protected boolean isFormSubmission(HttpServletRequest request) { return !request.getParameterMap().isEmpty(); } public ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws ServletException, Exception { SearchMovieForm searchMovieForm = (SearchMovieForm)command; List movieList = serviceFacade.searchMovies(searchMovieForm.getSearchParameters()); ...

67. Protect file/url from download    forum.springsource.org

Protect file/url from download Hi! Is there _any_ way to protect a file from being downloaded without first having the request pass a controller? Below follows a simple schematic: ie Code: ...

68. What's the correct way to construct a redirect URL with a specific transport?    forum.springsource.org

What's the correct way to construct a redirect URL with a specific transport? Hello, I have been using Spring servlet MVC for almost a month now. Certain pages of my application ...

69. Need help to display XML to a URL    forum.springsource.org

Need help to display XML to a URL I have an XML String that I want to print out to a URL. I've tired using the PrintWriter function that was used ...

70. Request Method based url protection?    forum.springsource.org

Is there any facility in spring security to protect url's based on the request method? e.g., allow users with roles xyz to access a url using POST, but all users to ...

71. URL parameters on protected pages get doubled    forum.springsource.org

URL parameters on protected pages get doubled My "edit" page is a protected (secure) page which requires a login. So when I go to the following development URL: http://localhost:8080/edit?event=77 I'll be ...

72. login page url always takes me to the last visited page in the protal    forum.springsource.org

login page url always takes me to the last visited page in the protal I'm facing a strange problem. I've a login portlet as the default home page of the below ...

73. how to make a file in file system available to the view via url    forum.springsource.org

how to make a file in file system available to the view via url Hi, I have images and pdf files uploaded by users in a folder named uploads. path to ...

74. ClassPathResource and the 'classpath:' URL    forum.springsource.org

ClassPathResource and the 'classpath:' URL As I understand it, org.springframework.core.io.Resource can find a resource in the classpath using a url-like string "classpath:some/resource". What if I want Resource to load the resource ...

75. Change locale with interceptor - Params in URL    forum.springsource.org

Hi all! I'm currently using the locale interceptor in my web application to manage the session's locale, but I have one problem when exist parameters in the url. The way i'm ...

76. How to reset saved target url?    forum.springsource.org

solved. it's saved with under this key: AbstractProcessingFilter.SPRING_SECURITY_SAVED_REQ UEST_KEY in the session. just for the case anyone needs this...

77. Can views be used in a JSP instead of a URL?    forum.springsource.org

Can views be used in a JSP instead of a URL? Hi, My Controllers pass back names of views to my DispatchServlet and these are resolved to JSPs using the ViewResolver ...

78. url not resolved    forum.springsource.org

url not resolved hi, i have a very odd problem; my app url http://localhost:8080/app/login.htm is not resolved; the controller is not called, also the only filter invoked is OpenSessionInViewFilter which opens ...

79. Getting at complete url of current page?    forum.springsource.org

Hi, though not necessarily a Spring question (I think), how can I get at the complete url of the current page in my jsp? request.getRequestURI() returns the translated name of my ...

80. Redirect on Successful login not working for URLs with anchors/fragments    forum.springsource.org

Redirect on Successful login not working for URLs with anchors/fragments Hi I'm relatively new to spring security so bare with me... We have a gwt application, this means that all the ...

81. [Q] intercept-url Configuration    forum.springsource.org

Maybe this is not the correct way to do it, but I need to utilize a different defaultTargetUrl that is dependent upon the url that the user requested. I would like ...

82. How to get URL of a resource in AppCtxt?    forum.springsource.org

To date, my solution to this has been a custom listener that does all the work programatically, but it looks as if URLEditor might be the correct answer. I just can't ...

83. Custom Target URL after Login    forum.springsource.org

I've integrated JSF with Acegi framework successfully but having one issue After successful login, if the password of the user is reset by admin, it should navigate to change password page, ...

84. Clean URL patterns    forum.springsource.org

Clean URL patterns Hi everyone, I am not sure if I have chosen the right name for the title but this is the situation that I have.. I have a search ...

85. url issue: Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: /web    forum.springsource.org

Hi, I am quite new to spring security. I found that if url has parameters, like 'xxx?a=bbb', it causes stream Error. Is this a bug? or is there anything wrong in ...

86. RememberMe and the Custom target URL    forum.springsource.org

Can somebody take a look at the following question. I'll appreciate if you can provide me some pointers. Currenyly the signed up customer is landing on the default page instead of ...

87. Dynamic logout URL    forum.springsource.org

Hi all, I'm probably missing something very simple here but how do I implement a dynamic loguout url with spring security. Code:

88. Obtaining hash or anchor (#) value in URL    forum.springsource.org

Obtaining hash or anchor (#) value in URL Is there any way in Spring (or in j2ee for that matter) either through binding or whatever to obtain the value after the ...

89. URL Variable Questions    forum.springsource.org

URL Variable Questions Hi! I am pretty new to Spring MVC and I had a couple of questions regarding parsing variables out of the URL path. I would like to have ...

90. Managing URLs    forum.springsource.org

Managing URLs Currently I'm using Spring 2.5.6 and have a large application with many URLs. Are there any good strategies for managing urls? One of my big pet peeves about the ...

91. filtrate Url problem    forum.springsource.org

filtrate Url problem Hello, Everyone! I have a problem. If the URL is h'ttp://localhost:8888/hero_city_one/jump.do?aim=number ,then how to filtrate this URL in spring-security.xml? The ...

92. how do i make url for index not have the filename?    forum.springsource.org

93. Multiple intercept-url statments for both https and http    forum.springsource.org

Multiple intercept-url statments for both https and http Hi, my first post I am using Spring Security 2.0.4 (on Websphere 6.1) to filter http and https requests from my application. I ...

94. intercept-url with groups    forum.springsource.org

THis has probably been asked before but I can't find any info on this so here goes. I configured my groupAuthoritiesByUsernameQuery and everything seems ok. I just don't know how to ...

95. got a question about of beehive-netui-config    forum.springsource.org

got a question about of beehive-netui-config hi, I am working on weblogic portal,met '&' issue,like below topic: http://forum.springsource.org/showth...t=59685&page=2 I followed that solution,but got a exception: Caused by: java.lang.Throwable: Substituted for ...

96. Keep URL parameters    forum.springsource.org

Hi! If the user wants to access the application he gets redirected to the login page. After successfull login the URL parameters are lost. How to keep these parameters? So for ...

97. url matching and the # symbol    forum.springsource.org

url matching and the # symbol Hi everybody, i'm facing a problem when trying to map a URL containing the "#" symbol. I've got the following RequestMappings: Code: @RequestMapping("/home/") public String ...

98. Per-domain intercept-urls    forum.springsource.org

Per-domain intercept-urls Hi Folks - I'm sure this is covered somewhere in the forum, but I couldn't find and appropriate search to yield an answer - so I apologize if this ...

99. Protect all URL's but one    forum.springsource.org

I would like to protect all URL's within an application using Spring Security except for the installer. Currently I have: Code: ...

100. localeChangeInterceptor not working when passing URL parameter    forum.springsource.org

localeChangeInterceptor not working when passing URL parameter Dear all, I'm trying to use spring internationalization support for a new project I've and I'm getting a wired behavior of localeChangeIntercepter. This is ...