Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,015

    I guess I'm misunderstanding you. When I don't...

    I guess I'm misunderstanding you. When I don't want my model data to be passed as a URL parameter, I store it in the session, then retrieve it in the JSP (like I said). And there are more elegant and...
  2. Replies
    2
    Views
    1,184

    For these XML based documents, you need to make...

    For these XML based documents, you need to make sure that your start tags match with your end tags (like brackets in Java, or something).

    Anyways, you have a few errors with ending your tags too...
  3. Replies
    4
    Views
    1,015

    I'm thinking that this was the common issue that...

    I'm thinking that this was the common issue that if you redirect, and you want model data to go to the JSP, it'll rewrite the URL. If you don't use a redirect, it should work fine. Otherwise, if you...
  4. I personally ran each of those 5 'solutions'...

    I personally ran each of those 5 'solutions' before I posted them and each had the desired result.

    It is interesting how return new ModelAndView( new RedirectView( "http://google.com" ) ) doesn't...
  5. Well, I'm still fairly new to Spring, but I don't...

    Well, I'm still fairly new to Spring, but I don't see why there is an issue. There are varying levels of complexity you could go into, with some of the more complex ones being better designs.
    ...
  6. I have an application which uses a similar setup....

    I have an application which uses a similar setup. An Enum for possible day values Monday...Friday. A select box which sets the current item to be selected, etc.

    It works fine here, and seems...
  7. Replies
    5
    Views
    1,396

    Isn't it necessary to have the spring:bind tag in...

    Isn't it necessary to have the spring:bind tag in the formView anyways?
  8. Replies
    2
    Views
    1,283

    I'm guessing that you've looked at that one new...

    I'm guessing that you've looked at that one new book, Agile Java Development with hibernate & spring (or whatever the name is)... since that code for outputting messages is what the author does.

    I...
  9. Replies
    5
    Views
    1,396

    No, you don't need an action attribute for the...

    No, you don't need an action attribute for the form tag. It may be considered bad, but for all of my ~10 forms in my app, I don't use it.

    I assume there is a page /WEB-INF/jsp/Success.jsp ?

    You...
  10. Problem Solved I just decided to not use the ${}...

    Problem Solved
    I just decided to not use the ${} syntax anymore. I just directly pass in the string name of the attribute:


    <courses:courselist coursesVar="courses"/>

    Then, I retrieve it by...
  11. Creating custom JSP Tags & passing spring controller data to them.

    I have a Controller which returns a custom object of type Course:


    return new ModelAndView( getSuccessView(), "course", myCourseObject );


    Then, in my JSP view, I try to output it by:

    ...
  12. Replies
    1
    Views
    7,466

    I finally discovered the source of my...

    I finally discovered the source of my confusion...

    Apparently in my includes.jsp file (to include spring, fmt, etc.), there was a line for


    <%@ page session="false" %>


    I don't know why...
  13. Replies
    1
    Views
    7,466

    JSP, JSTL, and Session Variables

    I'm having a lot of problems with using session variables in my JSP pages.

    For my controller, I have:


    request.getSession().setAttribute("message", "foo session message");
    return new...
  14. Two questions about 'releasing' a Spring MVC/Hibernate WAR

    My application, which makes use of Spring MVC and Hibernate, has a standard login type system, with administrator accounts. When I 'release' this software, I suppose I'd distribute it such that the...
  15. Using session attributes to resolve redirect-after-post issue.

    I'd like the users of my app to be able to refresh the page they are at after a form submit, without it causing any unintended side effects (e.g., adding new row in table twice or something).

    It...
  16. Replies
    14
    Views
    1,877

    Thanks for the quick response. That seems like...

    Thanks for the quick response. That seems like something I'll have to utilize in an application I'm working on.

    By the way, are these two things the same:

    ...
  17. Replies
    14
    Views
    1,877

    I also have been struggling with this issue. ...

    I also have been struggling with this issue.

    @vasya10's last post:



    This is the best solution, right? How would a code sample look for this? Googling "spring +pagecontext" doesn't return...
  18. Problem Fixed I fixed the problem, yet I don't...

    Problem Fixed

    I fixed the problem, yet I don't understand it yet.

    I was using the implicit commandName = 'command'.
    I changed it to use commandName='login' in the bean xml file, than replaced...
  19. I now realize that the other form type views seem...

    I now realize that the other form type views seem to be fine. So, everything is fine except for this login screen which apparently doesn't bind, or something.

    Still debugging..
  20. Ant-generated WAR file produces odd results compared to Eclipse results

    I typically develop my application with Eclipse WTP, and run Tomcat using their Servers plugin tool. I have now tried to use an ant build.xml file to create a warfile for distribution purposes.
    ...
  21. Replies
    6
    Views
    1,715

    Thanks, that does just what I was looking for

    Thanks, that does just what I was looking for
  22. Replies
    6
    Views
    1,715

    My goal is to have the successView being the same...

    My goal is to have the successView being the same as the formView. E.g., after one clicks submit, a message may be generated then displayed on the same form.

    I've been working with a simplified...
  23. Replies
    6
    Views
    1,715

    I'm not sure exactly what you mean Setting...

    I'm not sure exactly what you mean

    Setting 'successView' seems to do the same thing as returning a new ModelAndView referencing the same thing.

    [edit] I may not understand exactly what a...
  24. Replies
    6
    Views
    1,715

    onSubmit return to the same Controller?

    Example: I have a SimpleFormController where I am editing simple data (e.g., first name, last name). I want the functionality to be that once I update the fields, and click submit, a message comes up...
  25. Access session variable from inside of a Validator?

    Is it possible?

    Specifically, I want to do something like
    request.getSession().getAttribute("user");
Results 1 to 25 of 31
Page 1 of 2 1 2