akkina sathish

Greenhorn
+ Follow
since Apr 19, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by akkina sathish

<td class="reguser" align="right">Qualification :</td>
<td align="left">
<html:select property="qualification" multiple="true" styleClass="MULTILARGENEW">

</html:select>

---------javascript----------------


var str = new Array();
var str1 = new Array();
var str2 = new Array();
var str3 = new Array();
<%ArrayList editdetails = null;
if(request.getAttribute("EDITDEGREELIST") != null){
editdetails =(ArrayList)request.getAttribute("EDITDEGREELIST");
String str2[] = null;
String str3[] = null;
for(int j=0; j < editdetails.size(); j++) {
AdvancedSearchDTO advancedSearch = (AdvancedSearchDTO)editdetails.get(j);
{ %>

str2[<%=j%>]=<%=advancedSearch.getDegreeId()%>
<% }
}} %>




<% ArrayList details= (ArrayList)request.getAttribute("DEGREEDETAILS");
String str[]=null;
String str1[]=null;
for(int i=0; i < details.size(); i++) {
CommonDTO commonDTO = (CommonDTO)details.get(i);

{ %>

str[<%=i%>]=<%=commonDTO.getCommonId()%>;
str1[<%=i%>]='<%=commonDTO.getCommonDescription()%>';

<% }

}%>

for(var i=0; i < <%=details.size()%>; i++) {

var value = str[i];
var text = str1[i];

var opt = new Option(text,value);

document.forms[0].qualification.add(opt);
<% if(editdetails != null){%>
for(var j=0; j < <%=editdetails.size()%>; j++){
if(document.forms[0].qualification.options[i].value == str2[j]){
document.forms[0].qualification.options[i].selected = true;
}
}
<% } %>
I am doing a operation using web application. User able to logged into the web application and can finish the operation successfully first time. If we start the same operation second time then it is calling the create method of ejb session home it is throwing the following exception>

----------------------

CORBA NO_PERMISSION OxO No; nested exception is:

org.omg.CORBA.NO_PERMISSION: java.rmi.AccessException: ; nested exception is:
com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while inviokin (HOME)MySessionBean create: 2 securityName: /UNAUTHENTICATED; accessID: UNAUTHENTICATED is not granted any of the required roles: SecurityRole1, SecurityRole2 vmcidL oxo minor code:0 completed: No

----------------------


Can any one help me or give me any suggestions.

I checked that the logged in user is properly mapped to securityrole.I am sure in that.

FYI: I am using 'FORM' based authentication in my web application. Is it gives any problem with websphere because same application is working in jboss.

Thanks,
16 years ago
to find type of browser

var browser=navigator.appName;

if ((browser=="Netscape"||browser=="Microsoft Internet Explorer")

else
new one this is

function generateRownew(componentcode,abcdefgh) {
alert("dasfdsfsdgfg");
var table = document.getElementsByName(abcdefgh)[0];
alert("inside the table");
if(componentcode.length > 1) {
alert("xyzabcd");
var row = table.insertRow(table.rows.length);
alert("ganagdhar");
if(table.rows.length%2 == 0)
row.className = "odd";
else
row.className = "even";

for(var i = 0; i < componentcode.length; i++) {
alert("the size of i-->"+i);
var cell = row.insertCell(i);
cell.valign = "middle" ;
cell.innerHTML = componentcode[i];


}
}
}
The code I tried with small modifications is working in mozilla and IE
But I can not figure it out the exact problem



function generateRow(componentcode,tableID) {

var table2 = document.all ? document.all[tableID] : document.getElementById(tableID);
var table = document.getElementById(tableID);
var row = table.insertRow(table.rows.length);


for(var i = 0; i < 2; i++) {
var cell = row.insertCell(i);
cell.valign = "middle" ;
cell.innerHTML = "<select name='selectcol'> <option value='1'>1<option value='2'>2</select>";

}


}
function defaultEduItemRows(educationalId, highestCourse, specialization, yearOfPassing, percentage)
{
componentcode = getEduComponentCode(educationalId, highestCourse, specialization, yearOfPassing, percentage);
generateRow(componentcode, "table1");
}



function generateRow(componentcode,tableID) {
var table = document.all ? document.all[tableID] : document.getElementById(tableID);
if(componentcode.length > 1) {
var row = table.insertRow(table.rows.length);
if(table.rows.length%2 == 0)
row.className = "odd";
else
row.className = "even";
if(document.all) {
for(var i = 0; i < componentcode.length; i++) {
var cell = row.insertCell(i);
cell.valign = "middle" ;
cell.innerHTML = componentcode[i];

}
}
}
}
I am getting the following exception in log file after I deployed my application in to server websphere 6.1/Oracle10g combination.


[9/6/08 12:17:28:491 IST] 00000010 LeaseAlarm E SCHD0125E: Unexpected exception while processing the acquireLease operation: com.ibm.ws.leasemanager.LeaseException: SCHD0300E: Error during Database operation, localized message is ORA-00942: table or view does not exist
, Vendor Error Code is 942, ANSI-92 SQLState is 42000, cause: SCHD0308E: No chained exception available
at com.ibm.ws.leasemanager.impl.LeaseStoreImpl.acquire(LeaseStoreImpl.java:272)
at com.ibm.ws.leasemanager.impl.LeaseManagerServiceImpl.acquireLease(LeaseManagerServiceImpl.java:191)
at com.ibm.ws.scheduler.LeaseAlarm.alarm(LeaseAlarm.java:118)
at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:90)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by: java.sql.SQLException: ORA-00942: table or view does not exist

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:796)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1031)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:836)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1124)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3329)
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecuteQuery(WSJdbcPreparedStatement.java:878)
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeQuery(WSJdbcPreparedStatement.java:559)
at com.ibm.ws.leasemanager.impl.LeaseStoreImpl.acquire(LeaseStoreImpl.java:166)
... 4 more

