Hi JAXR experts:
I have two questions about the some methods in the registry APIs
First is I have problem with method getPostAddresses() in class User.
I can make sure that the address has been saved in registry by setPostAddresses(
Collection addresses ) , saveOrganization(..), but when I
can i create static method inside the jsp?
like a method that returns boolean
thanks
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP
PROTECTED]
Subject: Re: Calling a Class or method from inside a jsp.
What is the proper way to import a class into a JSP if I have the class in
the WEB-INF\classes folder?
- Original Message -
From: Richard Yee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04
Hello,
Does anybody knows how to call a method defined in another *.jsp file? Is it possible?
I have a math.jsp that has a method called addTwoIntegers(int a, int b). I want
sum.jsp to call this method.
I am trying something like this:
---math.jsp--
%!
// adds two integers
public int
Jose,
Why don't you just create a class with a addTwoIntegers(int a, int b)
static method? It probably can be done your way, but is much better to have
the Java code in a Java class rather than mixed in with your JSP markup.
-Richard
At 08:23 PM 6/4/2003 -0500, you wrote:
Hello,
Does anybody
What is the proper way to import a class into a JSP if I have the class in
the WEB-INF\classes folder?
- Original Message -
From: Richard Yee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 10:14 PM
Subject: Re: Calling a Class or method from inside a jsp.
Jose
I have to create a service that will receive a request from a client for an
XML document, perhaps an attachemnt. Does any one know which style of
service/client should I use? a document, RPC style, and why? there are so
many way of doing thing, that I am a bit confused. If you have a sample
Hi all,
We are submitting a HTML form using GET method.
Before submitting we need to find out whether the query string in the URL
exceeds the maximum limit.
The query string also contains multi byte charachters (like
japanese,chinbese,korean... characters).
Any pointers on, How to do the same
Hi,
I have the following situation:
In a bean, I have a method that populates an array with a large, very large
amount of data (required for some operations).
From my jsp page I do not want to allow any web clients to see the length of
this array, till the process of population is finishedI
Syncronize the code/method that populates the array as well as the
code/methods that access it. This can either be done using the syncronise
method modifier, or using syncronised blocks, which is better.
This is however more of an elementary Java issue though, search the web for
the PDF version
I have already do this but does not help.
The synch in this case does not help, as it LOCKS the object that calls the
method and NOT THE the array that is used by the method and also by the jsp
page.
(my use of 'volatile' also does not help).
Ionel.
Syncronize the code/method that populates
to an array till a method is
finished ...
I have already do this but does not help.
The synch in this case does not help, as it LOCKS the object that calls the
method and NOT THE the array that is used by the method and also by the jsp
page.
(my use of 'volatile' also does not help).
Ionel
to an array till a method is
finished ...
I have already do this but does not help.
The synch in this case does not help, as it LOCKS the object that calls
the
method and NOT THE the array that is used by the method and also by the
jsp
page.
(my use of 'volatile' also does not help).
Ionel
to an array till a method is finished
...
syncronise all and any code that accesses the array, and make sure that
your
blocks are wide enough.
E.G. this WON'T work because the syncronized bock should be out-side of
the loop.
public void populateBigArray ( long[] bigArray )
{
for (i
November 2002 12:43
To: [EMAIL PROTECTED]
Subject: how to lock the access to an array till a method is finished...
Hi,
I have the following situation:
In a bean, I have a method that populates an array with a large, very
large
amount of data (required for some operations).
From my jsp page I do
-Original Message-
From: Donghyeok Kang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 3:31 AM
To: [EMAIL PROTECTED]
Subject: Method invocation in JSTL
Hi, guys...
Is there any way to invoke some method with parameters in JSTL?
For example, SomeClass.setProperty
Donghyeok Kang wrote:
Hi, guys...
Is there any way to invoke some method with parameters in JSTL?
For example, SomeClass.setProperty(String someParam, int otherParam)
or SomeClass.getProperty(String someParam, int otherParam)
Can the method invocation like this be replaced by JSTL
:
MultipartRequest mr = new
MultipartRequest(request,/var/www/projects_data/);
Then I upload the file object:
File oldn = mr.getFile(mr.getParameter(audit_doc));
And then I rename the file:
File newname = reName.changename(oldn);
But here is when I get the error:
non-static method changename
Hi all,
I need to pass the value of a JS variable to a JSP method
The JSP is enclosed inside script tag
The value returned by JSP is used for some purpose in JS
Any idea how to do it ?
TIA
==To
unsubscribe: mailto
the method File.renameTo() to work. I've
done some research on this issue via Google and the Sun listservers, and
have found that this method of the File object often does NOT work on
Windows servers due to some type of Windows security issues. I need to
rename this file by appending the system date
is a Windows 2000 application server
running JRUN 3.1 and IIS 5.0.
Bottom line, I am unable to get the method File.renameTo() to work. I've
done some research on this issue via Google and the Sun listservers, and
have found that this method of the File object often does NOT work on
Windows
hello,
how to invoke a method on a servlet from a jsp page ?
thanks for your help.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP
)context.getAttribute(CONNECTION_POOL);
OracleConnection tmpDbCon = (OracleConnection)ocpl.getConnection();
So now i am saying which method is much better, related to design, number of
clicks on the site.
Putting the connection in the init() method and assigning it the connection
permanently until the server
it in the int method and storing it in the servlet, then (aside from
concurrency poroblems!) the pool has less chance to act like a pool.
-Original Message-
From: Vikramjit Singh [SMTP:[EMAIL PROTECTED]]
Sent: 25 June 2002 10:56
To: [EMAIL PROTECTED]
Subject: Re: which method is good
efficient in
terms of performance or overhead.
Regards,
Vikram.
-Original Message-
From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 2:24 AM
To: [EMAIL PROTECTED]
Subject: Re: which method is good for getting connection init() or
doPost( )
get a connection every
.
In general always get a new connection from the pool in the actual method
(e.g. doPost() ) that needs it (as a local variable too, to avoid
concurrency issues), and return it at the end of that method. Assume that
there is always a connection available in the pool (as this is the case
99.99
Hello,
I am new to JSP so my question is perhaps not really interesting for you but
I would appreciate if you could reply.
I have created a JSP and a class DBConnection. I want to create an instance
of that class in my JSP like this:
% DBConnection dbc = new DBConnection(); %
I use an
to call a user defined method from a JSP
Hello,
I am new to JSP so my question is perhaps not really interesting for you but
I would appreciate if you could reply.
I have created a JSP and a class DBConnection. I want to create an instance
of that class in my JSP like this:
% DBConnection dbc = new
to call a user
defined method from a
about Java Server PagesJSP
specification and
reference
[EMAIL PROTECTED]
COM
02/27/02 10:11 AM
Please respond
It works not. Thanks alot Elena.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 4:26 PM
To: [EMAIL PROTECTED]
Subject: Re: How to call a user defined method from a JSP
The specifics may vary from server to server, but in general
Try putting your Class file in the WEB-INF directory. Then import
the class into your JSP page. This worked for me on my TOMCAT/APACHE
server.
--Monte Glenn Gardner
===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
: How to call a user defined method from a JSP
The specifics may vary from server to server, but in general you can you
place the class anywhere. However, your classpath must point to the
directory containing the code. Also, remember to import your class in your
JSP.
%@ page import=DBConnection
---
It works not. Thanks alot Elena.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 4:26 PM
To: [EMAIL PROTECTED]
Subject: Re: How to call a user defined method from a JSP
The specifics may vary from server to server, but in general
] To: [EMAIL PROTECTED]
NISYS.COMcc:
Sent by: A mailing list Subject: Re: How to call a
user defined method from a
about Java Server PagesJSP
specification
Xavier Cosyns wrote:
Hi,
Apparently you put your class in the wrong directory,
as i can see from your stacktrace:
org.apache.jsp.DBConnection not found.
you'r DBConnection class should reside in
/org/apache/jsp/
No, this is most likely not correct. org.apache.jsp is just the
package
And the other in
Tomcat/jak/webapps/examples/web-inf
panos
-Original Message-
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2002 18:26
To: [EMAIL PROTECTED]
Subject: Re: How to call a user defined method from a JSP
[EMAIL PROTECTED] wrote:
The specifics may vary from server
Guide is a good
start:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
Hans
-Original Message-
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2002 18:26
To: [EMAIL PROTECTED]
Subject: Re: How to call a user defined method from a JSP
Dear All,
I want to talk to a perl master in our jsp group out there ?hurry.I badly
need a help on perl
Varna...
- Original Message -
From: Christian Kurze [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 26, 2001 4:52 PM
Subject: Beans invokes method on JSP??
Hi
I don't know the perl list id
- Original Message -
From: Panagiotis Konstantinidis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 3:02 PM
Subject: Re: Beans invokes method on JSP??
Why don't you look to a Perl list then?
09/01/2002 09:27:31, Ravindra
Ravindra wrote:
Dear All,
I want to talk to a perl master in our jsp group out there ?hurry.I badly
need a help on perl
what about trying a perl mailing list?
===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
Hi,
is it possible, that a bean can invoke a method on a JSP when a
PropertyChangeEvent is thrown on a special field of the bean? How could I
implement it? Maybe the BeanContext is helpful? I already know the method of
pushlets, as described in JavaWorld 03-2000
(http://www.javaworld.com
Hi !
I cannot get a parameter starting with plus(+) sign.
I only get a String sequence which replaced plus by space.
Someone please tell how to get plus mark.
regards,
Hiroshi.
===
To unsubscribe: mailto [EMAIL PROTECTED]
:[EMAIL PROTECTED]]Im Auftrag von $B:YED (B $B9@ (B
Gesendet: Montag, 17. Dezember 2001 17:25
An: [EMAIL PROTECTED]
Betreff: Cannot get plus mark using getParameter method
Hi !
I cannot get a parameter starting with plus(+) sign.
I only get a String sequence which replaced plus by space.
Someone
Hi Richard,
I tried to use the java.io.File.exists() method, but doing the following.
try
{
File imageFile = new File(./personnel/mfleshman.jpg);
if(imageFile.exists() ){ %
file exists.
tabletrtd
if there is a file that exists
//ServletContext.getRealPath() method.???
Hi Richard,
I tried to use the java.io.File.exists() method, but doing
the following.
try
{
File imageFile = new
File(./personnel/mfleshman.jpg);
if(imageFile.exists
Hello Hassan! :-)
DH try
DH {
DH File imageFile = new File(./personnel/mfleshman.jpg);
DH if(imageFile.exists() ){ %
DH Above code never finds the file.
Well, you could do
File imageFile = new File( pageContext.getServletContext().
Hello Glenn,
GW String(application.getRealPath(/personnel/Eid.jpg));
well, if (application.getResource(/personell/Eid.jpg)!=null)
might be better, as it would work under Weblogic too, while
.getRealPath() won't
GW note that application object is the name Tomcat gives your servletContext,
GW it
Some code calls an findByPrimaryKey method of an entity EJB. The entity
throws an ObjectNotFoundException. In WebLogic 5.10, the exception the code
receives is the thrown ObjectNotFoundException. In Orion 1.5.2 the exception
is a RemoteException (com.evermind.server.rmi.OrionRemoteException
Sorry about the offtopic e-mail, I sent it to the wrong e-mail address.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Hi BrettHaas,
'this' only can be reffered to current object.
From: BrettHaas [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: this() method
Date: Tue, 2 Oct 2001 11:38:01 -0400
Can you use
Can you use this()
in reference to use constructors or can you
use it on plain old
methods too?
Brett HaasSenior Web Developer
SellingPower.com1140 International ParkwayFredericksburg, VA
22406Phone: 540-752-7000 Fax: 540-752-7001[EMAIL PROTECTED]
My scenario is as follows:
From /admin/test.jsp, am trying to call a static method which is in a class in
com.x.y.z.
How can I do this?
any help much appreciated.
Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer
den im Adressfeld ausgewiesenen Adressaten bestimmt.
Sollten
Just as you would do it in a normal java program:
a) Import the requisite class.
b) Call the static method of that class.
It is assumed that the class file is under the WEB-INF/classes folder.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
- Original Message
That does not work, i keep getting the following error
method is not public in the class cannot be accessed from outside package
regards
Parag
Sachin S. Khanna [EMAIL PROTECTED] on 14/09/2001 10:25:56
Please respond to A mailing list about Java Server Pages specification and
reference
Can't you make the method public.
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
- Original Message -
From: Parag Patwa [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 14, 2001 5:07 PM
Subject: Re: Calling a Static Method in JSP
That does
Hi,
When you are trying to
access a method from jsp make sure that its access specifier is 'public'.
It need not be WEB-INF/classes folder. Just import that particular class.
Make sure the class is in classpath.
regds/Surendra
Hi all,
i want to call a method on each jsp page ( typically, i want to test the
right access of my user ).
But i have a lot of page, and i don't want to add the method call on all
page.
I can use the extend procedure ( create my super class of jsp ), but it is
not advised.
So, how can i do
and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Lemaire Arnaud
Sent: mercredi 5 septembre 2001 11:45
To: [EMAIL PROTECTED]
Subject: Call method in each page
Hi all,
i want to call a method on each jsp page ( typically, i want to test the
right access of my user ).
But i have a lot of page, and i
PROTECTED]
Objet: Re: Call method in each page
Hi,
Why do you not use the server security ?
Hope this helps,
Sincerly,
Bernard Granier
Mr Ted
115 rue du Fbg Poissonniere
75009 Paris
www.MrTed.com
Tel : 33 1 55 31 02 65
mail : [EMAIL PROTECTED]
-Original Message-
From: A mailing list about
and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Lemaire Arnaud
Sent: mercredi 5 septembre 2001 14:35
To: [EMAIL PROTECTED]
Subject: Re: Call method in each page
the problem is that i want to ckeck the right access by calling some
existing classes.
I must also doing some other action, so i can't
How about using an 'include' file that would call your
access method (remember that you have to import first
the class that contains the access method) or better
still, use a custom tag.
Goodluck!
Dingdong Lorico
--- Lemaire Arnaud [EMAIL PROTECTED]
wrote:
the problem is that i want to ckeck
I already use a custom tag for calling the wanted methods but i don't want
to put in each page the tag.
If a personn of my team add a new page, i want that some method must be
called before the page.
A tag is fast forgotten !
I hope to have better explained my problem
Thanks
-Message
will always be there on every page.
Goodluck!
Dingdong
--- Lemaire Arnaud [EMAIL PROTECTED]
wrote:
I already use a custom tag for calling the wanted
methods but i don't want
to put in each page the tag.
If a personn of my team add a new page, i want that
some method must be
called before
. This solution is dangerous in that you need to understand what
the default classes do.
-Richard
At 11:45 AM 9/5/01 +0200, you wrote:
Hi all,
i want to call a method on each jsp page ( typically, i want to test the
right access of my user ).
But i have a lot of page, and i don't want to add the method
]
Subject: Re: Call method in each page
Arnauld,
A few suggestions:
1) Redesign your architecture to use a Front Controller pattern (Core J2EE
Patterns pg 74) The idea behind this is to move the duplicated code from
your multiple JSP pages and put it into a controller class. This class
would be one
Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 8:07 AM
Subject: Re: JSP calls instance method, bombs with odd message
Sachin--
I compared your working code to what I posted as best I could, and found
1
significant change: setting public on variable dynamicstring
Sachin--
I compared your working code to what I posted as best I could, and found 1
significant change: setting public on variable dynamicstring in the class file.
I changed that.
However, I'm still getting the same error.
Did I miss some other change? What version of Tomcat did you run it
HEAD
titleU.S. Federal White Pages Directory/title
/HEAD
BODY bgcolor=#FF text=#003366 link=#336699 vlink=#99
alink=#FFCC66
FORM action=wpv3beta1.jsp method=POST
Find input type=text size= 30 name=cnvals value=%= cnvals %
input type=hidden name=scope size=30 value=SUBTREE_SCOPE
input
Martin:
I'm no guru, but:
1) Try adding public in:
public String dynamicstring = firstdynamic;
2) I think I've heard that the Response has already been committed
message is not necessarily the real problem, but is a secondary (error
reporting) issue that arises sometimes when another
HEAD
titleU.S. Federal White Pages Directory/title
/HEAD
BODY bgcolor=#FF text=#003366 link=#336699 vlink=#99
alink=#FFCC66
FORM action=/wpv3beta1.jsp method=POST
Find input type=text size= 30 name=cnvals value=%= cnvals %
input type=hidden name=scope size=30 value=SUBTREE_SCOPE
input
Thanks for the solution for getRemoteAddress() method
Bye,
- Original Message -
From: Joseph Ottinger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 6:48 PM
Subject: Re: error in getRemoteAddress() method
Some suggestions, you want? Sure!
1) Read the error
=
=3D
0002ejsptest_jsp_25.java:75: Method getRemoteAddress() not found in =3D
interface javax.servlet.http.HttpServletRequest.
out.println(remote =3D
address+request.getRemoteAddress());
so give me some suggestions
thanks
from bipin
Some suggestions, you want? Sure!
1) Read the error message. No request.getRemoteAddress() found... hmm,
sounds like the method might not be there. That means either the people who
wrote your container forgot to implement it, or you're using the wrong
method name. Since this is the reference
I think you have the wrong method name. The code should be as follows:
out.println(remote address+request.getRemoteAddr());
Tim
-Original Message-
From: bipin sabhani [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 9:03 AM
To: [EMAIL PROTECTED]
Subject: error in getRemoteAddress
Try
request.getRemoteAddr();
Reg Daniel
- Original Message -
From: bipin sabhani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 3:03 PM
Subject: error in getRemoteAddress() method
Hi!
I want to retrieve IP address of client.
so i write code as below
hi
The proper method is request.getRemoteAddr();
regard
jason
- Original Message -
From: bipin sabhani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 9:03 PM
Subject: error in getRemoteAddress() method
Hi!
I want to retrieve IP address of client.
so i write code
you are welcome
- Original Message -
From: Joseph Ottinger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 9:18 PM
Subject: Re: error in getRemoteAddress() method
Some suggestions, you want? Sure!
1) Read the error message. No request.getRemoteAddress() found
Message -
From: K.S.SREEDHAR KUMAR [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 9:02 PM
Subject: Re: What method do you use for double clicks on submit button?
instead after clickin gonce u can disable the submit button once for all
.
ks
-Original Message
instead after clickin gonce u can disable the submit button once for all
.
ks
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 5:32 AM
To: [EMAIL PROTECTED]
Subject: What method do you
Hello,
What is the preferred server side method for handling double clicks on a
submit button.
It would seem that if a user clicks twice on the submit button that there
will be two near simultaneous requests. In the past I have handled this with
some java script that would only send a single
to reference method getParameter in interface
javax.servlet.ServletRequest as an instnance veriable.
if (request.getParameter.equalsIgnoreCase(andrew)){
^
Can anyone help?
Thanks,
andrew
_
Get your FREE download of MSN
: Thu, 26 Apr 2001 20:40:50 -
From: drew w [EMAIL PROTECTED]
Subject: Error: Attempt to reference method in interface ...
To: [EMAIL PROTECTED]
if (request.getParameter.equalsIgnoreCase(andrew)){
pw.print(you are logged in + request.getParameter(username
method in interface ...
if (request.getParameter.equalsIgnoreCase(andrew)){
pw.print(you are logged in + request.getParameter(username) +
+ request.getParameter(password));
}
else{ pw.print(you are not logged in +
request.getParameter(username) + + request.getParameter(password
if the username field
doesn't exist.
-Richard
-Original Message-
From: drew w [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 1:41 PM
To: [EMAIL PROTECTED]
Subject: Error: Attempt to reference method in interface ...
if (request.getParameter.equalsIgnoreCase(andrew
Are the following two statements really the same?
if(a.equals(avar))
if(avar!=null avar.equals(a))
-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 2:00 PM
To: [EMAIL PROTECTED]
Subject: Re: Error: Attempt to reference method
method is:: request.getParameter(parameter name) but not
request.getParameter.
so tht shoould have been request.getParameter(parameter
name).equals(password)
check out
ks
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL
you have missed () after the getParameter i.e. getParameter().
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Hi John,
I like this idea... I think we'll give it a shot!
Thanks,
--BobC
On Mon, 16 Apr 2001, John Thomas wrote:
Hi,
I do this in a round about manner,
onClick(), I do a form submit to another jsp page where i call the
bean method, after calling the bean methd I do a jsp:forward
On Mon, 16 Apr 2001, John Thomas wrote:
Hi,
I do this in a round about manner,
onClick(), I do a form submit to another jsp page where i call the
bean method, after calling the bean methd I do a jsp:forward back to
the bean method.
Hope this will help.
Regards
John
Bob
hi
how can i invoke a method of a java class inside javascript. is there
any direct or round about way of doing this
regds
shekhar
SHEKHAR AGARWAL(B.TECH)
TATA CONSULTANCY SERVICES
Email : [EMAIL PROTECTED]
Tel: 268-548-2592 (work)
262-798-1052 (home)
-Original Message
Check out LiveConnect, from netscape's developer site.
hi
how can i invoke a method of a java class inside javascript. is there
any direct or round about way of doing this
regds
shekhar
_
Get your FREE download of MSN Explorer
From: Bob Carpenter [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Is it possible to call a bean method via an HTML button onClick?
Date: Sun, 15 Apr 2001 23:32:56 -0700
Within a JSP file
Within a JSP file, I'm trying to figure out how to call a
bean setter method as a result of a button click, like the
following:
jsp:useBean id="fb" class="com.mypackage.FooBean" /
...
TDINPUT TYPE=BUTTON NAME="setButton" VALUE ="Set"
: Is it possible to call a bean method via an HTML button onClick?
Date: Sun, 15 Apr 2001 23:32:56 -0700
Within a JSP file, I'm trying to figure out how to call a
bean setter method as a result of a button click, like the
following:
jsp:useBean id="fb" class="com.my
Hi,
I do this in a round about manner,
onClick(), I do a form submit to another jsp page where i call the
bean method, after calling the bean methd I do a jsp:forward back to
the bean method.
Hope this will help.
Regards
John
Bob Carpenter [EMAIL PROTECTED]@java.sun.com on 04/16/2001
, April 16, 2001 12:59 PM
To: [EMAIL PROTECTED]
Subject: Re: Is it possible to call a bean method via an HTML button
onClick?
Hi,
I do this in a round about manner,
onClick(), I do a form submit to another jsp page where i call the
bean method, after calling the bean methd I do a jsp:forward
: Integer ?? String ?? - Can't find a method to write property
'age ' in a bean ...
Everything is right :-).
jsp:setProperty name="test" property="age" param="p_age"/
It means that your bean has a method "setAge(String p_age)". Attribute must
be a String type and
the nombre variable in the bean :
jsp:setProperty name="account_test" property="nombre" param = "nombre"/
When I execute my jsp,
I have this error :
org.apache.jasper.JasperException: Can't find a method to write property
'nombre' in
Hi,
Please check out the code below...
import java.util.*;
public class test_tbe
{
private String name=null,email=null;
// If the set method takes a String, this must be a String.
private String age;
private int internal_age;
public test_tbe()
{
}
public String
PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 12:20 PM
Subject: Re: Integer ?? String ?? - Can't find a method to write property
'age ' in a bean ...
Hello Alexandr
Thanks you but that doesn't solve my problem :(
I am using Tomcat-3.2.1 ...
It's perhaps a bug ? or ... I
1 - 100 of 287 matches
Mail list logo