Search:

Type: Posts; User: cuong; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,537

    Hi hikage, I think this thread will be of...

    Hi hikage,

    I think this thread will be of help: http://forum.springframework.org/showthread.php?t=22138

    Cuong.
  2. Replies
    1
    Views
    579

    SOLVED: view-state and controllers

    Thanks to the wonder that is Google, I found out the PR3 supports the forward: directive.

    E.g.


    <view-state id="listItems" view="forward:/_listItemsController">
    <transition on="submit"...
  3. Replies
    1
    Views
    579

    view-state and controllers

    Hi all,

    Is there a way to use an instance of Spring's ViewController as the 'view' part of a view-state rather than a view extrapolated by a ViewResolver?

    For example:

    myflow.xml

    ...
  4. From my experience, this problem isn't restricted...

    From my experience, this problem isn't restricted to Spring and is more to do with how the servlet container handles and stores request information during internal 'forwards' between URLs - e.g. for...
  5. Replies
    8
    Views
    1,817

    Hi Paul, I also have problems with 10.1.3 and...

    Hi Paul,

    I also have problems with 10.1.3 and Spring MVC. Specifically, the request parameters seem to be getting removed from the request!

    For example, given a very simple setup of
    -...
  6. Unit testing JPA (specifically Hibernate's EM)

    Hi all,

    Has anyone done, and is willing to share, the unit testing of persistence with JPA (aka EJB3 persistence) using Hibernate's EM and getting around the classic lazy instantiation problem?
    ...
  7. Replies
    2
    Views
    894

    The jsp:include tag doesn't support JSTL...

    The jsp:include tag doesn't support JSTL expressions except in the latest servlet engines that support the JSP-2.0 spec.

    One solution is to hold the value of model.chooser.banner as a page script...
  8. I don't think so as, AFAIK. I believe that...

    I don't think so as, AFAIK. I believe that BeanFactories (for web-apps at least) get populated on a ServletContext basis which is unique per web-app. I'm sure more knowledge persons than I will...
  9. Replies
    7
    Views
    3,368

    I think what tv was suggesting is to override the...

    I think what tv was suggesting is to override the getParameter method on HttpServletRequestWrapper.

    For example:



    public String getParameter ( String paramName ) {
    // We care about the...
  10. mgskumar, In answer to the first part of your...

    mgskumar,

    In answer to the first part of your question: Yes, you can get the SimpleFormController to handle a normal GET request by overriding the isFormSubmission method to return a true for GET...
  11. This is probably a bizarre idea but you could...

    This is probably a bizarre idea but you could one-time encrypt the query parameter of the link with values that they will always be different even for the same item of data - a sort of SSL at the...
  12. Replies
    8
    Views
    2,019

    A colleague is using DWR for a page to generate a...

    A colleague is using DWR for a page to generate a map image which is redrawn, rather than the whole page, with different information depending on user interaction. I assisted with plugging in Spring...
  13. Replies
    3
    Views
    1,189

    I've just tried it using a tile defined as...

    I've just tried it using a tile defined as '/page/user/view' and I got it to work. Could you post the relevant parts of the tile definition and bean config files? I'm on Spring 1.2.1 and Struts...
  14. Replies
    4
    Views
    1,099

    Apologies for being a being terse ;) Presuming...

    Apologies for being a being terse ;)

    Presuming that the beans are currently defined as:



    <bean id="myNavigationService" class="NavigationServiceImpl">
    <property name="navigationDao"...
  15. Replies
    4
    Views
    1,099

    The fact that you use the JDBC dao to perform...

    The fact that you use the JDBC dao to perform retrieval operations and want the Hibernate dao to perform persistence operations suggests to me you should consider having two interfaces: the...
  16. Correct me if I'm wrong but are you looking for a...

    Correct me if I'm wrong but are you looking for a way to do something like



    public class MyClass
    {
    public void someMethod ()
    {
    TestObject myTestObject = new TestObject ();
    }
  17. athieme, I notice that you're in a web...

    athieme,

    I notice that you're in a web application so, from my experience, the key points to note are the entry points into your application - i.e. servlets, Struts actions, etc. and as long as...
  18. Replies
    3
    Views
    1,021

    For my current project (a web-app) I use a...

    For my current project (a web-app) I use a ThreadLocal object to store the user. For every request, the User is stored in the thread (via a servlet Filter, for example) and anywhere that needs it...
  19. As I had a bit too much time on my hands (don't...

    As I had a bit too much time on my hands (don't tell my PM!), here's one possible solution:

    Create an instance of BeanFactoryPostProcessor to parse though all the bean configurations looking for...
  20. Replies
    3
    Views
    2,754

    I've just had to do this for the project I'm on...

    I've just had to do this for the project I'm on and I feel your pain! I don't know if this is best way but given my limited capabilities...

    - I couldn't see a way of not having a confirmPassword...
  21. Replies
    15
    Views
    11,519

    Frizzi, From your last post is the signature...

    Frizzi,

    From your last post is the signature to your method onSubmit(HttpServletRequest,Object)? If this is the case then your method will never get run because it's not one of the overloads in...
  22. Replies
    2
    Views
    6,176

    Frame/iFrames and Tiles are different web...

    Frame/iFrames and Tiles are different web technologies - frames/iframes being on the client and is a part of HTML and Tiles being run on the server to generate HTML. Tiles has no concept of frames...
  23. Thread: MVC and SSL

    by cuong
    Replies
    3
    Views
    961

    I think you have to do a redirection to the your...

    I think you have to do a redirection to the your login page as, IIRC, the default behavior is a servlet forward.

    ModelAndView modelAndView = new...
  24. Replies
    15
    Views
    11,519

    The variants of onSubmit in SimpleFormController...

    The variants of onSubmit in SimpleFormController aren't invoked separately in sequence but rather in a nested fashion, that is:

    onSubmit(request,response,command,errors)
    -> calls...
  25. Replies
    6
    Views
    2,063

    The errors being generated are Spring's...

    The errors being generated are Spring's FieldError objects which resolve their messages from MessageSource beans rather than the 'Struts' way.

    Here's the doc:...
Results 1 to 25 of 28
Page 1 of 2 1 2