简体   繁体   中英

Dojo and Spring

I have created a JSP through which I am calling a Dojo dialogue (On click of a button).

But the code of the Dialogue ie.,

<div>
................... 
</div>

is present on the same page.

Therefore I am unable to insert a controller (Servlet) in between the JSP and Dojo Dialogue.

Please suggest a convenient way to insert a controller between Dojo dialogue and JSP.

Thank You Vishal Saxena

Then I suppose you want to use the href attribute (then it will load the content in the dialog from an external page -> JSP).

The example code:

<div data-dojo-type="dijit/Dialog" title="My external dialog" href="yourJsp.html">
    ....
</div>

Is that what you meant?

EDIT : And in your controller you map it like:

@Controller
public class MainController {

        @RequestMapping(value = "/yourJsp.html")
        public String getDialog(ModelMap model) {
                ... // Do your stuff
        }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM