Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Instead of relying on the filter, try just...

    Instead of relying on the filter, try just looking in the session:


    session.getAttribute("edu.yale.its.tp.cas.client.filter.user");

    If the user has a CAS session, that value should be in the...
  2. One option is to simply make the home page public...

    One option is to simply make the home page public (i.e. do not put it behind the CAS filter). Then check on the home page for the CAS ID in the user's session. If they've gone to some other...
  3. Replies
    3
    Views
    899

    Yeah, I get you. Well, you can't, really. The...

    Yeah, I get you.

    Well, you can't, really. The nature of a command or "form-backing object" is that it's just that -- a single object that contains the data from a form.

    So, your options...
  4. Replies
    3
    Views
    899

    Can you give an example of what you mean by a...

    Can you give an example of what you mean by a complex form field?

    Yes, there is only one command object, but it can certainly have nested objects, so that you can bind a text box to, for example,...
  5. That's not bad. Yet another approach would be to...

    That's not bad. Yet another approach would be to specify a short server timeout, but to have Javascript on each page that pings the server and tells it to refresh the session. That way you'll never...
  6. You can place javascript on each page to catch...

    You can place javascript on each page to catch the onUnload or onBeforeUnload events, but you won't necessarily know whether the page is unloading because the user is going from one page to another...
  7. Ah, I get it. Yeah, you're screwed. :) It...

    Ah, I get it. Yeah, you're screwed. :)

    It seems like an approach that risks throwing out the benefits of IoC, but without knowing more about what specifically you're doing I'm not sure I can...
  8. If so, then I'm not understanding what the...

    If so, then I'm not understanding what the problem is. The case for a factory is where you want entity objects that need beans injected. The entities are created on the fly based on current needs,...
  9. If I'm understanding you, this sounds like you...

    If I'm understanding you, this sounds like you should use a factory object -- the factory is a singleton, with the various beans injected into it, and it's job is to instantiate your domain object...
  10. First of all, Spring has a lazy list...

    First of all, Spring has a lazy list implementation called Autopopulating List, if you want to stay Spring-specific.

    Rather than monkey with the list EL resolver, perhaps another approach would be...
  11. Replies
    2
    Views
    1,034

    Can you wrap the object in a custom class of your...

    Can you wrap the object in a custom class of your own, which will take a collection as a property and then call add() on the wrapped object as many times as necessary?
  12. Make your class implement the interface...

    Make your class implement the interface ApplicationContextAware, which will mean you have to add a setApplicationContext method. Then, as if by magic, Spring will detect that you have implemented...
  13. There's no easy way to answer that question. Or...

    There's no easy way to answer that question. Or perhaps there are several good answers.

    A perfectly reasonable answer is that Spring is best for projects where your project team has expertise in...
  14. Replies
    2
    Views
    896

    I'm not sure I follow you. ModelMap absolutely...

    I'm not sure I follow you. ModelMap absolutely implements Map interface (one very effective way to implement an interface is to inherit from a class that implements that interface-- in this case...
  15. Replies
    7
    Views
    1,298

    The "Simple" part of SimpleFormController is that...

    The "Simple" part of SimpleFormController is that you don't need to (and should not) override handleRequestInternal -- if you do, the code in the superclass that actually calls formBackingObject()...
  16. Replies
    1
    Views
    1,207

    Two things -- First, you need to override the...

    Two things --

    First, you need to override the formBackingObject method in the controller, so that it has a way to get a new EmployeeBean to bind the form data to. This will probably just be...
  17. Thanks for replying. I'm not sure I understand...

    Thanks for replying.

    I'm not sure I understand your suggestion. Somebody somewhere needs to say

    myPerson.ContactInfo = new ContactInfo()

    before the form can bind to fields within...
  18. Initializing an object tree for Spring MVC binding

    If I have a form-backing object that has a complicated object tree -- say a Person that has a Contact Info object that has an Address object that has a bunch of Strings -- it seems that the object...
  19. Easiest way is to check which button comes...

    Easiest way is to check which button comes through in the request parameters. If button1 is clicked, there'll be an item in the request parameters with a key of "button1" and a value of "Do Print".
  20. It looks as though in your JSP you're trying to...

    It looks as though in your JSP you're trying to display something called MQDetailForm.requestStr, which, in the version where you extend the parent form object, simply doesn't exist. So why would...
  21. Replies
    3
    Views
    797

    Agreed. Specifically, it looks like you need a...

    Agreed. Specifically, it looks like you need a projectService set as a property on your controller, and it isn't being set.
  22. Replies
    6
    Views
    1,181

    It sounds like the poster wants to give clients...

    It sounds like the poster wants to give clients the ability to modify the templates on-the-fly via a web interface.

    Certainly a java class can save text to a file anywhere on the file system; it...
  23. Replies
    4
    Views
    3,321

    I don't register any custom property editors to...

    I don't register any custom property editors to handle enums. They "just work" -- i.e. Spring is smart enough to turn a String value into myEnum.valueOf(value). Are you seeing something different?
  24. Replies
    2
    Views
    654

    Please post the relevant part of your dispatcher...

    Please post the relevant part of your dispatcher servlet XML configuration.
  25. Replies
    6
    Views
    1,427

    Yes, that seems like a reasonable design, and not...

    Yes, that seems like a reasonable design, and not inconsistent with IoC.
Results 1 to 25 of 66
Page 1 of 3 1 2 3