Nicolaos Kormara

Greenhorn
+ Follow
since Apr 30, 2006
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 Nicolaos Kormara

Hello to everyone. The problem I am having is the following: I can successfully update data in a specified workbook using the aforementionned api. Afterwards I manage to open the same workbook using the runtime object.
Once I have viewed the document, I wish to programatically close the same
document that is on my screen and has just been opened, but cannot seem to
find a way. All works fine until i wish to close the document. Could anyone
please help me with this particular problem. Thank you in advance.
Hello to everyone. I am currently experiencing a problem using regular expressions. I am new to this topic, which is perhaps
one reason I am experiencing difficulties. In my application, I am reading strings and for every string I retrieve content located
between the following characters: '>' and '<', such as: >xxxxx<. Initially I only wished to retrieve information that was in decimal
format or percentage format. I used the following:

String regEx = ">([-]?)[0-9]+\\.[0-9][0-9]([%]?)<";
(I wish to keep the surrounding >< .

Everything worked fine until this point. The problem I am now having is that I wish to retrieve the content between the >< characters if they
are in decimal/percentage format or if the word EVEN is written. I tried the following:

String regEx = ">([-]?)[0-9]+\\.[0-9][0-9]([%]?)< | ^(>EVEN< $";

but when I ran my application, all values were now null.
Could someone please help me. Thank you in advance for any help.
17 years ago
I have just started to look at the mechanism of SessionListeners with your example. I feel it will be quite useful.

Thank you very much for your response and help
17 years ago
Hello everyone.

I was just wondering if it is possible to retrieve a list of all active sessions in a servlet container.

Could anyone please point me to an article so that I may learn how this could be done.

hank you.
17 years ago
Hello everybody.

My question concerns two sessions opened by the same user, at the same time.
Specifically what I wish to avoid is the user logging in a website with two browser pages.

Currently to avoid this problem, as soon as the user logs in and is authenticated, I place a variable using :

servletContext.setAttribute(userName, USER_SESSION + userName);

//USER_SESSION is a String declared final static.

The next time the same userName and password is used to log in, I try and retrieve the value stored under the userName key. If it exists, then the user is kicked out otherwise he/she is allowed to procede.

What I am wondering is if this an acceptable mechanism of making sure a user does not open two sessions? If not, could someone please suggest another method or point me to an article where I could read how it best to procede in such circumstances.

I appreciate any suggestions. Thank you.
17 years ago
Just had a look again at my code again. I had become so focused on finding a problem where there wasn't that I completely overlooked the obvious. Code is now working, thank you and sorry about the question...
17 years ago
JSP
Hello to everyone.
I have created a custom tag class that has the following code snippet:



The page variable is a struts action entitled "login.do". That will return a jsp page "login.jsp".

What I wish to achieve is the retrieval of the attribute I have set in the custom tag class in the resulting login.jsp. So far, the aforementioned code has not yielded the results I hoped for. Any help with my problem would be greatly appreciated.
17 years ago
JSP