Ajai

Ranch Hand
+ Follow
since May 29, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ajai

Hi All,
I am trying to create another app server in WAS.
Below are the steps I followed.

1. I tried to create another server TestServer and deployed application TestEar on that.
2. Mapped the admin console to this new server throgh TargetMappings.
3. Added four HTTP Transport ports created for new server to admin_host.
4 ,Stopped and started the new TestServer



When i run the server it works fine but when I start the app from admin console.It gives warning message.
-- Start the server first.
What are the steps I am missing here.
Can anybody give me pointer to a similar example

Thanks
Ajai
17 years ago
Hi,

Can anybody tell me the command to send logs (files) through e mail in UNIX.Assume file is residing in UNIX dir.


Thanks
Rampreet
17 years ago
Hi All,

From a JSP a java script function calls a method of Struts Action which gives me exception --outputStream already taken at
ServletOutputStream out = response.getOutputStream();

I am not getting out object before this line.
Any body experienced the same problem.

Thanks
18 years ago
Hi All,
I am facing one problem ..might be coz of asynchronous nature of AJAX.
I call a method named is ValidUserId of my action to return whether the user id is valid or not.
It respondes correctly.. but before it can answer correctly the alert
alert("Invalid user id ") pops up.
Any workaround.
Below is the code snippet.

thanks



if(AdminAction.isValidUserId(userId, getValidUserId ))
{
alert("Returned true ..User is valiid");

}
else
{
alert("Invalid user id ");

}


var getValidUserId = function(data )
{
if(data )
{
return true;

}
else
{
return false;
}
}
Thanks all.

There was difference the jar i was using in build path and run time class path .

Thanks
Hi ,
when using Callable statement with parameter names I am getting the exception when setting the parameters.
java.lang.AbstractMethodError: oracle/jdbc/driver/OracleCallableStatement.setString

while I tried to use parameter order no e.g. 1,2 etc it gave compiler error when setting dates

cs.setDate(int, String ) ..

Any workaround.

Thanks
Hi,
I have two ArrayList containing objects(POJO) of same type.I need to compare these tow ArrayLists on the basis of one attribute of the object.
Currently I am interating both lists and comparing a specific attribute.
I read about comparable interface and it did not seem to make much sense to me as there also I will have to iterate both lists and then call compareTo method.
Pls advice .

Thanks
18 years ago
Hi ,
I have a jsp page redirected from a Struts Action(form for this action is in session).
This jsp page opens another JSP which needs to display action form attributes.But I am not able
to access these attributes on the pop up mapge ,though the attributes are accessible on the parent page.
Any work around here.

thanks
18 years ago
Hi All,

Consider one object with below structure

class A{

private SomeObject[] someObjectArray = null;


}


class SomeObject{

private String name= null;

}

PropertyUtils.getIndexedProperty(aBean, "someObjectArray[0].name ")

I want to get the value for property name in an object of type A.


Any suggestions.

Thanks
Hi All,

Can I have the same display value for two buttons on different pages which when clicked call two different methods on same action.


To illustrate

I have a one struts action class which is handling various user actions corresponding to various button clicks(I am using popular keymethod concept here).
in application resources
button.SaveA=Save
button.SaveB=Save


in key method map

button.SaveA=saveMethod
button.SaveB=saveBMethod

when I click on button B ,it called method saveMethod...
I do not want diff display value for these two buttons.
Is there a way out.



Thanks
18 years ago
Thanks,

I am saved from writing a function to do that.
18 years ago
Hi All,

I have a requirement of implementing the functionlaity smilar to one provided by SUM .
I want the column vals(varchar type) to be concatanated and the result should be only one value.
Is there any SQL function to do that.

Thanks
18 years ago
Hi All,


I am getting an error in hibernate while using asimple query.
at session.createQuqery(sql).list()

java.lang.NullPointerException
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:442)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:368)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.doQuery(Loader.java:661)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.doList(Loader.java:2150)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
[7/7/06 17:22:55:658 SGT] 14c39626 SystemErr R at org.hibernate.loader.Loader.list(Loader.java:2024)
[7/7/06 17:22:55:658 SGT] 14c39626

Any clues.
Thanks
Rampreet
Thanks,

Assume a scenario where I have 5 fields which determine the output of 6th field.
I am done with all 5 and going to press submit imm after this.
So in this case user will not be able to see the value of 6th field.or he will see it only for a fraction of time when the key is pressed on submit button.which is not very user freindly.

I think even time out will not help in above scenario.
Am I right in understanding what you shared.

Thanks
Hi All,

I have a requirement where I need to calaculate the value of one field which depends upon the value of 5-6 other fields on the html.
I am thinking of using onblur event for all these participating fields .
Is there any better approach.

Thanks
Ajai