Manjunath Reddy

Ranch Hand
+ Follow
since Jul 26, 2001
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 Manjunath Reddy

A lot depends on what the two variables collected..end up doing. Are they parameters for search ...i guess immaterial of what they are, one can use html to collect the parameters and and use a "statelessSessionBean" in jsp to call the right method to process them. Then SSB can then delegate the request to either the appropriate EJB or do the transaction by itself. Without the specifics...cant say much. But i guess this should get you started.
Cheers!
Id rather have the gateway class(servlet) to be further neatly demarcated into business facade for implementing various functionalities.
Like paymentGateway
DBGateway,
PersonalizationGateway...and so on.
This will aid any enhancements and keep the source of the gateway managable while also maintaining the size of the class for easy debugging.
just my .02
22 years ago
JNi
Seems the directory url got messed up again...here it goes
3.Use notepad or vc++ editor to write the implementation, the file includes the jni.h file found in c:\jdk1.3\include directory.
JNi
Trupti,
For simplicity sake lets assume that you are working in the c:\jni folder.
Here are the steps( All files are generated in the same folder)
1.Write the .java file
2.Use Javah utility to generate the .h file
3.Use notepad or vc++ editor to write the implementation, the file includes the jni.h file found in <jdk install folder>/include directory.
4.Compile using the following attributes
C:\jni>cl -Ic:\jdk1.3\include -Ic:\jdk1.3\include\win32 -LD TestImp.c -Fetest.dll.
Output is something like
C:\jni>cl -Ic:\jdk1.3\include -Ic:\jdk1.3\include\win32 -LD TestImp.c -Fetest.dll
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
TestImp.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/dll
/implib:test.lib
/out:test.dll
TestImp.obj
Creating library test.lib and object test.exp
5.You might see that the file test.dll or test.so(linux) is generated in the folder
6.Run your sample Class..and u must see the result.

Hope this cobbled up stuff helps...
Lemme know if you have any specific probs.
Cheers!
JNi
Trupti,
As far as i have seen and used JNI, it doesnt require a real "Book" to illustrate its concepts, as its pretty easy to follow. Why dont you check out the java.sun.com <http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html>; or start from
src of sample dlls written for JNI.
One can take off from there and write his own dll's and start using/testing them thru java.
my .02,
Cheers
This link to an article written sometime back forces the browser not to interpret the attachment but download it.
http://www.planet-source-code.com/xq/ASP/txtCodeId.2183/lngWId.2/qx/vb/scripts/ShowCode.htm
Hope this helps.
cheers!
22 years ago
Why not use String sessionId = session.getId(); ?
22 years ago
continuing ur logic...use else condition to display the news list for all other cases
else { %>
<%@ include file="display_news.jsp" %>
<%
out.println(" </td></tr>");
out.println(" <tr><td>");
} %>
22 years ago
i couldnt find the above method....but whats wrong with request.getParameter("Amount")?
22 years ago
No comments with respect to HTTP response...but i have used this to write ms-word or pdf files to the client.
22 years ago
As far as i know there is no way to get the field values in a specified order....
But im interested to know why cant there be a good design to take care of
"This servlet needs to get the parameters sent to from the page in the same order it is sent... "
mpr
22 years ago
Enumeration e = session.getAttributeNames();
while ( e.hasMoreElements() )
{
String key = (String)e.nextElement();
out.println( key + " = " + session.getAttribute( key ) + " <br>" );
}
mpr
22 years ago
Isnt "ALL" different from "All".
It might be the comparison problem..while ur html posts "All"..u r looking for "ALL"
cheers,
mpr
22 years ago