[java ee programming] Question

2009-02-06 Thread Chase Hainsworth

How much Java experience do you think you would need to manage and add  
to a MMORPG that runs on a server? If needed, what other experience  
would I need? Thanks.


~Life is but a grain of sand on an endless beach~

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] what is the difference between web server and web container

2009-02-06 Thread Anas

hello there
what is the difference between web server and web container ?
is the web container part of web server ?
is servlet web container or web component ?
thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] current java distributed computing technologies

2009-02-06 Thread Ken
I tried to understand the current available java distributed computing
technologies. I have the following list, I guess Web Services/SOA
should be the latest technology. please advice.

RMI
CORBA
Web Services/SOA

thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] LAB-4018 Web Application Security

2009-02-06 Thread SuperHeo

...
1. Only parentabstract abstract role can access the application - you
will have to modify web.xml
2. An invalid user "xyz" tries to access the application, a your own
error page (HTML or JSP page) called myownerror.jsp should be
displayed indicating the error condition.
3. Users "sang", "young", and "anotherparent" should be able to access
the application.
...

Can anybody help me to clarify the 2nd request ?
"An invalid user "xyz" tries to access the application, a your own
error page (HTML or JSP page) called myownerror.jsp should be
displayed indicating the error condition.".

When you have run the project, a browser prompt your username and
password to authenticate. If you enter an invalid user such "xyz",
"abc" (non-existence in realm), it (browser) will prompt again until
you cancel or enter an valid user. But following the second's request
its mean: if an invalid user has entered, server will response error
page to user.
I can't do follow this way because I don't know where to inject code
when a user inputed username/password to verify.

Thank!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Lab -6 Expression Language

2009-02-06 Thread Constantine J Coutsoukes


Can you post your code? Classes and JSp.

