For smart Primates & ROBOTS (oh and ALIENS ).

Friday, October 25, 2013

ALTERNATE OF OR ANY OTHER LOGIC TAG IN STRUTS

ALTERNATE OF <logic:equal> OR ANY OTHER LOGIC TAG IN STRUTS ---------------------------------------------------------------------------------------- We need to write very much <logic:equal name> if there are lot of if conditions in you page...so how we use native if condition in struts. I have faced the same problem and find the solution....
Share:

Ajax in struts

How to use ajax in struts and hibernate. Ajax is very important in website coding. Here I am demonstrating how to use jquery ajax in struts and hibernate. struts-config.xml -------------------------- <action input="/" path="/amittest" scope="request" type="com.test.actions.AmitTestAction" parameter="method"> <forward name="success" path="/Webs/Input/amittest.jsp"/> </action> ==================================================== query.hbm.xml ----------------------------------- <?xml...
Share:

Saturday, October 19, 2013

java.lang.OutOfMemoryError: PermGen space in netbeans

Real Life Coding Stuff
java.lang.OutOfMemoryError: PermGen space in netbeans How to solve it in netbeans: 1- Right click on server 2- properties 3- select platform 4-in VM option paste as : -Xmx512m -Xms512m -XX:MaxPermSize=512m java.lang.OutOfMemoryError: PermGen space in netbeans...
Share:

Thursday, October 10, 2013

DispatchMapping does not define a handler property

You may face this error while working on java struts: "DispatchMapping[/login] does not define a handler property" Answer of this issue is "parameter attribute mention in struts-config for method of Action clas...
Share:

Cannot retrieve definition for form bean on action

javax.servlet.jsp.JspException: Cannot retrieve definition for form bean stdname on action regist  Ans:spelling mistake in tags, so check it and correct it in struts-config.xml fi...
Share:

Action missing resource in key method map

Action missing resource in key method map Ans:It means the you have put some spaces in .properties file or missing some property key and its val...
Share:

Cannot find ActionMappings or ActionFormBeans collection

org.apache.jasper.JasperException: javax.servlet. ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection root cause javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection root cause javax.servlet.jsp.JspException: Cannot find ActionMappings...
Share:

message No action instance for path / could be created error in struts

message No action instance for path /getcity could be created in struts description The server encountered an internal error (No action instance for path /getcity could be created) that prevented it from fulfilling this request. Ans: it means that you miss-spelled class information just see [type="con.test.action.DoLogin"] it must be type="com.test.action.DoLogin"<action...
Share:

Action does not contain specified method (check logs)

javax.servlet.ServletException: java.lang. NoSuchMethodException: Action[/salary] does not contain specified method (check logs) java.lang.NoSuchMethodException: Action[/salary] does not contain specified method (check logs) Ans: This means "salary" method must be a text in the .jsp file:public ActionForward salary(ActionMapping mapping, ActionForm...
Share:

Cannot find message resources under key org.apache.struts.action.MESSAGE

Cannot find message resources under key org.apache.struts.action.MESSAGE  javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action. MESSAGEjavax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE  Ans:1- create a package:...
Share:

Cannot cast from ActionForm to form error in struts

I was working in struts and faced "Cannot cast from ActionForm to StudentForm" error. to solve follow the steps: Ans: It means you have not import "import org.apache.struts.action.ActionForm;" int Form class and can not extends "ActionForm" in that class for ex: import org.apache.struts.action. ActionForm; public class StudentForm  extends...
Share:

Turn off the new tab page in firefox

Turn off the new tab page in firefox type about:config in url text box and Enter. click ok Type browser.newtab.url in the search box. Double-click the browser.newtab.url preference and change the url from about:newtab toabout:blank. Click OK and close the about:config ta...
Share:

openssl_encrypt openssl_decrypt in php

openssl_encrypt openssl_decrypt in php $method = 'aes-128-ecb'; $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($method)); $msg="Hi this is the testing for encoding and decoding"; $en=openssl_encrypt($msg, $method, 'def', true, $iv); echo $en; $de=openssl_decrypt($en, $method, 'def', true, $iv); echo $de...
Share:

Array to object in php

Array to object in PHP $obj = (object) array('nName' => 'my_name', 'address' => 'my_address'); echo $obj->nName; echo $obj->addres...
Share:

JSON in PHP Simple

Simple JSON in PHP test.php <script type="application/javascript"> function getip(json){     alert(json); } </script> <script type="application/javascript" src="http://localhost:90/test/a1.php?callback=getip"></script> a1.php <?php header('content-type: application/json; charset=utf-8'); $data = json_encode($_SERVER['REMOTE_ADDR']); echo...
Share:

Show DOCX meta data in php

Show DOCX meta data in php    <?php/*<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/"...
Share:

Ads Inside Post

Powered by Blogger.

Archive