Hi
I want to be able to use multiple forms on the same jsp page. There is
ever only one form on the page, which form is dependent on the value of
a bean, ie something like
logic:equal name=adminPage value=deleteOldAccounts
code for form 1 goes in here
/logic:equal
logic:equal
Hi all,
Reading severall articles, It seems to be a better solution to avoid
the use of frames in web project. However I'm afraid not to have
the choice (I need an applet running in background).
Could someone give advice on frame templating using Struts.
Thanks in advance.
-Th.
--
To
Hi,
Struts´ automatic validation seems to be very useful, centralizing
validation logic. But I have a problem. My page has some aditional
information in it, example: I´m updating a book, the page has all those
fields about book name, ISBN and so. But I have some information about book
volumes,
Hi all,
I have two submit image in my JSP . when the user presses the 'ENTER' key the
first occurance of the Submit button in my JSP gets invoked. This leads to a
problem as my first submit button is a previous button and next is the submit
button. I cannot change the sequence of button on the
Hi João,
Basicially you call the validation method from your action class tell struts not to
call it.
(validate=false in action def. in config file).
This is already answered better than mine in the archives.
Keith.
--- João_Guilherme_Del_Valle [EMAIL PROTECTED] wrote:
Hi,
Struts´
and how do u set the values for html:multibox?
i had managed to create a list of checkboxes but the checked status
isn't initialized at all, meaning, whatever checkboxes that were
selected by users were not reflected in the checkboxes when the user
returns to the same page again after
I think you want each form to have it's own action form bean but them to use the
same Action
class. eg.
action path=/form1
type=myAction1
name=form1Form
action path=/form2
type=myAction
name=form2Form
Hi
Yes you are right it has been inherited from submit tag. I used the tabindex
property but the form seems to choose the first occurance of submit to submit
the page
Thanks
Murali.
Tom Klaasen (TeleRelay) [EMAIL PROTECTED] on 10/01/2002 12:02:06
Please respond to Struts Users Mailing List
g I remain speechless now...
sorry, can't help you then
tomK
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: donderdag 10 januari 2002 18:27
To: Struts Users Mailing List
Subject: RE: two submit buttons
Hi
Yes you are right it has been
We have got round the problem of passing javabeans into other frames by
using javascript to set variables in the other frames(the alternative to to
using jsp:includes and jsp usebeans). This is one of the possible issues
that you may run into (as we have) when using frames.
IMHO I think it's
We took a fairly simple approach for a quick and dirty prototype. We integrated
in the guts of bean:message into html:options and added a parameter
i18n=(true/false) to the html:options tag which is used by the tag class to
identify whether the labelProperty collection should be treated as an
Sorry if this question has already been addressed.
We are trying to use the Struts framework inside Broad Vision 6.0 ; a
testing example (called Broadway) is provided, that seems to use the
framework, but I can't have the Struts example work. An exception is
raised, when dealing with the form tag
How can i write an object's property that belongs to an 'ArrayList' object
using the clause bean:write.../?
Thanks in advance
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
bean:write name=... property=pty[index] /
hope I'm not wrong :)
- Original Message -
From: Rubens Gama [EMAIL PROTECTED]
To: Struts-User [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002 2:52 PM
Subject: bean:write.../
How can i write an object's property that belongs to an
thanks for the fast reply but...
for example:
listClients - collection of client's objects(ArrayList for example)
client - object
code - client object property
i want write code in html form.
how can i do it?
-Mensagem original-
De: Olivier Dinocourt [mailto:[EMAIL PROTECTED]]
Enviada
Hi Mur,
there are two possible diagnosies i see:
one: Internet Explorer automatically selects the
first submit when the user hits enter
(Netscape doesn't). Mostly likely what you
would want to do is intercept the enter key.
(
Is it possible to detect if one particular error has occurred while on
the jsp when using the validator? We are trying to change the color of
the label of a button when an error has occurred. I have been looking
everywhere and trying everything, and I can't seem to find a way to do
this.
Hi,
I have been using Struts now for about a year and I really like it. It has
saved me a lot of time and made my apps quite stable. I have just been
placed on another large struts project. It will be pushing struts to the
limit. A quick question on design. What I am going to do is a bit
I'm new to struts also, but the way I have been doing it is to set up an
action and a form bean in the struts config. The action code (or some other
bean that the action code uses) for getting the data from the database and
populating the form using something like
How would I iterate through an ArrayList that is within an ArrayList that is
already in an iterate tag?
Example:ArrayList: dInfoList
Structure: var1: String
var2: String
var3: int
have a look at the nested taglib from Arron Bates -- should help you out
http://www.keyboardmonkey.com/struts
hth,
tomK
-Original Message-
From: Collard, John [mailto:[EMAIL PROTECTED]]
Sent: donderdag 10 januari 2002 15:31
To: 'Struts Users Mailing List'
Subject: quick question:
If I read you right, then the following should work (I just posted this to another
question)
html
body
Use of the Struts iterate tag with nested ArrayLists representing rows/cols:p
%@ page import=java.util.ArrayList %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
%@ taglib
Can I pick both? ;-)
I use tags that look exactly like they do in Struts. They are
frequently, but not always, Expresso tags that extend the Struts tags of
the same names but take advantage of Expresso usage. For example there
is an html:text tag in the Expresso-html taglib that is identical to
Hello,
I am looking to use tiles. I have existing struts1.0 based application.
Should I convert it to latest nightly build release or just plug in tiles
jar for struts1.0?
How stable is nightly releases?
Thanks, Mark.
here's my 2 bobs worth
One aim is to be able to deploy apps change optional characteristics without
recompiling. Big
software is full of config files programs use symbolic names which are mapped to
real external
entities in config files. This becomes more desirable the bigger the system.
I have taken a look at JetSpeed and was very impressed except for the
fact that it must run on to of turbine which I don't like. So ya, I
would be interested in seeing this take place and would be willing to
lend a hand.
Kris
Sandra Cann wrote:
I was getting caught up on the Jetspeed
One possible way to do this would be to specify two instances of the
actionservlet in the web.xml each pointing at it's own version of
struts-config.xml.
The content of the xml will essentially be the same and will call the same
actions except that the formbean definitions would be different
BroadVision has modified the Struts to work with their legacy backend (Corba
stuff). And I believe it is not the same Struts as the Jakarta's. Some
methods is not supported or implemented.
Hopefully, they will eventually just use the standard Struts libraries.
Yong Chen
-Original
I think you've missed the point of form beans.
On submission of an html form struts looks at the request parameters. If it can find a
matching
set method in the form bean it calls it. ie. the form parms are copied into the form
bean.
When you forward to a jsp with a form struts calls the get
i'm not doing nested ArrayLists.
It´s an ArrayList of objects.
the objects have simple properties as String properties..
i want write one property of one object of ArrayList or
two property of the one object of ArrayList...or
three property of the three object of ArrayList.
i cannot use
Do you mean you want this?
logic:iterate id=eachRow name=DATASET scope=request
trtd bean:write name=eachRow property=field1 / /td
trtd bean:write name=eachRow property=field2 / /td/tr
where you array list contains objects eachRow, which has methods String getMyField1(),
Alex,
There's not enough information here to know on what basis you decide to
switch DBs. But based on what is here it looks like you could just
define two actions in struts-config.xml each referencing a different
form bean. They could both reference the same action class, or a
different action
So i should call my action bean to pre-populate the jsp form?
Original Message Follows
From: Keith Bacon [EMAIL PROTECTED]
I think you've missed the point of form beans.
On submission of an html form struts looks at the request parameters. If it
can find a matching
set method in the
Hi Alex,
I'd try to use just 1 Form Bean 1 Action 1 jsp. Use logic:present to decide
whether to put
the fields extra on the form. Make the same test in the action class to decide whether
to process
the extra fields. The form bean doesn't even need to know that it's only 1/2 used
sometimes.
I am trying to work on a simple JSP page which does about 12 tasks and each
task would take a minute at least. Is there a way to show the user the
progress made--Like Task 1 completed,working on Task2 and so on. Or a
display of percentage of work done (5% done and so on)so that user knows how
Hi!!
I have problems with several submit buttons too - a question - the
attribute accesskey in the html:submit tag - is it possible to use it to
somehow move focus a certain submit button in the form so this submit
button's action will be executed if you press enter? Has anybody tried this?
/
Hi all.
I am new to struts. so my problem is:
I have a jsp page that calls an action.
I want my action to be called and populate the fields in the jsp page from
the form bean.
I have followed the instruction in previous messages in the list and ended
up with code as below:
I call a link named
Hi,
I was using struts 1.0 beta version for my application and I couldn't check
or select the radio button on my JSP
The radio button is a string in my form bean and I want to select that based
on checked or selected that I give for it.
If anyone can give me the syntax for using the tag(Just
thak you, but it's wrong.
i want write a property 'prop3' of an object without going through the
'ArrayList'.
For example:
bean:write collection=listClients
objectCollection=listClients.client[5] propertyObject=name/
detail: '5' == fifth object in the 'ArrayList'.
is this already implemmented?
Subject: Re: Struts design advice requested please.
From: Vic Cekvenich [EMAIL PROTECTED]
===
Maybe create a flag in the form bean as to who to CRUD to.
Then in action, keep track what mode you are in, and before calling
CRUD, set the flag.
This means on set of getters and setters, but ...
ah
logic:iterate id=client name=listClients offset=5 length=1
bean:write name=client property=name/
/logic:iterate
does this help?
tomK
-Original Message-
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: donderdag 10 januari 2002 16:56
To: Struts Users Mailing List
Not enough detail for a full opinon, but this type
of app is what EJB's are designed to handle at the EIS layer
of the J2EE architecture.
HTH
- Original Message -
From: Alex Colic [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002 9:20 AM
Subject: Struts
This does raise an interesting question, though. I haven't tried using
internal anchors on a page with Struts, or, for that matter, with JSP. How
would that work? Is it something you have to give up on when you use JSPs?
Has anyone tried it?
David Sills
-Original Message-
From: Ted
Thanks David
I've fixed it now.
I have ensured that the struts and struts-validator jars are only on the
webapp's classpath as per your webpage.
I have excluded them from my environment, but ensured they are on the
compiler's classpath by adding them into the ant build.xml
Cheers
Patrick
Subject: Re: New API specification
From: Vic Cekvenich [EMAIL PROTECTED]
===
Hello Sandra,
In general, I would say the less technology applied in the framework the
better, but still make the framework do the heavy pulling. 80/20 staves
it should be 20 % of things you use 80% of time (so not
Most people say best practice is to always start your jsp from the struts action.
(always use the
/myAction.do not /myAction.jsp).
I think you need to do a lot of studying messing around to get the hang of struts,
it's not
totally simple - but web apps never were.
Try
Hi Vic,
hm, could you please help me with some details, I'm not sure, what you mean
by some of the following terms. I also would like to know HOW you
implemented those things or what tools you need (I'm very curious):
CRUD - what does that stand for (I'm not completely stupid, I just missed
Any reason why the struts example works in registration.jsp, when the
property is a Hashtable and the return type is Subscriptions[]?
Tried this example with different classes and I get the no getter for class
error.
I have found with struts version 1.0 that if you have nested collections on
a form bean that struts will correctly reslove the getter methods but is
unable to resolve the setter methods. I have been forced to use scriptlets
inside the stuts tags to overcome this problem. I'm hoping the newest
Subject: Re: New API specification
From: Vic Cekvenich [EMAIL PROTECTED]
===
CRUD is a DB term. It stands for Create (Insert), Read (Select), Update
and Delete. Struts does a lot, but not CRUD. RowSet does nice CRUD.
Master Detail - Say you have a list of customers that have invoice.
Thank you very much. I agree with you that i am still in the learning mode
and have a far way to go.
But i am also using Vignette so i can not start with the action i have to
start with the jsp
_
Chat with friends online, try
The nested taglib from Arron should solve your problem
http://www.keyboardmonkey.com/struts
no need for scriptlets or anything.
If I understand you right, the 1.0.1 won't solve this problem (I use a
CVS version myself, and it isn't solved in there)
hth,
tomK
-Original Message-
Alex Colic wrote:
I have been using Struts now for about a year and I really like it. It has
saved me a lot of time and made my apps quite stable. I have just been
placed on another large struts project. It will be pushing struts to the
limit. A quick question on design. What I am going to do
Expresso helpsa lot if you have been building action command mapping
in every single Action that you have written.
String action = form.getAction()
if ( action.equalsIgnoreCase(prompt)) {
...
return mapping.findFrward(prompt);
}
else if ( action.equalsIgnoreCase(add)) {
...
looks like your action is invoked by editDocType.do so has been started by struts. You
should use
the form parameter passed in the perform method. Struts has created it for you to fill
in then
will store it in the scope specified your action definition in struts-config.xml,
where your jsp
can
Struts has a mapped property attribute in the nightly build.
This lends it self to the Expresso DBObject way of
reading field by attribute name. If you had a database
object with field called ProductId you could retrieve
the column simply with code like:
dvdProduct.getField(ProductId);
Expresso setting is usually:
username: Admin
password: blank
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
Message History
We've had to deal with an analogous problem, though, which I think is
applicable in a lot of situations. The form is being used to change values
in a persistent store, but when first displaying the form we want to display
those values currently in the store. We've gone the route of having the
The other part of your problem is how you are trying to set the
properties in your form. I have also been unsuccessful at trying to use
your style to set the properties. However what does work for me is
using the value attribute on most of the html tags for setting the
default values on the
For init population put the data in the form bean passed into your perform method, the
struts tags
in your form will get the values out of the form automatically for you.
Am I missing something?
nope - you've got it sussed. Some do it your way which I suspect might be
theoretically better
As I understood trhe documentation - it does not wish to communicate with
stored procedures on purpose as a design desicision so that new DBs can be
plugged in and out interchanbgeably more easily. But I guess they could
still design that functionality anyway for those developers who must
what do you use instead of ActionForm when using expresso/struts?
when doing expresso/struts do you still use Input/Output/Block/etc objects?
- Original Message -
From: Peter Pilgrim [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002 9:43
I found HTML frames very problematic.
I had to action that forwarded to the frameset , action forward (promptFrameset ).
This HTML document is the frameset document that reloaded all the frames.
This meant that the forms in the sub frames had to set the targetFrame to _top
as well.
I think
Peter,
Thanks for your feedback on your experiences with frames.
It is reassuring to know I'm not the only one.
I have interspersed my comments below.
Vaughan.
-Original Message-
From: Peter Pilgrim [mailto:[EMAIL PROTECTED]]
I found HTML frames very problematic.
I had to
Yes you can because you access input, output, block in the JSP
using the custom tags. Because an expresso controller writes a controller
response object to the request scope. The input value can also read back a
controller requests.
But I do not why you cannot reuse old ActionForm that you have
I have seen references to avoid *.do kind of mapping, and to instead map
with something like /do/*.
I could not find out the reasoning behind it.
Could anyone please explain or point me to any article that covers it.
Thanx in advance,
anil
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
How does a jsp custom tag know what order or what methods to call to set
attributes in the TagSupport object?
In other words, what has to match the tag attribute names? Do my variable
names in the tag handler have to be the same as the attribute names? Or do
my methods have to follow some kind
This is my understanding of the roles Of ActionForm Action classes Business logic
the best
way to use them in a typical business system. It's in as plain English as I can manage.
Quite a lot of experimentation has gone into all this but I'm way less experienced at
struts than
many on the
it just looks cooler :)
although doing foo.com/myApp/do/userReg instead of foo.com/myApp/userReg is
even cooler..
hehe
ill have to see if /* works..
- Original Message -
From: Anil Mandava [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, January 10,
is it possible to use DBObjects and not use other parts of expresso such as
Jobs, Controllers, etc?
- Original Message -
From: Peter Pilgrim [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002 10:35 AM
Subject: Re: Advice needed on Stuts
of course!
Francisco Hernandez wrote:
is it possible to use DBObjects and not use other parts of expresso such as
Jobs, Controllers, etc?
- Original Message -
From: Peter Pilgrim [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002
Hi,
I was using struts 1.0 beta version for my application and I couldn't check
or select the radio button on my JSP(The output doesn't check the radio
button)
The radio button is a string in my form bean and I want to check one of the
radio button(belonging to Y or N value).
If anyone can
A while back while working with a client, we began to pursue developing a
portal framework on top of Struts. I have the original work we began with
and have been continuing to work with it since when I have time.
The basic design consists of a workbench. The workbench consists of
benches(novel
I'm also very interested in using Expresso DBObjects in combination with
Struts. Could you please explain a little bit more...
Especially the initialization process which is special to Expresso and its
DBMaint/DBTool servlets.
Thanks a lot
Ingo
-Original Message-
From: Pete Carapetyan
Hi,
In one of our JSP-views the html:form-tag does not
get its action attributed evaluated properly and we
have no idea why.
We are currently building an application on the Orion
server. The application context root is http://host/app/.
We have defined a login action this way:
action
I have an application that was originally written using BEA's Commerce
Server (and WebLogic App Server) as the framework. I would like to
migrate this application to Struts and Tomcat. I need to continue to
support the existing application and add new functionality. I'd like
any new work to be
You might be encountering this due to that something was already written by
printwriter -- e.g. you have something which is getting printed before your
jsp:forward page=some... even a line break on jsp will do that because
its getting interpreted as a string and gets printed..
hope that helps.
Hi
I use a subclass technique where I can achieve both a generic form as well
as specific forms for each action. Eg
public abstract class GenericListForm extends ActionForm
public class OrderListForm extends GenericListForm
public class MessageListForm extends GenericListForm
In my case, both
Since I see these questions come up, and I just got them
figured out, I thought I would share them with the mailing
list.
Select can be used with:
a: A collection of strings, such as an arraylist
b: A collection of beans, each of which has string fields
c: Hard coded values
I know you can
Thanks a lot I really appreciate all the advice. It really helped me out.
One thing you said really surprised me. You said:
For ActionForms, my preference is to use larger generic form beans. They
are really a throw-away object, and linking them too closely to a
hierarchy can be a waste of time.
Yes, the ActionForms exist to provide an input buffer for the HTML
controls, just so that you can validate the input, and either return it
for correction, or commit it to a business layer object.
The second, very important, service that ActionForms provide is to act
as a firewall between the
Hi all,
I would like to access the Struts message resources from parts of my
application which are not servlet or JSP related, say in business components
or non-JSP presentation parts.
In an action or form I would do something like this:
MessageResources messages =
Several JSP pages act like they never end. The pages have a form bean which
gets populated in an action class. With IE6 browser, the page just keeps
loading and loading over and over until I click the STOP button on the
browser.
Has anyone seen this behavior before? Any idea what I'm doing wrong?
Take a look at www.db4o.com.
Disclaimer: I don't work for them. I don't even have/use the product, but it
sure looks good.
Marcel
-Oorspronkelijk bericht-
Van: Narendranatha R Sajjala [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 10 januari 2002 23:31
Aan: 'Struts Users Mailing
Naveen == Naveen Veluri Veluri writes:
Naveen Hi,
Naveen I was using struts 1.0 beta version for my application and I couldn't
check
Naveen or select the radio button on my JSP
Naveen The radio button is a string in my form bean and I want to select that
based
Naveen on
Larry,
Like the Struts developer community, the Expresso community is comprised of
contributors from all over the globe who have nothing to do with our support
services. These individuals have worked together on contributions and have
definitely made a huge impact on what Expresso is today -
Narendranatha == Narendranatha R Sajjala Narendranatha writes:
Narendranatha persisting Shoppingbasket as a Blob object is decreasing the
performance,
Narendranatha any one can give a better idea about alternative for this.
Narendranatha At present blob object contains
Good point. I was reading today about companies on tighter budgets with the
economic situation looking to open source software more to fulfill their
needs.
I wonder if anyone on this list has made a management presentation for
struts or struts/expresson and would be willing to contribute
Hi
I have an action - (action 1), associated with this action is a jsp
page. What I want to do is have part of the content of this jsp page to
be generated by another action - (action 2)
-jsp page used by (action 1) start---
html
I want to include here content from
Some people on this list have been helped out of nesting iterate tags
within iterate by being referred to the Nesting Extension. If you want
to nest iterate tags within iterate tags the extension is still by far
the best way to go, but the extension can do so much more.
The extension links
i suggest you guys should put that document on the Docs section of the
Expresso-complete jar.. its pretty helpful in grasping a larger view of the
pieces of this Expresso puzzle ;-)
- Original Message -
From: Sandra Cann [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
hi crisalyn,
i had followed ur instruction and the pages do come out find.
however, when i do a request.getRequestURI() to get the url for the
current page, the value returned was
http://localhost:8080/managenewsletters/newsletter_display_default.jsp;
instead of
Struts Fast Track -- J2EE/JSP Framework by Vic Cekvenich arrived today.
Don't know what we paid for it, but it was too much. Stick to reading this
user list and web sites like Husted's.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
Robert D. Morse wrote:
Struts Fast Track -- J2EE/JSP Framework by Vic Cekvenich arrived today.
Don't know what we paid for it, but it was too much. Stick to reading this
user list and web sites like Husted's.
is there somewhere on the web which shows the contents of each chapter,
i am
Hi,
In one of my JSPs I'm using jsp:useBean id='abc'
how could i retrieve the id reference(i.e abc) in the validate() method
of Formbean
Anyone please help me regarding this...
regards
SaiSrinivas
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands,
Try a flash plugin or an applet with a progress bar... :-)
--Rakesh
[EMAIL PROTECTED]
---
- Original Message -
From: SUPRIYA MISRA [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 10, 2002 9:06 PM
Subject: Partial Loading of JSP
The developers are currently chewing over the details of implementing
such feature.
I involves the returned page polling the server which has started said
action on another thread and once complete the polling page returns the
content as intended.
But as yet there is no solution you can just
97 matches
Mail list logo