how to pass parameter to open modal dialogue box in bootstrap using jsp? -


i want open modal dialogue box in bootstrap passing parameter in jsp. when user clicks on button dialogue box must opened.

<a data-id="+subid+" type='button' class='btn btn-success btn-lg btn-block' data-toggle='modal' data-target='#mymodal'>view order</a>

i understand want if parameter passed jsp button appear

     <% string msg2=(string)request.getsession().getattribute("name-param");%>      <% if ( (msg2==null || msg2.isempty()) ) { %>         //what want                               <% } else if(msg2!=null) { %>  <a data-id="+subid+" type='button' class='btn btn-success btn-lg btn-block' data-toggle='modal' data-target='#mymodal'>view order</a>                             <% }  %> 

and in servlet set parameter :

request.getsession().setattribute("name-param",parameter); 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -