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
Post a Comment