Hi,
In my jsp's i do on the bottom of the jsp:
script
today();
/script
In my head section i then define the method...
function today(){
var today = new Date();
var month = today.getMonth()+1;
var year = today.getYear();
var day = today.getDate();
the DateTime taglib would perfectly fit your needs:
http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html
Ben
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 19 februari 2004 11:27
To: [EMAIL PROTECTED]
Subject: html:javascript simple question
Hi
://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html
Ben
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 19 februari 2004 11:27
To: [EMAIL PROTECTED]
Subject: html:javascript simple question
Hi,
In my jsp's i do on the bottom of the jsp:
script
today
I have a form with a Long property; I used Long instead of long to have
the property nullable, but if the (html) form includes such a property,
struts sets the corresponding bean property to 0, even if it has no
value (value=); what I'd like is struts to leave the property at
null!! It also
Hello,
The value of a checkbox is added to the sessionScope. How can i print checked box 1
and not checked box1 using the logic taglib ?
Thanks
How can i have a dynamic value in the action ?
The following is not working .
bean:define id=url value=/setUp.do?action=all type=String/
html:form action=%=url%
Thanks !
It should work (I use it !)
Did you include the taglib directive for struts-bean ?
Nico.
How can i have a dynamic value in the action ?
The following is not working .
bean:define id=url value=/setUp.do?action=all type=String/
html:form action=%=url%
Thanks !
]
greetings
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 2:41 PM
To: Struts Users Mailing List
Subject: Re: simple question
It should work (I use it !)
Did you include the taglib directive for struts-bean ?
Nico.
How can i have
05, 2004 2:40 PM
Subject: Re: simple question
It should work (I use it !)
Did you include the taglib directive for struts-bean ?
Nico.
How can i have a dynamic value in the action ?
The following is not working .
bean:define id=url value=/setUp.do?action=all type=String
No thats not it,
It's not working with or without type... org.apache.jasper.JasperException
Thx
- Original Message -
From: Matthias Wessendorf [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, January 05, 2004 2:42 PM
Subject: RE: simple question
hi
=url/
but not %=url%
then i get an
org.apache.jasper.JasperException: Unable to compile class for JSP
any idea ?
Thanks !
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, January 05, 2004 2:40 PM
Subject: Re: simple
an
org.apache.jasper.JasperException: Unable to compile class for JSP
any idea ?
Thanks !
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, January 05, 2004 2:40 PM
Subject: Re: simple question
It should work (I use it !)
Did you include
if I put
paging.banner.placement=bottom
i get the paging as well in bottom and in top. How can i put it only in the bottom ?
Thanks
I have an action which contains the following:
String hulp=request.getParameter(users.userId);
return mapping.findForward(CONTINUE);
continue points to user.jsp. How can i use in the file user.jsp the value of hulp ?
eg: %=hulp% is not working.
Thx
hi,
try this,
%= request.getParameter(users.userId) %
dirk wrote:
I have an action which contains the following:
String hulp=request.getParameter(users.userId);
return mapping.findForward(CONTINUE);
continue points to user.jsp. How can i use in the file user.jsp the value of hulp ?
eg:
To: Struts Users Mailing List
Subject: simple question
I have an action which contains the following:
String hulp=request.getParameter(users.userId);
return mapping.findForward(CONTINUE);
continue points to user.jsp. How can i use in the file user.jsp the
value of hulp ?
eg: %=hulp% is not working
the value is null allthought the value of help is not null. But i cannot
access it in the jsp...
thx !
- Original Message -
From: François Richard [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 22, 2003 4:45 PM
Subject: Re: simple question
)request.getAttribute(hulp);
%
HTH
- Original Message -
From: dirk [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 22, 2003 3:55 PM
Subject: Re: simple question
the value is null allthought the value of help is not null. But i cannot
access
hi,
you can also use
in jsp:
bean:write name=hulp/
and in action before:
String hulp=request.getParameter(users.userId);
request.setAttribute(hulp,hulp);
//FORWARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I want to create a select box with the values 1 thru 100 how can i do that? What i
have is:
But that is not working. Any idea ?
Thanks !
html:select property=selectBox styleClass=content
% for(int i=0;i999;i++){ %
html:option value=%=i%%=i%/html:option
%}%
/html:select
html:option value='%=+i%'%=+i%/html:option
Naveen
-Original Message-
From: dirk [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 7:51 AM
To: Struts Users Mailing List
Subject: simple question
I want to create a select box with the values 1 thru 100 how can i do that?
What i
html:option value='%=+i%'%=+i%/html:option
-Original Message-
From: dirk [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 7:51 AM
To: Struts Users Mailing List
Subject: simple question
I want to create a select box with the values 1 thru 100 how can i do that?
What i have
Nothing to add really just a few variations on a theme.
c:forEach var=num begin=0 end=999
html-el:option value=${num}
c:out value=${num} /
/html-el:option
/c:forEach
i think
c:forEach var=num begin=0 end=999
htmll:option value=%= num %%= num %
I know the question is targeted at doing this in a JSP, but why wouldn't you
just set up a String[100] in application scope, name it numbers (or whatever)
and do something like:
html:select property=selectBox styleClass=content
html:options name=numbers/
/html:select
Quoting Mark Lowe [EMAIL
Agreed.
On 19 Dec 2003, at 14:02, Kris Schneider wrote:
I know the question is targeted at doing this in a JSP, but why
wouldn't you
just set up a String[100] in application scope, name it numbers (or
whatever)
and do something like:
html:select property=selectBox styleClass=content
I like a for the mouse over affect. img does not have a
mouse over.
-Original Message-
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2003 2:49 PM
To:
Subject: Simple Question
Hi All,
I my team while in a Code-Review we had a
discussion wether
If I'm remembering correctly:
a tile=mouse over text link/a
and
img src=blah.jpg alt=mouse over text/
- Original Message -
From: Malcolm Davis [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 9:14 PM
Subject: RE: Simple Question
Hi All,
I my team while in a Code-Review we had a discussion wether to use
html:img or normal a href=... as the later one can
do the same work. One option accepted was why do we need Tag over head if a href=
can handle that ??
What do you
: Simple Question
Hi All,
I my team while in a Code-Review we had a discussion wether to use
html:img or normal a href=... as the later
one can do the same work. One option accepted was why do we need Tag over
head if a href= can handle
One option accepted was why do we need Tag over head if
a href= can handle that ??
What do you guys suggest
I agree, if there is no dynamic content, then I use a plain old HTML
tag.
--
Wendy Smoak
-
To
Hi,
Is there any Struts tag for an expression like
%= request.getAttribute(attributeName)%
where the attribute is a String.
Thanks,
Shyam
__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
you can use
bean:write name=attributeName
OR
bean:message key=attributeName/
Where key is the key defined in resources file
Cheers
Gary
- Original Message -
From: Shyam A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 9:40 PM
Subject: simple question
Hi
Hi all,
I think I have a relative easy question.
I have a J2EE application which has some entitybeans. I want to display
the values of these entitybeans in my JSP pages (using Struts).
I have made value objects of the entitybeans.
In my ListAllCategoriesAction.java, I do something like the
beans like this are useful because they can be manipulated
quite well with the tag handlers.
Mohan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 7:15 PM
To: [EMAIL PROTECTED]
Subject: simple question
Hi all,
I think I have
]
Subject: simple question
Hi all,
I think I have a relative easy question.
I have a J2EE application which has some entitybeans. I want to display
the values of these entitybeans in my JSP pages (using Struts).
I have made value objects of the entitybeans.
In my ListAllCategoriesAction.java, I
Hi, there is a possibility to send an object in the request if i don't pass it
with parameter of the link?
for example:
%
request.setAttribute(in,index);
%
...
hm:link page=/index.jsp transaction=true
home
/hm:link
this obviously don't work...but there is a system to obtain this
You can try this :
form name=myLink
action=html:rewrite page=/index.jsp/
method=POST
input type=hidden name=in value=...
/form
a href=javascript:document.forms.myLink.submit()home/a
Notice the (not visible) HTML form will add a visual line break in
browser. You can avoid it by
Thank, but with this i must crete an ActionForm...it's possible avoid to create
an ActionForm for an form?
Thank for help
Ale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You don't need an ActionForm (but you can).
You can use request.getParameter(in) in your action, you can use a
dynaForm too if you don't wan't to create a formBean for this.
As you can read in the code I sent, I did not used html:form, so
action form definition is not needed. This beeing said,
Thank you, you have been very kind.
Ale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, 13 Mar 2003, Ian Hunter wrote:
Are you redirecting or forwarding to your JSP from that Action?
What is the exact difference between forwarding and redirecting? What are
their implications?
I searched the Servlet and JSP specs but I
Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:28 AM
Subject: [XEN] Simple question: forward and redirect
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, 13 Mar 2003, Ian Hunter wrote:
Are you redirecting or forwarding to your JSP from that Action?
What
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Fri, 14 Mar 2003, Simon Kelly wrote:
When you forward, you pass control to another class within your current
application root context.
When you redirect, you can pass in or out of the context.
What do you mean? Aren't we talking at the HTTP
List
Subject: Re: [XEN] Simple question: forward and redirect
When you forward, you pass control to another class within your current
application root context.
When you redirect, you can pass in or out of the context.
Simon - If I have this wrong, my site is well sha***d!!
- Original
Fabio Mancinelli wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, 13 Mar 2003, Ian Hunter wrote:
Are you redirecting or forwarding to your JSP from that Action?
What is the exact difference between forwarding and redirecting? What are
their implications?
I searched the Servlet
: html-el:link and logic-el:iterate and tiles --- Just a
simple question.
I would check to see if items.footer an attribute in some scope
and it has a collection bound to it.
Also, the id=item: item is an instance of the current iteration
not a string. In the link paramName=item should
I would like the html-el:link to produce
A href=%=request.getContextPath()%jsp:getProperty name=item
property=link/jsp:getProperty name=item property=value/A
I would like in to work with the iterate tag. But so far I am not
getting it to work.
logic-el:iterate id=item name=items.footer
and logic-el:iterate and tiles --- Just a simple
question.
I would like the html-el:link to produce
A href=%=request.getContextPath()%jsp:getProperty name=item
property=link/jsp:getProperty name=item property=value/A
I would like in to work with the iterate tag. But so far I am not
getting
Is there a nifty way of accessing attributes of the form bean?
Julian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From where?
David
From: julian green [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Simple question
Date: Wed, 12 Feb 2003 17:09:24 +
Is there a nifty way of accessing attributes of the form bean?
Julian
To: Struts Users Mailing List
Subject: Simple question
Is there a nifty way of accessing attributes of the form bean?
Julian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
, February 12, 2003 11:09 AM
To: Struts Users Mailing List
Subject: Simple question
Is there a nifty way of accessing attributes of the form bean?
Julian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Sorry, from within a jsp.
Julian
David Graham wrote:
From where?
David
From: julian green [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Simple question
Date: Wed, 12 Feb 2003 17:09:24 +
The form bean is stored in the session or request so your jsp can access it
with:
c:out value=${myForm.myProperty}/
David
From: julian green [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Simple question
Hello!
I'm new to struts and a little bit leazy ;).
I have out-of-host html form that have to be redirected to my
application, then I have to virify that form and redirect this values to
other html form (jsp) that contains the same fields plus some more to
enter, that means the second form is
I have a form where I have used
html:submit property=submit value=Log On/
to submit it.
Instead of value = Log On being hardcoded I want to get it from my
resource property file.
How can I do it.
I am new to Struts so any help would be great
Rajesh Kanade
91-22-660-3666
--
To unsubscribe,
Try this:
html:submit property=submitbean:message key=button.logon//html:submit
-Original Message-
From: Rajesh Kanade [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 11:07 AM
To: Struts Mailing list
Subject: A simple question about i18n
I have a form where I have used
This is probably a simple question, but i cannot find the answer in any straighforward
place.
how do i get a property from my ApplicationResources.properties file within some java
code. i know how to do this using a bean tag, but not otherwise. is there a helper
class to do this?
i am
To: Struts Users Mailing List
Subject: Simple Question
This is probably a simple question, but i cannot find the answer
in any straighforward place.
how do i get a property from my ApplicationResources.properties
file within some java code. i know how to do this using a bean
tag
than using the ResourcesBundle from scratch. is there something like
this?
thanks,
mark
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 12:21 PM
To: Struts Users Mailing List
Subject: RE: Simple Question
Are doing this within
, September 09, 2002 3:07 PM
To: Struts Users Mailing List
Subject: Simple Question
This is probably a simple question, but i cannot find the answer
in any straighforward place.
how do i get a property from my ApplicationResources.properties
file within some java code. i know how
bundle given a request instance, take a
look at:
Action.getResources(HttpServletRequest, String)
--
Martin Cooper
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 12:29 PM
To: Struts Users Mailing List
Subject: RE: Simple Question
You might also note that you can have default values in an included
property file. See Properties API
At 12:07 PM 9/9/2002 -0700, you wrote:
This is probably a simple question, but i cannot find the answer in any
straighforward place.
how do i get a property from my
-Original Message-
From: Mark Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 3:29 PM
To: Struts Users Mailing List
Subject: RE: Simple Question
No,
i want to refer to it in the consutructor of my ActionForm, to
set some default values of a search form (dates
Hi all,
I've studiing Struts for the past 3 weeks because I have done a generic Jsp
content-management web site connected on a MySql database using a set of
custom tag libraries following the Manning book Tag Librairies. So I am
still new at Struts, and I would like a simple advice over the
On Thu, 8 Aug 2002, Eddie Bush wrote:
Go check out Chuck's book to see what Struts can do and how easily it
can be configured. If you have specific questions about Well, would my
end usrs have to program to do X? just swing by and drop us a note.
There are a bunch (understatement!) of
Hi Norman,
it's not clear what your problem is. What have you tried? Try reading
this and reposting the question:
http://www.tuxedo.org/~esr/faqs/smart-questions.html
Adam
Ryan Norman wrote:
Hi,
I am Norman.
I have a simple problem for which I don't know the answer.
I have a single form
Hi,
I am Norman.
I have a simple problem for which I don't know the answer.
I have a single form that I want to use for both add and view user. I was able to
successfully add a user. After adding the user I want the user details to be displayed.
Can somebody throw some lights on what I need
Hi. I'm fairly new to Struts, but I've gone through the Struts documentation
and KeyboardMonkey's helpful tutorial. What I want to do is (almost) right
out of the tutorial, but it's not working the way I would expect.
The list archives show that other people have had this problem, and the few
A total stab in the dark here, I'm a JSP newbie:
At 04:20 PM 4/9/2002 -0700, Rick Mann wrote:
logic:iterate id=foundLocation name=foundCity property=locations
pbean:write name=foundLocation property=name/p
/logic:iterate
As soon as I do that, I get
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 10:48 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: This hopefully is a simple question that has been dealt
with
I haven't found the solution I will use yet to solve this problem
in my own project, so advice would definitely
On Saturday, March 30, 2002, 10:33:32 AM, Vladimir Levin wrote:
VL 2) Performance penalty for copying a list of result beans to
VL a list of form beans.
Exactly. What if you a very large result set of Employee
objects being returned. Now you have to go through this
28, 2002 10:48 PM
WWC To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
WWC Subject: Re: This hopefully is a simple question that has been dealt
WWC with
WWC I haven't found the solution I will use yet to solve this problem
WWC in my own project, so advice would definitely be helpful.
WWC I found
than doing it
ML manually.
ML -- Larry Maturo
ML[EMAIL PROTECTED]
ML -Original Message-
ML From: Rick Reumann [mailto:[EMAIL PROTECTED]]
ML Sent: Thursday, March 28, 2002 9:09 PM
ML To: Struts Users Mailing List
ML Subject: This hopefully is a simple question that has been dealt
Sorry to post this question again, but I'm still curious about this
...
I'm sure this question has come up but I'm not having much luck
searching the archives. I'm really new to Struts so I hope this
question isn't too out of place for this list. Lets say we are dealing
with Employee beans. I
I haven't found the solution I will use yet to solve this problem
in my own project, so advice would definitely be helpful.
I found a taglibrary that purports to do this (at http://jsptags.com)
http://www.sqlt.com/taglib.html
I have not investigated using it just yet though. I think even
can I use the tag logic:equal name=myForm property=MyProperty value=3
in other words can i use an int ?
how about a boolean?
thanks in advance.
Gus
]
Betreff: logic:equal simple question
can I use the tag logic:equal name=myForm property=MyProperty
value=3
in other words can i use an int ?
how about a boolean?
thanks in advance.
Gus
: AW: logic:equal simple question
you can compare a property to an int value, but you have to quote it:
logic:equal name=myForm property=MyProperty value=3
-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag
von gdelgado
Gesendet: Dienstag, 3
Title: Java Bean log file.
Hi
Guys,
Can anyone tell me
the difference between 'Page Scope' and 'Request Scope'. What is the boundaries
set by each one.. Thanks a lot.
cheers,
Amar..
Thanx everybody for clarifying.
cheers,
Amar..
-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 3:50 PM
To: [EMAIL PROTECTED]
Subject: Re: simple question
From the pageContext javadoc:
PAGE_SCOPE
page scope: (this is the default
page what variables it contains by using page scope.
- Original Message -
From:
Nanduri, Amarnath
To: '[EMAIL PROTECTED]'
Sent: Wednesday, April 25, 2001 3:35
PM
Subject: simple question
Hi
Guys,
Can anyone tell
me the difference between 'Page Scope
From the pageContext javadoc:
PAGE_SCOPE
page scope: (this is the default) the named reference remains available
in this PageContext until the return from the current Servlet.service()
invocation.
REQUEST_SCOPE
request scope: the named reference remains available from the
ServletRequest
Hi folks,
Can I format java.util.Date presentations with bean:write, or do I need to
do something at the property getter?
TKS. Matt.
Hello Matthew,
Thursday, April 12, 2001, 5:55:21 AM, you wrote:
MOH Can I format java.util.Date presentations with bean:write, or do I need to
MOH do something at the property getter?
You can do it in getter method and by special version of bean:write
tag - with parameters to define formatting
Has anyone used Allaire's JRun and Struts yet? If so, are any of you fine
people willing to share tips or tricks of what to do or not do? Thanks in
advance.
Mike V.
86 matches
Mail list logo