Hi
Seems that you have a List of player objects. If so then indexed bean
properties might help. Your form will contain something like the following.
public void setPlayerList(ArrayList playerList){
this.playerList = playerList;
}
public ArrayList getPlayerList(){
r
Where and how do Managed Beans and JSF's navigation rules fit in a
struts/jsf application?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Suresh,
I checked the name of the form in my validation.xml and varified that I am using the
same name in my JSP also.
I am able to get the Error object from my form bean but I am unable to display it on
my JSP.Is there anything else that I am missing ???
Thanks for your help
Cheers..
Hello,
In the above JSP, there are five TEXT form field with the same name
"player", how can I design my ActionForm code for this case?
I tried,
public void setPlayer(int[] player) {
this.player = player;
}
public int[] getPlayer() {
return player;
}
But
Yes, I think you are right, i didn't realise which class we were talking
about there. I have just read a bit more about the Struts FileUpload
and how it wraps commons upload. Assuming Commons Upload works
correctly with the setHeaderEncoding, then I guess there might be work
around.
Struts w
Hi,
I was just looking at the struts-upload application... why is the file uploaded
to %TOMCAT_HOME%/bin ?
What i would like to do is to save the uploaded file in a subdirectory of the
root of the application (%TOMCAT_HOME%/webapps/myapp/uploaddir). The saving
location is determined on a the "
Not to be too off-subjectbut, why do you have the "Struts Users
Mailing List" named as "usergroup" in your mail client? Is this the only
"usergroup" that you subscribe to? I am on at least 15, so I almost
skipped right over your post.
Would you mind changing it to at least "strutsgroup" or
Yeah Right..
Thanks
On 30 Dec 2003, at 00:45, Dhaliwal, Pritpal (HQP) wrote:
Pick up something like mozilla as source,
Fix it up so it has no location bar.. ( maybe just a link to ur app )
Distribute it...
Now they can enter stuff in ur forms and all, but not in the location
bar..
Hey its open
Nick,
| I believe that various IDEs are beginning to allow this.
| I saw a demonstration of a Sun's Forte at a Java User Group,
| a while ago, and they were dropping and dragging JATO taglibs.
| WebLogic Workshop can apparently allow this using Struts.
Oracle JDeveloper 10g is one of these as wel
What does your
$TOMCAT_HOME/logs/.log say?
Regards
-Martin
- Original Message -
From: "" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 29, 2003 10:05 AM
Subject: Re: annoying JSP runtime exception message
> This comes up quite a bit for my Students.
> When using T
Pick up something like mozilla as source,
Fix it up so it has no location bar.. ( maybe just a link to ur app )
Distribute it...
Now they can enter stuff in ur forms and all, but not in the location bar..
Hey its opensource, use it..
Pritpal Dhaliwal
-Original Message-
From: Mark Lowe [
I think you can define a new Javascript function, and call the
validateSubscriptionForm(this) first in the new function, and inside
onsubmit call this new function instead. Something like the following:
newFunction(form) {
validate = validateSubscriptionForm(form);
if(!validate)
return fa
That problem was discussed in the nbuser group a couple of weeks ago,
in conjunction with code completion.
Try to put
jstl.jar
struts-el.jar
struts.jar
servlet.jar
into NetBeanXX/lib/ext
and
standard.jarinto NetBeansXX/lib
Maybe you can put everything under /lib or .../lib/ext.
Wolfgang
I have a form in which upon submit, depending on whether a certain checkbox is checked
or not, it is directed to a certain action (if checked, then action 1, if unchecked,
then action 2). With the following code, I am trying to validate the form. Now I need
to perform the validation and also d
"Brice Ruth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm refactoring (so to speak) my currently working form, which accepts
> an image to be uploaded, to use a DynaValidator(Action?)Form and I'm
> again running into an exception being thrown:
>
> java.lang.NoClassDefFoundErro
I'm refactoring (so to speak) my currently working form, which accepts
an image to be uploaded, to use a DynaValidator(Action?)Form and I'm
again running into an exception being thrown:
java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException
What
I recently started using strutsin lie of straight servlets and jsps. I was
wondering where is the most logical place to perform initialization process
in an Action class. In a servlet I normally use the init method to perform
these tasks. The closest I have found in the Action class is the Setservl
Quoting Tim Lucia <[EMAIL PROTECTED]>:
> Care to share? This would be a very, very useful extension.
>
> Is there any plan(s) for future Struts release(s) to support some
> attribute of this sort? Something like "forceFalse='true'" or
> "forceValue='true'".
>
> Tim
>
Guillermo is trying work
Care to share? This would be a very, very useful extension.
Is there any plan(s) for future Struts release(s) to support some
attribute of this sort? Something like "forceFalse='true'" or
"forceValue='true'".
Tim
> -Original Message-
> From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
>
I see a similar problem with file upload. It doesn't look like
org.apache.strugs.upload.FormFile exposes a setHeaderEncoding method...
Daniel Rabe
-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Friday, December 26, 2003 1:33 PM
To: Struts Users Mailing List
Subject: R
I understand the mechanics of how to use the "bundle" attribute with some of
the HTML tags to specify which resource bundle will be used to look up the
translation keys. I'd like to use several resource files for my strings so
that each subset of functionality can have its own resource file. So far
To solve this problem, i created a new taglib for checkbox (extending
BaseFieldTag), that creates a hidden input with a value of true|false
and an auxiliary checkbox (named as + _chk) with a
javascript handler that checks on checkbox value to set true or false to
the hidden field, so always is pos
Hi,
I'm becoming mad ...
Explain : to handle ActionForm boolean properties with HTML checkbox, we
"need"
To initialize the property as "false" in the reset() method of the
ActionForm .. Ok
Now, if the Action form is defined in the session scope in the
struts-config file
The first time the action
What you're thinking of as a connection pool, Oracle refers to as a connection
cache. Their pool/cache implementation is provided by
oracle.jdbc.pool.OracleConnectionCacheImpl. I don't recall if I've gotten that
to work with TC before. Have you read:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc
It wouldn't be useful for most people, but for an intranet application where a regular
PC would be overkill, it made sense to use thin clients, and even more sense to use
touchscreens and toss the keyboard and mouse (we have space constraints in the packing
stations as it is, there was no way th
Hi,
Is it possible to forward to Global Error page from ActionForm? If yes then how??
I appreciate any help.
Thanks,
Srini
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
I modified the ActionServlet (might not be necessary - need to investigate the dynamic
module config stuff further), created a new TilesDefinitionFactory and changed a few
other bits and made tiles extract all of its definitions from a database. I also
implemented a cache mechanism as a Java se
So to "prevent urls from being entered from the browser" all you have
to do is take the keyboard and mouse out the equation.
Nice solution I can see how that would be useful for most folk's.
On 29 Dec 2003, at 19:48, Chappell, Simon P wrote:
Nope. There is no keyboard and no mouse. :-)
-Or
Hmmm.. I would use a 'state machine' because:
1. You just can't disable the URL bar in your browser without rendering it
useless (..).
2. Use javascript and your users will disable it.
3. Hack your browser to disallow entering URLs in the URL bar and then
hack everyone else's who need to use you
OK.
I have moved the Oracle JDBC library from shared/lib to common/lib. Same
error message. SQLException: Cannot create JDBC driver of class '' for
connect URL 'null'
Restarted Tomcat service. Same error message.
Removed all the javax.sql... classes from classes12.jar and
classes12dms.jar. S
JDeveloper 9.0.3 ships with Struts 1.1 Beta 2
JDeveloper 9.0.4 and JDeveloper 10g ship with Struts 1.1 Final
This article explains the steps of running a Struts-based demo (like our BC4J/Struts
Toy Store Demo) under 9.0.3 using Struts 1.1
Final. It should contain the steps that you need to run y
Dear All,
I have been struggling with this all day, It'll take a bit of background to explain
what I am trying to do:
I am creating an online wizard to populate templatised web pages, and hence create a
dynamic struts/tiles-based site.
Each template has various containers for content, each con
Ed,
The setup instructions for the "BC4J/Struts Toy Store Demo" at:
http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/index.html
go over the specifics of setting up Oracle DataSource for Tomcat.
The direct URL to the 80-page whitepaper that explains the demo's implementation
Nope. There is no keyboard and no mouse. :-)
>-Original Message-
>From: Mark Lowe [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 29, 2003 1:41 PM
>To: Struts Users Mailing List
>Subject: Re: Is there a way to prevent urls from being entered from the
>browser?
>
>
>Is like the one in vir
ctrl+esc w/o a keyboard? That would be a neat trick.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29, 2003 2:41 PM
To: Struts Users Mailing List
Subject: Re: Is there a way to prevent urls from being entered from the
browser?
Is like the one in virg
That would require a keyboard, would it not? :)
Could you not have a flag var in the session or something that is only
set by a certain piece of code? If the user typed in the URL directly,
the flag wouldn't be set, and you could filter requests based on that.
-Andy
-Original Message-
Fr
Is like the one in virgin stores where you can ctrl+esc and get the
menu/desktop up?
On 29 Dec 2003, at 19:30, Chappell, Simon P wrote:
Oh that's far too clever!
We just used thin-client terminals locked in kiosk mode with I.E.
running in full screen, using touch screens and taking away the
k
Oh that's far too clever!
We just used thin-client terminals locked in kiosk mode with I.E. running in full
screen, using touch screens and taking away the keyboard and mouse. Ha ha ... now try
typing in a URL!!! :-)
Simon
>-Original Message-
>From: Brice Ruth [mailto:[EMAIL PROTECTED]
Wow, that's pretty cool ... I'll have to check out the controllerClass
stuff sometime :)
Domingo A. Rodriguez S. wrote:
Hi Robert..
I guess you could achieve the same using the controllerClass attribute and
building your class.. For instance, I have this definition in the
tiles-defs.xml file:
-
Hi Robert..
I guess you could achieve the same using the controllerClass attribute and
building your class.. For instance, I have this definition in the
tiles-defs.xml file:
---
---
And I have this controllerClass
---
package com.dars;
import org.apac
The cleanest thing to do here, likely, would be to have your 'content'
attribute have a value that maps to an Action (/search.do would work, I
think - Vic might be able to confirm this) and in the Action class,
define an attribute "heading" stored in request context, that pulls from
request par
Thanks for the reply Pedro, but I was looking for a cleaner solution.
robert
> -Original Message-
> From: Pedro Salgado [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 29, 2003 12:51 PM
> To: Struts Users Mailing List
> Subject: Re: [Tiles] Populating Tiles definition attribute at runt
In theory, you could write a filter for the forwards that would check to
see if a REFERER is set for the request. If not, the request was likely
entered directly in a browser.
Jim Anderson wrote:
To clarify: I would like to be able to define ActionForwards for use
within the app but which cann
To clarify: I would like to be able to define ActionForwards for use
within the app but which cannot be entered directly into the browser by
the user. Is this possible?
Thanks.
jim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Hello,
Could anybody point me an example on how to use action roles?
Or any explanation?
I read Ted Husted Struts in Action but I can't get this feature to work
properly.
Thank you
Kelly.
-
To unsubscribe, e-mail: [EMAIL PROTE
I don¹t know if it is possible to change a tiles definition at runtime but
a solution to your problem could be solved by specifying a definition that
uses a jsp file that does a conditional include according to a given
parameter?
<-
> choose.jsp
Pedro Salgado
On 29/
Yeah.. I tend to do things on the server and layer the client-side
stuff on when i get time. In fact i'm a bit obsessive about not having
js dependent apps. :o)
On 29 Dec 2003, at 16:53, Cory Wright wrote:
Hi Dirk:
Sounds like you're talking about client-side issues here. If you're
just tryi
Greetings, I have a tiles definition in my tiles-defs.xml similar to below:
which I would like to be able to modify the "heading" value such that
at runtime I could substitute a value for {0}.
For example, it would be ideal to use a JSTL type of syntax such as:
bu
Thanks everyone! Since I had a jsp:useBean in the page already, I was able to do
the following:
<%=\"\"+globals.getMinChars()%>
Nicolas De Loof wrote:
Your first example is invalid :
" />
A JSP tag cannot be used as attribute value of another tag (XML syntax)
This should work :
Nico.
-
The following:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
explains TC 4.1's class loaders. Personally, I also place JDBC drivers in
$CATALINA_HOME/common/lib. If they're in $CATALINA_HOME/shared/lib, then all web
apps can "see" them but catalina can't, IIRC.
Quoting
Mohan Radhakrishnan wrote:
I think you can also use the role attribute in struts-config.xml and
restrict access actions. Tiles has a role attribute too ? though we are not
using that.
I came across the role tag of tiles as well, but I guess it's suitable
only if you want to restrict some are
Hi Dirk:
Sounds like you're talking about client-side issues here. If you're just trying to
populate form-fields with values from a child window (i.e. popup), use javascript to
try something like this in the popup:
function updateParent(){
popUpValue = document.getElementById("whateverThePo
not sure if this matters, but my oracle jar is in common/lib instead of
shared/lib. I'm not familiar with the differences/uses of common and
shared, but that's how mine works.
-Ben
From: "Ed Dowgiallo" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Us
hi,
use
set this in struts-config for maxFileSize.
look at file-upload-sample in your struts-distribution
There cames an error, if the file is bigger.
greetings
matthias
-Original Message-
From: Patrick Scheuerer [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29, 2003 5:34 PM
To:
Kalra, Ashwani wrote:
hi,
I am working with Jdeveloper and Struts 1.1
When I try to run any page , its not able to find the core action class.
struts.jar is lying in lib dir
Error is
java.lang.NoClassDefFoundError: org/apache/struts/action/Action
java.lang.Class java.lang.ClassLoader.defineClass0
Hi,
I have to validate a form which collects all the data connected with a
document. Allong with discriptive information there's also a
element to upload the file itself. So far use a DynaValidatorForm to do
validation. Everything works fine for the text based form elements. I
would also like
I'm running into the following exception when
issuing a getConnection to an Oracle DataSource.
SQLException: Cannot create JDBC driver of class '' for connect URL
'null'
It has the following definition in a Tomcat 4.1.29
server.xml file.
factory
org.apache.commons.dbcp.BasicDataSou
the last entry overrides any previous entries. I'm not sure how
MessageProperties is implemented, but I always think of a hashmap, where
identical entries will override previous ones.
Otávio Augusto wrote:
Hi all
The application.properties file, from which i retrieve my resouce messages, has g
Hi,
I searched the mailing list archives and the bugzilla database, but couldn't
find an answer, so please excuse me if this is a FAQ.
I am unable to compile any JSP that uses any of the html-el tags under the
embedded Tomcat in Netbeans 3.5.1. The stacktrace follows:
bean-cookie.jsp [-1:-1] jav
I think you need to iterate the message out or pass the argument to get the
error out.
you might need to post more details about how you do the key in your
resource and how you try to get the key.
-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29,
Hi all
The application.properties file, from which i retrieve my resouce messages, has given
me a doubt: is it scanned from the top to the botton or from the botton to the top?
the thing is I made a mistake and added three identical messages there
(errors.login.ivalid), and it always reads the
What are you using as your base build.xml file?
Lawrence Cryderman wrote:
Hi,
I'm having a heck of a time getting ant to build my simple struts
app.
Right now I'm getting:
BUILD FAILED
java.lang.ExceptionInInitializerError
With the ant -v o
Hi,
I'm having a heck of a time getting ant to build my simple struts
app.
Right now I'm getting:
BUILD FAILED
java.lang.ExceptionInInitializerError
With the ant -v option I get
java.lang.ExceptionInInitializerError
a
This comes up quite a bit for my Students.
When using Tiles, the JSP full error does not get displayed, becuase
tiles blocks it sometimes.
I forward to the working JSP for the moment to see the error.
.V
Raphaël di Cicco wrote:
Hi,
I'm working with struts 1.1, Tiles and Tomcat.
on my JSP pages
No sweat, Vic :)
wrote:
Brice Ruth wrote:
One recommendation I've received from this list is to have your
'variable' tile be an Action, so that you would have an order of
magnitude less tile defs to create ... at least, that's how I
understood it :)
Sorry about that;-}It's not easy to e
Eclipse contributors, committers, etc. don't need to be IBM employees,
but they need to be active in the project and recognized by existing
contributors, committers, etc. Its structured similarly to the Mozilla
project, which revolved around a core group of Netscape (now former)
employees.
Mos
Hello!
I'm trying to validate a form in which there are two checkboxes. the validation must
succeed if at least one of them is checked (i.e. fails if none of them is checked). I
know validwhen would be the solution, but I have to use Struts 1.2's requiredif.
field[0]field2
fieldTest[0]EQU
Sure. i know I should do a , eventually I solved my problem
but it's really annoying to have such a poor description of the exception.
- Original Message -
From: "Parthasarathy Kesavaraj" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, December 29,
I think actually u r doing a bean:define for which the value of the
corresponding
property is null..
whenever b4 doing a bean:define check whether actually the proprty is not
null using logic:present
> --
> From: Raphaël di Cicco[SMTP:[EMAIL PROTECTED]
> Reply To: Struts Users
Hi,
I'm working with struts 1.1, Tiles and Tomcat.
on my JSP pages where I did something wrong I often get this exception message :
[ServletException in:/foo.jsp] Define tag cannot set a null value'
or simply :
[ServletException in:/foo.jsp] null
Looking at the source of the HTML page don't gi
hi venkatesh
You are saying that using lower frame
so see which to which form this page belongs to and put that form name in the
validate.xml
then it will display easily
i am think this is the problem of placing the form name correctly
suresh
-Original Message-
From: VENKATESH
I'd approach the problem by thinking about having a child form that
popluates a parent form. When you close the window or submit (have a
button in noscript tags) the child it fires up an action which copies
the values of the child form into the parent.
If the parent is scoped to session
ChlidF
Your first example is invalid :
" />
A JSP tag cannot be used as attribute value of another tag (XML syntax)
This should work :
Nico.
- Original Message -
From: "Domingo A. Rodriguez S." <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December
Hi
Are you only filtering data based on role ?
If you are talking about role-based access of views then we are doing
something like that
1. You can use Container Manager Authentication and restrict access to
URL patterns to only valid users.
2. You can use the vendor-specify XML file
Either escape the double quotes ("" ) or use single quotes ("" ).
--- Frank Maritato <[EMAIL PROTECTED]> escribió: > Hi,
>
> What I want to do is something like this:
>
>arg0="" />
>
> or
>
>arg0="<%=minChars%>" />
>
> Where arg0 is the result of a bean property, but I can't seem t
Using JSTL tags and assuming you have a collection of elements named
"elements" in some scope:
robert
> -Original Message-
> From: Otávio Augusto [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 28, 2003 10:58 PM
> To: [EMAIL PROTECTED]
> Subject: Testing iterator quantity
>
>
>
You should be able to do this with standard J2EE security provided
by your web container.
If you store your user credentials in a database, then you may want
to look at SecurityFilter:
http://sourceforge.net/projects/securityfilter/
It allows you to leverage standard J2EE security features but p
Yeah, they are already there. Without this I will not be able to compile my
files. and IMO ie for development.
>-Original Message-
>From: Adrien GEYMOND [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 29, 2003 4:30 PM
>To: Struts Users Mailing List
>Subject: Re: struts and JDeveloper 9.
Hello,
have you also put the struts.jar library in the Configurations/Libraries of
your project settings ?
You can access the project settings by double-clicking on you 'project.jpr'
in Jdev
I hope, it helps you ...
-
To unsubs
Hello,
anybody know how to handle one action, but two forms (one base form + one popup ).
When the popup gets closed the base form should be updated with the data from the
popup. Anybody has a working example ?
Thanks
hi,
I am working with Jdeveloper and Struts 1.1
When I try to run any page , its not able to find the core action class.
struts.jar is lying in lib dir
Error is
java.lang.NoClassDefFoundError: org/apache/struts/action/Action
java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, by
Your first point of using xxx to make it open in
a new browser is valid..
But the second point i did not get it.
Exactly for those situations where the user is prompted for save dialogue box,I have
suggested to add the response.addHeader("Content-Disposition", "attachment; filename="
+ saveAsF
Hi
Any idea where I can find
some tutorials with code snippets on using the tags contained in struts-html.tld
Best regards,
Sajith
83 matches
Mail list logo