-Original Message-
From: java-ee-j2ee-programming-with-passion@googlegroups.com
[mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of
skhare
Sent: Friday, February 06, 2009 12:06 PM
To: Java EE (J2EE) Programming with Passion!
Subject: [java ee programming] Lab -6 Expression Language


hi,

Do Person and Name class have to be plain Java classes or have to
follow Java Bean Naming conventions? I have made both of them as beans
(added setters and getters and made no-arg construcor) I am missing
something because of which I am not able to access using dot operator
or [ operator in jsp. ( I have added Person as attribute in servlet
context too) Not sure what is missing!



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: basic working of GreetingServlet in Hello2 project of ServletBasics lab

2009-02-06 Thread skhare

I have confirmed by adding breakpoint in GreetingServlet.java that
there are two requests handled by this class. First one renders the
form and as the first time username field value is null it does not
include the ResponseServlet output in the response. Second time as
value of username parameter is not null reponse gets included.

On Feb 4, 3:29 am, Artashes Hovasapyan 
wrote:
> Request object's scope is single request, i.e. it is visible to all
> components that take part in processing of the request.
>
> --
> Regards,
> Artashes Hovasapyan
>
> On Wed, Feb 4, 2009 at 1:15 AM, supriya.kh...@gmail.com <
>
> supriya.kh...@gmail.com> wrote:
>
> > I have query about GreetingServlet of hello2 project. It seems like
> > that code in doGet() method is rendering the form for input, as well
> > as it is validating it and forwarding it to ResponseServlet(). Whether
> > the code for form rendering as well as validation get executed in one
> > request or it is two requests, I am bit confused!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Glassfish password?

2009-02-06 Thread tariqmehmood....@gmail.com

The default Administrator of Glassfish App server is "admin" and its
default password is "adminadmin"

Regards,

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Lab -6 Expression Language

2009-02-06 Thread skhare

hi,

Do Person and Name class have to be plain Java classes or have to
follow Java Bean Naming conventions? I have made both of them as beans
(added setters and getters and made no-arg construcor) I am missing
something because of which I am not able to access using dot operator
or [ operator in jsp. ( I have added Person as attribute in servlet
context too) Not sure what is missing!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Lab 4008 - Tag Files Problem

2009-02-06 Thread Chris

OK. I used a fresh set of the Tomcat demo files and rebooted the
server and now it works. I'd still be interested if anyone's got an
idea about what was up though.

I don't mind when the code is complicated and things don't work due to
my lack of understanding - I can usually figure things out in the end
- but it gets frustrating when things are simple and don't work due to
something mysterious.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Question about LAB-4002

2009-02-06 Thread Kristanto Oetomo
Hi Mark,

You could probably do this:


MyOwnServlet
myownpackage.MyOwnServlet


MyOwnServlet
*.do


So a declared welcome.do file would be redirected to the servlet. welcome.do
would be the point of entry that you declare in the web.xml

Cheers
Kris

On Fri, Feb 6, 2009 at 1:18 PM, Mark Shen  wrote:

> Hi,
>
> hello2 project have two servlets(GreetingServlet.java and
> ResponseServlet.java).
>
> I wonder how the application know which servlet first show when we run the
> application.
>
> I check web.xml but I do not see any settings for this.Please help.
>
>
> Mark
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Lab 4008 - Tag Files Problem

2009-02-06 Thread Chris

I'm having a problem with Excercise2.3 when I try to add an fourth
attribute to the tag. The tag file is:

--- begin panel.tag--

<%@ attribute name="color" %>
<%@ attribute name="bgcolor" %>
<%@ attribute name="title" %>
<%@ attribute name="subtitle" %>


  
${title}: ${subtitle}
  
  

  

  


--end panel.tag--

The apposite parts of panel.jsp are

%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>

 [code omitted]





First panel.



 [code omitted]

When I try to run the page I get this error

org.apache.jasper.Jasper Exception: PWC6033: Unable to compile class
for JSP

PWC6197: An error occurred at line: 33 in the jsp file: /jsp2/tagfiles/
panel.jsp
PWC6199: Generated servlet error:
string:///panel_jsp.java:136: cannot find symbol
symbol  : method setSubtitle(java.lang.String)
location: class org.apache.jsp.tag.web.panel_tag

PWC6199: Generated servlet error:
Note: string:///panel_jsp.java from  uses unchecked or unsafe
operations.

PWC6199: Generated servlet error:
Note: Recompile with -Xlint:unchecked for details.

What's going wrong? It seems simple enough and my code is (I think)
the same as given in the lab.






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Servlet long processing cancelation when browser closes.

2009-02-06 Thread Mikhail Gerdov

I used threads only to simulate delay in servlet preocessing. Other
than that it all happens in one thread inside the request.How do I
specify the timeout server close on disconnected requests, can I get
some notification in the code to break the loop in request? Would the
timeout affect connections while browser still waiting fro response
but no data is being sent?

Thanks,
Mike


On Fri, Feb 6, 2009 at 9:18 AM, Artashes Hovasapyan
 wrote:
> If client terminates the connection the server will close it after the
> timeout (should be specified in server configuration). Another thing is that
> IMHO it is not a good idea to manage threads manually inside of any
> component - you should leave it for container, it is container's job to
> control threading for you.
>
> --
> Regards,
> Artashes Hovasapyan
>
>
> On Fri, Feb 6, 2009 at 1:31 PM, Mikhail Gerdov  wrote:
>>
>> Hi,
>>
>> I have a servlet which processes a request for a long time. It suppose
>> to keep doing stuff in the loop inside doPost and send data through
>> response's out writer. Effectively that continuously appends data in
>> the clients browser .
>> But the problems accures when client just closes the browser. Inspite
>> of the broken connection the response's writer stream in the servlet
>> never gets closed, thus servlet is unaware of the brocen connection,
>> and keep dumping data into the writer without any errors. How is that
>> posssible? And how do I detect and cancel long request processing in
>> case of browser disconnect?
>>
>>
>> This is the servlet code which never stops:
>>protected void processRequest(HttpServletRequest request,
>> HttpServletResponse response)
>>throws ServletException, IOException
>>{
>>HttpSession session = request.getSession();
>>System.out.println("Session " + session.getId() + " started");
>>
>>response.setContentType("text/html;charset=UTF-8");
>>
>>PrintWriter out = response.getWriter();
>>try
>>{
>>while (!out.checkError())
>>{
>>try
>>{
>>Thread.sleep(1000);
>>} catch (InterruptedException ex)
>>{
>>ex.printStackTrace();
>>}
>>
>>Date date = new Date();
>>
>>// TODO append output to the client browser here
>>out.println(".");
>>
>>System.out.println("Session " + session.getId() + "
>> data sent at: " + date);
>>
>>out.flush();
>>//break;  // _TEST
>>}
>>} finally
>>{
>>System.out.println("Session " + session.getId() + " finished");
>>out.close();
>>}
>>}
>>
>>
>> Thanks,
>> Mike
>>
>>
>> --
>> Best regards,
>> Mikhail Gerdov mailto:ger...@gmail.com
>>
>> >>
>
>
>
>



-- 
Best regards,
Mikhail Gerdov mailto:ger...@gmail.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Glassfish password?

2009-02-06 Thread dinesh

user name : admin (incase you have not set during installation)
password : adminadmin


On Feb 5, 8:18 pm, Carlos Duran  wrote:
> Hi,
>
> I installed Glassfish as part of the NetBeans IDE 6.5 complete download,
> as suggested in the lab exercise, as I am running my forst project,
> Glassfish is asking for the admin password, I did not setup any password
> during installation, could somebody please help me with the default
> password?
>
> Thanks a lot
>
> Carlos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Servlet long processing cancelation when browser closes.

2009-02-06 Thread Artashes Hovasapyan
For timeout configuring, in case of Tomcat, you should look for Connector
configuration. There are connectionTimeout and keepAliveTimeout attributes.
In regards to notifications... I'm not sure there is a straightforward
solution. Maybe it worth lookinag at event listeners?
-- 
Regards,
Artashes Hovasapyan


On Fri, Feb 6, 2009 at 2:41 PM, Mikhail Gerdov  wrote:

> I used threads only to simulate delay in servlet preocessing. Other
> than that it all happens in one thread inside the request.How do I
> specify the timeout server close on disconnected requests, can I get
> some notification in the code to break the loop in request? Would the
> timeout affect connections while browser still waiting fro response
> but no data is being sent?
>
> Thanks,
> Mike
>
>
> On Fri, Feb 6, 2009 at 9:18 AM, Artashes Hovasapyan
>  wrote:
> > If client terminates the connection the server will close it after the
> > timeout (should be specified in server configuration). Another thing is
> that
> > IMHO it is not a good idea to manage threads manually inside of any
> > component - you should leave it for container, it is container's job to
> > control threading for you.
> >
> > --
> > Regards,
> > Artashes Hovasapyan
> >
> >
> > On Fri, Feb 6, 2009 at 1:31 PM, Mikhail Gerdov  wrote:
> >>
> >> Hi,
> >>
> >> I have a servlet which processes a request for a long time. It suppose
> >> to keep doing stuff in the loop inside doPost and send data through
> >> response's out writer. Effectively that continuously appends data in
> >> the clients browser .
> >> But the problems accures when client just closes the browser. Inspite
> >> of the broken connection the response's writer stream in the servlet
> >> never gets closed, thus servlet is unaware of the brocen connection,
> >> and keep dumping data into the writer without any errors. How is that
> >> posssible? And how do I detect and cancel long request processing in
> >> case of browser disconnect?
> >>
> >>
> >> This is the servlet code which never stops:
> >>protected void processRequest(HttpServletRequest request,
> >> HttpServletResponse response)
> >>throws ServletException, IOException
> >>{
> >>HttpSession session = request.getSession();
> >>System.out.println("Session " + session.getId() + " started");
> >>
> >>response.setContentType("text/html;charset=UTF-8");
> >>
> >>PrintWriter out = response.getWriter();
> >>try
> >>{
> >>while (!out.checkError())
> >>{
> >>try
> >>{
> >>Thread.sleep(1000);
> >>} catch (InterruptedException ex)
> >>{
> >>ex.printStackTrace();
> >>}
> >>
> >>Date date = new Date();
> >>
> >>// TODO append output to the client browser here
> >>out.println(".");
> >>
> >>System.out.println("Session " + session.getId() + "
> >> data sent at: " + date);
> >>
> >>out.flush();
> >>//break;  // _TEST
> >>}
> >>} finally
> >>{
> >>System.out.println("Session " + session.getId() + "
> finished");
> >>out.close();
> >>}
> >>}
> >>
> >>
> >> Thanks,
> >> Mike
> >>
> >>
> >> --
> >> Best regards,
> >> Mikhail Gerdov mailto:
> ger...@gmail.com
> >>
> >> > >>
> >
> >
> >
> >
>
>
>
> --
> Best regards,
> Mikhail Gerdov mailto:ger...@gmail.com
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Servlet long processing cancelation when browser closes.

2009-02-06 Thread Artashes Hovasapyan
If client terminates the connection the server will close it after the
timeout (should be specified in server configuration). Another thing is that
IMHO it is not a good idea to manage threads manually inside of any
component - you should leave it for container, it is container's job to
control threading for you.

-- 
Regards,
Artashes Hovasapyan


On Fri, Feb 6, 2009 at 1:31 PM, Mikhail Gerdov  wrote:

>
> Hi,
>
> I have a servlet which processes a request for a long time. It suppose
> to keep doing stuff in the loop inside doPost and send data through
> response's out writer. Effectively that continuously appends data in
> the clients browser .
> But the problems accures when client just closes the browser. Inspite
> of the broken connection the response's writer stream in the servlet
> never gets closed, thus servlet is unaware of the brocen connection,
> and keep dumping data into the writer without any errors. How is that
> posssible? And how do I detect and cancel long request processing in
> case of browser disconnect?
>
>
> This is the servlet code which never stops:
>protected void processRequest(HttpServletRequest request,
> HttpServletResponse response)
>throws ServletException, IOException
>{
>HttpSession session = request.getSession();
>System.out.println("Session " + session.getId() + " started");
>
>response.setContentType("text/html;charset=UTF-8");
>
>PrintWriter out = response.getWriter();
>try
>{
>while (!out.checkError())
>{
>try
>{
>Thread.sleep(1000);
>} catch (InterruptedException ex)
>{
>ex.printStackTrace();
>}
>
>Date date = new Date();
>
>// TODO append output to the client browser here
>out.println(".");
>
>System.out.println("Session " + session.getId() + "
> data sent at: " + date);
>
>out.flush();
>//break;  // _TEST
>}
>} finally
>{
>System.out.println("Session " + session.getId() + " finished");
>out.close();
>}
>}
>
>
> Thanks,
> Mike
>
>
> --
> Best regards,
> Mikhail Gerdov mailto:ger...@gmail.com
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Servlet long processing cancelation when browser closes.

2009-02-06 Thread Mikhail Gerdov

Hi,

I have a servlet which processes a request for a long time. It suppose
to keep doing stuff in the loop inside doPost and send data through
response's out writer. Effectively that continuously appends data in
the clients browser .
But the problems accures when client just closes the browser. Inspite
of the broken connection the response's writer stream in the servlet
never gets closed, thus servlet is unaware of the brocen connection,
and keep dumping data into the writer without any errors. How is that
posssible? And how do I detect and cancel long request processing in
case of browser disconnect?


This is the servlet code which never stops:
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
HttpSession session = request.getSession();
System.out.println("Session " + session.getId() + " started");

response.setContentType("text/html;charset=UTF-8");

PrintWriter out = response.getWriter();
try
{
while (!out.checkError())
{
try
{
Thread.sleep(1000);
} catch (InterruptedException ex)
{
ex.printStackTrace();
}

Date date = new Date();

// TODO append output to the client browser here
out.println(".");

System.out.println("Session " + session.getId() + "
data sent at: " + date);

out.flush();
//break;  // _TEST
}
} finally
{
System.out.println("Session " + session.getId() + " finished");
out.close();
}
}


Thanks,
Mike


-- 
Best regards,
Mikhail Gerdov mailto:ger...@gmail.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Netbeans version & AppServer type?

2009-02-06 Thread Sang Shin

Tomasz Dziurko wrote:
> I am using NB 6.5 instead of 6.1 and so far no problems appeared. I
> didn't try using Tomcat.

Yes, please use NetBeans 6.5.

In time, I am going to update the documents to reflect 6.5
screen captures and so on. Thanks.

-Sang

> 
> Regards,
> Tomasz Dziurko
> 
> > 


-- 
---
   Sun Tech Days, Hyderabad India ***
 http://developers.sun.com/events/techdays/

Sang Shin, sang.s...@sun.com
 http://www.javapassion.com/SangShinSchedule.html
  (Life is worth living... with Passion!)
---

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Netbeans version & AppServer type?

2009-02-06 Thread Tomasz Dziurko

I am using NB 6.5 instead of 6.1 and so far no problems appeared. I
didn't try using Tomcat.

Regards,
Tomasz Dziurko

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Clear Console Screen

2009-02-06 Thread Gaurav Verma
No Way dude Clear Console Screen  from  program is not possible in java  . So 
don't try.


From: java-ee-j2ee-programming-with-passion@googlegroups.com 
[mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of 
Evans Anyokwu
Sent: Friday, February 06, 2009 4:07 PM
To: nelson.rodr...@loadstarlk.com; 'Vasile Braileanu'; 'Java EE (J2EE) 
Programming with Passion!'
Subject: [java ee programming] Re: Clear Console Screen

The clue to the problem is in the error message - try putting your code inside 
a try/catch clause.

e.g
   try {
  Runtime.getRuntime().exec("cls");
   ..
  } catch (IOException e) {
e.printStackTrace();
   }
--
Evans
http://www.javawug.org
- Original Message -
From: Nelson Rodrigo - LHQ
To: 'Vasile Braileanu' ; 'Java EE (J2EE) 
Programming with 
Passion!'
Sent: Friday, February 06, 2009 10:17 AM
Subject: [java ee programming] Re: Clear Console Screen

Hi when I use that
Its getting error

[cid:image001.jpg@01C98877.3BD461F0]

Nelson Rodrigo
Staff Officer - Software Development
LOADSTAR (PRIVATE) LIMITED
Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311 
6556
P SAVE PAPER  - Please consider our environment before printing ?

From: Vasile Braileanu [mailto:vasilebraile...@gmail.com]
Sent: Friday, February 06, 2009 3:39 PM
To: nelson.rodr...@loadstarlk.com
Subject: Re: [java ee programming] Clear Console Screen

Hi,
find the os name (with SystemProperties)

if is windows you can use
Runtime.getRuntime().exec("cls");

on linux you can use
Runtime.getRuntime().exec("clear");

But I think if you want to clear the console maybe is the case you need a 
desktop application (can be very simple, one JDialog and one JPanel with 
JTextArea inside).

Best regards,
Vasile Braileanu
http://www.mindtree.com/email/disclaimer.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---

<>

[java ee programming] Re: Clear Console Screen

2009-02-06 Thread Evans Anyokwu
The clue to the problem is in the error message - try putting your code inside 
a try/catch clause.

e.g
   try {
  Runtime.getRuntime().exec("cls");  
   ...
  } catch (IOException e) {  
e.printStackTrace();  
   }  
--
Evans
http://www.javawug.org
  - Original Message - 
  From: Nelson Rodrigo - LHQ 
  To: 'Vasile Braileanu' ; 'Java EE (J2EE) Programming with Passion!' 
  Sent: Friday, February 06, 2009 10:17 AM
  Subject: [java ee programming] Re: Clear Console Screen


  Hi when I use that

  Its getting error

   



   

  Nelson Rodrigo
  Staff Officer - Software Development
  LOADSTAR (PRIVATE) LIMITED
  Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311 
6556

  P SAVE PAPER  - Please consider our environment before printing ü


--

  From: Vasile Braileanu [mailto:vasilebraile...@gmail.com] 
  Sent: Friday, February 06, 2009 3:39 PM
  To: nelson.rodr...@loadstarlk.com
  Subject: Re: [java ee programming] Clear Console Screen

   

  Hi,
  find the os name (with SystemProperties)

  if is windows you can use 
  Runtime.getRuntime().exec("cls");

  on linux you can use
  Runtime.getRuntime().exec("clear");

  But I think if you want to clear the console maybe is the case you need a 
desktop application (can be very simple, one JDialog and one JPanel with 
JTextArea inside).

  Best regards, 
  Vasile Braileanu


  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---

<>

[java ee programming] Re: Clear Console Screen

2009-02-06 Thread Nelson Rodrigo - LHQ
Hi when I use that

Its getting error

 



 

Nelson Rodrigo
Staff Officer - Software Development
LOADSTAR (PRIVATE) LIMITED
Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
6556

P SAVE PAPER  - Please consider our environment before printing *

  _  

From: Vasile Braileanu [mailto:vasilebraile...@gmail.com] 
Sent: Friday, February 06, 2009 3:39 PM
To: nelson.rodr...@loadstarlk.com
Subject: Re: [java ee programming] Clear Console Screen

 

Hi,
find the os name (with SystemProperties)

if is windows you can use 
Runtime.getRuntime().exec("cls");

on linux you can use
Runtime.getRuntime().exec("clear");

But I think if you want to clear the console maybe is the case you need a
desktop application (can be very simple, one JDialog and one JPanel with
JTextArea inside).

Best regards, 
Vasile Braileanu


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---

<>

[java ee programming] Re: Clear Console Screen

2009-02-06 Thread Eugene Grant
Hi,
   Google your query with
http://www.google.com/search?q=java+dos+command+cls to see some discussions
and solutions about this.

Regards

On Fri, Feb 6, 2009 at 9:12 AM, Nelson Rodrigo - LHQ <
nelson.rodr...@loadstarlk.com> wrote:

>  Ok Ashi and Bernd Thaks you very Much
>
>
>
> Nelson Rodrigo
> Staff Officer – Software Development
> *LOADSTAR (PRIVATE) LIMITED**
> *Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311 6556
>
> P *SAVE PAPER*  - *Please consider our environment before printing *ü
>   --
>
> *From:* ashish shrestha [mailto:ashishst...@gmail.com]
> *Sent:* Friday, February 06, 2009 2:37 PM
> *To:* nelson.rodr...@loadstarlk.com
> *Subject:* Re: [java ee programming] Re: Clear Console Screen
>
>
>
> Hi Nelson!
>
> Bern had already answered this question.And I dont have any functions that
> can clear the console.For your sake, go this forum sie.You will get much
> better idea
>
> http://www.dreamincode.net/forums/showtopic9880.htm
>
>
>
> Regards
>
> Ashish
>
> On Fri, Feb 6, 2009 at 3:53 AM, Nelson Rodrigo - LHQ <
> nelson.rodr...@loadstarlk.com> wrote:
>
> Hi Ashis
>
> I tried so many times,
>
> But I unable to find correct way
>
> If you have clear idea about that please let me know or if you have already
> running Function please send it
>
>
>
> Tanks
>
> Nelson Rodrigo
> Staff Officer – Software Development
> *LOADSTAR (PRIVATE) LIMITED**
> *Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311 6556
>
> P *SAVE PAPER*  - *Please consider our environment before printing *ü
>   --
>
> *From:* ashish shrestha [mailto:ashishst...@gmail.com]
> *Sent:* Friday, February 06, 2009 2:15 PM
> *To:* nelson.rodr...@loadstarlk.com
> *Subject:* Re: [java ee programming] Re: Clear Console Screen
>
>
>
> Hi Nelson!
>
> Actually there is no single command  in java to clear the console screen
> like("\n" for printing in new line.)
>
> But you can develop your own function that will clear the console when the
> function is executed
>
>
>
> Regards
>
> Ashish Shrestha
>
>
>
> On Fri, Feb 6, 2009 at 3:30 AM, Nelson Rodrigo - LHQ <
> nelson.rodr...@loadstarlk.com> wrote:
>
>
> Dear Ashi
> Thanks for the reply
> Can you please direct me how can I use CLS command, I mean what is the
> syntax
>
> Nelson Rodrigo
> Staff Officer – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing *
>
> -Original Message-
> From: java-ee-j2ee-programming-with-passion@googlegroups.com
> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf
> Of
> ashish shrestha
> Sent: Friday, February 06, 2009 1:50 PM
> To: Java EE (J2EE) Programming with Passion!
> Subject: [java ee programming] Re: Clear Console Screen
>
> Hi Nelson!
> You said u are working with console so "cls" command can clear your
> screen. For printing in separate line you can use:
>
> System.out.println("\n");
> // "\n" will show your output in new line
>
> Regards
> Ashish Shrestha
>
> On Feb 6, 3:09 am, "Nelson Rodrigo - LHQ"
>  wrote:
> > Dear Friends
> >
> > I'm new to Java and I'm working with Console Application (DOS Mood)
> >
> > So my problem is when I execute the program I want to clear full screen
> > (like CLS command) and display my result
> >
> > And also I want to know how I can keep separate line in out put  (Like
> > System.out.println("");
> >
> > Thanks in Advance
> >
> > Nelson Rodrigo
> > Staff Officer - Software Development
> > LOADSTAR (PRIVATE) LIMITED
> > Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
> 311
> > 6556
> >
> > P SAVE PAPER  - Please consider our environment before printing *
>
>
>
>
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Clear Console Screen

2009-02-06 Thread Nelson Rodrigo - LHQ
Ok Ashi and Bernd Thaks you very Much

 

Nelson Rodrigo
Staff Officer - Software Development
LOADSTAR (PRIVATE) LIMITED
Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
6556

P SAVE PAPER  - Please consider our environment before printing *

  _  

From: ashish shrestha [mailto:ashishst...@gmail.com] 
Sent: Friday, February 06, 2009 2:37 PM
To: nelson.rodr...@loadstarlk.com
Subject: Re: [java ee programming] Re: Clear Console Screen

 

Hi Nelson!

Bern had already answered this question.And I dont have any functions that
can clear the console.For your sake, go this forum sie.You will get much
better idea

http://www.dreamincode.net/forums/showtopic9880.htm

 

Regards

Ashish

On Fri, Feb 6, 2009 at 3:53 AM, Nelson Rodrigo - LHQ
 wrote:

Hi Ashis

I tried so many times, 

But I unable to find correct way

If you have clear idea about that please let me know or if you have already
running Function please send it

 

Tanks

Nelson Rodrigo
Staff Officer - Software Development
LOADSTAR (PRIVATE) LIMITED
Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
6556

P SAVE PAPER  - Please consider our environment before printing *

  _  

From: ashish shrestha [mailto:ashishst...@gmail.com] 
Sent: Friday, February 06, 2009 2:15 PM
To: nelson.rodr...@loadstarlk.com
Subject: Re: [java ee programming] Re: Clear Console Screen

 

Hi Nelson!

Actually there is no single command  in java to clear the console screen
like("\n" for printing in new line.)

But you can develop your own function that will clear the console when the
function is executed

 

Regards

Ashish Shrestha

 

On Fri, Feb 6, 2009 at 3:30 AM, Nelson Rodrigo - LHQ
 wrote:


Dear Ashi
Thanks for the reply
Can you please direct me how can I use CLS command, I mean what is the
syntax

Nelson Rodrigo
Staff Officer - Software Development
LOADSTAR (PRIVATE) LIMITED
Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
6556

P SAVE PAPER  - Please consider our environment before printing *

-Original Message-
From: java-ee-j2ee-programming-with-passion@googlegroups.com
[mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of
ashish shrestha
Sent: Friday, February 06, 2009 1:50 PM
To: Java EE (J2EE) Programming with Passion!
Subject: [java ee programming] Re: Clear Console Screen

Hi Nelson!
You said u are working with console so "cls" command can clear your
screen. For printing in separate line you can use:

System.out.println("\n");
// "\n" will show your output in new line

Regards
Ashish Shrestha

On Feb 6, 3:09 am, "Nelson Rodrigo - LHQ"
 wrote:
> Dear Friends
>
> I'm new to Java and I'm working with Console Application (DOS Mood)
>
> So my problem is when I execute the program I want to clear full screen
> (like CLS command) and display my result
>
> And also I want to know how I can keep separate line in out put  (Like
> System.out.println("");
>
> Thanks in Advance
>
> Nelson Rodrigo
> Staff Officer - Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing *





 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Clear Console Screen

2009-02-06 Thread Bernd Ritter
Hi,

you shouldn't do that as you would brake the platform independency of
java. Better try to run a System.out.println(""); for like 30 times in a
loop.

If you really want to execute a operating system command (syscall) do this:

Runtime.getRuntime().exec("cls");

This is just a hint! Look up Runtime class in the Java Docs.

Bernd

Nelson Rodrigo - LHQ schrieb:
> Dear Ashi
> Thanks for the reply
> Can you please direct me how can I use CLS command, I mean what is the
> syntax
>
>
> Nelson Rodrigo
> Staff Officer – Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing *
>
>
> -Original Message-
> From: java-ee-j2ee-programming-with-passion@googlegroups.com
> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of
> ashish shrestha
> Sent: Friday, February 06, 2009 1:50 PM
> To: Java EE (J2EE) Programming with Passion!
> Subject: [java ee programming] Re: Clear Console Screen
>
>
> Hi Nelson!
> You said u are working with console so "cls" command can clear your
> screen. For printing in separate line you can use:
>
> System.out.println("\n");
> // "\n" will show your output in new line
>
> Regards
> Ashish Shrestha
>
> On Feb 6, 3:09 am, "Nelson Rodrigo - LHQ"
>  wrote:
>   
>> Dear Friends
>>
>> I'm new to Java and I'm working with Console Application (DOS Mood)
>>
>> So my problem is when I execute the program I want to clear full screen
>> (like CLS command) and display my result
>>
>> And also I want to know how I can keep separate line in out put  (Like
>> System.out.println("");
>>
>> Thanks in Advance
>>
>> Nelson Rodrigo
>> Staff Officer - Software Development
>> LOADSTAR (PRIVATE) LIMITED
>> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
>> 
> 311
>   
>> 6556
>>
>> P SAVE PAPER  - Please consider our environment before printing *
>> 
>
>
>
>
> >
>
>
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Clear Console Screen

2009-02-06 Thread Nelson Rodrigo - LHQ

Dear Ashi
Thanks for the reply
Can you please direct me how can I use CLS command, I mean what is the
syntax


Nelson Rodrigo
Staff Officer – Software Development
LOADSTAR (PRIVATE) LIMITED
Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
6556

P SAVE PAPER  - Please consider our environment before printing *


-Original Message-
From: java-ee-j2ee-programming-with-passion@googlegroups.com
[mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of
ashish shrestha
Sent: Friday, February 06, 2009 1:50 PM
To: Java EE (J2EE) Programming with Passion!
Subject: [java ee programming] Re: Clear Console Screen


Hi Nelson!
You said u are working with console so "cls" command can clear your
screen. For printing in separate line you can use:

System.out.println("\n");
// "\n" will show your output in new line

Regards
Ashish Shrestha

On Feb 6, 3:09 am, "Nelson Rodrigo - LHQ"
 wrote:
> Dear Friends
>
> I'm new to Java and I'm working with Console Application (DOS Mood)
>
> So my problem is when I execute the program I want to clear full screen
> (like CLS command) and display my result
>
> And also I want to know how I can keep separate line in out put  (Like
> System.out.println("");
>
> Thanks in Advance
>
> Nelson Rodrigo
> Staff Officer - Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77
311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing *




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Clear Console Screen

2009-02-06 Thread ashish shrestha

Hi Nelson!
You said u are working with console so "cls" command can clear your
screen. For printing in separate line you can use:

System.out.println("\n");
// "\n" will show your output in new line

Regards
Ashish Shrestha

On Feb 6, 3:09 am, "Nelson Rodrigo - LHQ"
 wrote:
> Dear Friends
>
> I'm new to Java and I'm working with Console Application (DOS Mood)
>
> So my problem is when I execute the program I want to clear full screen
> (like CLS command) and display my result
>
> And also I want to know how I can keep separate line in out put  (Like
> System.out.println("");
>
> Thanks in Advance
>
> Nelson Rodrigo
> Staff Officer - Software Development
> LOADSTAR (PRIVATE) LIMITED
> Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
> 6556
>
> P SAVE PAPER  - Please consider our environment before printing *

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Clear Console Screen

2009-02-06 Thread Nelson Rodrigo - LHQ
Dear Friends

 

I'm new to Java and I'm working with Console Application (DOS Mood)

So my problem is when I execute the program I want to clear full screen
(like CLS command) and display my result

And also I want to know how I can keep separate line in out put  (Like
System.out.println("");

 

Thanks in Advance

Nelson Rodrigo
Staff Officer - Software Development
LOADSTAR (PRIVATE) LIMITED
Sri Lanka | Tel: +94 11 483 7914 | Fax: +94 11 224 0892 | Mobile: +94 77 311
6556

P SAVE PAPER  - Please consider our environment before printing *




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Glassfish password?

2009-02-06 Thread Kristanto Oetomo
It would be adminadmin

In case you're interested about the default password for java db, it's app

cheers
Kris

On Fri, Feb 6, 2009 at 1:18 PM, Carlos Duran  wrote:

>
> Hi,
>
> I installed Glassfish as part of the NetBeans IDE 6.5 complete download,
> as suggested in the lab exercise, as I am running my forst project,
> Glassfish is asking for the admin password, I did not setup any password
> during installation, could somebody please help me with the default
> password?
>
> Thanks a lot
>
> Carlos
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Netbeans version & AppServer type?

2009-02-06 Thread Mick T.

The first homework instructions say to use Netbeans 6.1. Can I use
NetBeans 6.5?

Also, if can I use Tomcat instead of Glassfish?

Thanks
Mick

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Glassfish password?

2009-02-06 Thread nikita.koselev

Try "adminadmin" please.

On Feb 6, 4:18 am, Carlos Duran  wrote:
> Hi,
>
> I installed Glassfish as part of the NetBeans IDE 6.5 complete download,
> as suggested in the lab exercise, as I am running my forst project,
> Glassfish is asking for the admin password, I did not setup any password
> during installation, could somebody please help me with the default
> password?
>
> Thanks a lot
>
> Carlos

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Question about LAB-4002

2009-02-06 Thread Yalon

Hi Mark,

Normally the user is the one who enters the address in his browser
(either by keying in or by clicking some link). When working with
NetBeans, one can define as one of the project properties, which URL
do load for the Run action.
For the hello2 project, this has already been defined for you. In the
projects that you'll create in the future you'll probably have to
define it by yourself.
Access this definition from within NetBeans by right clicking the
project name (from the Projects view) and selection of Properties.
Wait a while (NetBeans is very slow at the beginning) and then select
the Run category.

Yalon

On Feb 6, 4:18 am, Mark Shen  wrote:
> Hi,
>
> hello2 project have two servlets(GreetingServlet.java and
> ResponseServlet.java).
>
> I wonder how the application know which servlet first show when we run the
> application.
>
> I check web.xml but I do not see any settings for this.Please help.
>
> Mark

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Homework 3 JSP basics

2009-02-06 Thread Rajiv Jha
Hi Harmeet ,

Use 'action'  in your form tag .


Also you need to define servlets mappings in web.xml if you are submitting to 
servlets.
Hope this helps :-)


  - Original Message - 

  From: Harmeet 
  To: Java EE (J2EE) Programming with Passion! 
  Sent: Friday, February 06, 2009 3:45 AM
  Subject: [java ee programming] Homework 3 JSP basics



  I am trying to display response.jsp

  I am able to do forward from index.jsp to middle.jsp with
  
  But when i click on the submit button on middle.jsp , the page refresh
  and takes me back to index.jsp

  In my middle.jsp i am using include tag
  eg
  
  
  
  middle
  
  

  opps!! forgot to ask one more thing 
  
  
  
   
 <%
  String myparameter = request.getParameter("myparameter");
  if ( myparameter != null && myparameter.length() > 0 ) {
  %>

  <%...@include file="response.jsp" %>
 <%
}
  %>
  
  





  Any idea why this is happening why

  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Glassfish password?

2009-02-06 Thread Allen Montejo
try adminadmin

Thanks,
Allen Montejo
http://javajumper.blogspot.com/


On Fri, Feb 6, 2009 at 10:18 AM, Carlos Duran  wrote:

>
> Hi,
>
> I installed Glassfish as part of the NetBeans IDE 6.5 complete download,
> as suggested in the lab exercise, as I am running my forst project,
> Glassfish is asking for the admin password, I did not setup any password
> during installation, could somebody please help me with the default
> password?
>
> Thanks a lot
>
> Carlos
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Re: Glassfish password?

2009-02-06 Thread Mick T.



On Feb 5, 9:18 pm, Carlos Duran  wrote:
> Hi,
>
> I installed Glassfish as part of the NetBeans IDE 6.5 complete download,
> as suggested in the lab exercise, as I am running my forst project,
> Glassfish is asking for the admin password, I did not setup any password
> during installation, could somebody please help me with the default
> password?
I think the default password is:
 adminadmin
>
> Thanks a lot
>
> Carlos

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---



[java ee programming] Netbeans version & AppServer type?

2009-02-06 Thread Mick T.

The first homework instructions say to use Netbeans 6.1. Can I use
NetBeans 6.5?

Also, if I use Tomcat instead of Glassfish?

Thanks
Mick

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---