Re: Static variables

2002-02-04 Thread Nils Janson
yes - Original Message - From: "Gardner Monte" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 5:29 PM Subject: Static variables > Hypothetical situation: > Say I have a class called Market as such > > Class Market > { > static int price = 5; > } > > and I

Re: Help me with JBuilder configuration

2001-07-13 Thread Nils Janson
Hi! I'm using JBuilder 4 Enterprise with tomcat. It works grate for me. Using the debug feature a lot. About configuration. The only thing I've added is the WEB-INF dir that I put under the project dir. This is as usual the place for the web.xml file and the tld file(taglibs). To run a jsp file i

Re: assign a tag attribute value

2001-06-09 Thread Nils Janson
The bean is available in the tag thought the pageContex. I think you can do something like this in your tag class. name = ((Bean1)pageContex.getAttribute("bean1")).getCount(); you should check for null to avoid NullPointerExceptions. Bean1 bean = (Bean1)pageContex.getAttribute("bean1"); if (nul

Re: How To Send The Selected(options) value to a BEAN as a Parameter

2001-05-17 Thread Nils Janson
It's just like any other form field. If you have multiple choice you will get an array. If you don't specify value for the option tag the contents of the is returned. /N >From: jyothirmai porika <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > ref

Re: Java Webserver

2001-04-12 Thread Nils Janson
Put the bean in a package. jsp:useBean id="counter" scope="session" class="yourpackage.Counter" / on JWS2 put the bean in .../classes/yourpackage/Counter.class /NJ >From: Gavin Selvaratnam <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[

No Subject

2001-04-10 Thread Nils Janson
HI, Open a dos window and go to /bin and type tomcat run In this way you will run tomcat in the same dos window and will be able to see the error messages. /Nils >From: seema gupta <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL

Re: session variables

2001-04-05 Thread Nils Janson
Hi, try session.setAttribute("variable_name", variable_value); session.getAttribute("variable_name"); /Nils >From: "Diana Luz Buitrago B." <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subjec

Re: How can I catch an JSP error ????

2001-04-05 Thread Nils Janson
Hi, You can use JavaScript and check the fields on submit. Using something like: var check = pareseInt(document.form.field); if (isNaN(check)) {alert("Enter a number! ");} or with JSP try { int age = Interger.parseInt(request.getParameter("age")); bean.setAge(age); } ctach (NumberFormatExcep

Re: using session information across different web applications

2001-02-26 Thread Nils Janson
Hi, Looks like you could use a bean in application scope and store the information there. /Nils >From: "Nimmons, Buster" Reply-To: A mailing list about Java Server Pages >specification and reference To: [EMAIL PROTECTED] Subject: using >session information across different web applications Da

Re: Problems - setting attributes in taglib directives

2001-02-23 Thread Nils Janson
This may help.   In your tag use pageContext.setAttribute("date", new Date()); pageContext.setAttribute("color", color); pageContext.setAttribute("font", font); and so on   in the jsp page ; font-size:<%=fontSize%>; color:<%=color%>"\><%=date%> /Nils >From: Anders Lindell <[EMAIL PROTECTED]>

Re: JSP/Servlets and JBuilder 4 paths problem

2001-02-14 Thread Nils Janson
hi, The default path for servlets in tomcat is /servlets/. So I recommend that you try this myRequestDispatcher = request.getRequestDispatcher("/servlets/myPackage.Servlet1"); Check the web.xml file under /conf You can also add a web.xml for your project by adding the directory WEB-INF to your pr

Re: java code for access to file (JSP)

2001-01-30 Thread Nils Janson
code for access to file (JSP) >Date: Tue, 30 Jan 2001 18:55:32 - > >hi Nils >if the path is exactly duplicated with respect to root directory still this >has to be done?? >regards >sandarbh >- Original Message - >From: "Nils Janson" <[EMAIL PROTECTED]

Re: java code for access to file (JSP)

2001-01-30 Thread Nils Janson
Hi, You can use something like this this.getServletContext().getRealPath("file.y") You only need to figure out the path return on NT and Solaris. In this way you don't have to change your JSP code. Hopes it helps. Nils >From: sandarbh <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java S

Re: my jsp page is not getting refreshed

2000-11-06 Thread Nils Janson
I have seen it to with javawebserver2.0. When I have big changes I usaly removes the folder and all files under Javawebserver2.0/tmpdir/default This forces everyting to recompile. Not a good solution but it works. /NJ >From: Raj S <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server

Re: Session Expiry

2000-10-24 Thread Nils Janson
Here is the servlet API and check out the HttpSession! http://www.java.sun.com/products/servlet/2.2/javadoc/index.html /NJ >From: prasanna ganesan <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >