@Action(value="/receipts/challan-viewChallan") @ValidationErrorPage(value=ERROR) @SkipValidation public String viewChallan(){
  if (challanId == null)   receiptHeader=receiptHeaderService.findById(receiptId,false);
 else   receiptHeader=(ReceiptHeader)persistenceService.findByNamedQuery(CollectionConstants.QUERY_RECEIPT_BY_CHALLANID,Long.valueOf(challanId));
  setLoginDept();
  loadReceiptDetails();
  return VIEW;
}

@ Action ( value = "/receipts/challan-viewChallan" ) @ ValidationErrorPage ( value = ERROR ) @ SkipValidation public String viewChallan ( ) { if ( challanId == null ) receiptHeader = receiptHeaderService . findById ( receiptId , false ) ; else receiptHeader = ( ReceiptHeader ) persistenceService . findByNamedQuery ( CollectionConstants . QUERY_RECEIPT_BY_CHALLANID , Long . valueOf ( challanId ) ) ; setLoginDept ( ) ; loadReceiptDetails ( ) ; return VIEW ; }
this method is invoked to view the challan .
