JSP

Dojo accessing variable from external Javascript file

I am migrating to Dojo 10.4, before I have few customized javascript files which are modified by running dojo amd converter. But after migrating I cannot able to access variables in js files. I have declared like this in a file called abc: define([ “dojo”, “dojo/_base/declare”, “dojo/_base/lang”, “dojo/on”, “dojo/request”, “dijit/form/FilteringSelect” ], function (dojo, declare, lang, on, request, FilteringSelect) { var…
Read more

issue to call a jsp from a SpringMVC Liferay portlet

I have a SpringMVC portlet into a Maven built project. I can’t have a JSP to render to another JSP. I am not sure if it is because of my JSP path or because of something I misundertood with SpringMVC. My jsp full path is : /src/main/webabb/WEB-INF/jsp/render/logs.jsp I try to call it this way : <aui:button-row cssClass=”…”> <portlet:renderURL var=”myURL”> <portlet:param…
Read more

Struts2 i18n in anchorTag sj:a

I would like to load an i18n string into an anchorTag sj:a (jQuery plugin). However I don’t know how to do it. For instance, this is the current anchor where I want to load the dynamic i18n message: <sj:a id=”actionButton” href=”%{myurl}”targets=”” button=”true”> my text </sj:a> Thanks in advance. Source: jsp

struts2 html checkbox not pre-checked

<body> <h3>Register for a prize by completing this form.</h3> <s:form action=”register”> <s:textfield name=”personBean.firstName” label=”First name” /> <s:textfield name=”personBean.lastName” label=”Last name” /> <s:textfield name=”personBean.email” label =”Email”/> <s:textfield name=”personBean.age” label=”Age” /> <input type=”checkbox” checked=”checked” /> <s:submit/> </s:form> <input type=”checkbox” checked=”checked” /> </body> I have a jsp with above content. The checkbox within the form is not checked whereas the checkbox outside form…
Read more

Download and display image dynamically

I have the below requirement. I click on the display link in the shown page. I call the javascript function displayImage with input parameters are filename and isDisplay. In this function, I generate an ‘img’ tag whose src=”download?filename=DCS.jpg&isDisplay=true”. I am expecting this to call the servlet which connects to hadoop, gets the bufferedImage of the requested image and writes to…
Read more

Blocking a JSP called by a JSP

I don’t really have an in-depth knowledge of HTML, CSS, Javascript and Java, so please bear with me. Anyhow, we have this Online Terminal (contained under Liferay) which is being used by our clients. We do not own the Terminal itself, it’s being maintained by our vendor. We’ve used two iframes for a specific (let’s call it login.jsp) file which…
Read more

No tag library could be found with this URI including OWASP

I have this error when including this taglib in my jsp: <%@ taglib prefix=”esapi” uri=”http://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API”%> No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file. even I’ve included Owasp.CsrfGuard.jar in the lib folder of my project. Source: jsp

Analytics code preventing values entered in jsp to reflect in Struts 2 action class

I am in a serious problem. My JSP worked fine up till yesterday i.e. the values entered in the text fields reflected appropriately in the action class. However, for testing purposes I inserted an analytics code into the JSP. However, after this, any value I entered in the text fields returned as a blank string in the back end. This…
Read more