This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

Mariusz Bogucki

+ Follow
since Mar 09, 2004
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 Mariusz Bogucki

Is there any way I can get a hold of the parameters going to the j_security_check?(Tomcat) because filters dont work on j_security_check?
I've found a dozen of questions about that topic on the web but no answers?

I just need to load some more informations to the bean from the DB about the user when he is logging in but form autentication simply sends the user to the requested resource if the username and the password are correct, and there is no room to do the above.
I am using tomcat, I know that some other servers ofer certain ways to do that but tomcat not even filters work, and they seem to be the best way to do that
12 years ago
does anybody know where i can download milestone 6 from?
it is no longer on netbeans website
i am using nb 4.0 and only profiler that i could find there is for nb4.1, dont they support nb4.0 anymore ,and there is no archive for the older versions of this profiler or i just cant find it?

[ August 03, 2005: Message edited by: Mariusz Bogucki ]
[ August 03, 2005: Message edited by: Mariusz Bogucki ]
ok I 've figured that out, I tried to connect by the telnet on that port and it did not respond either so I found out that it will accept connection on port 26, but the default port is 25 and I dont know how to change it?
anybod knows?
I could not find it in the API
12 years ago
Can somebody tell me why cant I connect to the server and why I am getting this error message?
java.lang.Exception: Could not connect to SMTP host:, port: 25;
nested exception is: Connection timed out: connect

I am awriting here because i have already tried three different servers that offer pop3 and could not connect to any of them so is it my code or the server problem?

Itried and sth else dont remember...

* Created on June 8, 2005, 2:56 PM

package uploader;
import java.util.*;
import javax.mail.*;
import javax.mail.event.*;
import javax.mail.internet.*;

public final class MailerBean extends Object implements Serializable {

/* Bean Properties */
private String to ="";
private String from ="";
private String subject = "ok";
private String message = "oki";
public static Properties props = null;
public static Session session = null;

public void sendMail() throws Exception {

props = System.getProperties();
props.put("", "");
session = Session.getDefaultInstance(props, null);

try {
MimeMessage message = new MimeMessage(session);
new InternetAddress(;
message.setFrom(new InternetAddress(this.from));
} catch (MessagingException e) {
throw new Exception(e.getMessage());

/* Checks whether all properties have been set or not */

[ June 08, 2005: Message edited by: Mariusz Bogucki ]
12 years ago
Thank You very much.
heh, very simple, I has been long time since I used JS, I guess its time to review...

I have a little problem. I have a simple form that takes me to some, it looks sth. like this:
textfield name
textfield name
dropdown list of items
go button

I use struts
now after I push the go button, form is populated, I am redirected to the action servlet, values are evaluted, if any errors I return to this page, no problems everything is fine.
Ammong the items I also have new item if new item is selected as an opction I am taken on my way through the new Item webpage and again I come back to the primary site, no problem with repopulating the form since I keep the bean with its values.
But the problem arises when I try to use dropdown list to navigate. WHen I change the focus on my dropdown list I want the page to be reloaded according to the value that is selected on the dropdown list. I use javascript for that. So I basicly redirect to some action servlet that is always used before redirectting to this page. Now my problem is that when i use redirect from the javascript no action form is created or at least I dont know how to do that and I lose the content of name fields. I could pass them as a parameters but it sounds kind of messy. so how can I navigate from the javascript function responding to onchange atribute so my actionForm were populated with the valuse taht are already typed.

this is my javascript,I would like to know if there is any way to use action of the form that the list belongs to, from the javascript after changing focus on the dropdown list

<script type="text/javascript">
function schoolChange(form){
selInd =;
ID =[selInd].value;

top.location.href =""+ID;


I hope you understood ...

Thank you

[ April 29, 2005: Message edited by: Mariusz Bogucki ]
[ April 29, 2005: Message edited by: Mariusz Bogucki ]
I am intrested in participating

13 years ago
I think I had no more than four or five questions about clasic tags, easy ones . I took it yesterday.
Dificult questions for me were the ones about the "Structure and development of web application" very ambigous answers, especially about the war files. 5 questions about design patterns but very easy.Other than that no problems, plenty of time I had another hour left when I finished last question. I read "head first.." about a month ago and have not studied since than. I started preparing about a week before the exam 3 hours a day, first I took the exam at the end of the book scoring around 60% than I focused on the questions I failed. Day before the exam I reviewed and tried to memorize some APIs and dd elements.
Cant get EL working using NetBeans, and I cant find any info about configuring it. Could anyone please help me ?
thanks for reply
I have actually figured that out already. I just had a wrong name for the form bean associated with the action class in my code thats why it did not work before.
13 years ago
could somebody tell me how to get access to the parameters that are used to repopulate the form with struts?

for example from my action class i would like to manipulate the parameters that are send to repopulate the form
[ February 26, 2005: Message edited by: Mariusz Bogucki ]
13 years ago