This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Ambika Jain

Ranch Hand
+ Follow
since Jan 27, 2005
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 Ambika Jain

What I mean is :
& l t ; Data & g t ;

when I post this reply, I get it converted to < and >
10 years ago
my problem is that, the xml is getting saved as

<Data>100</Data> instead of <Data>100</Data>

Thanks,
10 years ago
Hello,

I want to save xml in java string. For example <data>100</data>.
When I save this I get <data>100</data>
what should I do to save it with < and > brackets.

Thanks !
10 years ago
Hello,

The client api provides us with a method that returns DOM document. The method processes the XML and the XML need not adhere to any schema.

In order to display the content of this document, I want to use SAX parser. Is there a way, I pass this document to SAX parser ?

Or, is there any other way to do this.

Thanks in advance,
When we call the "public static void main(String args[]) " method, why is the constructor not called. Is it not initializing the class.

When I execute this class: It does intialize the variable i and the static block. Why is the constructor not being called ? Why does constructor get called only when we create an instance using "new". In the program below is "Allgo" object not getting instantiated when the main() is getting called ?

public class Allgo {
static int i=6 ;
static {
System.out.println("--static--"+i);
}

Allgo(){
System.out.println("--const--"+i);
}
public static void main(String args[])
{
}

Thanks in advance
11 years ago
My application has 2 tabs and the user can add the details in both the tabs. But only when he clicks on "Save", which is in the first tab only, the info in both the tabs gets saved.
For such scenario is it a good idea to use 2 forms of the 2 tabs and one action class ?
Also does anyone has a sample program using multiple forms with one action class ?

Thanks
11 years ago
Thanks Daniel .

Your link is very helpful.
I am able to achive this using few changes in the ActionForm file.
Just wanted to know if this is right way of doing it ?


Thankyou.

--merrill-- Added [ c o d e ] tags
[ January 26, 2007: Message edited by: Merrill Higginson ]
11 years ago
I need to do a Multiple File Upload using Struts in my web app.
Its easy to do a single file upload using the FormFile.
But how do we implement for multiple file upload.

Any help will be appreciated.

Thanks
11 years ago
I need to do a Multiple File Upload using Struts in my web app.
Its easy to do a single file upload using the FormFile.
But how do we implement for multiple file upload.

Any help will be appreciated.

Thanks
11 years ago
I have a javascript functioned defined which accepts a String array as the input. I am not able to do this.

Thanks,
Amba
[ November 21, 2006: Message edited by: Bear Bibeault ]
Hi,

I have defined 15 methods in my wsdl and its too long to maintain. So I created a separate .xsd file to add all the types in it and updated the wsdl as :

<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://api.test.com">
<xsd:import schemaLocation="sch.xsd"/>
</xsd:schema>
</wsdl:types>

But still the remaining message, operation and binding makes the file too huge to go thru easily. Is there a way I have put these stuff in different file and call it from .wsdl. OR any other pattern?

Thanks,
Amba
11 years ago
Hi,

I am using Axis 1.3 for webservice with Java. I have overloaded methods defined in my wsdl. The java classes generated with wsdl2java are fine and everything gets deployed properly. But when I try to execute the overloaded methods from the Client side, I get exception :

" org.xml.sax.SAXException: Bad types ..."

Can you please help me with this? Is it that overloaded methods are not allowed or I am missing something when we have overloaded scenario.

Please let me know if any more info is required from my end.

Thanks in advance,
Aparna
11 years ago
Hi,

I am having an ArrayList containing 10 elements. I want to jumble to elements in the list everytime I access it. Something like:

[1,2,3,4,5,6,7,8,9,0] should get jumbled up like

[4,5,3,2,6,1,9,8,0,7]

Can you please help me with this ?

Thanks in advance !
11 years ago
Hi,

I want to resize the frame, to fit into the PDA (Pocket PC) screen.
I am able to resize the table by adjusting the value of tableHeight and tableWidth (as shown below). But one of my screen has frames and I am unable to resize it.

<TABLE id=Table1 height=<%=tableHeight%> width=<%=tableWidth%> cellPadding=1 align=center border=0>

Thanks

[Bear edit: removed "URGENT"]
[ June 24, 2005: Message edited by: Bear Bibeault ]
Hi,

I am new to structs. I have just tried out one sample program. To get the value of field in the jsp, I give it as <%=ProductName%>
When the page is first loaded, its null, so it displays null in that field.

I am doing check in my jsp for null and replacing it with "".
Is there a better way to do this in structs. So that all the fields that are null, displays "" initially.

Thanks
12 years ago