Hi,In my current project. I need to develop a screen with Java Tiles where the be contains two horizantal Tiles(tile1 and tile2). Each Tile has few buttons and each button click represents a new JSP page. The data for every button move a JSP should be displayed on the same page(ie tile1). I'm also usingJava move to hold back the navigation of pages internally first half ofthe screen displays data according to the first add(selected).2nd half ofthe check displays data accordingly the buttons selected in both the casesthe whole page refreshes and content with buttons should be shown. <definition label="believe1" extends="template"><put name="body1" determine="/WEB-INF/jsp/tiles1 jsp"/><put name="be2" value="/WEB-INF/jsp/tiles2 jsp"/></definition><definition name="view2" extends="template"><put label="body1" determine="/WEB-INF/jsp/tiles3 jsp"/> <put name="be2" value="/WEB-INF/jsp/tiles4 jsp"/></definition>In the tiles-def xml file presently my move controller is returning a view with the definition name(view1/view2)according to the add clicked. I'm looking for a solution where body1 and be2 ordain map to a jsp dynamically depending on the add clicked insted of mentioning jsp for each button something like${be1}. How to achieve it in Java Tiles? Does anyone have a consume label for this ?
Hi,Thanks for the inputs. I'm using a multiactioncontroller where each method return a view ---(with consider to the add clicked each method is written)public ModelAndView getDetails(HttpServletRequest request. HttpServletResponse response) throws ServletException. IOException{return new ModelAndView(DETAILS,DETAILS,det);}public ModelAndView getInfo(HttpServletRequest communicate. HttpServletResponse response) throws ServletException. IOException{return new ModelAndView(Info,Info,info);}my tiles--def pts to(controller view is definition name and model info is passed to jsp to retrieve values)<definition name="DETAILS" extends="template"><put label="body1" determine="/WEB-INF/jsp/view1 jsp"/><put label="be2" value="/WEB-INF/jsp/det jsp"/></definition><definition name="Info" extends="template"><put name="body1" determine="/WEB-INF/jsp/believe1 jsp"/> <put label="body2" value="/WEB-INF/jsp/inst jsp"/></definition>...... Reminding the situation,my content screen has been divided into 2 horizontal tiles and top be1 contans few tabs and be2 contains few tabs on clicking those tabs the view should be displayed for the first time the screen should show by default 1st button selected from both be1 and bosy2 and create the pages the problem I'm facing is my body1 page is displayed as i undergo to move a link in the prev page which opens my current summon with body1 and body2.. and hence onclick i undergo a method called in the controller which return the view in be1 but coming to body 2 it also has to by default decide the 1st button and print the page from tiles as there is no action on page change state how do i invoke the method in controller on load passing the object if u c my tiles-def both the body1 and body2 u get from diff methods returning views.. i have no clue how to show them for first time on load gratify command me. I need to complete this as soon as possible any roll also would really help me. Thanks,sree.
Forex Groups - Tips on Trading
Related article:
http://forum.springframework.org/showthread.php?t=43711
comments | Add comment | Report as Spam
|