Alex Grig

Ranch Hand
+ Follow
since Oct 19, 2001
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Alex Grig

Hi NELL,
you'd better check it one time more.
setAttribute(string name, Object o) IS method of request.

Originally posted by NEEL:
It is session.setAttribute(String name,Object o);
and not request.setAttribute();
In fact request object does that have any setAttribute() method associated with it.

16 years ago
JSP
Hello.
Suppose, i created session object at www.foo.com (or http://localhost:8080).
Could anyone explain me how to get this session object from different host my.foo.com (or http://localhost:8081).
So if session object lives in memory on the servlet container it must be some ways to keep session in multihost environment.

------------------
Alex J.Grig
16 years ago
Hello,
I'm trying to deploy web-application on the following way:
1/ create one domain;
2/ create 3 servers within this domain
- serwer "www";
- server "search";
- server "member";
3/ create 3 web-applications
- "www-app";
- "search-app";
- "member-app";
4/ and finally 3 virtual host;
- www.myapp.com;
- search.myapp.com;
- member.myapp.com;
So, now i want to run "www-app" on server "www" calling http://www.myapp.com, and so on ...
Can you give me a clue, how to get it works!
------------------
Alex J.Grig
16 years ago
Hi,
Can anyone help me out.
When i run my application on Oracle8i(under Linux) the ERROR message appear for
any jsp files that contain the following lines:
<% String path = "mypath"; %>
<% request.setAttribute("PATH", path); %>

----------------error message-----------------
Request URI:/testproject/www/index.jsp
Exception:
oracle.jsp.provider.JspCompileException:
Errors compiling:c:\oracle\ora81
\apache\apache\htdocs\_pages\_testproject\_www\_index.java
c:\oracle\ora81
\apache\apache\htdocs\_pages\_testproject\_www\_index.java:54:
Method setAttribute(java.lang.String, java.lang.String) not
found in interface javax.servlet.http.HttpServletRequest.
request.setAttribute("PATH", path);
^
1 error
------------------------------------------
All this files run on JRun*.*, JBoss,
Tomcat*.*, ... well.
Thank in advance.
------------------
Alex J.Grig
[This message has been edited by Alex Grig (edited December 16, 2001).]
16 years ago
Hi,
Can anyone help me out.
When i run my application on Oracle8i/9i(under Linux) the ERROR message appear for
any jsp files that contain the following lines:
<% String path = "mypath"; %>
<% request.setAttribute("PATH", path); %>

----------------error message-----------------
Request URI:/testproject/www/index.jsp
Exception:
oracle.jsp.provider.JspCompileException:
Errors compiling:c:\oracle\ora81
\apache\apache\htdocs\_pages\_testproject\_www\_index.java
c:\oracle\ora81
\apache\apache\htdocs\_pages\_testproject\_www\_index.java:54:
Method setAttribute(java.lang.String, java.lang.String) not
found in interface javax.servlet.http.HttpServletRequest.
request.setAttribute("PATH", path);
^
1 error
------------------------------------------
All this files run on JRun*.*, JBoss,
Tomcat*.*, ... well.
Thank in advance.
------------------
Alex J.Grig
[This message has been edited by Alex Grig (edited December 16, 2001).]
16 years ago
JSP
But (int)(0.99999999999999 * 26) = 25

------------------
Alex J.Grig
ASCII code for 'Z' is 90!
------------------
Alex J.Grig
Thanks rane,
I get it for the code above.
Please clear up the following words
"It is ok to pass null as an argument to a method, as long as the method is expecting it. Some methods do; some do not. So, for example, System.out.println(null) is ok, but string.compareTo(null) is not."
What does it mean "as long as the method is expecting it."?
------------------
Alex J.Grig
Hi friends.
Please explain why it works:

So if we can't instantiate Math, so it must be null?

------------------
Alex J.Grig
Hi friends.
I can't find any solutions for this problem.
Anyone can show me the way how to create mail account from client-side.
Thanks in advance.
------------------
Alex J.Grig
16 years ago
Hi
Integer.MIN_VALUE = -2147483648;
it seems that Math.abs(-2147483648) return 2147483648;
but Integer.MAX_VALUE = 2147483647;
The rule is simple:
Integer.MAX_VALUE + j --> Integer.MIN_VALUE + (j-1);
2147483647 + 3 --> -2147483648 + (3-1);
2147483647 + 3 --> -2147483646;

------------------
Alex J.Grig
According to the "Complete Java 2 Certification Study Guide" we can summarise "After each container is constructed and assigned an appropriate layout manager, the conteiner is poppulated with the components it is to contain"
------------------
Alex J.Grig
Hi James,
The problem is after line
setLayout(new BorderLayout());
Pay attention to the following rules:
1. Construct the frame.
2. Give the frame a layout manager.
3. Populate the frame (in you code above you omit this step)
...
So now simply add your button after line (means frame is populated with the components)
setLayout(new BorderLayout());
and it'll work.
------------------
Alex J.Grig
[This message has been edited by Alex Grig (edited October 31, 2001).]
Hi Latif,
I've checked this problem by calling to one test center. They said you can order vaucher directly in center. They will contact SUN and at most after 1 week you'll get it.
The test center in your city:
-------------------------------------------
Center: II00A SYLVAN TESTING SERVICES P LTD
MARWAH HOUSE, 3 MARWAH ESTATE
KISHANLAL MARWAH MARG
OFF SAKI VIHAR ROAD SAKINAKA
ANDHERI E MUMBAI, 400072
------------------
Alex J.Grig