Can anyone help on this issue.. why this type of excepiton will throw...?

Thanks in advance.
16 years ago
Hi look at my sample code jsp.

<html:select property="dd" >
<c:forEach items="${students}" var="student">
<html ption value="${student.RollNo}">${student.Name}</html ption>
</c:forEach>
</html:select>

Only for the selected option value is not generating properly

see the generated servlet code:

<select name="dd" ">
<option value=" ">Name1</option>

<option value="11">Name2</option>

<option value="26">Name3</option>

<option value="51">Name4</option>
</select>

Why only for the first option it is saving as empty string
Other students (options) have proper student numbers.?.

Can anyone suggest some solution for this problem? Or Give any other way to do, I want to set roll nmbers as their option values.
16 years ago
In my page, I have a text area.. which is fo edit any java code... i want to make this code in text area as java chroma code (means to make code in diff colours for diff identifiers...) is there control to change the editor as chroma editor for java..

Any one know the solution can reply me..

Thanks,
Satish
Hi,
In my page i have browse button which uploads only a particular type of files (.txt). How to make browse button to diplay only .txt files in popedup window?..

can any one send solution for above prob?.

Thanks,
Satish
17 years ago
JSP
How to unload or replace the .class file from jboss server using classLoader without restart and redeloy into the server. If unload is possible, i just unload the prev .class file and load the modified .class file...if replace is possible, i just rewrite with my modified class.

can anyone give me solution for this....

Thanks,
Satish.A
17 years ago
Actually i have some jsp page by using modify button in my page i will modify some script file(my local .java/.class file) in jboss server.

After restarted the server, then only the modified script is coming means that updated .java file is not reloading with restart the server.

I tried with one more option by making reloadable=true in context.xml
<Context cookies="true" crossContext="true" reloadable="true">
its not working.
can anyone send the solution for this.

Satish.A
17 years ago
can you suggest me any other option for working along with this?.
18 years ago
no, oTab.rows giving as 'unDefined'
18 years ago
After that i did run this test case by some input values.

By that I can sure you that 'oTab' is getting some html element rather than getting null.
18 years ago