Announcement Announcement Module
Collapse
No announcement yet.
How to Change URL? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Change URL?

    Hi all,

    My URL Spec:

    show all records
    Viewing : "...../viewXXXXX.htm" //InternalViewResolver-JSP conv
    Add/Edit Module
    Add/Edit : "...../addeditXXXXX.htm" // same

    After I Add or Edit:
    then when i turn it to the view page i get the same url of ADD or EDIT but displays correctly the ViewPage with all records.

    I have done this using:
    YYYY.put(myCollection);
    return new ModelAndView("VIEW's REDIRECTION",YYYY);

    All works fine (Added & Edited with database,shows all records correctly) but i cannt get the URL of view.


    thanks.

  • #2
    Can you show some config files? Are using SimpleFormController or something like that? Are your Add/Edits making it to the DB?

    Comment


    • #3
      Config:

      /XXXXview.htm - is redirected from the MultiActionController.
      the records are displayed using displaytag.

      /addeditYYYY.htm-is directed using SimpleFormController.

      Functionality wise every thing is working fine (inserting to DB & display).


      After Adding/Editing , i display the records using
      return new ModelAndView("PPPPPP/QQQQQ",model); this also displays the records correctly but my addressBar points to the add/edit.htm.


      thanks
      steve.

      Comment

      Working...
      X