Hi
I don't use Tomcat personally, but in almost all of the appservers out of
there you find an implementation of javax.sql.DataSource.
What you do usually is to configure your pools in the appserver's
configuration file, where you put all of the coordinates, then you access
them thru JNDI
e.g. Da
Ops..typed it wrong
Correction:
-Messaggio originale-
Da: Andrea M [mailto:[EMAIL PROTECTED]
Inviato: venerdì 21 maggio 2004 7.39
A: 'Struts Users Mailing List'
Oggetto: R: and tags
Hi Padala
Why don't you use
instead of manually cycling thru with mailto:[EMAIL PROTECTED]
Inviato
That is pretty much the reason for Struts, isn't it? Literally, of course,
no one can do an MVC implementation for web services, but the older dogs
get pretty mad when you point that out. They don't want to hear it for
some reason. But, in terms of providing the idea MVC-Like implementation,
Have a look at Axis (also an Apache project). It will probably do what you
need.
-Original Message-
From: Pedro Salgado [mailto:[EMAIL PROTECTED]
Sent: Friday, 21 May 2004 13:20
To: Struts Users List
Subject: Controller for web services
Is there any MVC implementation for web services
Is there any MVC implementation for web services (I am not seeing any wasy
way to do that with Struts)?
Thank you,
Pedro Salgado
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
Hi Padala
Why don't you use
instead of manually cycling thru with mailto:[EMAIL PROTECTED]
Inviato: giovedì 20 maggio 2004 22.41
A: Struts Users Mailing List
Oggetto: RE: and tags
Thanks Tim, I could solve my issue with the el tags. Now I am using el
tags in other places, Life is easy now.
dnbnor.no> writes:
>
> Hi
>
> 1. implement the validation method on your ActionForm
> 2. Check if a particular button was pressed (give your button a name via
> the "property" property). Use request.getParameter("the name of the
> button").
> 3. If they do not match, call super.validate()
>
>
hi all,
Is it possible to select the folder or directory from tag , or any other
techniques please let me know.
Thanks in advance,
Praveen
"Do not follow where the path may lead. Go instead where there is no
path and leave a trail."
Yahoo! India Matrimony: Find your partner online.
Hello,
I'm wondering how Struts users handle the problem of separating business
validation from page validation. By page validation, I mean things that
can be accomplished with the Struts Validator, such as checking field
lengths. And by business validation, I mean things that the business
lay
If you have an attribute on your form
'org.apache.struts.taglib.html.CANCEL' the validation will not run.
You will, however, need to find out which button (or link) the user
pressed (Back or Cancel) using some other mechanism:
isCancelled(httpServletRequest) simply tests the existence of this
attr
At 5:08 PM -0400 5/20/04, Hoffman, David wrote:
Hello,
I was told that a particular project is using the STRUTS 1.1 framework,
using page layouts and tiles. Is STRUTS limited to using HTML tables for
page layout or can the layout use pure CSS formatting? If pure CSS
formatting can be used, how woul
> From: Hoffman, David [mailto:[EMAIL PROTECTED]
> I was told that a particular project is using the STRUTS 1.1
> framework, using page layouts and tiles. Is STRUTS limited to using
HTML
> tables for
> page layout or can the layout use pure CSS formatting? If pure CSS
> formatting can be used, h
> From: ruben [mailto:[EMAIL PROTECTED]
> i have a boolean value on my ActionForm represented by a
> checkbox on the
> interface, i need that the value of the chekbox was the
> opposite of the
> value that i have on my database, what can i do?, i try to change the
> value on the getter/setter
Hello,
I was told that a particular project is using the STRUTS 1.1 framework,
using page layouts and tiles. Is STRUTS limited to using HTML tables for
page layout or can the layout use pure CSS formatting? If pure CSS
formatting can be used, how would a developer use STRUTS to control the
layout?
Thanks Tim, I could solve my issue with the el tags. Now I am using el
tags in other places, Life is easy now.
Sandhya
-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 1:25 PM
To: 'Struts Users Mailing List'
Subject: RE: and tags
> H
Thank you Niall.
This has helped me solve my issue. I was not aware of the
mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 1:41 PM
To: Struts Users Mailing List
Subject: Re: and tags
I think you're making this more difficult than it needs to be. You want
to
use a Select to set a property
I think you're making this more difficult than it needs to be. You want to
use a Select to set a property in your ActioForm, so in the ActionForm you
have something like this...
protected String productId;
protected List products;
public void setProductId(String productId) {
this.productId =
Paul,
It works! Thank you!
Yours,
Ding Lei
On Thu, May 20, 2004 at 09:55:22AM +0100, Paul McCulloch wrote:
> Look at the tag.
>
> Paul
>
> > -Original Message-
> > From: Ding Lei [mailto:[EMAIL PROTECTED]
> > Sent: 18 May 2004 10:11
> > To: [EMAIL PROTECTED]
> > Subj
Hello folks,
I am working on a User Permission Management form, each permission record
composed of
operation type, target type and target ID. When editing a user's permission,
it should
able to let the user add unlimited count of new permissions and also edit
original one
All,
I have a simple wizard comprising 3
steps, 1 action, 1 form, and 1 JSP. The JSP uses
to segregate the 3 steps of the wizard on the single jsp. My problem
is that step 1 contains a multibox, and I am unsure of the best way to
pass the multibox values to steps 2 and 3...to be eventually pro
Matthias
Thank you, that solved my issue without having to add the additional IF statement.
Thank you for your quick response.
Cheers
Christopher
Original Message
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
From: "Matthias Wessendorf" <[EMAIL PROTECTED
> Hello ,
> I have a question on how to use tag as the value
> to the value attribute of tag
>
> On my JSP
>
>
>var="optionList">
>
>
>
That's the problem right there, you *cannot* nest tags. So use the el
version of the tag:
--
Tim Slattery
[EMAIL PROTECT
Hello ,
I have a question on how to use tag as the value to the
value attribute of tag
On my JSP
When I run this JSp and do a view source
I get the following code
abc
xyz
pqr
Can anyone of you tell me how can I get the
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks to all.
This worked:
^[0-9\.\-\s]*$
> -Original Message-
> From: Henrique VIECILI [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 20, 2004 1:37 PM
> To: Struts Users Mailing List
> Subject: Re: Simple Validator regex needed
>
> ^[\\d | \\s | \\. | \\-]*$
>
> tested with java
Thanks to all.
This worked:
^[0-9\.\-\s]*$
> -Original Message-
> From: Henrique VIECILI [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 20, 2004 1:37 PM
> To: Struts Users Mailing List
> Subject: Re: Simple Validator regex needed
>
> ^[\\d | \\s | \\. | \\-]*$
>
> tested with java
^[\\d | \\s | \\. | \\-]*$
tested with java.util.regex
Henrique Viecili
- Original Message -
From: Tim Penhey
To: Struts Users Mailing List
Sent: Thursday, May 20, 2004 1:35 PM
Subject: RE: Simple Validator regex needed
> From: Eric Dahnke [mailto:[EMAIL PROTECTED]
> Sent: 20 May 20
Hello All,
I have a question on tag. In my FooForm which
is the ActionForm class for the JSP has an array of objects of type
OptionBean. OptionBean has two variables OptionBeanID and
OptionBeanName. I have to do a select tag with OptionBeanName variable
as the value for the select tag.
hi everybody,
i have a boolean value on my ActionForm represented by a checkbox on the
interface, i need that the value of the chekbox was the opposite of the
value that i have on my database, what can i do?, i try to change the
value on the getter/setter property method, but it seem not to work
> From: Eric Dahnke [mailto:[EMAIL PROTECTED]
> Sent: 20 May 2004 16:42
>
> Hello list,
>
> The field should only accept numbers, spaces, dashes and periods.
>
>
> mask
> ^[0-9]*$
>
>
> I can't figure the regext syntax out, I've tried all the following:
>
> ^[0-9]\.\s-*$
> ^[0-9
I solved my problem by changing field's variables names to length1 and
length2
instead of fieldLength1 and fieldLength2.
This is because of the if statement in JavascriptValidatorTag.java code:
// skip requiredif variables field, fieldIndexed, fieldTest, fieldValue
if (varName.startsWith("fiel
Embedding bean:write into bean:message doesn t work, so i think with tiles
it doesn t works too
You can embed <%= bean.getAtt() %> into bean:message, just try it
- Original Message -
From: "Tim Penhey" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday
The reason this is happening is that your "/Contact" mapping in the struts
config is forwarding to one of two struts Actions - when Struts runs an
Action it goes through its whole cycle (see the RequestProcessor class for
all the steps) and so it is re-populating your form from the request.
Lookin
Hello list,
The field should only accept numbers, spaces, dashes and periods.
mask
^[0-9]*$
I can't figure the regext syntax out, I've tried all the following:
^[0-9]\.\s-*$
^[0-9]\\.\\s-*$
^[0-9].\s-*$
And a ton of other trial and error cases. Can someone help out. Thx.
Hello list,
The field should only accept numbers, spaces, dashes and periods.
mask
^[0-9]*$
I can't figure the regext syntax out, I've tried all the following:
^[0-9]\.\s-*$
^[0-9]\\.\\s-*$
^[0-9].\s-*$
And a ton of other trial and error cases. Can someone help out. Thx.
Do you know if you can embed the inside the
to have the tiles attribute define the key for the bundle?
You can never embed any JSP tag inside another JSP tag.
You could use or to create a page scoped
variable using tiles:getAsString and then use it for the key to
bean:message...
This is a
Frank,
You can use the following in your Action class:
String paramValue = this.servlet.getInitParameter("myParamName");
Thanks,
Venkat
-Original Message-
From: Frank Burns [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 8:19 PM
To: Struts Users Mailing List
Subject: How to
I have to display a drop down on my JSP using html select tag. Since I
am using struts , I am using tag. I have a Form Bean
FooForm in request scope. This form bean has array of custom defined
Action objects. My Action object is a bean with ActionID and ActionName
as the attributes. I require Ac
Thanks Simon, much appreciated.
Decided to evaluate OpenSTA and JMeter, boy I love Apache, why look
anywhere else, I should have know to look and see if they had anything
:-).
Can't wait to see how our app performs... You probably haven't heard the
last from me... I will probably be posting this
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: 20 May 2004 15:51
>
> At 3:13 PM +0100 5/20/04, Tim Penhey wrote:
> > > From: Joe Germuska [mailto:[EMAIL PROTECTED]
> >> Sent: 20 May 2004 14:47
> >>
> >> You can put Javascript anywhere in a page; I think it makes sense to
> >> put it in
At 3:13 PM +0100 5/20/04, Tim Penhey wrote:
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: 20 May 2004 14:47
At 2:32 PM +0100 5/20/04, Tim Penhey wrote:
>I am thinking about using tiles to simplify some of my JSPs, but many of my
>pages are javascript heavy. All the js is either include
> From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
> I don't quite understand how DynaActionForm
> gets populated when a form is submitted. The
> form I have gets processed exactly as I expect,
> except for a group of checkboxes
(This is a FAQ-- the answer is in the list archives multiple times.)
Just a couple of points:
1. Consider a couple of testing machines. Our UI is fairly light and we didn't pull
down excess files (like images or style sheets etc etc), so we got away with it, but
if I had the choice I'd look at two machines generating 50 simultaneous users worth of
traffic.
2. C
Henrique,
Thank you! it works!
--- Henrique VIECILI <[EMAIL PROTECTED]> wrote:
> Hi Julia,
>
> You can use javascript and/or server-side
> validation:
>
> javascript:
>
> isNaN(field.value); //verify if the value 'is not a
> number'
>
> server side: (there are many ways)
>
> try {
> Doub
Hi,
I am having a problem with a JSP not displaying the latest ActionForm
data.
A very light use case:
-
The application is simple; a user views their Contact information.
The user can change the information and save it.
The application does the following:
--
hi christopher,
if i understand you right, you watch RegistrationForm.java
note, that this class extends ValidatorForm
and not ActionForm.
ActionForm.validate() returns NULL
ValiForn.validate() returns an ActionErros-Objekt
(see CVS-code):
http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/sh
Its probably worth logging this one on the OC4J Forum on OTN
(http://forums.oracle.com/forums/forum.jsp?forum=46) there are folks who
know about OC4J in enough detail hanging out there.
Regards
Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools
Richard Yee wrote
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: 20 May 2004 14:47
>
> At 2:32 PM +0100 5/20/04, Tim Penhey wrote:
> >I am thinking about using tiles to simplify some of my JSPs, but many of my
> >pages are javascript heavy. All the js is either included or defined in the
> > section, but I
Shiva:
Just guessing here: your trace shows you are requesting this path:
"/countryWiseDetailsInput". Maybe you want something like /countryWiseReport.do?
Regards,
Geeta
> -Original Message-
> From: Hammer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 19, 2004 2:29 PM
> To: [EMAIL PR
Is it possible for me to specify the color of the bars in a chart according to their
values?
Thanks!
I have developed my way around this issue, but I wanted to pass it by you to see if my
logic is not flawed.
In the example given with the Struts packages, it performs validation within a form
like so:
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
{
// Perfo
Hi Julia,
You can use javascript and/or server-side validation:
javascript:
isNaN(field.value); //verify if the value 'is not a number'
server side: (there are many ways)
try {
Double.parseDouble(getField());
} catch (NumberFormatException nfe) {
// if this exception is thrown the valu
At 2:32 PM +0100 5/20/04, Tim Penhey wrote:
I am thinking about using tiles to simplify some of my JSPs, but many of my
pages are javascript heavy. All the js is either included or defined in the
section, but I am curious to know how other people have defined their
layouts.
Do you end up defining
I am thinking about using tiles to simplify some of my JSPs, but many of my
pages are javascript heavy. All the js is either included or defined in the
section, but I am curious to know how other people have defined their
layouts.
Do you end up defining a very small tile that defines the for
ex
request.getContextPath() could be a solution.
Kathy
-Original Message-
From: Paul McCulloch [SMTP:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 4:55 AM
To: 'Struts Users Mailing List'
Subject:RE: Include common javascript file with relative path
Look at the tag.
Paul
>
request.getContextPath() could be a solution.
Kathy
> -Original Message-
> From: Paul McCulloch [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, May 20, 2004 4:55 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Include common javascript file with relative path
>
> Look at the tag.
>
Vishal:
If you are using tomcat, then I believe you can use dbcp. (I think that's what Riyad
Kalla was talking about too..) We use dbcp but only for connecting to one pool (and
this turned out to be quite simple: just configure the server.xml), but I think I read
that you can create multiple po
Hi,
How can I validate the field user input in form bean
is not a numeric value? Is any function exist like:
IsNumeric(x)?
Thanks,
__
Do you Yahoo!?
Yahoo! Domains Claim yours for only $14.70/year
http://smallbusiness.promotions.yaho
Why should he?
He's already got a servlet context. He's got to have a web.xml *anyway*,
so why not use it?
Yeah, there are a list of things that could dictate using JNDI, but this
isn't necessarily one of them). I mean unless you like having lng
classpaths :-)
> -Original Message---
Why don t you use JNDI ?
- Original Message -
From: "Frank Burns" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 20, 2004 11:47 AM
Subject: Re: How to read a parameter in web.xml from Action class
> Excellent. Thank you Ashutosh.
>
> - Or
Excellent. Thank you Ashutosh.
- Original Message -
From: "Ashutosh Satyam" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 20, 2004 6:40 AM
Subject: RE: How to read a parameter in web.xml from Action class
One more addendum to this.
In case
I'd start by getting the source for struts & scaffold.
I'd then set a breakpoint in my debugger at the start of
org.apache.struts.scaffold.ParameterAction.findSuccess() and step through
until I found the NPE. I'd then look back up the call stack to try and
figure out what happened.
Paul
> -
Look at the tag.
Paul
> -Original Message-
> From: Ding Lei [mailto:[EMAIL PROTECTED]
> Sent: 18 May 2004 10:11
> To: [EMAIL PROTECTED]
> Subject: Include common javascript file with relative path
>
>
> Hello folks,
> There is a common jsp file named common_header.jsp used
> thr
64 matches
Mail list logo