1. Have 2 classes in CSS.
2. within iterate write:
tr class='bean name= property=listRowClass /'
td html:../td
..
/tr
3. In the corresponding form:
public String getListRowClass() {
Hi,
How can I pass the index of the iteratorlogic:iterator tag to a Javascript
function.
I had used JSP scriptlet but tht wz not working..
vivek
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
logic:iterate bla indexId=i
a href=# onClick=myFunctionCall('bean:write name=i/')
/a
/logic:iterate
just an example.
regards
Leon
On Thu, 2005-07-14 at 11:45 +0530, Vivek Chauhan wrote:
Hi,
How can I pass the index of the iteratorlogic:iterator tag to a Javascript
function.
I have a html:link action=MyAction
in struts config i have action path=MyAction
forward=MyGlobalForward
In global forward i have forward name=MyGlobalForward path=a.jsp
now i have a parameter in the link. the mapping produced is
MyAction?transId=100922
i want to forward to that page
On 7/13/05, Vijay K Anand [EMAIL PROTECTED] wrote:
Hi All
Any blueprint how can we write genric code for manipulating data in a
table ,
Can you expand your question please? If you are interested in
displaying tabular data in your JSPs have a look at the DisplayTag
Ya.. Thnx for ur suggestion..
actually the problem is with struts only you can nest two struts tags..
Wht I wz doing..
logic:iterate name=someForm property=someList id=someList
indexId=index
html:checkbox name=someList property=someStatus indexed=true
onclick=javascript:
ah ok:
html:checkbox name=someList property=someStatus indexed=true
onclick=%=javascript: changeSomeCheckBox(+index+)% /
regards
Leon
On Thu, 2005-07-14 at 12:59 +0530, Vivek Chauhan wrote:
Ya.. Thnx for ur suggestion..
actually the problem is with struts only you can nest two struts
Leon Rosenberg wrote:
---Ursprüngliche Nachricht-
Von: Borislav Sabev [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 13. Juli 2005 18:54
An: Struts Users Mailing List
Betreff: [OT] olipmic rings metaphor
How do you classify Security and Authorization issues in this
metaphor?
In my
thanks
On 7/14/05, Leon Rosenberg [EMAIL PROTECTED] wrote:
I'm with Larry. Cron rocks. The only problem you should have in mind: if
your job needs more then the time between the jobs, you've lost.
We had actually this problem, and it killed the db, because (2 years
after initially written) the
Hi
(Warning: not an Oracle insider...)
If I remember correctly Oracle allows Java to used for PL/SQL-scripts.
Maybe you could have a Java-class that is called whenever you make an
update that needs to be communicated. And then somehow make the update
in the second Oracle-db.
just my 2cents
Hello,
Using Struts Validation Framework, how is it possible to use only one
formset in validation.xml for ALL locales, when using only
locales-independant validations ?
I use formset ... /formset but get the error that the form is not
found under locale en_US, i.e.
Having more formset like
Indeed the Oracle Database itself has a DBMS_JOB procedural package
which acts just like Cron in the database - so that provides another way
to tackle the problem - On the other hand the Oracle database also has
a whole set of replication features which are designed for syncing data
between
Thanks Leon,
The problem is solved.. but still we had to use JSP scriptlets... but I dont
mind tht till I am using Struts tags...
Leon Rosenberg [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
ah ok:
html:checkbox name=someList property=someStatus indexed=true
Hi All.,
In our application, I hava a list of tasks. Each task have a chech box and once
checked the check box and click AddAlert button, alert for the checked task
is created.
Up to this functionality working fine for me.
My problem is once creating alert and unfortunately click F5 button,
before Michael jumps on the train :-)
simply send a redirect after executing create action to the list action
again?
regards
Leon
On Thu, 2005-07-14 at 14:24 +0530, senthil Kumar wrote:
Hi All.,
In our application, I hava a list of tasks. Each task have a chech box and
once checked the
Balasubramaniam, Sezhiyan wrote:
I usually set the JavaScript add-options statements using logic-iterate and on
the event of user clicks a button; this function will be called which will
populate the select box.
function refreshSelect()
{
logic:iterate id=MIP_SUBGRP_CD
Hello!
I would advise to use synchronization via Session tockens. (I'm working
at this process' automation at the moment). Struts' Action already has,
what is needed for this are saveToken() and isTokenValid() methods.
This technique makes it imposible to execute an action more then once
Rafael Taboada wrote:
Hi folks I'm using validation framework in order to validate my fields in a
form.
I have three fields in a search form:
strUsername
strFromDate
strToDate
But we have the rule that the user can fill strUsername or use dates range.
I mean he can search by username or he
Yes I do believe using tokens is a cleaner way
rgds
parimal
-Original Message-
From: Yaroslav Novytskyy [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 3:15 PM
To: Struts Users Mailing List
Subject: Re: How to avoid calling .do again once click F5 button.
Hello!
I would advise
I don't see anything displayed on jsp with below
simple code in my struts action class.
MenuComponent mc = new MenuComponent();
mc.setName(Menu 1);
mc.setLocation(Menu 1);
mc.setTitle(Menu 1);
MenuComponent mc2 = new MenuComponent();
mc2.setName(Menu 2);
mc2.setLocation(Menu 2);
On 7/14/05, Borislav Sabev [EMAIL PROTECTED] wrote:
I fully agree here, that's why I consider Authorization as a ring that
intersect all other rings, and this means it depend on each of them.
But it fact better metaphor for it is that is a small ring inside every
other ring, i.e. not seen as
Can any one tell me the id to subscribe to tag libs user list.
I got a problem if any one of you have asolution please send it
I have a code which s written using tag libs...and while i try to run it its
giving me an error
Unable to load tag handler class
On 7/11/05, Craig McClanahan [EMAIL PROTECTED] wrote:
Just remember ... the lifetime of Struts 1.x (five years since initial
conception, four years since 1.0) is basically a geologic era in terms
of Internet time :-).
Ahh, but time is an illusion, and Internet time doubly so :)
It seems to
We use the cron approach as well. Using a simple mechanism and having
separate JVMs has proven very good for maintenance, etc.
Dave
Larry Meadors
From: syed abrar [EMAIL PROTECTED]
I have a code which s written using tag libs...and while i try to run it
its giving me an error
Unable to load tag handler class
org.apache.strutsel.taglib.html.ELTextTag for tag html-el:text
If anyone has solution or know a user list from which i can get the
Hi,
Just adding my 2 cents.
Go with Duncan because:
1) He works for Oracle, so he _must_ know what he's saying :)
2) His approach works nice here in my job. Oracle's replication
features work good. If you are a bad luck guy that doesn't have a DBA
in your team (yeah, it is possible) you can try
Alls,
I just bought and am reading James Holmes' book, Struts: The Complete
Reference (Osborne 2004), which covers 1.2. I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released. Am I
wasting my time and should be studying other literature?
tia,
buddy
Jesse
For specific packages I would look at dbms_streams_tablespace_adm
I would look at Oracle's Moving Data Faster/Pulling Tablespaces article
available at
http://www.oracle.com/technology/oramag/oracle/04-sep/o54data.html
And of course consult the folks at Oracle if you have a support
With no intentions to create yet another thread of I dont like Validator
Framework. I just wanted to know if there was any way of using validation
framework to validate collections element, without writing
bean.collection[0].property for the property, as it might not be possible to
know the size
Indeed
The intricacies of session scoped beans vs request scoped beans with regards
to the security enforcement provisions of the transaction token are explored
at
http://www.netspread.com/tips2.html
Please keep us apprised as to how you make out,
Martin-
- Original Message -
From:
From: Access Denied [EMAIL PROTECTED]
I just bought and am reading James Holmes' book, Struts: The Complete
Reference (Osborne 2004), which covers 1.2. I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released. Am I
wasting my time and should be studying other
Hi there,
I have an application that I am working on that requires two different role
levels (administrator and user).
The administrator, will have some extra links visible to them. I want to use
only one struts-config file.
I am currently running into a scalability issue -- here is what I
From: Wendy Smoak [EMAIL PROTECTED]
No. Most of the major changes in 1.3 are 'behind the scenes' and will not
affect the way you configure and use the framework.
That didn't come out quite right. I meant that the changes in 1.3 don't
*have* to affect the way you configure and use the
I've seen Maven listed amongst the Apache projects and read a little.
Is it supposed to replace CVS and SVN? Is this something we should be
using routinely?
tia,
buddy
On 7/14/05, Wendy Smoak [EMAIL PROTECTED] wrote:
From: Access Denied [EMAIL PROTECTED]
I just bought and am reading James
Maven is for building projects, like Ant does.
Access Denied escribió:
I've seen Maven listed amongst the Apache projects and read a little.
Is it supposed to replace CVS and SVN? Is this something we should be
using routinely?
tia,
buddy
Leon Rosenberg wrote the following on 7/13/2005 6:06 PM:
Rick is it possible to extend your tag with attr. statusName to give the
name of the attribute in a scope which holds
the value instead of the value itself? :-)
Sure that would work. I love JSP tag files.. so darn easy to work with.
[EMAIL PROTECTED] wrote the following on 7/14/2005 2:21 AM:
1. Have 2 classes in CSS.
2. within iterate write:
tr class='bean name= property=listRowClass /'
td html:../td
..
/tr
3. In the
Hi!
I have extended the RequestProcessor's processPreprocess() method
in order to perform a simple user authentication mechanism using
cookies. If a cookie identifying a user is found, but the users member-
ship has expired, I would like him to be forwarded/redirected to a
corresponding error
I guess it is easier to repost, than to explain how to search mailing
list. Rick, Leon, you already have read this ;)
=== cut here ===
Tokens are better solution than nothing, but not the best. Token
works *after* POST request has been resubmitted. It can help to
prevent *data resubmission* on
I extended the RequestProcessor to forward between two web applications. The
following code is what I use to forward to an action that the other web
application has. Then the other web application can define an action that can
handle forwarding to whatever jsp it wants.
if
Calling just request.getRequestProcessor() effectively exits the
Struts environment since the request object doesn't know anything
about struts_config.xml. You need to use the method and fields of the
RequestProcessor instead.
Try this:
ActionForward expireForward =
request.getRequestProcessor() -- request.getRequestDispatcher()
On 7/14/05, Jeff Beal [EMAIL PROTECTED] wrote:
Calling just request.getRequestProcessor() effectively exits the
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi Dave,
You can also try Poseidon or Jude. Both are free.
--regards.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
At 6:21 AM -0700 7/14/05, Wendy Smoak wrote:
From: Wendy Smoak [EMAIL PROTECTED]
No. Most of the major changes in 1.3 are 'behind the scenes' and
will not affect the way you configure and use the framework.
That didn't come out quite right. I meant that the changes in 1.3
don't *have* to
From: [EMAIL PROTECTED]
I have extended the RequestProcessor's processPreprocess() method
in order to perform a simple user authentication mechanism using
cookies. If a cookie identifying a user is found, but the users member-
ship has expired, I would like him to be forwarded/redirected to a
Hi,
I want to place my JSPs under the WEB-INF directory[login directory].
How ths struts-config entries should look in this case.
If I try to add the following forward--entry:
forward name=success path=/login/welcome.jsp redirect=true
contextRelative=false /
But, this by default looks
Hi,
Just curious as to why in the JSP the token is wrapped in a div tag?
divinput type=hidden name=org.apache.struts.taglib.html.TOKEN
value=383952ea7a0093448e02f3f0d635865b/div
I'm using v1.2.7.
Regards,
Glenn
1. Files under WEB-INF cannot be accessed directly from outside, that
is, from browser
2. Redirect generates a new browser request to the server
So, the answer is not possible in your current configuration.
JSP generally should not be accessed from outside, they should be
forwarded to from an
Hi all,
I have the following code:
td class=form_field width='34%'
html:select property=countryID tabindex=11
html:options collection=country property=ID
labelProperty=country/
/html:select
/td
Which basically gets a list of countries and displays them.
Hi, Tom
did you try to use ActionForm#reset() to set default
value for countryID to US ?
getCountryID() you are talking is a method of
ActionForm, right?
ichy
Martin Gainty wrote:
Boris-
I see Security as implemented by RingBearer Frodo in Lord of the Rings
The caretaker of the ring travels thru all domains and access to the
other dimension (portal which contains final results) regardless of
any domain he travels thru
Begreife?
Martin-
Since I'm
Hi Ichy,
I did think about that but the way my global settings are set the
default value for country is found in the jsp page. Maybe I need to
rethink this. I was just hoping there might be another workaround.
i.e. somehow first check the bean and if nothing then use the default
value.
Yes,
Hi everybody.
I got a little problem using html:radio with javascript.
I got a table I want to hide/show a cell if a radio is selected, I tried to
do it using javascript without any success.
By default the cell is hidden, that's why I can't only use the onclick()
event to take care of users who
As far as security and authorization goes, where I work we very much view
it as, I suppose, a ring around the Olympic rings... perhaps a 100m track?
:)
We have completely externalized security from all our applications and
have built a fairly robust Security Framework, on top of J2EE security and
The reason I often end up using my Value Object directly in my
ActionForm is because rarely do I ever end up with a nice simple case
where the users are submitting simple form fields. Typically I end up
with cases where I have to deal with a bunch of nested beans. It gets
INCREDIBLY cumbersome
I am trying to restrict a field input value between 1 and 12. The user has to
enter like 01 or 02.. thro 12. The validation fails if I enter 08 or 09 and
for all other values from 01 thro 07 and 10 thro 12, it works fine. Again the
problem is only if I enable javascript validation.
Did anybody
Yes. It's because the leading zero is saying the numbers are octal, so 01-07
are valid octals, 08-09 are invalid octals, and 10-12 are valid octals.
Jat
| Jay Burgess [Vertical Technology Group]
| Essential Technology Links via RSS
| http://www.vtgroup.com/
-Original Message-
Ok this is basic, but I'm stumped here at the moment...
Imagine a Map of Animals. (Animal has a name property)
map.put(new Integer(1), new Animal() );
map.put(new Integer(2), new Animal() );
In my Action form this map is in there as:
private Map animalsMap;
getAnimalsMap()
setAnimalsMap(Map
At 12:14 PM -0700 7/14/05, Jay Burgess wrote:
Yes. It's because the leading zero is saying the numbers are
octal, so 01-07
are valid octals, 08-09 are invalid octals, and 10-12 are valid octals.
Jay's exactly right here. Your options:
(1) hack the Javascript validation; commons-validator
Hello:
According to this page:
http://www.javaworld.com/javaworld/jw-09-2004/jw-0913-struts.html
In order to prevent people of accessing jsp pages directly
without using my struts controller, I added this to my web.xml:
!-- Do not allow users to load jsps directly --
security-constraint
Rick Reumann wrote the following on 7/14/2005 3:17 PM:
Ok this is basic, but I'm stumped here at the moment...
Imagine a Map of Animals. (Animal has a name property)
map.put(new Integer(1), new Animal() );
map.put(new Integer(2), new Animal() );
In my Action form this map is in there as:
Rick Reumann wrote the following on 7/14/2005 4:20 PM:
From the FAQ I'm going to try this in my ActionForm..
public Object getStringMapped(String key) {
return map.get(key);
}
public void setStringMapped(String key, Object value) {
map.put(key, value);
}
When
hi,
I'm checking struts-flow package and one of it's features Remote RPC
support (termed Ajax but with JSON instead of XML) for calling flow
methods from the client. As much as I can see now there is no problem
to invoke actions from struts-config but as much as I see all page is
being
I'm not sure I understand the question, but if you just want the
ability to call Java methods from the client, I'd go with DWR. Struts
Flow is a bit more experimental looking at rethinking web applications
as continuations-based Javascript-glued apps where the view logic can
be written in the
Shouldn't there be an authconstraint in there?
auth-constraint/, or something like that? Can't remember exactly.
Looks to me like you have defined the resource but not declared who (in this
case nobody) has access to it.
Erik
-Original Message-
From: Neil Aggarwal [EMAIL PROTECTED]
Erik:
Doh! I guess I did not copy the whole thing.
Thanks for the help.
Neil
--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less!
I have a tiles controller which populates an html:select. The html:options
values will contain a struts actions which will be used by a Javascript
method in the html:select's onChange attribute to forward the user to a page
when the html:select changes.
Now my question is, how do I get the
rajiv verma wrote:
Hi,
I want to place my JSPs under the WEB-INF directory[login directory].
How ths struts-config entries should look in this case.
If I try to add the following forward--entry:
forward name=success path=/login/welcome.jsp redirect=true
contextRelative=false /
But, this by
Not sure what a .def file is, but I think you're on the right track with
combining them and using conditional logic within the JSP to control what's
displayed based on user role. Look at logic:present role=''/ for a simple
way to wrap role-dependent markup in your JSPs:
The html tags don't support what you want directly; if you specify a
'value' attribute it always takes precedence. You can set the default in
the form bean (either in your setup action, or using jsp:setProperty/ or
similar in the JSP page) and not use a value attribute or, if that's not
[EMAIL PROTECTED] wrote:
Just curious as to why in the JSP the token is wrapped in a div tag?
divinput type=hidden name=org.apache.struts.taglib.html.TOKEN
value=383952ea7a0093448e02f3f0d635865b/div
I'm using v1.2.7.
What does your JSP look like?
L.
--
Laurie, Open Source advocate, Java
On 7/14/05, Access Denied [EMAIL PROTECTED] wrote:
I just bought and am reading James Holmes' book, Struts: The Complete
Reference (Osborne 2004), which covers 1.2. I just learned from one
of Ted Husted's posts that 1.3 is almost ready to be released. Am I
wasting my time and should be
John Henry Xu wrote:
It is bad using only one URL.
Not always. For some applications, especially
non-search-engine-sensitive ones, it makes perfect sense.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Ted, is there a list of tasks for 1.3? By volunteer, are you referring only
to current Struts committers?
Erik
-Original Message-
From: Ted Husted [EMAIL PROTECTED]
Sent: Jul 14, 2005 6:57 PM
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Struts 1.2 v 1.3
On
[EMAIL PROTECTED] wrote:
Ted, is there a list of tasks for 1.3? By volunteer, are you referring only
to current Struts committers?
Anyone can edit / search bugzila.
Anyone can post a diff to code. Only a comiter can ... comit code.
(you become a comiter when comiters get tired of comiting
Hi folks... In http://struts.apache.org/userGuide/dev_validator.html
I try to use a sample about validwhen
field property=emailAddress depends=validwhen
arg0 key=userinfo.emailAddress.label/
var
var-nametest/var-name
var-value((sendNewsletter == null) or (*this* != null))/var-value
/var
/field
From: Rafael Taboada [EMAIL PROTECTED]
java.lang.NoClassDefFoundError: antlr/TokenStream
That just looks like you're missing antlr.jar from the classpath. Is it in
WEB-INF/lib?
--
Wendy Smoak
-
To unsubscribe, e-mail:
Yeah, that was the problem...
Do u know a tutorial about how to fill my validation.xml?
I want to know what i have to put in each tag.
--
Rafael Taboada
Software Engineer
Cell : +511-97753290
No creo en el destino pues no me gusta tener la idea de controlar mi vida
Rafael Taboada wrote:
Yeah, that was the problem...
Do u know a tutorial about how to fill my validation.xml?
I want to know what i have to put in each tag.
Are the docs at http://struts.apache.org/userGuide/dev_validator.html
not satisfactory?
Dave
Hi Guys,
Thanks for all the input. I'll suggest the oracle dbms_job approach
seems reasonable. My last option would be to create a cron job.
Richard
On 7/14/05, Martin Gainty [EMAIL PROTECTED] wrote:
Jesse
For specific packages I would look at dbms_streams_tablespace_adm
I would look at
I am trying to validate from properties. First I thought that error
was caused because I use nested properties (can I ?)
But now I have only one property, not nested, and I get this:
Jul 14, 2005 7:02:57 PM org.apache.struts.validator.ValidatorForm validate
SEVERE:
Hi Duncan,
Will there be a way that the source DB access the target directly?
Because right now these DB's are accessed via web services Im thinking
if the source DB can directly connect to the target DB.
Also these procedural package, can they send notification emails?
On 7/14/05, Duncan Mills
You can always just memorize the DTD :)
On the other hand, you could pick up a good text editor with autocompletion
that supports DTD/XML Schema. Even after Eclipse WTP M4 shipped, I prefer
XML Buddy, so much so that I went ahead and purchased the Pro license a few
months back.
--
James
Yes, you can use nested properties the same as anywhere else.
I see a stack trace below, but what is the actual error you got?
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:
I think it is high time we get something out there for 1.3, even if it never
makes it past beta, at least we are moving.
I'm about to head out on a working-vacation, and while I'm gone, I'll try to
get the release plan put together. Does anyone have any time they'd like to
donate in a week
Hi Guys,
Can a simple java app access a web service? Or do I need to install axis?
Thanks
Richard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
That is a very interesting tag, I have never used it - thanks Laurie!!
Cheers, Alex.
On 7/14/05, Laurie Harper [EMAIL PROTECTED] wrote:
Not sure what a .def file is, but I think you're on the right track with
combining them and using conditional logic within the JSP to control
what's
Hi Richard,
Axis is the server-side of the WS equation (although maybe it can
perform some client duties, I'm not certain), so more than likely it
wouldn't come into play anyway.
The simple answer is yes, a simple Java app can access a web service.
There are classes that will specifically
(imitating Donkey) Me, me, pick me! ;-)
I am currently in the process of rewriting Mail Reader with Struts
Dialogs. You would not believe how nicer it gets ;)
Michael.
On 7/14/05, James Mitchell [EMAIL PROTECTED] wrote:
I think it is high time we get something out there for 1.3, even if it
This is it, this is all I got. ValidationAction.validate() returns
null, no errors. I call validate() manually from action class, is this
OK?
On 7/14/05, James Mitchell [EMAIL PROTECTED] wrote:
Yes, you can use nested properties the same as anywhere else.
I see a stack trace below, but what is
From: Aleksandar Matijaca [EMAIL PROTECTED]
I have an application that I am working on that requires two different
role levels (administrator and user).
The administrator, will have some extra links visible to them. I want to
use only one struts-config file.
Have you looked at Struts Menu?
James, are there any specific tickets that are a direct impediment to a
1.3 release, as opposed to those things that could be dealt with
post-release?
Identifying those might help focus effort, especially if there are
non-commiters that might like to help but aren't sure exactly how best
to
On 7/14/05, James Mitchell [EMAIL PROTECTED] wrote:
I see a stack trace below, but what is the actual error you got?
Hmm, it works on another machine, with different combination of
struts/common libs. So, seems just a lib mixup.
Michael.
Hello,
Many developers use tag html:cancel/ to perform action without validation
(and for other reasons). It's usefull but it can be danger because of
security. If we don't serve cancel button in every Action or BaseAction then
it's possible to perform some actions without validation.
How?
It's
94 matches
Mail list logo