Digvijay Singhania

Greenhorn
+ Follow
since Sep 22, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Digvijay Singhania

thanks the problem is solved

<?xml version="1.0" encoding="UTF-8"?>
<RELEASE_TEMPLATE>
<TEMPLATE NAME="14C Release Set" SUPER_TEMPLATE="YES" DESCRIPTION="ReleaseSet1(Basic parameters)" ID="0">
<TEMPLATE ID="10" MANDATORY="YES"/>
<TEMPLATE ID="20" MANDATORY="YES"/>
<TEMPLATE ID="30" MANDATORY="YES" >
<CROSSVALIDATE CROSS_VALIDATION_ID="10" SOURCE_PARAM="COUNTRY_DIRECTORY" SOURCE_FIELD="BASE_CRNCY" TARGET_TEMPLATEID="1" TARGET_PARAM="CURRENCY_DIRECTORY" TARGET_FIELD="CRNCY_CODE_ALPHBTC"/>
<CROSSVALIDATE EXTERNAL_HOOK="YES" ETERNAL_HOOK_ID="1" API_CLASS="com.tcs.bancs.pms.util.Test" METHOD="validate" ARGS="10,20" />
</TEMPLATE>

<TEMPLATE NAME="Release Set 1" DESCRIPTION="ReleaseSet1(Basic parameters)" ID="1">
<PARAM NAME="COUNTRY_DIRECTORY" MANDATORY="YES"/>
<PARAM NAME="CURRENCY_DIRECTORY" MANDATORY="YES"/>
<PARAM NAME="CURRENCY_DETAILS" MANDATORY="YES"/>
<PARAM NAME="OPERATIONAL_UNIT" MANDATORY="NO" />
<PARAM NAME="PP_CONFIG_PARAM" MANDATORY="YES" />
</TEMPLATE>


</RELEASE_TEMPLATE>
my java code is here :

public static Map<String,ReleaseTemplateConfig> readXML(String strFileName) throws Exception {
Document document;
DocumentBuilder documentBuilder;
DocumentBuilderFactory documentBuilderFactory;
File xmlInputFile;
NodeList nodeList;
Boolean flag=false;
Map<String,ReleaseTemplateConfig> releaseViewConfig=new LinkedHashMap<String,ReleaseTemplateConfig>();
ReleaseTemplateConfig relConfig =null;
LinkedHashMap<String, String> fieldList =null;
try {
xmlInputFile = new File(strFileName);
documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilder = documentBuilderFactory.newDocumentBuilder();
document = documentBuilder.parse(xmlInputFile);
nodeList = document.getElementsByTagName("*");
ArrayList< CrossValidationBean> al=null;
String paramName=null;
Boolean supertemplateFlag=true;
LinkedHashMap<String,ArrayList<CrossValidationBean>> hmap=new LinkedHashMap<String,ArrayList<CrossValidationBean>>();
document.getDocumentElement().normalize();
for (int index = 0; index < nodeList.getLength(); index++) {
Node node = nodeList.item(index);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;


if (!element.getTagName().startsWith(ParamConstants.RELEASE_TEMPLATE)){

if(element.getTagName().startsWith(ParamConstants.TEMPLATE) && !"".equals(element.getAttribute(ParamConstants.ID)) && supertemplateFlag){

relConfig=new ReleaseTemplateConfig();
relConfig.setTemplateId(element.getAttribute(ParamConstants.ID));
System.out.println("id"+element.getAttribute(ParamConstants.ID));
relConfig.setTemplateName(element.getAttribute(ParamConstants.NAME));
System.out.println("Name"+element.getAttribute(ParamConstants.NAME));
relConfig.setTemplateDesc(element.getAttribute(ParamConstants.DESCRIPTION));
System.out.println("Description"+element.getAttribute(ParamConstants.DESCRIPTION));
supertemplateFlag=false;
if(element.getTagName().startsWith(ParamConstants.TEMPLATE) && !"".equals(element.getAttribute(ParamConstants.ID))){
System.out.println("id"+element.getAttribute(ParamConstants.ID));
System.out.println("mandatory"+element.getAttribute(ParamConstants.MANDATORY));
}}}
<?xml version="1.0" encoding="UTF-8"?>
<RELEASE_TEMPLATE>
<TEMPLATE NAME="14C Release Set" SUPER_TEMPLATE="YES" DESCRIPTION="ReleaseSet1(Basic parameters)" ID="0">
<TEMPLATE ID="10" MANDATORY="YES"/>
<TEMPLATE ID="20" MANDATORY="YES"/>
<TEMPLATE ID="30" MANDATORY="YES" />
</TEMPLATE>

<TEMPLATE NAME="Release Set 1" DESCRIPTION="ReleaseSet1(Basic parameters)" ID="1">
<PARAM NAME="COUNTRY_DIRECTORY" MANDATORY="YES"/>
<PARAM NAME="CURRENCY_DIRECTORY" MANDATORY="YES"/>
<PARAM NAME="CURRENCY_DETAILS" MANDATORY="YES"/>
<PARAM NAME="OPERATIONAL_UNIT" MANDATORY="NO" />
<PARAM NAME="PP_CONFIG_PARAM" MANDATORY="YES" />
</TEMPLATE>


</RELEASE_TEMPLATE>


yes, i got the answer it should be :
it is throwing error as Message : Object doesn't support this property or method
hii,
In QBE search how should i close the modal dialog window by dblclicking on the text that is diaplayed.
How can i display the jsp page using Jquery Ui. I am working on QB Search . There is dropdown list in the jsp page and that dropdown is dispalying data from the database. If the number of data in the database is more than thousand than we can not show it in the dropdown so we can give the QB search button. when user clicks on it yhe new jsp page in jquery should open along with search facility . how to do that??
<%
ArrayList<Transaction> al=new ArrayList<Transaction>();

al=(ArrayList<Transaction>)request.getAttribute("al");




%>
<%if(al!=null)
{
%>

<table cellpadding="5" cellspacing="5" width="100%">

<tr>
<th>Date</th>
<th>Transaction Type</th>
<th>Account Number</th>
<th>Amount</th>
<th>Today Balance</th>
<th>Edit</th>
<th>Delete</th>

</tr>
<%
//int number=1;
for(Transaction bean:al)
{
%>

<tr align="center">
<td>
<%=bean.getDate() %>
</td>
<td>
<%=bean.getTransaction_Type() %>

</td>
<td>
<%=bean.getOutlet_Account_No() %>

</td>

<td>
<%= bean.getAmount() %>
</td>
<td><%= bean.getBalance() %></td>
<td><a href="/ROM/TransactionServlet?action=update&id=<%=bean.getTransaction_ID() %>">Edit</a></td>

<td><a href="/ROM/TransactionServlet?action=delete&id=<%=bean.getTransaction_ID() %>" onclick="return confirm('Are you sure you want to delete this record?')">Delete</a></td>

</tr>
<%
}

%>
</table>
<%
}
else
{

}
%>
11 years ago
JSP