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
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
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
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
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 <[
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
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
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
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
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]>
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
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]
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
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
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]
>
15 matches
Mail list logo