JSP

How to create multilevel tabbed navigation menus in jsp

I am designing a jsp page. In that i have created tabbed panels in a one level, but our project requirement is multilevel (subtabs under tabs). So i can i do this using below javascript and html code. so here is html code. <html> <body> <div id=”panel1″ style=”background-color:transparent;position:relative;width:1000px;height:350px;left:100px;top:100px;”> <script language=”JavaScript” type=”text/javascript”> var pacpanel1=new Array(”,”,”,”,”,”,”,”,”,”,”,”); var piacpanel1=new Array(”,”,”,”,”,”,”,”,”,”,”,”); </script> <div id=”panel1panel0″…
Read more

replacing old AJAX library with newer one https://ajax4jsf.dev.java.net/ajax

I’m working on an at least 8 years old project that is using JSP, the library used for AJAX is https://ajax4jsf.dev.java.net/ajax, based on my understanding it was acquired by RichFaces 3.x, and right now no one is supporting it. we found out in a hard way that this library has some bugs and we want to update the library without…
Read more

How to evaluate a JSP EL expression inside a servlet

I’d like to leverage the JSP Expression Language to evaluate JSP EL expressions inside a servlet. Ideally, I’d like to use the exact same ExpressionFactory and context used in JSPs, in order to get access to the usual JSP EL variables such as ${param.myParam} or ${cookie.myCookie}. So far I came up with the following : package test; import java.io.IOException; import…
Read more

How can I call a JavaScript function defined into the "father" view that open a dialog from this dialog?

I am pretty new in JavaScript and I have the following problem. I have a page named autorizzaFattura2.jsp that show some invoices into a table. Each table row represent a single invoice and there is a column containing an immage that clicked open a popup that show the invoice details. I do in this way: This is the table column…
Read more

How to display a text field based on s:select struts 2

I have a Jsp file that include these lines: <s:select list=”list” name=”message” id=”selectMsg”></s:select> <div id=”txtMessage” style=”display:none”><h3><span id=”txtMessage” style=”margin-left: 230px”>Message: <s:textarea name=”message” placeholder=”Message”/></span></h3></div> Action: public String warn() throws Exception { WarnDAO dao = new WarnDAO(); AccountDAO accdao = new AccountDAO(); acc = accdao.getAccountByUsername(username); List<WarningMessage> warningMessage = dao.showMsg(); list = new ArrayList<String>(); for (WarningMessage warningMessage1 : warningMessage) { list.add(warningMessage1.getMessage()); } list.add(“Other”); warning_msg_DAO…
Read more