Srinivas Aravala

Greenhorn
+ Follow
since Aug 20, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Srinivas Aravala

Well i always suggest you give as many as Mock exams (atleast 10) , there is no guarantee that you will have same set of questions appearing in the test again and again , but the pattern might repeat .All the Best.
EMS Queues : Hi I am trying to find out the producer count for the EMS Queues and have configred the TibJmsAdmin instance , i have provided the necesary parameters to the below function:

TibJmsAdmin Initiliazation:

private synchronized TibjmsAdmin getTibjmsInboundAdminInstance() throws TibjmsAdminException {
if (tibAdminInbound_ == null) {
tibAdminInbound_ = new TibjmsAdmin(serverUrl, userName, password);
return tibAdminInbound_;
} else {
return tibAdminInbound_;
}
}

In the Code:

TibjmsAdmin tibAdmin = getTibjmsInboundAdminInstance();
DestinationInfo destinationInfo = tibAdmin.getQueue(inQueueName);

if (shouldMonitorInBoundQueueProducer) {

inBoundProducerExists = doesInBoundQueueProducersExist(tibAdmin, destinationInfo);
}


Function to Get Prducer Count:


private boolean doesInBoundQueueProducersExist (TibjmsAdmin tibAdmin, DestinationInfo destinationInfo) throws Exception {

if (destinationInfo == null) {
System.out.println( " Queue " + destinationInfo.getName() + " unable to get record count of Producers");
return false;
} else {
ProducerInfo[] ci = tibAdmin.getProducersStatistics(tibAdmin.getConnectionId(), userName,destinationInfo);
producerCount = ci.length;
System.out.println( " Queue " + destinationInfo.getName() + " number of Producers: " + producerCount);

if (producerCount <= 0) {
return false;
} else {
return true;
}
}
}

but unfortunately always the producer count is showed 0 and function returns false, though i am connected and wrirting on to the queues.Is there any other way to find the Producer Count i used QueueInfo in place of DestinationInfo but no much use.
Please suggest. Thanks.
Hi Ramandeep,

Thanks for your revert, seems doesnt have attribute name

javax.servlet.ServletException: org.apache.jasper.JasperException: /GetAttDetails.jsp(115,0) Attribute name invalid for tag option according to TLD
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

but i was able to solve the issue in the following way




14 years ago
Hi Ramandeep,

Thanks for your reply , i have tried in the way you suggested but still i am having the below problem

javax.servlet.ServletException: org.apache.jasper.JasperException: /GetAttDetails.jsp(111,61) equal symbol expected
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

seems


14 years ago
hi ,

I am new to struts i am stuck on an issue in the code of my project as part of that
i need to populate an Arraylist elements into an html option in the JSP i mean a drop down
with value and label being the same as option value.

My ActionClass Contains

i am assigining in the following way in to my bean in one of my previous action class


ArrayList alist = new ArrayList();
for (int i=1;i<=30;i++)
{
alist.add(i);
}
atdForm.setAtDate(alist);




my ActionForm contains the below contents

ArrayList atDate = new ArrayList();

public ArrayList getAtDate()
{
return atDate;
}

public void setAtDate(ArrayList altDate)
{
this.atdate = altDate;

}







So now i am trying to generate a DropDown in my jsp




<logic:iterate id="element" name="AtdAForm" property="atdate">
<html:select property="selList">
<html:option name="dateList" value="<bean:write name="element"/>"><bean:write name="element"/></html:option>
</logic:iterate>


But i am unable to generate the desired result , i am not sure i am coding in the correct way , or can suggest the best way .Appreciate your help. Thanks.
14 years ago
Hi Sir
i m planing to host a website in java for that all design and intranet programming is completed.what i need is how do i can send and receive mails.

what are the servers needed to send and receive mails from others domain like yahoo and rediff


thanking u sir

Srinivas Aravala
MCA
18 years ago