It sounds like you have enough ways to do it and just asking what would
be the best way or if there is another way to more efficiently handle
your situation. Yes?
I cannot think of one personally. If your only means is HTTP, your only
choice is evaluating the response to determine if something
Hi,
I want to generate some reports in my application.
I am currently using Struts as a framework.
The current architecture for generating reports uses Crystal
Report 9.0
The problem faced with this are
1. The data in the crystal report can
Hi,all
I have got two projects A B, they have got their seperate tiles xml files.
Now sometimes i have to merge them as one project and buld it.
Now my problem is that for tile i am not able to know whether i can specify two xml
files or i have to merge them.
There is same problem with
Yes you can have any number of struts-config file. You have to name them
differeently though and put allof them in WEB-INF folder.
Then declare all the struts-config files in web.xml
E.g
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
I'm using the http://jasperreports.sourceforge.net/ and the design tool
iReport http://sourceforge.net/projects/ireport/.
Ralf
-Ursprungliche Nachricht-
Von: Shailender Jain [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 16. Juni 2004 08:37
An: [EMAIL PROTECTED]
Betreff: Reporting Tool
1. The data in the crystal report can be read only from a data
source i.e. tables. Therefore there is a need to create some
table for reports.
What else would you expect for #1?
2. The reports needs to be presented in such a manner that the
rows
Lionel wrote:
http://otn.oracle.com/products/jdev/howtos/10g/StrutsMultiConfigs/struts_multiconfig_howto.html
Shailender Jain wrote:
I went to this link but this document seems to have been
removed. Is there is any other link?
the given link works fine...
try this:
I tried this and I am getting parsing error.
-Original Message-
From: Satish Kataria [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:45 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: can i have multiple struts-config.xml
Yes you can have any number of
Another way is to check which dispatch action is being activated and
then run validation or not depending on which action is being run.
e.g.
/foo.do?method=save
mapping.getParameter() return the name of the parameter used to
dispatch with. In this case method
Check for well formed xml using any xml editor which can validate your
document based on the dtd
-Original Message-
From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 12:48 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: can i have multiple
Folks,
I am struggling to understand how to use JAAS with Struts 1.1
I need a simple-to-follow example.
The requirement is for standard authentication and permission handling -
logging a user in and checking that they have permission to access an Action
or URL.
Should I use JAAS or
You've got a middle case youre not mentioning.
What's wrong with container managed/declarative security (ex: A
JDBCRealm) or something a shade more robust like SecurityFilter?
-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:11 AM
I have a field (string) in my DynaValidatorForm 'type' and I would
like
to return an error 'Invalid type name' when the selected value
is 'undefined'.
Has someone an example of validation.xml file wich do that ?
Thanks a lot in advance
-Original Message-
From: Kies, Daniel [mailto:[EMAIL PROTECTED]
Sent: 14 June 2004 17:52
To: 'Struts Users Mailing List'
Subject: RE: Caching data from resultset
I recently implemented pagination for resultsets using Oracle
9i. Instead
of loading up the entire resultset into
Hi Adam,
in tomcat 4.1.X
there is an application (admin)
that is based upon JAAS and struts.
it uses MemoryRealm to identify the users.
(a file tomcat-users.xml in $TOMCAT_HOME/conf)
watch WEB.XML (for security-rules)
and login.jps in $TOMCAT_HOME/server/webapps/admin
there is also a simple
Hi,
Yes, indeed. Postgres has something similar.
Regards,
Freddy.
-Mensaje original-
De: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 16 de junio de 2004 11:51
Para: 'Struts Users Mailing List'
Asunto: RE: Caching data from resultset
-Original Message-
-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: 14 June 2004 18:13
To: '[EMAIL PROTECTED]'
Subject: Query question
Anyone here familiar with using CATSEARCH type oracle
queries? If so, I am
trying to do something like:
SELECT COLNAME
FROM
Hi Joe,
Thanks for that. I cant comment which approach most appropriate 'cos I
haven't used them,
Really I am looking for advice on which is the most practical real-world
way to enforce security in a Struts 1.1 environment. I don't need anything
fancy - just logging a user in and then
In my organization, we use JAAS with Struts through the RequestProcessor
class.
There are two cases:
- With respect to authentication, we use an action (LogonAction) which is
responsible for creating a JAAS subject in session.
- With respect to authorization, simply extend RequestProcessor
Hi All,
Please verify the below exception handling scenario.
Struts Action class -- Business Delegate -- EJB (Uses OR Mapping Top
link to talk to database)
Also, we have a ServiceLocator class which is used to get the EJBHome
reference.
There are three layers at which we need to handle the
503 Parsing error
-Original Message-
From: Satish Kataria [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 1:09 PM
To: Viral_Thakkar
Subject: RE: can i have multiple struts-config.xml
What is extact error you are getting
Also can you send me ur strut config files and web.xml?
i dont think we can have multiple strut-config file. But yes we can divide
strut-config file into module. later there should be an entry of those module strut
config file in strut-config.xml.
Asim
Viral_Thakkar [EMAIL PROTECTED] wrote:
503 Parsing error
-Original Message-
From:
Experts,
I have an application which uses tiles to compose pages.
the sections being header, menu, body, footer.
JSP pages in the 'body' tile use
%@ page errorPage=/jsp/Errors.jsp % to handle errors if any, on the JSP
page.
Errors.jsp has %@ page isErrorPage=true %
Problem:
when there are
hi,
without *blanks*
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml,/WEB-INF/a.xml,/WEB-INF/b.xml/p
aram-value
/init-param
or modules (e.g. supplier, customer...):
init-param
param-nameconfig/param-name
Please, really! Do you really want to us to design and
develop your application for you?
Check out Struts global exception configuration. HTH
-Original Message-
From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Please verify the below exception handling scenario.
-1
Struts Action
Well, I was using a TreeMap and put it straight to the application scope from a
plugin, but what i needed was some collection in the scope, then i did :
Map states = new TreeMap();
states.put(...);
getServletContext().setAttribute(states,states.entrySet());
The entrySet() returns a Set
Hello,
A simple home brew approach would be to develop a custom ActionMapping and
use it. Then on every action(based on the request made) call the custom
ActionMapping and check which groups are allows.
This way you can divide the users in groups. And in your struts-config.xml's
action mapping tag
I just want to verify my approach from the experts.
Thanks
Viral
-Original Message-
From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 4:57 PM
To: 'Struts Users Mailing List'
Subject: RE: exception handling
Please, really! Do you really want to us to design
Ram,
Initially we had to use (\d{1,4})|(FEW)|(few)|(MANY)|(many) and eventually
we found that it is accepting 0(zero) when we enter a integer value as
0(zero) or which is invalid.
anybody have any idea about how to achieve the above using regular
expression. I tried finding any document to
I tried this but still same error
503 Service Unavailable
Servlet error: Parsing error processing resource path
/WEB-INF/struts-config.xml,/WEB-INF/a-config.xml
-Original Message-
From: Satish Kataria [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:45 PM
To: Viral_Thakkar
You can use nested tags to automatically retrive and populate
information.
A snippet of code is as follows
nested:root name=OpportunitySitesForm
nested:nest property=sitesList
logic:iterate id=myCollectionElement name=OpportunitySitesForm
property=sitesList
nested:text
To broaden the prior discussion on resultset caching, I'd like to also ping
the group on the concept of being able to have this resultset of data and
paging through it but extendeding it to where a checkbox exists for each
viewable record. I need to be able to pre-select values from a database
:) lol
-Original Message-
From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:12 PM
To: Struts Users Mailing List
Subject: RE: exception handling
I just want to verify my approach from the experts.
Thanks
Viral
-Original Message-
From: Pilgrim,
Hi,
Do Tiles work with FRAMES ?
Thank you,
Bojan.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Does PHP work with Frames?
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: bojke [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 9:02 AM
Subject:
Does JSP work with Frames?
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: bojke [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 9:02 AM
Subject:
http://www.htmlgoodies.com/tutors/fram.html
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: bojke [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 9:02 AM
Very polite from you,
Thanks, dear evangelist
Bojan.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
No problem my friend, glad I could help.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: bojke [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 9:12 AM
So I was reading the stories here:
http://www.sys-con.com/story/?storyid=45250
http://www.kano.net/javabench/
Summary:
Java in server mode is faster than C++ in the benchmarks run. Java in client
mode is much more iffy, sometimes faster, sometimes slower, and sometimes
the same.
So my question
hi
there is a project developed with jbuilderX and struts
i tried to migrate it from tomcat4.1.x to oracle9ias10g
but i cant find struts version in the project.
i downloaded struts1.1 and there are errors while tried to install
tiles-documentation.war
to oc4j.i used jdeveloper10G
sincerely
I tried this, it should work theoretically, but my form is empty now, none
of the textfields are showing up. I do have a property called sitesList in
the OpporutnitySitesForm and it is already populated when I arrive at this
page. Please advise. Thanks.
-Asif
- Original Message -
Greetings.
I run lifewithchrist.org, a blogging system. I writing version 2.0 and
doing so in struts (1.0 is PHP). I am not certian of one thing.
Currently (and it must remain this way), I have DNS setup to a wildcard,
and it ships it all to the same webserver (apache). The webserver then
if you have access to the struts.jar being migrated,
find manifest.mf file there and open it. Look for
Specification-Version and Implementation-Version
values.
Hope this helps,
James
___
http://www.devbistro.com - web dev jobs
--- Eyup TEKIN [EMAIL PROTECTED] wrote:
hi
there is a project
What's the issue? When you specify the value for the definitions-config property in
the TilesPlugin, you can list as many Tiles-def.xml files as you want. An example is
below.
!-- TILES PLUGIN --
plug-in className=org.apache.struts.tiles.TilesPlugin
*blush* sorry, forgot the taglib directive.
-Asif
- Original Message -
From: Asif Rahman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 9:50 AM
Subject: Re: Struts alternative to using request.getParameterValues in an
actionform?
I
Chris:
thank you for your help.
yes, I need to accept any leading zeros but it should be followed
by any non-zero integer in that case.
([1-9][0-9]{0,3})|([Ff][Ee][Ww])|([Mm][Aa][Nn][Yy]) is working
fine but could not enter any leading zeros.
Argh, this one is hurting my head...
I have an application that starts out by returning index.jsp (it's the
welcome file). This JSP opens a new window via JavaScript and loads into it
index1.jsp. index1.jsp populates five frames of a frameset. At the end of
all this, my logon screen is seen.
At 10:10 AM -0400 6/16/04, Jeremy Cowgar wrote:
Greetings.
I run lifewithchrist.org, a blogging system. I writing version 2.0
and doing so in struts (1.0 is PHP). I am not certian of one thing.
Currently (and it must remain this way), I have DNS setup to a
wildcard, and it ships it all to the
Never mind... as usual, it was a stupid developer trick... Turns out I
forgot two JSP's that get loaded, and they didn't have session=false in
them, so that explains it. My bad.
Well, I still do have another problem (I think... could be me again!)...
When you execute an Action, assume it's
I understand how to put a static page into a tile ...
tiles:insert page=layout.jsp flush=true
tiles:put name=header value=header.jsp /
...
/tiles:insert
... but how do I put a dymanic page ... that is, a JSP via a
DispatchAction class into a tile? When I use the action path from
I forgot. I have the entire solution I use at the struts wiki at
http://wiki.apache.org/struts/StrutsCatalogEschewUrlForProtocol. All you
have to do is to examine the input and give a different output for your
problem. I use Wendy's get the data right solution, but I don't have your
Why would you use something like that? I'm maybe not following the code? Is
this so instead of writing:
/images/hello.gif
you can write:
/resource.do?file_type=giffile_name=hello.gif
??
-Original Message-
From: mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 10:14 AM
The reason is that I use jsp behind WEB-INF and want to avoid all the
difficulties with HTML and URLs behind WEB-INF. It also gives me a great
interface for solving all sorts of problems like this one. This allows the
page designer just to ask for whatever they want in a standard way that
Example: I have a DispatchAction called OpportunityCustomerAction that is
forwadring to a tile:
//*snippet start in struts config //
action path=/OpportunityCustomerAction
type=com.companyX.opportunity.CustomerAction
name=OpportunityCustomerForminput=CustomerDef scope=session
YES! ;-)
-Original Message-
From: Linck, Ken [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:57 AM
To: Struts Users Mailing List
Subject: RE: Rendering Images
On a sidenote, it would be kind of nice to add some kind of imageNotFound
property to the html:image.. tag where
I have a list of articles to be retrieved from the
database and displayed.
The first time I display the list, I simply sort the
list by posting date and descending order (without
providing a form) when I query the database.
Thereafter, users are offered opportunities on top of
the table of the
Define your form in struts-config.xml like:
form-bean
name=mySearchForm
type=org.apache.struts.action.DynaActionForm
form-property
name=sort
initial=postDate
type=java.lang.String/
form-property
name=order
initial=DESC
type=java.lang.String/
.. Other properties
Satish, it does not seem to work in the actionform. The properties are not
getting set for the individual site objects using the nested tags.
I have a setSitesList(arraylistOfSiteTransferObjects). What am I missing?
Thanks.
-Asif
- Original Message -
From: Asif Rahman [EMAIL
Look at it here:
http://www.jguru.com/faq/view.jsp?EID=531024
-Original Message-
From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:28 AM
To: [EMAIL PROTECTED]
Subject: Using a servlet code within Struts
Hello everyone
I want to make some servlet
Hi,
you can return null inside the Action as ActionForward.
In this case Struts doesn't dispatch the request to view.
BR
Amleto
-Messaggio originale-
Da: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 16 giugno 2004 18.28
A: [EMAIL PROTECTED]
Oggetto: Using a
Hi all,
I have a problem,
I was split my application to 3 modules. They have a configuration file,
struts-m1.xml
struts-m2.xml
struts-m3.xml
and one global conf. file
struts-congig.xml.
I am define action in struts-m1.xml, like this,
action
path=/bizmap
Date: Wed, 16 Jun 2004 16:50:17 +0200
From: bojke [EMAIL PROTECTED]
To: Struts Users Mailing List
[EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: How do I put a JSP via a DispatchAction
class into a tile?
I understand how to put a static page into a tile
...
tiles:insert
Hi,
Web.xml of Struts module need little extra configuration, basically the
default struts-config.xml is defined as config parameter and then all
the module struts config as config/moduleName.
In your case you have to define struts-m1.xml in web.xml as below
init-param
FYI: setting contextRelative=true is required only for switching modules
(that is call to action defined in other module)
V.K.Ram
NitroX Struts Team
-Original Message-
From: Arif ERSIN [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 10:53 AM
To: [EMAIL PROTECTED]
Subject:
hi adam,
if you want to use an inner java mechanism(included in j2se since java 1.4), well-suited like JAAS,
you should look at http://sourceforge.net/projects/jguard/
jGuard helps you to use easily JAAS, in a pluggable manner, in your j2ee web application.
you can with it,manage access and
Greetings,
I have created a ServletContextListener that sets a Bean in the
application scope.
This Bean contains 2 list of Months... and these lists contain
LabelValueBeans.
My uncertainty is on the best way to get my JSP to use the appropriate
List depending on the locale.
JSP code:
When I do this ...
tiles:insert page=layout.jsp flush=true
...
tiles:put name=body value=/main.do?method=doInit /
/tiles:insert
I get the following error message:
java.lang.IllegalStateException: Cannot forward after response has been
committed
What am I doing wrong?
Thanks in
Just return null in the Action code.
At 10:33 AM 6/16/2004, Kommana, Sridhar wrote:
Look at it here:
http://www.jguru.com/faq/view.jsp?EID=531024
-Original Message-
From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:28 AM
To: [EMAIL PROTECTED]
No worries, Ken. Seeing you thinking the same way was a bit edifying. I
am not sure why people continue to use URLs when protocols will do and are
so much general a solution. I use this, by the way, to convert all my
jpegs to Flash inside ActionScript without having to introduce any image
Yes. You can return null inside the Action's execute method just like
follows:
OutputStream out = response.getOutputStream();
out.write(data.getBytes());
//This action sends the response itself, so return null.
return null;
Reddy Pingili
-Original Message-
At 12:13 PM 6/16/2004, [EMAIL PROTECTED] wrote:
Greetings,
I have created a ServletContextListener that sets a Bean in the
application scope.
This Bean contains 2 list of Months... and these lists contain
LabelValueBeans.
My uncertainty is on the best way to get my JSP to use the appropriate
List
Did you configure an error page in your web.xml?
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: Bob Thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 3:23 PM
Subject: Tiles
I'm curious. Did you get this
resolved?
Dennis
mike [EMAIL PROTECTED]
06/14/2004 02:57 PM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]
To
Struts Developers List
[EMAIL PROTECTED], Struts Users Mailing List [EMAIL PROTECTED]
cc
Struts Developers List
[EMAIL
We have an error 404 page:
error-page
error-code404/error-code
location/error.jsp/location
/error-page
I'm not sure why the 'main.do?method=doInit()' doesn't get put into the tile.
James Mitchell [EMAIL PROTECTED] wrote:
Did you configure an error page in your web.xml?
--
James
I haven't seen any comments on this .. any ideas?
To broaden the prior discussion on resultset caching, I'd like to also
ping
the group on the concept of being able to have this resultset of data
and
paging through it but extendeding it to where a checkbox exists for each
viewable record. I
You might want to re-present the problem.
When I read your email, it seemed like you were describing a typical
use-case:
1. Get data from a persistent store
2. Populate form. If attribute
indicates selected, preselect checkbox
3. Render form (allowing user to edit)
4. Persist edits.
Dennis
Yes, thanks. They had another instance of Resin setting before my website
was initialized and when my website was initialized the Resin instance
default port conflicted with the other instance. There was nothing wrong
with my code or Struts. They just assumed that since Resin kept resetting
My apologies for being unclear...
Yes the Bean has one method called getMonths()...
and in this method I will return the appropriate months based on the
locale.
It is just that getting/passing the Locale to the getMonths() in a JSP is
not really elegant.
JSP code:
html:select property=toMonth
I haven't looked at the flush in the tiles tag, but that may commit the
response and, so, when you do the init with your /main.do?method=doInit
the forward at the end of your action is not possible. Something like that
seems to be indicated by the error message. Do you have a stack trace?
At
Here's the stack trace:
java.lang.IllegalStateException: Cannot forward after response has been committed
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:371)
at
You are using struts so, instead of calling a jsp page for the response,
call an action class that sets an appropriate months in the request scope
and forwards to your jsp page and then just call the correct months from
request scope in the jsp page.
At 12:47 PM 6/16/2004, [EMAIL PROTECTED]
As mike mentionedyou should not be trying to forward after your /main.do
completes.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: Bob Thomas [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL
Sort-of Yes.
We never really persist what is selected to any layer beyond the form because we're
only gathering attributes that which are provided to our search action once all the
selectable attributes.
So from a technical use-case perspective I understand that:
1. Form session scoped for
So, how do I get the result of main.do into a tile? How do developers typically get
the results of a DispatchAction class method into a tile?
James Mitchell [EMAIL PROTECTED] wrote:As mike mentionedyou should not be trying
to forward after your /main.do
completes.
--
James Mitchell
At 12:23 PM -0700 6/16/04, Bob Thomas wrote:
When I do this ...
tiles:insert page=layout.jsp flush=true
...
tiles:put name=body value=/main.do?method=doInit /
/tiles:insert
I get the following error message:
java.lang.IllegalStateException: Cannot forward after response has been
committed
What
Sounds like you're describing a struts
Multibox:
http://jakarta.apache.org/struts/userGuide/struts-html.html#multibox
Ted Husted has a nice intro here:
http://www.jguru.com/faq/view.jsp?EID=925277
Dennis
Chris Cranford
[EMAIL PROTECTED]
06/16/2004 04:06 PM
Please respond to
Struts
Sure, my idea of using a Bean in the application scope is to not have to
do the creation of the List of months in every Action class and just
reference the Bean in the application scope from the JSP page..
So I guess that the Action class can obtain the Months from the Bean in
the application
I typically use this kind of structure:
(struts-config.xml)
actionpath=/manageSomething
type=com.company.ManageSomething
name=searchForm
attribute=userDetail
scope=request
parameter=action
forward name=searchpath=search.something.view/
At 12:54 PM 6/16/2004, Bob Thomas wrote:
Here's the stack trace:
java.lang.IllegalStateException: Cannot forward after response has been
committed
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:371)
at
Ah ha. I think I just understood
the real problem; each subsequent submission of the form wipes out the
current collection of selected checkboxes. If that's your problem,
then I believe you're going to have to modify the way you're modelling
the collection of as well as the behavior of the
In my Struts app, I need to get data from a resource bundle. So I make a
call to:
MessageResources.getMessageResources(myFile)
The file name is actually myFile_en_US.properties, and when I run this
code on Tomcat, it's able to find the right file. But when I run the
same code on WebLogic, it
The property of the 'initial' attribute inside the
form-property tag (i.e. initial=postDate)
does not seem to become the default value. The query
method (with sort and order among the parameters) that
retrieve articles from the database got the
NullPointerException.
I know the query method
There ya go! I knew you'd see my problem ;-)
So I could have a form that contains:
String[] checkedItemsRender; // Rendered collection
String[] checkedItemsSubmit; // Submitted collection
LabelValueBean[] pageItems; // data/id to show in form
Then the form takes the checkedItemsRender
Hmm, checkin' something here :-)
I defined a form just like the following form is defined below. I then
defined an action mapping as follows:
action
path=/searchtest
type=com.setech.test.ChrisTestAction
scope=request
name=mySearchForm
forward name=success
Correction to the two BeanUtils calls, it should be:
String sort = BeanUtils.getProperty(form,sort);
String order = BeanUtils.getPropety(form, order);
But in either case it would yield the same result :-)
Chris
- Original Message -
From: Chris Cranford [EMAIL PROTECTED]
To:
For the past year or so, I have been using getInputForward() and the
input attribute in the action to define the default end point for
that action. I did that because normally there is only one tile for
the action to go to, so being lazy I wouldn't create a forward I would
just use the input to
Yep, your colleague is right - input attribute is used to re-direct the
control if validation fails - not for Success / user defined forwards
V.K.Ram
NitroX Struts Team
-Original Message-
From: Carl Fyffe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 4:36 PM
To: [EMAIL
Hi All,
I seem not to be able to get html:message print out the message I set up in
the action at all.
I have looked at the request attribute, it does contain the ActionMessages
and I was able to retrieve the message for a particular property in my JSP,
but the tag just doesn't work.
Here is the
Have you tried removing property from the messages tag to see if the
message you're wanting to print out exists in the collection at all ?
Hope this helps!
Chris
- Original Message -
From: Betty Koon [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday,
1 - 100 of 114 matches
Mail list logo