Hi expets,
I have a scenario like to impliment Captcha in one of my component in sap ep 7.0 and i tried with below links but i couldnt get capthca image in jsp.
i refered below links.
http://zetcode.com/tutorials/jeetutorials/captcha/
in JSP image tag i replaced with below one
<img src="http://hostname:port/irj/servlet/prt/portal/prtroot/Captcha_test.captchHandler" >
in Java class insted of direct httpservletrespone getting from IPortalComponentResponse
IPortalComponentResponse componentResponse = (IPortalComponentResponse) this.getResponse();
HttpServletRequest req=null;
HttpSession session =null;
HttpServletResponse httpresponse=(HttpServletResponse)response.getRequest().getServletResponse(true);
httpresponse.setContentType("image/png");
OutputStream os = httpresponse.getOutputStream();
please help me to resolve the issue..
Thanks in Advace,
Prasad.