Hi,
Can we use FormBeans to display our contents on the
jsp page, as it does this work if an error occurs
after the submit is done.
I need to use this feature of FormBeans to display my
contents on the jsp page.
for example: say i am doing a jobsite project. and an
user who has posted a
Figured out what was the problem. Between the chair and the keyboard, it
seems...
When copying the JSP from non-Tiles to Tiles version, I managed to include
only
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html%
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean%
so the logic taglib was
I think u do expect something diff. Don't u?
What do u really need?
-Original Message-
From: Aru [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:37 PM
To: Struts Users Mailing List
Subject: RE: Can We manually populate the FormBeans to display the contents
on the jsp
hi
I have an validate method in my actionform and everything works fine. I
added a 'Back' button in my webpage, and therefore validation is not
necessary if the 'Back' button is clicked. Validation should occurs only
if 'Next' is selected.
How do I stop struts from calling validate() is 'Back'
Hi all,
I want to pass a range of values which is dynamic(values retrieved from a database
using a dynamic query) from an action class to corresponding jsp page. I hav to access
it from the jsp page and dispaly. How can i do this in struts.
Thanks,
vinu
On Tue, 17 Aug 2004, vineesh . kumar wrote:
I want to pass a range of values which is dynamic(values retrieved from
a database using a dynamic query) from an action class to corresponding
jsp page. I hav to access it from the jsp page and dispaly. How can i do
this in struts.
what about
Sebestian,
Where does control go when u click Back button? If this has to do 'browser
like' back action, just call javascript. Why do u call struts action? Any
specific reason?
-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:44 PM
action path=/userRegistration
type=strutsTutorial.UserRegistrationAction
name=userRegistrationForm
attribute=user
parameter=action
input=/userRegistrationPage1.jsp
Have a look at attribute [user]
This variable will be available to u in ur jsp [use Bean tld]!!!
Hope it helps!!!
-Aru
Maybe you can look at the following open source product:
http://www.opensymphony.com/oscache/
It provides caching on all sorts of layers in your j2ee application.
Greetings
Jimmy
Jimmy Van Broeck
Consultant
BT
CITS
DE POST - LA POSTE
ICT-Development
WTC II - Kantoor 307
email: [EMAIL
hi,
the problem is that, i may hav just one recordset or may have hundred recordset. It's
unpredictable. Also at the jsp page(view) how can i access these values dynamically.
if the recordset contains 100 records and each record contains four fields there
should be atleast 400 atribute in
Making the records available via request attributes still applies. Your
request attributes can be Collections, Maps, etc. Check out the Struts
logic tags (such as logic:iterate) and/or the JSTL core tags (such as
c:forEach), and read the FAQ on indexed properties for help in rendering
data
On Tue, 17 Aug 2004, vineesh . kumar wrote:
the problem is that, i may hav just one recordset or may have hundred
recordset. It's unpredictable. Also at the jsp page(view) how can i
access these values dynamically. if the recordset contains 100 records
and each record contains four fields
Hi
I think my situtation is kinda unique..
I have three buttons in a single form and my Action extends
LookupDispatchAction.
In my ExperimentForm (actionform), how do I disable validate if 'back'
is clicked?
struts-config.xml
--
action name=experimentForm
Tried javascript and it works fine. The reasons I try not to use
javascript :
1. since struts is used, i thought all control should be visible in the
controller and not as javascripts in the JSP.
2. User might turn off javascript.
sebastian ho
On Tue, 2004-08-17 at 15:57, Aru wrote:
Sebastien,
I use this technique, it works but i dont know if it is 'good
practice'
1. Change your 'back' button from a submit to a cancel button
(thereby avoiding validation)
2. Set the action of the button to 'previous' using javascript .
3. pick up the 'previous' in a DispatchAction class and
Thanks Richard
I fixed the Back problem using javascript (using javascript
history.back()). Although it is resolved, I am still very much
interested in the struts solution without using javascript.
sebastian
On Tue, 2004-08-17 at 18:46, Richard Aukland wrote:
Sebastien,
I use this
sir,
can u specify some code snippet or a link which leads to the example code?
thanking u,
vinu
On Tue, 17 Aug 2004 Pavel Kolesnikov wrote :
On Tue, 17 Aug 2004, vineesh . kumar wrote:
the problem is that, i may hav just one recordset or may have hundred
recordset. It's
Code in your action:
Collection records = someBusinessObject.getPlentyOfRecords();
request.setAttribute (myRecords, records);
Code in your JSP (supposes appropriate taglib declarations)
ul
c:forEach var=rec items=${myRecords}
lic:out
On Tue, 17 Aug 2004, Sebastian Ho wrote:
I fixed the Back problem using javascript (using javascript
history.back()). Although it is resolved, I am still very much
interested in the struts solution without using javascript.
what about checking for the back property in your
validate method (as
Hi,
i'm building a b2b application that must be released
for testing in a few days.
I got 1 very basic problem:
- I don't know jaas
The good point is that i need only a login module to
go with Struts and jboss. It doesn't need to be
definitie, but it must work.
I don't know if by the fact i'm
Try
http://www.mooreds.com/jaas.html
thanks
Deepak
- Original Message -
From: Leandro Melo [EMAIL PROTECTED]
To: struts jakarta [EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 5:30 PM
Subject: Login and authentication
Hi,
i'm building a b2b application that must be released
for
Hello everyone:
We are developing an application with Struts. The pages are made with JSP
and taglibs. However we will need to have the possibility of separating the
presentation in HTML and loading the dynamic data by means of XML (e.g: data
islands). The problem is that the pages are
One option would be to create your site in JSP. Periodically you could
extract the current site (in each language) as HTML (using wget or similair)
and put the resulting pages on the relevant http server.
Paul
-Original Message-
From: Hevia Vega, Andres [mailto:[EMAIL PROTECTED]
I want to create a form that has two different actions. The user will have
a button to READ information in from the database and a button to SAVE
information into the database after modification. I currently use Validator
to validate my forms and when the user clicks on the READ button
You can use the same Action and the same ActionForm, but you can map two
different action mappings in struts-config.xml. Set validation to true
on one and false on the other.
Hope that helps,
Erik
Christopher Kwiatkowski wrote:
I want to create a form that has two different actions. The user
First, I assume that you are using path mappings for Validator.
You can use two separate forms as you suggested; however, if you don't
want to duplicate form fields and it makes more sense from a usability
perspective to have a single form--you can change the action for the
form on the fly
solution 1. persisting data may cause some problems,
for example performance, as users may need to create a
few detail objects. I prefer to keep these objects in
View and provide a 'Done' button, which will then let
Action to do the persistence.
Another problem is that in my Use Case, the detail
Hello,
Is it possible to format a date stored in a Date object using a bean:
write tag?
I use the following but it's not working:
bean:write name=product property=creationDate
format=##-##- /
Thanks in advance.
/jm
Session scoped forms are one of my favorite things about Struts. Seems
like you have a situation for them.
Make sure you keep all session-scoped form fields Serializable or mark
them as transient if they are not.
Clever implementations of ActionForm.reset can make memory management
easier.
bean:write name=product property=creationDate format=MM/dd//
for example . . .
Jean-Michel Robinet wrote:
Hello,
Is it possible to format a date stored in a Date object using a bean:
write tag?
I use the following but it's not working:
bean:write name=product property=creationDate
See the JavaDoc for java.text.SimpleDateFormat. One possibility:
bean:write name=product
property=creationDate
format=MM-dd- /
Quoting Jean-Michel Robinet [EMAIL PROTECTED]:
Hello,
Is it possible to format a date stored in a Date object using a bean:
write
See the API documentation for java.text.SimpleDateFormat (if I
understand your problem correctly).
Erik
Erik Weber wrote:
bean:write name=product property=creationDate format=MM/dd//
for example . . .
Jean-Michel Robinet wrote:
Hello,
Is it possible to format a date stored in a Date object
Christopher Kwiatkowski wrote:
I want to create a form that has two different actions. The user will have
a button to READ information in from the database and a button to SAVE
information into the database after modification. I currently use Validator
to validate my forms and when the user
Hi all,
I have my web application based on struts framework. This application
takes some information from the user. I can submit information using jsp
but now i want to have a java application that would connect to my
webapplication using http connection and submit the information. I know
I can
Hello,
How about using a DispatchAction triggered by a
Parameter, let's say 'buttonSelected', which would be
Either insert/read/delete etc
In ur validation you check for the value of that parameter in order
To perform validation...
Hope this helps
Regards
marco
To your HTTP client, there should be no difference between a Struts app
and any other Servlet-based app (or HTTP server app for that matter).
Right?
Erik
Saurabh Bhatla wrote:
Hi all,
I have my web application based on struts framework. This application
takes some information from the user. I
Erik,
then my question is what do i need to change in .xml file if i dont
want anything to be returned back to the application from struts?.
reading and writing to the stream is handled manually in servlets. Will
it be like if i dont apecify forward in .xml file then nothing will be
returned to
Ah. Your Action's execute method, which returns an ActionForward
instance, can return null, and (as far as I know) the controller won't
send a response. I use this when serving binary files.
Erik
Saurabh Bhatla wrote:
Erik,
then my question is what do i need to change in .xml file if i dont
-Original Message-
From: Jignesh Patel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 7:18 AM
To: Struts Users Mailing List
Subject: RE: connection pooling
Suppose I will put following code in my struts-config.xml instead of
tomcat's server.xml will it work as per
Oops -- I missformatted my last e-mail -- I wrote the part starting with
Ahh ... not Marco. Marco wrote the stuff that followed about using
DispatchAction. My bad ...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Can anyone afford it?!!!
|-+
| | Ovidiu EFTIMIE |
| | [EMAIL PROTECTED]|
| | m |
| ||
| | 08/17/2004 12:03 |
| | PM
I would like to generate struts tags from a Java bean, which would decide
what tags to generate based on context.
Is there any way to configure the JSP so that it will evaluate the
JavaBean first, before the struts tags, so that the struts tags can be
generated by the beans?
This email
Isn't there always a response? And if there is no response how would you
know that things went great?
Why not just return a little status code... Maybe 0 or 1, or some other
number. 0 = things went great any other number can be code for how
things didn't go great. Just like processes..
Mi dos
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 9:42 AM
To: Struts Users Mailing List
Subject: Generating struts tags from a Java Bean
I would like to generate struts tags from a Java bean, which
would decide
what tags to
Yes. Here we are just preventing Struts from sending any response, since
we are going to send a response manually (by writing bytes to the
response OutputStream). If you were to send a response manually, and
then return an ActionForward to the controller, you would in effect be
attempting to
Well that's another issue.
On Sat, 21 Aug 2004 12:37:40 -0400, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Can anyone afford it?!!!
|-+
| | Ovidiu EFTIMIE |
| | [EMAIL PROTECTED]|
| | m
Sorry if this is more JSPish than strutsish,
but I'm sure someone can help. I have
a javascript I am using for tooltips
and I want to pass text defined in
my applications.resource file to it.
== applications.resource ===
someText=This is some text.
== foo.jsp ===
img src=images/foo.gif width=10
Yep, but a pretty prohibitive one. I was very eager to look at Struts with
Flex, but then threw it out as we could never afford $12,000 per server.
|-+
| | Ovidiu EFTIMIE |
| | [EMAIL PROTECTED]|
| | m
the problem we are trying to solve is that depending on user entitlements
and application state, some fields need to either be a drop down or just
text.
___
Sent with SnapperMail
www.snappermail.com
.. Original Message ...
On Tue, 17 Aug 2004 09:46:49 -0700 Jim Barrows [EMAIL
Can't you insert a bean:write message=myKey/ there?
Dean A. Hoover wrote:
Sorry if this is more JSPish than strutsish,
but I'm sure someone can help. I have
a javascript I am using for tooltips
and I want to pass text defined in
my applications.resource file to it.
== applications.resource ===
On Tue, 17 Aug 2004 13:35 -0400, Victor Grazi [EMAIL PROTECTED] wrote:
the problem we are trying to solve is that depending on user entitlements
and application state, some fields need to either be a drop down or just
text.
The underlying problem isn't really Struts related ... you're trying
On Sat, 21 Aug 2004 13:35:16 -0400, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Yep, but a pretty prohibitive one. I was very eager to look at Struts with
Flex, but then threw it out as we could never afford $12,000 per server.
You can get comparable functionality with the Laszlo Presentation
Hi,
I am trying to use a Struts1.1 and OJB1.1RC7 application but I am facing
with the problem that commons-lang1_0_1 doesn't have some classes that
OJB uses (like java.lang.NoClassDefFoundError:
org/apache/commons/lang/BooleanUtils).
If I switch from one version of commons-lang to another
I also posted that after developing on Flex and Laslo... I switched to
JDNC becuase I fodun it much faster!
I have a site now on baseBeans.com on RiA/SoA.
.V
Ovidiu EFTIMIE wrote:
bump
Nobody here tried Flex with Struts ? It really seems a good choice for
RIA web applications, but I'd like to
The custom tag approach seems like the way to go. Is there any
documentation for considerations besides just perusing the source code for
exisiting html tags?
Regards
Victor
.. Original Message ...
On Tue, 17 Aug 2004 10:53:29 -0700 Jim Barrows [EMAIL PROTECTED] wrote:
-Original
hihi,
does anyone have suggestions for handling mulitple bundles for struts
errors?
i'm using the ActionForm.validate() (ie. i set validate flag = true in
action definition) and i have a situation where the keys for the
accumulated ActionError objects need to come from various bundles --
not
Use the following -- it will work:
img src=images/foo.gif width=10 height=10
alt=[foo] onmouseover=ddrivetip('bean:message key=someText/');
onmouseout=hideddrivetip();/
As far as quotes, you just need to make sure that they don't interleave
-- JSP translation occurs first so you things will
-Original Message-
From: Victor Grazi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 1:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Generating struts tags from a Java Bean
The custom tag approach seems like the way to go. Is there any
documentation for considerations
Hi all,
I got the following exception in struts-example on the very first page
exception
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
Koon,
You can use a TilesAction to modify a part of your tile to display the
appropriate HTML, JSP or tiles sub-page as well as fill in pieces such as
username, shopping cart totals, etc., such as those that might be stored
in the user's session.
Regards,
David
-Original Message-
From:
Hi all,
Does anyone know how to make recursive jsp pages?
I believe this can be done using %@ include file=recursive.jsp %
I have done this as :-
nested:present property=replies
nested:iterate property=replies
%@ include file=recursive.jsp %
/nested:iterate
/nested:present
The above
-Original Message-
From: terry Highfield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 4:26 PM
To: [EMAIL PROTECTED]
Subject: Recursive pages
Hi all,
Does anyone know how to make recursive jsp pages?
Intentionally? No...
I've done it with a tiles oopsie.
Hi ,
I have a scenario in our aplication which we are developing with Struts1.1. on
first screen we are displaying bunch of records retrieved from database. Each record
will have checkbox in first column. This check box wil be initially checked or
unchecked depending upon the value of a
did you allready check your tld file ?is it have same name with your taglib
(struts-html.tld or Struts-html.tld or something like that)
- Original Message -
From: simarjit singh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, August 16, 2004 8:45 PM
When I try to use a multiselect input (html:select multiple=true), it
works fine as long as the associated property is a String[]. However,
there's a situation where I have a dynamic list of form elements, each
of which has its own multiselect input. So I tried changing the property
to a List, but
thanks.
i saw some discussion earlier (search for request
against session). It seems that people recommond not
to use session scope forms.
so out of these three, which is my best choice then:
- Struts workflow extension
- hidden field
- session scope form
many thanks !
--- Erik Weber [EMAIL
I suppose this is how I do it?
html:submit property=action value=Create Experiment
bean:message key=button.createexperiment/
html:hidden property=selection
value=createexperiment /
/html:submit
And in my ActionForm :
To use a multibox, you need a getter and setter method in your form-bean
that returns/sets a String array.
Each element in this String array corresponds to the value of a checked
check-box.
Let's say you have a multibox coded like this:
logic:iterate name=myFormForm
thanks David !
after reading the doc. in Struts, Tiles site, I found very little
resource talking about Tiles...
I know I need a template, a definition etc...
but I still can't figure out how to glue them together !
The problem go worse if I want to use Tiles with Struts, I just don't
know
Try skimming through the Tiles Advanced Features by Cedric Dumoulin listed
on the Strut site under this page:
http://struts.apache.org/userGuide/dev_tiles.html
The direct link to that PDF guide is:
http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf
Regards,
David
-Original
http://www.theserverside.com/articles/article.tss?l=Tiles101
Also you can see sample tiles portal that ships with tiles.
I love using Tiles with EL to have dynamic tiles diplayed.
.V
Koon Yue Lam wrote:
thanks David !
after reading the doc. in Struts, Tiles site, I found very little
resource
John,
Thanks for your reply. This is a standard way of using multiple check
boxes(i.e.html:multibox). If you read my earlier e-mail the requirement is little bit
different.Just explaining in brief again. say for example I have a list with 10
objects. I am displaying a list on a page
say for example I have a list with 10 objects. I am displaying a list on a
page with a check box. the object has a boolean property. depending
on the value of the property the check box should be checked or
unchecked initially.( In case of Multibox all of them are
This release adds validation support to the DynaForms generated by XDoclet.
Using the @struts.validator tags, you can create the validation.xml for
dynamic action forms in the same manner used by the struts.form XDoclet feature.
Please note that this is a SNAPSHOT release, created from a fairly
thanks for the help ! I will spend some time on the above links !
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hey All,
I have a need to be able to upload multiple files in a single form. Does anyone have a
recommendation for this approach?
Thanks in advance!
Steven
please send me the links if you know any.
TIA
Navjot Singh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You have to specify the
Size here type=com.test.Line[]
Or whatever is the initial size you specify in your action the zise should
remain less that or equal to that size otherwise you will get this error.
Regards
Shoaib
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Thanks Shoaib.
But, after giving the size 100 as : type=com.test.Line[100], it throws a
NullPointerException :
java.lang.NullPointerException: The type for property offerSlotslines is invalid
at org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:414)
at
Also, I am not setting size neither in struts-config.xml nor in the action.
Regds
R-a-v-i
-Original Message-
From: Ravi Vedala (WT01 - FINANCE BANKING SERVICES)
Sent: Wednesday, August 18, 2004 10:55 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: DynaActionForm
Try recreating the entire DynaActionForm with a new name(including the
Line[]) and set the new actionform to the Action
I am guessing that you may not have added the Line[] initially and then
added it later on...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Can you elaborate a bit more , what are you trying to do.
And send that part of code.
Regards
Shoaib
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 1:28 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: DynaActionForm
See the Struts (in my V1.1 documentation) class
org.apache.struts.tiles.actions.ReloadDefinitionsAction. It looks like you
just set a path, put that as the class action, and Viola! tiles then reloads
automatically. Personally, I've never needed to reload my tiles.
Regards,
David
-Original
Steven,
You should check the archives of this list. There were discussions in the last 3
weeks (or sooner) about it. I recall that thread covered uploading multiple files
using indexed field names, that you can only upload one file per upload tag (just not
supported in the Jakarta Commons
84 matches
Mail list logo