somin bhuvan

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

Recent posts by somin bhuvan

Hi,

How to set the Dynamic Title in the Portlet in RAD 7.0


-Bhuvanesh
Hi,

I have a ActionForm which contains 3 attributes like:-

Phone, Email, Credit Card

Validation.xml contains validation for above attributes.
My Page behaves kind of pagination,

In 1st Page it has only Phone
In 2nd Page it has Email and Credit Card

While i validate for 1st Page; the other two validation also comes into the first page as those validation are done in Validation.xml. I dont know how to neglect the other two validation at run time for the first Page. Please help me.

Regards,
Bhuvan
17 years ago
Hi,

I have a ActionForm which contains 3 attributes like:-

Phone, Email, Credit Card

Validation.xml contains validation for above attributes.
My Page behaves kind of pagination,

In 1st Page it has only Phone
In 2nd Page it has Email and Credit Card

While i validate for 1st Page; the other two validation also comes into the first page as those validation are done in Validation.xml. I dont know how to neglect the other two validation at run time for the first Page. Please help me.

Regards,
Bhuvan
17 years ago
Hi,

I am trying to invoke url from java. I used the following code to do this:



URL url = null;

HttpURLConnection connection = null;

InputStream inStream = null;



Authenticator.setDefault(new UserAuthenticate("itlinfosys\\chaya_somanchi", "mypwd"));

System.out.println("After Authenticator");

String proxy_addr = "172.25.232.28";

int proxy_port = 80;

addr = new InetSocketAddress(proxy_addr,proxy_port);

System.out.println("After SocketAddress "+addr.toString());

System.out.println("Proxy Type: "+Proxy.Type.HTTP.toString());

proxy = new Proxy(Proxy.Type.HTTP, addr);

connection = (HttpURLConnection)url.openConnection(proxy);

connection.connect();

inStream = connection.getInputStream();

return inStream;





But there is some problem with Proxy.Type.HTTP. Its not showing any error or exception. In the console, it just stops after printing �After SocketAddress� line. I have manually tested my proxy address and port in IE and they are correct(iam able to connect to internet using these).



Do let me know if you have any suggestions on this. Or it would be great if you have any other code to invoke a url. I just want to invoke a url like google.com and get the resultant html as an inputstream.



Thanks in advance.
18 years ago
Hi,

I got 10 ActionForms and I have given all these ActionForms in DynaActionForm like this:-
<form-beans>
<form-bean name="dynaForm" type="org.apache.struts.action.DynaActionForm">
<form-property property="firstForm" type="com.pack.FirstForm">
<form-property property="secondForm" type="com.pack.SecondForm">
.
.
.
.
<form-property property="lastForm" type="com.pack.LastForm">

</form-beans>

Each actionform has a keyword property.
My problem: i need to access keyword property of a particular actionform thru dynaactionform in a JSP File. How to do tat? Please help me.

Below is the jsp file which am trying to access the keyword property of a particular actionform thru dynaactionform but it doesn't work.
JSP File
--------
<html:form action="\SomeAction.do name="dynaForm" type="org.apache.struts.action.DynaActionForm">
<html:text name="firstForm" property="keyword">
</html:form>
18 years ago
I read the document given in the below link

http://www.inonit.com/cygwin/jni/helloWorld/load.html

But the same steps which given here will be applicable for calling VB ActiveX DLL methods too. In C/C++, the native methods are implemented but how come we are going to implement the native method in VB ActiveX DLL. Could you clarify this doubt.
19 years ago
Am trying to call VB ActiveX DLL Function thru JNI. The steps which i done so far:-
1) Written the Java Class to load DLL using System.loadLibrary or System.load method
2) Written the Simple VB Function and build into dll

Till this when i tried to call the function, am getting UnsatisfiedLinkedError.

After this by reading some websites i came to know tat VB Function can be called via VC++ DLL.
3) Wrote VC++ DLL and made a dll build.

The above steps can be seen in the below link
http://forum.java.sun.com/thread.jspa?threadID=348424&messageID=3016546#3016546

After this too am still getting runtime error (UnsatisfiedLinkedError)

Could you please provide some alternate Solutions.
19 years ago
Is it possible to call VB ActiveX DLL Function from Java. If yes, how to do that. could you please explain in steps; that will be grateful.

Regards
Bhuvanesh
19 years ago
Hi,

I should write a program to communicate Java (JNI) with VB ActiveX DLL. Could you please send a sample program like displaying a value in Java by calling the method in DLL.

Thanks in Advance

Regards
Bhuvanesh
19 years ago
Hi,

I think,

1)SingleThreadModel is used in server side and Synchronization is used in client side.
2)SingleThreadModel is for servlets and Synchronization is for Multithreading.

This is the difference i knew. But the thing is both do the same function and i want to know some more differences.

If am wrong please correct me.
19 years ago
Hi,

What is the difference between Object.equals() and String.equals(), how this method internally works for both the classes.

- bhuvan
19 years ago
Hi,

I like to know difference between Synchronization and SingleThreadModel.

- bhuvan
19 years ago
Thanx Bear for your solution.
Hi,

I like to include html file inside another html. Here am using only html file and not any jsp file. Is it possible to include a html file inside a html file. Looking for response.

For example,
If we go for jsp file there we include like <%@ include file="xx.html">

In similar way i need in a html file.

Note: Here we should not use any frameset.


-bhuvan
Hi,

I need to display chinese characters in the oracle portal pages but i should not use <meta tag> instead i should use <table lang="CN">. The sample code is
<table lang="CN">
<tr>
<td width="71%" valign="top">
������������������������������������FCI����������������������������������������������������������������������������������������������������������
FCI�������������������������� <br>

</td></tr>
</table>

The above code doesn't display chinese characters automatically while i load the page but if i encode manually, it converts to chinese characters but as soon as i refresh that chinese characters gets disappeared. Will anyone help me how to display chinese characters while loading the page.
19 years ago