nalini peddareddy

Greenhorn
+ Follow
since Jul 18, 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
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 nalini peddareddy

Hi,

Problem: In the existing architecture, our application uses SOAP with MIME
to send attachments to a .NET webservice.

It is not able to send an attachment of more than 4.5MB successfully to a .NET webservice.

I have read somewhere that it would be possible with (SOAP with DIME) to send huge attachments.

Could anyone please tell me how to modify the code accordingly from MIME to DIME in java for sending large attachments?

It's a bit urgent .......
17 years ago
Hi,

Could any of you please let me know if there is any way for transferring uploaded files from java application to .net application without using Web Services?


Thanks, in advance
P.N.Reddy
17 years ago
Thanks a lot guys, i should probably go ahead with charAt() function in a for loop. I got it.
17 years ago
Hi,

I tried starting like this. I have to count the number of times 'a' is occuring. But the indexOf and lastIndexOf() methods give the indexes.How do i write the logic to get the number of occurences? seems to be very basic.. but need help.

class CountChar
{
public static void main(String[] args)
{
countchar("banana");
}

static void countchar(String str){

int i= indexOf('a');
int j= lastIndexOf('a');
System.out.println("i is:"+i);
System.out.println("j is:"+j);

}
}


Regards,
P.N.Reddy.
17 years ago
Hi,

I am working with Strings and i have a requirement where in i have to count the number of occurences of a character in a String.I tried doing it with indexOf() method but could not do it.Could any of u help me with this?
Its really very urgent.


Thanks, in Advance
P.N.Reddy.
17 years ago
Hi,

I know every JSP is translated into Servlet and JSP could better act as a presentation layer. A JSP can do all that a Sevlet can do. Then what is the main difference between both of them? Servlets are preferred to be used for business logic. Why not JSP's when JSP also is finally a servlet?


Could anyone please clear my doubt?


Regards,
P.N.Reddy
17 years ago
JSP
Hi All,

I am trying to migrate from Weblogic to JBoss. We have imported the following packages in our application currently.
1.weblogic.logging.NonCatalogLogger,
2. weblogic.common.T3ServicesDef,
3. weblogic.io.common.T3FileSystem
4. weblogic.io.common.T3File


What packages should i be using to perform the same functionality with JBoss.


Could any one please help me out?


Thanks in advance,
NaliniReddy.
17 years ago
Where can we find the steps for installing the Weblogic 7.0 on Linux machine. Could anyone help me in this?
17 years ago
Hi,


Just need to know some info if at all we can pass a java object(Hashtable) to a Java script.


Please help me out ...very urgent...


Regards,
Nalini.
17 years ago
JSP
Hi,
I have a problem opening a video file in a browser through an application.

Techhologies used are servlets and templates

Here is the flow for ur understanding.

I have a link in a template clicking on which calls a javascript(openWindow)taking the url as parameter)Before opening the file the following process takes place.

Reads the file from the database and stores it in a filestore(some folder in server)

//Write the file from BLOB (taking the file data from database)

and then stores it in filestore by taking fileID and filepath.fileIdentifier is the filename.

File oFile = new File(filePath + "/" + fileIdentifier);
out = new BufferedOutputStream(new FileOutputStream(oFile),
bufferSize);

//create byte buffer and start reading the file
byte[] b = new byte[bufferSize];
int count = in.read(b, 0, bufferSize);
logger.debug("Writing file now");

while (count != -1) {
logger.debug(".");
out.write(b, 0, count);
count = in.read(b, 0, (int) bufferSize);
} // end count!=-1

logger.debug("Complete");
out.flush();
out.close();
out = null;
in.close();
in = null;


After all this process it opens a new window displaying the content of the file

This is all working fine for text files, docs and images but is not the case for opening an audio and video file. For video file ,it opens a new window displaying junk text.


Here is the javascript called on clicking the link in the template.


function openFileinWindow(url, width, menubar){
if(!window.window2){
// has not yet been defined
window2=window.open(url,'new1','menubar=' + menubar + ',toolbar=yes,scrollbars=yes,width=' + width + ',height=450');
// window2=window.open(url);
}
else{
//has been defined
if(!window2.closed){
// still open
window2.close();
}
window2=window.open(url,'new1','menubar=' + menubar + ',toolbar=yes,scrollbars=yes,width=' + width + ',height=450');
}
}

Could you please help me out in this topic?

Thank you
17 years ago
Hi,

I have a program with 2 combo boxes .One for date and one for the month.
When i select january it has to give me 31 days and 28 days for Feb.In case it is a leap year then it has to give me 29 days.

I have written a code for the combo boxes..but could any of u help me out or provide me with some learning as how to map those day and month.

Here is my small code..
FONT class="def_pos2">Date of Birth<br><b> (Required Format: MM/DD/YYYY)</B></FONT></TD>
<TD width="50%">

<SELECT name="MonthOfBirth" WIDTH="25">
<% for(int i=1;i<=12;i++) {%>
<OPTION value=" <%= i %> " > <%= i %></OPTION>
<% } %>
</SELECT>

/ <SELECT name="DayOfBirth" WIDTH="25">
<% for(int i=1;i<=31;i++) {%>
<OPTION value=" <%= i %> " > <%= i %></OPTION>
<% } %>
</SELECT>




Please help me out..


Thanks and Regards,
Nalini.
18 years ago
JSP
Thank u Paul,Sai and VidhyaSagar..


Nalini
18 years ago
JSP
Hi All,

Could any of you please help me out in telling as how do we append three text field values and return one value to the servlet.
Actually i have a field SSN(Social security Number) which has 3 text fields.
I need to append all the values and then get the whole value in my servlet thru req.getParameter(SSN);

Please anyone help me out...Its very urgent


Thanks in advance,
Nalini.
18 years ago
JSP
Thanks a lot Satish...Surely will help me out..
18 years ago
JSP
Hi,

Could any of you please explain me that other than separating the presentation logic from business logic,what are the other advantages of JSP over Servlets.JSP can do everything that servlets do..Then when do we go for Servlets and when for JSP and why? This is the most regular question I have come across in interviews.

Could you all please help me out.

Regards,
Nalini.
18 years ago
JSP