Take a look at BeanUtils.copyProperties. By default, though, it doesn't
support conversion of dates, since it wouldn't know how you'd want your dates
formatted. Check the archives of this list, there's been some discussion on
that. Another archive you can check is that of the commons-user list.
Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 8:38 AM
To: Struts Users Mailing List
Subject: Re: DynaForm Type Conversion
Take a look at BeanUtils.copyProperties. By default, though,
it doesn\'t support conversion of dates, since it wouldn
Marco,
This could be caused by how your mappings are configured. If you can send
more information, someone might spot the cause.
Hubert
--- Marco Mistroni [EMAIL PROTECTED] wrote:
Hi all,
In my app I am using a DynaActionForm with scope = session.
When I am calling the action for the
--- atta-ur rehman [EMAIL PROTECTED] wrote:
Any takers?
I'll give it a shot.
ATTA
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
global-forwards
forward name=invalidToken path=showInvalidTokenMessage.do
redirect=true /
/global-forwards
I believe the
--- atta-ur rehman [EMAIL PROTECTED] wrote:
TestProcessAction just forwards to success forward. But before it does
that it check for the valid token and in the case of an invalid token it
just forwards (redirects) to the invalidToken global forward.
On invalid token message press refresh
-
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:07 PM
Subject: Re: redirect=true and Tiles; does it work?
--- atta-ur rehman [EMAIL PROTECTED] wrote:
TestProcessAction just forwards to success forward. But before
.
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:56 PM
Subject: Re: redirect=true and Tiles; does it work?
Is this correct?
1. User submits the form to /processTest.do
TRUE
In my experience, it's not that the bean config is cached, it's that the form
itself is cached. If your bean is not in request scope, it gets reused.
Tomcat can keep a session alive between application and server restarts and
so your form can survive those. What I've done when I modify my dyna
What version of Struts are you using? How are you instantiating your
Dyna*Form? Struts 1.1 didn't really have direct support for instantiating
DyanForms from an Action object. Struts 1.2.0/nightly build does. Is it
possible that you're using 1.1 and instantiating the form incorrectly?
---
if
the difference between 1.1 and 1.2 is as large as betwee 1.0 and 1.1. Is
there
some other way to accomplish it?
Dean Hoover
Hubert Rabago wrote:
What version of Struts are you using? How are you instantiating your
Dyna*Form? Struts 1.1 didn't really have direct support for instantiating
The ClassCastException is in your Action code, so check your code and see
what you're casting. Post the code so others can see, too.
--- Theodosios Paschalidis [EMAIL PROTECTED] wrote:
Hi all,
I am trying to execute an Action using only a dummy form (empty). I have
successfully used this in
I've had this idea for months now and actually had some entries already
written (with full web apps to illustrate) and I've also started collecting
cookbook entries from responses to this mailing list. I was in the process
of writing the app to hold them late last year but got sidetracked.
So
as
well, such as JSTL.
Hubert
On 2004-Mar-18 13:03, Hubert Rabago wrote:
I've had this idea for months now and actually had some entries already
written (with full web apps to illustrate) and I've also started
collecting
cookbook entries from responses to this mailing list. I
Yup, sounds like something that the StrutsProjectPages can already fulfill.
:)
--- Andy Engle [EMAIL PROTECTED] wrote:
Hubert Rabago [EMAIL PROTECTED] wrote:
I've had this idea for months now and actually had some entries
already written (with full web apps to illustrate) and I've also
Try this:
http://www.oreillynet.com/pub/a/javascript/2002/02/08/iframe.html
--- Randy Dillon [EMAIL PROTECTED] wrote:
Say I have 2 (or more) lists that are part of a hierarchy, such that the
first list is a category (say Food Groups) and the second list contains
children of each of the first
If you just wanna do it using Javascript, then I can share with you something
I've used before. I uploaded them here:
http://www.rabago.net/select/select.htm - has three levels. The javascript
code is commented so you can follow what it does (in case you're not that
familiar with js)
I wrote an extension to help me do this. I use this in all my projects.
http://www.rabago.net/struts/redirect
hth,
Hubert
--- Jay Glanville [EMAIL PROTECTED] wrote:
I'm trying to solve a problem, but I'm not sure my solution
is the best
way. Basically, I want to set a parameter on a
Are you getting this from Struts or the container, or from your IDE? What
IDE are you using? Some IDEs that try to support Struts aren't really *that*
in touch with what a developer can do with Struts. If you have a doubt, try
running the app and see if it behaves the way you (and not your IDE)
any
serious coding with it. My teammates aren't as fortunate, though.
Hubert
--- [EMAIL PROTECTED] wrote:
WSSD 5.0.1
(WebSphere Studio Site Developer)
Hubert Rabago [EMAIL PROTECTED]
03/16/2004 12:58 PM
Please respond to Struts Users Mailing List
To: Struts Users
correct,
and your tests prove it, and yet WSAD still complains, ignore it. [You can
also do what I do -- filter out WSAD's Struts complaints :) ]
Hubert
--- Hubert Rabago [EMAIL PROTECTED] wrote:
Just as I suspected. I'm forced to use WSAD where I work, and I've turned
off a whole bunch
The html:select needs to be provided with the property it's associated to,
the one on your form bean that will hold the actual value selected.
html:select property=mySelectValue style=font-size: 10px;
property=goTo size=1
html:optionsCollection
name=PageDetailView
That's the expected behavior. At the bottom of
http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_action_form_classes:
And, of course, while the DynaActionForm may support various binary types,
properties used with the html:text tag should still be String properties.
As far as I can tell, there really isn't any support for prepopulating a
DynaActionForm. The ff is from
http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_action_form_classes
DynaActionForms are not a drop-in replacement for ActionForms. If you need
to access ActionForm
);
forward = mapping.findForward(Success);
return forward;
It works when the form is in session scope because that will make the whole
session deal with one form instance.
hth,
Hubert
--- Hubert Rabago [EMAIL PROTECTED] wrote:
As far as I can
of
the issues I'm trying to solve with the formdef
http://www.rabago.net/struts/formdef/ plugin I'm working on?
Hubert
--- Joe Germuska [EMAIL PROTECTED] wrote:
At 12:09 PM -0800 3/12/04, Hubert Rabago wrote:
As far as I can tell, there really isn't any support for prepopulating
Yes, the default MessageResources implementation uses the Java Format object,
so in some of my messages, I have:
my.msg.key=No was found for {0,date,MM}
Cool, ain't it? Not sure a lot of people know about it. So you won't have
to mess with source code when all you wanna do is change data
Not sure if you're looking different ways to do Move Up/Move Down or just a
way to make your one button for each item work. If it's the former, you
can include a radio button beside each item and have one Move Up and one Move
Down button for the whole form. The radio button will have the index
--- Niall Pemberton [EMAIL PROTECTED] wrote:
I ended up ditching it and creating reports using iText to create pdf files
directly.
http://www.lowagie.com/iText/
BTW, I wasn't doing it in a web environment and the pdf generation is slow,
can take up to 30 seconds for a large report.
--- Wendy Smoak [EMAIL PROTECTED] wrote:
Hubert Rabago wrote:
My current users are Excel lovers, so I generate formatted Excel docs
(through POI) that they can edit or print directly.
Do you have a small example? I'm currently sending a CSV from my Struts
app, but there is a huge demand
You can put log statements in your form bean's setter methods to verify that
they are being called. My guess is that your configuration is causing struts
to reinitialize the form somehow and that resets the form values. All I can
do is guess, though, since I have no idea how your mappings are
--- Mu Mike [EMAIL PROTECTED] wrote:
(QUESTION: what do name property ,id ,indexID mean here? what value can
I set to them?)
I searched online only fail to find any doc that give detailed
explaination about these proeprties
html:text name=stringbean
--- Wendy Smoak [EMAIL PROTECTED] wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
because of the fact, that i´ve got no access to this bean in my
preprocessing action. testSelect is a member of the upcoming
DynaActionValidatorForm with is initiatet during the
html:form/ tag
Struts 1.2 has a feature you can use that allows you to store your
ActionMessages in session variables, then have it removed once they're
accessed. I haven't used this yet, but you can probably build on this by
storing your errors before you redirect, then have them displayed by the
resource your
Front your page with an ActionMapping:
action path=/viewBrief forward=/viewBrief.jsp/
action path=/entryBrief forward=/entryBrief.jsp/
then instead of specifying viewBrief.jsp, specify viewBrief.do (or whatever
your action servlet mapping/extension is).
hth,
Hubert
--- news.gmane.org [EMAIL
Try redirecting to getOperations.do. A redirect tells the browser to send
another request. This way, the browser is aware of what it's viewing, and as
a bonus you won't have to couple/chain your saveXXX and getXXX actions.
hth,
Hubert
--- Julio Cesar De Salvo [EMAIL PROTECTED] wrote:
Hi, my
How about putting some log statements around the code which sets the request
attribute? That'll assure you that the code is getting executed, and that
the data you're putting there actually has values in them.
Have you tried re-requesting home.do after a successful login? Does the data
show
Btw, Craig, thank you very much for removing those underscores.
Hubert
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
Quoting Janarthan Sathiamurthy [EMAIL PROTECTED]:
Hi,
How do i get started wiith JSF ?.
Any books ?
Please advice
JavaServer Faces Home Page:
You can also check if the form bean's reset() method can do the job for you.
--- [EMAIL PROTECTED] wrote:
How to remove the form bean element from the session if that's the case
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 2:14 AM
If you're using 1.1, try passing ActionError objects instead of ActionMessage
objects. The syntax should be the same, you'll just use a different object.
Hubert
--- Max Kovalenkov [EMAIL PROTECTED] wrote:
Hi!
I have a custom validator which works fine, but when the html:errors/
tag is
Check the logic:messagesPresent and logic:messagesNotPresent and see if
they do the trick for you.
- Hubert
--- Wendy Smoak [EMAIL PROTECTED] wrote:
I'm using this to display errors:
div class=error
ul
html-el:messages id=msg message=false
lic:out value=${msg}//li
There was some discussion a few days back about a case similar to yours,
where the accessor methods are overloaded. IIRC, that's what's causing the
problem. I haven't seen this problem myself, just repeating what's been said
here on the list. Check the archives and/or rename your accessors.
Because the previous ones were 1.0 RCx (Release Candidate x).
--- Daniel Joshua [EMAIL PROTECTED] wrote:
1.0 *final* version
Why are there '*'s around the word 'final' ?
Regards,
Daniel
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Friday,
Oops, yeah, that was part of my point, though I forgot to add it. :)
To emphasize that the download is 1.0 final, not 1.0 RC1.
--- Paul Stanton [EMAIL PROTECTED] wrote:
for emphasis
Daniel Joshua wrote:
1.0 *final* version
Why are there '*'s around the word 'final' ?
May I humbly suggest doing a redirect after you do your delete?
inside OrderMaintainAction, after the deletion:
// get the path we specified for Content in struts-config.xml
String path = mapping.findForward(Content).getPath();
// create the redirecting ActionForward we'll return
ActionForward
There is a sample application that ships with Struts (struts-upload.war)
which shows how they wrapped commons-fileupload to work with ActionForms.
Hubert
--- Tim Coy [EMAIL PROTECTED] wrote:
I am trying to use
org.apache.commons.fileupload within an ActionForward()
to upload files.
If you decide to do a forward, look at Struts transaction tokens to ensure
that the delete operation doesn't get executed when the user hits refresh on
the resulting page. Of course there may no longer be any data to delete, but
you might reservations about allowing DB operations to be retried
Instead of modifying an existing forward (not sure you shoulda been doing
that, anyway), you can try creating a new one. Copy the properties of the
one you received, then pass that one on.
if(userAgentHeader.lastIndexOf(Windows CE) != -1){
// normal JSP forward Path (for
Tons of samples with discussion in the archives.
http://marc.theaimsgroup.com/?l=struts-userw=2r=1s=indexedq=b
http://marc.theaimsgroup.com/?l=struts-userm=107600405406119w=2
--- as as [EMAIL PROTECTED] wrote:
Any samples?
Thanks
(BAsically I am trying to get list of shoping cart items from
Try changing updateSuccess path to reflect your actual relative URL:
forward name=updateSuccess
path=/myaccount/domains.do
redirect=true /
- or whatever extension you're using.
--- Ramadoss Chinnakuzhandai [EMAIL PROTECTED] wrote:
When I try to call actionA from actionB by
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg94386.html
hth,
Hubert
--- Martin Gross [EMAIL PROTECTED] wrote:
Hi,
I have a form with a dropdown list:
html:options collection=campaignList property=id
labelProperty=name /
The collection is set by an action which
Have you tried
html:link page=%= /scopeAction.do?row= + value %
?
--- Leticia Golubov [EMAIL PROTECTED] wrote:
I just don't understand why the 3rd option doesn't work for me...
I've tried all possible variations of it but I just can't seem to be able
to
parse
%value% to the query
IIRC, you also need it in reset():
public class LazyListExampleForm extends ActionForm {
private List actionList;
public LazyListExampleForm () {
initLists();
}
public void reset(ActionMapping mapping,
HttpServletRequest request) {
I'm just here to give my opinion on your this one looks important item.
Let's say you have ActionA to setup your form with lots of Strings and
ArrayLists as you said, and ActionB to which the form you're setting up
eventually gets submitted to.
In your ActionA, you're calling
Okay, I'll add a bit more since nobody else is.
From what I understand, some of your scenarios are like this. You have
ActionA to set up your Strings and ArrayLists etc to display FormA, and FormA
gets submitted to ActionB. So, your config for these look something like:
action path=/showForm
off the phone for an hour! The joy of telecommuting...)
-- And I'm in an office, and it's nearing the end of the day, so we may
have to continue this later...
the action mapping
where I set up the scope=request is the same action mapping that does both
ActionA (showForm) and ActionB
--- Janice [EMAIL PROTECTED] wrote:
The only glitch is when validation fails, since my drop-downs come back
empty. So I'm thinking that I can get around this, but it'll mean extra
database calls and be a performance problem that way instead of just
hogging the session memory. I guess this
How are you creating your Timer() object? If you're passing true (new
Timer(true)) then the jvm will kill your timer task when then app ends. If
you're just using new Timer() or passing false, well, then maybe you can
ask the Tomcat list. :)
--- Guifre [EMAIL PROTECTED] wrote:
Hello,
I
I don't use bean:write a lot, so I'm not sure if there's a solution for this.
It doesn't look like anyone else either. If there aren't any alternatives,
and it's as urgent as your reposts suggest, why not subclass the tag and make
a new one which does what you want? That would be much faster
Specify the Action associated with fromCreateShopWorkOrder or
fromUpdateShopWorkOrder in the html:form attribute.
--- Au-Yeung, Stella H [EMAIL PROTECTED] wrote:
Hi:
My html:form tag doesn't allow me to skip an 'action' attribue. If you
look at my code below, I move the assignment of the
?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:36 PM
To: Struts Users Mailing List
Subject: Re: Must have action=. in html:form tag?
Specify the Action associated with fromCreateShopWorkOrder or
fromUpdateShopWorkOrder
whichever one
to be chosen to be dynamically. So how I do that all within the
html:form tag?
--- Hubert Rabago [EMAIL PROTECTED] wrote:
I never said anything close to what you're asking me.
All I said is choose one of your two possible outcomes (doesn't matter
which
one), take the path that you
From the Struts user guide:
WARNING - If you are using the new module support in Struts 1.1, you should
be aware that only extension mapping is supported.
http://jakarta.apache.org/struts/userGuide/configuration.html
Look for 5.4.2 Configure the Action Servlet Mapping and check the warnings
at
/shopWorkOrder/fromUpdateShopWorkOrder. But I want whichever one
to be chosen to be dynamically. So how I do that all within the
html:form tag?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:58 PM
To: Struts Users Mailing List
in
your forward to switch modules. It was one of the last things added.
hth,
Hubert
--- Craig Laverty [EMAIL PROTECTED] wrote:
Hubert Rabago jakartauser at yahoo.com writes:
From the Struts user guide:
WARNING - If you are using the new module support in Struts 1.1, you
should
Not entirely certain but it sounds like you need to use ListUtils.lazyList()
for you type Y collection, and you'll need to override your form's reset()
method to do this as well.
- Hubert
--- Parthasarathy Kesavaraj [EMAIL PROTECTED] wrote:
Hi
I am having a form bean that contains a
http://marc.theaimsgroup.com/?l=struts-userm=107600405406119w=2
--- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi List,
I would like to create a form, with which the user fills in a number of
say 10 records, in one and the same form. When clicking submit,
all of the 10 records (with each
Different clients use different requests and different sessions. Therefore,
different users end up with different AF instances. If you use request scope
for your AF, then even different requests from the same client will be using
different AF instances.
hth,
Hubert
--- Amish Patel [EMAIL
Try this:
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean
%%@ taglib uri=/display prefix=display
%%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html
%%@ taglib uri=http://jakarta.apache.org/struts/tags-nested;
prefix=nested
%%@ taglib
Where do you need the values? There are a lot of options, including using
servlet context variables and a simple Struts plugin.
--- exnihilo [EMAIL PROTECTED] wrote:
hi,
I have 2 init-params that I need to do pass into my struts app (that are
only used in a listener that gets called upon
anybody know the justification for preventing non-default
init-params from being seen when using the default ActionServlet? It
seems like a very easy solution to a very common need.
thanks,
n.
Hubert Rabago wrote:
Where do you need the values? There are a lot of options, including
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 19:24
To: Struts Users Mailing List
Subject: Re: Problem Dynamically creating form properties
As long as we're sharing... =)
I wrote a plug-in which defines my DynaActionForms based on my DTOs
Haven't tried this yet myself, but maybe you can:
ModuleConfig moduleConfig = RequestUtils.getModuleConfig(pageContext);
ForwardConfig forward = moduleConfig.findForwardConfig(login);
String path = forward.getPath();
RequestUtils has been refactored in the nightly build/Struts 1.2 so
Study the tutorials at www.keyboardmonkey.com for using the nested Struts
tags.
--- Lawrence Williams [EMAIL PROTECTED] wrote:
Hi,
I am trying to generate a form allowing attributes in a catalog to be set
on
or off for particular products.
So depending on the state of the Database
As long as we're sharing... =)
I wrote a plug-in which defines my DynaActionForms based on my DTOs. So if I
have an employee DTO, it will define a DynaActionForm for me with the fields
from my employee DTO. It helps me cut down on the repetition when my DTO
closely matches my form beans. The
Niall,
I wonder if we can what we have.
I wonder what that would look like.
Could be interesting.
Hubert
--- Hubert Rabago [EMAIL PROTECTED] wrote:
As long as we're sharing... =)
I wrote a plug-in which defines my DynaActionForms based on my DTOs. So if
I
have an employee DTO
I meant to say I wonder if we can combine what we have.
--- Hubert Rabago [EMAIL PROTECTED] wrote:
Niall,
I wonder if we can what we have.
I wonder what that would look like.
Could be interesting.
Hubert
--- Hubert Rabago [EMAIL PROTECTED] wrote:
As long as we're sharing
Yes, they were going to be my first option, too.
--- Guillermo Meyer [EMAIL PROTECTED] wrote:
We could ask to struts.sourceforge.net guys if they are interested in
this kind of Struts extension.
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Martes, 17 de
Cool! I'll write something up tonight that'll provide more info and send it
to you so you can see where it's at.
--- Niall Pemberton [EMAIL PROTECTED] wrote:
Your stuff sounds interesting and I'm up for a bit of collaboration.
Niall
- Original Message -
From: Hubert Rabago [EMAIL
Did you change the form definition to enctype=multipart/form-data yet?
--- Carl-Eric Menzel [EMAIL PROTECTED] wrote:
Hello,
I'm having trouble getting file upload working when using a DynaAction
form. Here are the relevant parts:
form-bean
name=pollForm
,
David
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 09, 2004 7:49 PM
Subject: Re: Persisting Messages/Errors when redirect=true
There's no built-in support for this at the moment. I add code
With Struts 1.1, we have support for both error messages and non-error
messages. We use saveMessages() for non-error and saveErrors() for error
messages. In our JSPs, we can use the html:messages tag to display them:
html:messages id=message message=true
bean:write
The deprecation is for the nightly build/Struts 1.2 distribution. If you're
using 1.1 (like I am), there's no saveErrors(request, actionMessages) just
yet.
Once you start using 1.2 (or the nightly build), you can use the saveErrors()
that accepts ActionMessages; the one which accepts
Actually, the conversation on the thread redirect=true ActionErrors has
moved to direct email communication. If anybody's interested, I can post an
update to this list. About two emails should cover it.
--- Manjunath Bhat [EMAIL PROTECTED] wrote:
Hi,
You may look into this URL,
Yes, we're supposed to use ActionMessage and ActionMessages now. The one
place where we can't escape ActionError/s yet is ActionForm's validate
method.
--- Slattery, Tim - BLS [EMAIL PROTECTED] wrote:
While refreshing my memory on the ActionErrors class, I noticed that the
metho:
void add
There's one thing I forgot to mention. That statement I made is for the
nightly build/Struts 1.2. ActionError isn't marked as deprecated in 1.1.
Are you talking about the ActionForm.validate() method? For the nightly
build, yes, that looks about right. The html:errors/ tag in the nightly
It's the new and improved way to display messages on your pages.
html:errors/ sometimes needed html markup on the message resources file to
format the messages properly. The new html:messages tag gives the JSP full
control over formatting, which is where it should be.
--- Slattery, Tim - BLS
If you need an attribute that isn't supported, you have to subclass the tag
class and add that support.
And sorry, but no, I haven't tried it yet.
--- Nimmons, Buster [EMAIL PROTECTED] wrote:
I'm using the textarea tag in a page, however I need to specify the wrap
attribute as hard so
/) that way I don't have to go through this every time I need to
use a new attribute.
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 2:41 PM
To: Struts Users Mailing List
Subject: Re: how to specify HTML attribute when HTML Tag does
There's no built-in support for this at the moment. I add code to my
projects to add that support. I can share the code with you if you want.
- Hubert
--- David Erickson [EMAIL PROTECTED] wrote:
Is it possible to persist Messages/Errors around your site through the
request when setting
Take a look at Struts transaction tokens. That will help provide your Action
with a flag to ignore successive transactions (in this case, logins), even
when the user hits ok on the resend prompt.
If you don't want the user to even see the resend prompt, you can redirect to
the view after the
will be greatly
appreciated.
Thanks,
Shyam
--- Hubert Rabago [EMAIL PROTECTED] wrote:
Sorry, but I haven't tried anything with mapped
properties yet. All I've
done are indexed properties.
Ask this on the user list. I'm sure someone who's
tried it will respond.
Hubert
--- Shyam
The latest nested tags are already included with the Struts 1.1
distribution.
--- mariel hizon [EMAIL PROTECTED] wrote:
Hi! Actually, i just downloaded the nest extension tutorial war file from
www.keyboardmonkey.com and tried to make it work. This jsp code (the
nested:text part) is just to
http://jakarta.apache.org/struts/faqs/indexedprops.html
http://www.developer.com/java/other/article.php/2233591
Also,
http://marc.theaimsgroup.com/?l=struts-users=LazyList
- Hubert
--- Shyam A [EMAIL PROTECTED] wrote:
Hi,
I have a scenario in my Struts application, where I
have an array
The values that you read from the DB need to come from somewhere.
Perhaps you can store them in a session attribute (then clear it once the
form passes validation). Oh, yeah, an action has to prepare them, so maybe
you can use the same action, except that before it reads from the DB, it
checks if
Hi Fred(d)y,
(3) Despite 1 and 2, there must be a method to obtain the ActionForm(s)
associated to an Action (during an specific request / post). Right?
I think this question has been answered twice in this very thread, once by
me, and again (and with code) by Andrew Hill.
From Andrew's
AFAIK, as of now, this is only available from the nightly builds.
http://cvs.apache.org/builds/jakarta-struts/nightly/
--- Emily Gu [EMAIL PROTECTED] wrote:
Hi All,
The user guide shows the Struts is supporting wildcard in action
mapping..
I have tried it in Struts 1.1, it seems
2/4/2004 -0800, Hubert Rabago wrote:
AFAIK, as of now, this is only available from the nightly builds.
http://cvs.apache.org/builds/jakarta-struts/nightly/
--- Emily Gu [EMAIL PROTECTED] wrote:
Hi All,
The user guide shows the Struts is supporting wildcard in action
mapping
You can also declare a dummy form.
struts-config
form-beans
form-bean name=currentTimeForm
type=org.apache.struts.action.DynaActionForm /
/form-beans
action-mappings
action path=/currenttime
type=com.somecompany.CurrentTimeAction
I definitely haven't used Pajes, but if the servlet is on the same web app,
perhaps your servlet can access the form in the request attribute.
More comments below
--- Villalba Arias, Fredy [BILBOMATICA] [EMAIL PROTECTED] wrote:
HOWEVER, I have not solved yet the data access method part. I MUST
Wouldn't /Login.do make the server look for a Login.do resource at the
root of the server?
You need to provide the path to your action relative to how the browser found
your input form. If your input form is /jsp/Login.jsp and this is what shows
in the URL when requested (meaning, it didn't go
1 - 100 of 183 matches
Mail list logo