Sergey Baranov

+ Follow
since Aug 27, 2005
Sergey likes ...
Python C++ Java
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sergey Baranov

According to specification:

Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
The servlet container calls the init method exactly once after instantiating the servlet. The init method must complete successfully before the servlet can receive any requests.

11 years ago
It's all in the documentation:

Overriding this method to support a GET request also automatically supports an HTTP HEAD request. A HEAD request is a GET request that returns no body in the response, only the request header fields.

When overriding this method, read the request data, write the response headers, get the response's writer or output stream object, and finally, write the response data. It's best to include content type and encoding. When using a PrintWriter object to return the response, set the content type before accessing the PrintWriter object.

11 years ago


public int indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring. The integer returned is the smallest value k such that:
this.startsWith(str, k)
is true.

str - any string.

if the string argument occurs as a substring within this object, then the index of the first character of the first such substring is returned; if it does not occur as a substring, -1 is returned.

11 years ago
I meant programmung language.
In Java you can use jpcap, as Rob said.
What version of IE?
11 years ago
Check the classpath of the jdbc driver. WebSphere can't find jar file containing OracleXADataSource class or jar file doesn't contain it.

Also you need to restart node after new data source was created. try to do it if not did yet.
11 years ago
Another one tool(as addition to the list above) is Jude.
It's not hard at all.
Sockets programming is quite simple if you don't need in high speed or something like that but of course it also depends on what you need to transfer over sockets (in other words - it depends on complexity of problem to be solved).
Language? Type of packet (what protocol)?
You can set session attribute as in code snippet below:

String userName = someDaoClass.getUserName();
HttpSession session = request.getSession();
session.setAttribute("userName", userName);

And then get access to variable "userName":
HttpSession session = request.getSession();
String userName = session.getAttribute("userName");

userName attribute will be available unless and until session will be valid.

Is it what you need?
11 years ago
If you're using Apache AXIS you can simply use --package option when generating java classes from WSDL.

java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI
-p, --package <argument>
override all namespace to package mappings, use this package
name instead

11 years ago

Can I using jython-script(wsadmin) make "Override session management" property on page "Enterprise Applications > App1 > Session management" checked ?

15 years ago

I hope anybody can help me in little problem.
I need to make custom authenticator module for JavaMail which use Kerberos.
1. JavaMail gets TGT as administrator.
2. Then, using admin's TGT, JavaMail requests TGS for some user (or _as_ some user).

How can I make this ? Any information will be useful.

More detailed:
JavaMail -> request. TGT from KDC as admin
KDC -> response. Admin's TGT to JavaMail
JavaMail -> request. User's Service Ticket from TGS using admin's TGT
TGS -> response. User's TGS.

Best regards, Sergey.
15 years ago
I need any documentation about how to transfer audio/video information via IRC protocol(I think, DCC must be used).
Can anyone give me links to tutorials/articles/source codes ?
This is for network communications system. Will be written in Java.