: Monday, March 19, 2007 7:03 AM
To: JSP-INTEREST@JAVA.SUN.COM
Subject: Re: custom tag - param passing prob
Hi there, thanks for your reply, I'm using Tomcat 5.0, will
that code you supplied work yeah?
Cheers,
Graeme :)
From: Karr, David [EMAIL PROTECTED]
Reply-To: A mailing
Hi there, thanks for that.
Cheers,
Graeme :)
From: Karr, David [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference JSP-INTEREST@JAVA.SUN.COM
To: JSP-INTEREST@JAVA.SUN.COM
Subject: Re: custom tag - param passing prob
Date: Wed, 21 Mar 2007 13:41:34
: Re: custom tag - param passing prob
Date: Sun, 18 Mar 2007 09:03:47 -0700
MIME-Version: 1.0
Received: from swjscmail2.java.sun.com ([192.18.99.108]) by
bay0-mc12-f12.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Sun,
18 Mar 2007 09:04:56 -0700
Received: from swjscmail1 (swjscmail1.Sun.COM
@JAVA.SUN.COM
Subject: custom tag - param passing prob
Hi all, I am building my first custom tag and I want to pass
a value to variable around from a jsp to the custom tag:
JavaComponents:calendar prevMonth=%= prevMonth % /
When I try to to run the JSP I get an error
Hi all, I am building my first custom tag and I want to pass a value to
variable around from a jsp to the custom tag:
JavaComponents:calendar prevMonth=%= prevMonth % /
When I try to to run the JSP I get an error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error
Where did you define the prevMonth between %= and % ?
On 3/8/07, Graeme McLaren [EMAIL PROTECTED] wrote:
Hi all, I am building my first custom tag and I want to pass a value to
variable around from a jsp to the custom tag:
JavaComponents:calendar prevMonth=%= prevMonth % /
When I try to to
suggestions?
Thank you for your reply.
Graeme :)
From: Fei Yang [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference JSP-INTEREST@JAVA.SUN.COM
To: JSP-INTEREST@JAVA.SUN.COM
Subject: Re: custom tag - param passing prob
Date: Thu, 8 Mar 2007 15:55:01 +1100
MIME
and
reference JSP-INTEREST@JAVA.SUN.COM
To: JSP-INTEREST@JAVA.SUN.COM
Subject: Re: custom tag - param passing prob
Date: Thu, 8 Mar 2007 15:55:01 +1100
MIME-Version: 1.0
Received: from swjscmail2.java.sun.com ([192.18.99.108]) by
bay0-mc12-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668);
Wed,
7 Mar
[EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference JSP-INTEREST@JAVA.SUN.COM
To: JSP-INTEREST@JAVA.SUN.COM
Subject: Re: custom tag - param passing prob
Date: Thu, 8 Mar 2007 16:23:41 +1100
MIME-Version: 1.0
Received: from swjscmail2.java.sun.com
I have the following code in a custom taglib. If I put the hex values
of the colors in the context-param area of the web.xml file, how do you
call them?
context-param
param-namecolor1/param-name
param-value#FF/param-value
/context-param
context-param
param-namecolor2/param-name
Assuming your question is:
How do I replace the hard-coded value of #FF in my doEndTag()
method with the code to read the init-param, then:
pageContext.getServletContext().getInitParam(color1)
-Original Message-
From: A mailing list about Java Server Pages specification
I've run into a serious problem with our website and the way we construct
our dynamic URL's. We're using JSP on a home-grown, Struts-like
architecture.
Due to the dynamic construction of all of our pages (we have a handful of
templates, but all the content is dynamic/DB-driven), and thus the
I've been able to specify servlet-mapping for a jsp-file on iPlanet
Webserver, but it won't send init-param to the ServletConfig of a JSP
file, and config.getServletName() returns jsp instead of the
servlet-name.
Granted the iPlanet WebServer sucks, but I'm stuck with it, does anyone
know how
Hello,
can anyone tell me where in the web.xml file must appear the tag
context-param? I thought it should be inside the web-app one, but it
won't work. When I start the web server (tomcat4.0 by the way) it sais that
tag is not allowed to be there.
thx a lot
SC
about the grammar.
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/
Justy
- Original Message -
From: Sandra Castellanos [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 17, 2001 7:55 AM
Subject: context-param
Hello,
can anyone tell me where in the web.xml
://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
!-- Database Initialization Servlet Configuration --
servlet
servlet-namefastvote/servlet-name
servlet-classcom.virtua.fv.FastVoteServlet/servlet-class
init-param
param-nameconfig.file/param-name
param-valuefvdata
:12 PM
Subject: [JSP-INTEREST] init-param in web.xml ??
I have an application called fvote under tomcat :
tomcat\webapps\fvote\WEB-INF\web.xml
tomcat\webapps\fvote\fvdata\fv.propertiesand when Invoke the servlet like
this :
http://mil2wwds10/fvote/servlet/fastvote?object=boothsmessage=LIST
You could check out J2J - Java to Javascript
integration tool:
http://coldjava.hypermart.net/servlets/j2j.htm
ServletShop: java server side programming
http://coldjava.hypermart.net
Get your own FREE, personal Netscape WebMail
tring."
-Original Message-
From: Yan Zhu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 7:43 AM
To: [EMAIL PROTECTED]
Subject: jsp object(Param) and javascript
ok, a little twist, anyone done calling a java object method inside of a
javascript
with a Parame
ok, a little twist, anyone done calling a java object method inside of a
javascript
with a Parameter (which is a javascript variable) ?
thanks
yan
Hung Yee wrote:
Here's some more details as to what is happening between jsp code and
javascript code:
Hung Yee wrote:
Javascript code on the client cannot access Java objects that were created
in the JSP page on the server!
but I did. In fact, I have a ejb created on a totally different server, and I
got
the remote interface, persisted that in http session, and called it from
javascript,
ay, February 01, 2001 10:08 AM
To: [EMAIL PROTECTED]
Subject: Re: jsp object(Param) and javascript
Javascript code on the client cannot access Java objects that were created
in the JSP page on the server!
The link that I gave you shows you how to create javascript code using jsp,
BUT the js
: Thursday, February 01, 2001 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: jsp object(Param) and javascript
Hung Yee wrote:
Javascript code on the client cannot access Java objects that were created
in the JSP page on the server!
but I did. In fact, I have a ejb created on a totally different
Yan Zhu wrote:
Hung Yee wrote:
Javascript code on the client cannot access Java objects that were created
in the JSP page on the server!
but I did. In fact, I have a ejb created on a totally different server, and I
got
the remote interface, persisted that in http session, and
object(Param) and javascript
Hung Yee wrote:
Javascript code on the client cannot access Java objects that were created
in the JSP page on the server!
but I did. In fact, I have a ejb created on a totally different server,
and I
got
the remote interface, persisted that in http session
pe it answer your question
Dawei
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Yan Zhu
Sent: Thursday, February 01, 2001 12:44 PM
To: [EMAIL PROTECTED]
Subject: Re: jsp object(Param) and javascript
Zhu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 12:44 PM
To: [EMAIL PROTECTED]
Subject: Re: jsp object(Param) and javascript
ok, hmm, I see what you are saying, but it's a bit disappoiting. I
really need
a way to
dynamically pass a javascript parameter to the server object
Look into Rhino (http://www.mozilla.org/js/) and BSF
(http://oss.software.ibm.com/developerworks/projects/bsf) through which you
can expose the Java API to javascript and evaluate js code on the server.
.michael.
At 12:44 PM 2/1/01 -0600, you wrote:
ok, hmm, I see what you are saying, but
Michael Sweeney wrote:
Look into Rhino (http://www.mozilla.org/js/) and BSF
(http://oss.software.ibm.com/developerworks/projects/bsf) through which you
can expose the Java API to javascript and evaluate js code on the server.
.michael.
Not to rain on your parade, but both these products
In JSP .9x, I think there was an autocreate param in the BEAN tag to
specify whether the bean should be created with the null constructor if it
wasn't found in the scope identified by the scope param. I don't see that in
any of the descriptions of JSP 1.0 jsp:usebean. Is it automatic now? What
To: [EMAIL PROTECTED]
Sent: Friday, August 04, 2000 6:28 AM
Subject: Passing param to a included file in a JSP
hi folks,
I'm puzzled about how to pass parameters to a file(also a jsp) that is
included in a jsp file using a jsp:include tag
any directions will appreciated.
thanks and regar
To: [EMAIL PROTECTED]
Subject: Passing param to a included file in a JSP
hi folks,
I'm puzzled about how to pass parameters to a file(also a jsp) that is
included in a jsp file using a jsp:include tag
any directions will appreciated.
thank
e.g.
jsp:include page="my.jsp"
jsp:param name="param1" value="%=myparam1%"/
jsp:param name="param2"
value="%=request.getParameter(\"param2\")%"/
/jsp:include
As you can see, the variable you pass to th
D]]
Sent: 04 August 2000 01:58
To: [EMAIL PROTECTED]
Subject: Passing param to a included file in a JSP
hi folks,
I'm puzzled about how to pass parameters to a file(also a jsp) that is
included in a jsp file using a jsp:include tag
any directions will appreciated.
thanks
: Flak DiNenno [SMTP:[EMAIL PROTECTED]]
Sent: 04 August 2000 08:38
To: [EMAIL PROTECTED]
Subject: Re: Passing param to a included file in a JSP
e.g.
jsp:include page="my.jsp"
jsp:param name="param1" value="%=myparam1%"/
hi folks,
I'm puzzled about how to pass parameters to a file(also a jsp) that is
included in a jsp file using a jsp:include tag
any directions will appreciated.
thanks and regards
-Saket
===
To unsubscribe: mailto [EMAIL
lto:[EMAIL PROTECTED]]
Sent: 25 July 2000 10:05
To: [EMAIL PROTECTED]
Subject: Error in catching Param Variables
Dear All,
This is the top part of my jsp. It is giving 500 Internal
server error. If
I remove the last two sentences (variable catchers), the
script executes
fine. Any
Dear All,
This is the top part of my jsp. It is giving 500 Internal server error. If
I remove the last two sentences (variable catchers), the script executes
fine. Any idea what might be wrong?
Thanx Regards,
Kaushal.
-
% response.setContentType("text/vnd.wap.wml"); %
?xml
at a guess it is a compiler error cos string should be String...
rgds, Paul
-Original Message-
From: wap@asl [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2000 10:05
To: [EMAIL PROTECTED]
Subject: Error in catching Param Variables
Dear All,
This is the top part of my jsp
e
From: stewart hsiao [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: how to use forward with dynamic param value
Date: Sun, 16 Jul 2000 17:20:06 -0700
Hi;
I would like to be able to add extra parame
Hi;
I would like to be able to add extra parameter before
I forward to a page. The destination page is not
necessarily servlet or JSP but could be cold fusion or
ASP page.
If I do something like this in index.jsp
jsp:forward page= "xxx."
jsp:param name="userid" value="abc" /
/jsp:forward
Hi,
jsp:forward page= "xxx."
jsp:param name="userid" value="%=myvalue%" /
/jsp:forward
xgh
- Original Message -
From: "stewart hsiao" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 17, 2000 8:20 AM
Subject: how to use f
I can't tell about Forward, but we used session variables and, used getValue
and putValue.
-Original Message-
From: piyush raj jain [SMTP:[EMAIL PROTECTED]]
Sent: Friday, April 21, 2000 1:01 PM
To: [EMAIL PROTECTED]
Subject: Re: param not work
hi .
how wud u pass
s than asking on the mailing list.
Hui Du wrote:
Hi,gurus:
I don't know why param don't work here, it said userid is null.
I am using Javawebserver 2.0(trial version)
aa.jsp
HTMLbody
jsp:forward page="bb.jsp"
jsp:param name="userid" value="g
ypes of problems than asking on the mailing list.
Hui Du wrote:
Hi,gurus:
I don't know why param don't work here, it said userid is null.
I am using Javawebserver 2.0(trial version)
aa.jsp
HTMLbody
jsp:forward page="bb.jsp"
jsp:par
Hans Bergsten wrote:
PS.I see a lot of questions on this list about things not working as expected,
when it turns out that it's because people try to use features that are not
included in the version of the API their product supports. You will save
Ill agree but following what a list
unterminated jsp:forward tag
2.jsp:forward page="bb.jsp" /
/jsp:forward
same error
3.jsp:param name="userid" value="g" /
this works
means it work only with empty tags
thanx
piyush
Hui Du wrote:
Hi,gurus:
I don't know why param don't work here, it said userid is
Hi
Try binding the variable to a session using the code:
session.putValue("xyz", xyz);
This would then be available in the JSP.
David
- Original Message -
From: Hosseinzad, Fred [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 04, 2000 1:48 AM
Subject: Re: param
Hi Mario,
Try using:
param name="MYNAME" value='%=var%'
hth,
Govind
"Pizzonia, Mario Carmelo" wrote:
Hi everyone,
I'm working with JSP1.0 and I have a trouble with the tag
jsp:pluginparam name="MYNAME" value="ANTONIO"
The strings myname and a
Hi everyone,
I'm working with JSP1.0 and I have a trouble with the tag
jsp:pluginparam name="MYNAME" value="ANTONIO"
The strings myname and antonio must be quoted otherwise it falls in
compilation error.
But I have the need to evaluate a variable with %=var% so :
param name=&
After rereading your original post (and the spec), I'm inclined to agree
that what you're trying should work.
But this does not appear to work for me (JRun 2.3.3, Build 152, JDK
1.2).
Sounds like a bug. Have you checked the reference implementation?
Thanks for the comments.
I have now tried
andowska
Software Engineer
http://www.AgDomain.Com
-Original Message-
From: Richard Dallaway [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, June 28, 1999 3:07 AM
Subject: Re: Q: set bean param from -OPTION- list
My example would have been better if I had the sy
In JSP 1.0/1.1, neither setProperty nor getProperty have any provision
for indexed properties.
Hans Bergsten wrote:
I don't agree. In the JSP 1.0 spec, indexed properties are mentioned
explicitly for setProperty. The description could be clearer, but I know the
intention was to support
public void setFoo(int index, String value)
or even something like:
public void setFoo(String[] values)
..and expect jsp:setProperty to "do the right thing" and supply me with
getParameterValues("foo").
In JSP 1.0/1.1, neither setProperty nor getProperty have any provision for
indexed
PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]; [EMAIL PROTECTED]
[EMAIL PROTECTED]; [EMAIL PROTECTED]
[EMAIL PROTECTED]
Date: Monday, June 28, 1999 11:28 AM
Subject: Re: Re: Q: set bean param from -OPTION- list
From: "Lance Lavandowska" [EMAIL PROTECTED]
To get their individual values
My example would have been better if I had the syntax right.
Let me try again.
With a HTML SELECT list (or set of checkboxes), what is the easiest way to
collect the OPTION values with a jsp:useBean?
For example:
FORM ACTION="/test.jsp" METHOD="POST"
SELECT MULTIPLE NAME="foo"
OPTION
With a HTML SELECT list, what is the easiest way to collect the OPTION
values with a jsp:useBean?
For example:
SELECT NAME="foo"
OPTION VALUE="1" First option
OPTION VALUE="2" Second
OPTION VALUE="3" Last
/SELECT
...I select all three options and submit to a JSP which has the
following:
Hi and sorry for asking a question about a very outdated version. I'm using
IBM's WAS which only supports 0.91.
I have a bean that I'm trying to instantiate with a jsp page. If I leave
out the PARAM tag, it loads, but if I add the PARAM tag, I get "Error
getting compiled page. 3,27: no
Hi all,
I am using JSP 1.1, and I am doing the following include action:
jsp:include page="includee.jsp" flush="true"
jsp:param name="id" value="1000-1-1"/
/jsp:include
My question: How do I access the parameter in includee.jsp?? The
query string is null. I tried
Try
request.getAttribute("id");
Abraham Kang
-Original Message-
From: Willie Wheeler [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, November 04, 1999 7:12 AM
To: [EMAIL PROTECTED]
Subject:How do I access the param?
Hi all,
I am using JSP 1.1, and
60 matches
Mail list logo