If I understand your question correctly, what you are looking for is in
the ActionProxy:
http://struts.apache.org/2.0.11.1/struts2-core/apidocs/com/opensymphony/xwork2/ActionProxy.html
It has getAction and getMethod methods.
I'm not sure how to easily get ahold of the ActionProxy within a jsp.
th
help.
Dave
On Sat, 2008-05-24 at 06:14 -0700, Dave Newton wrote:
> --- David Evans <[EMAIL PROTECTED]> wrote:
> > Ok, thanks. Two questions:
> > 1. to build it, do i download the source from svn, compile, then jar?
>
> http://struts.apache.org/2.x/docs/building-the
Ok, thanks. Two questions:
1. to build it, do i download the source from svn, compile, then jar?
2. what does 2.1.muble+ mean?
Dave
On Fri, 2008-05-23 at 15:47 -0700, Dave Newton wrote:
> --- David Evans <[EMAIL PROTECTED]> wrote:
> > I need to download the latest versio
Hello,
I need to download the latest version of the jasper reports plugin jar
(in order to take advantage of the exportParameters functionality added
to JasperReportsResult.java by Dave Newton on April 25th). How can I
download a jar that includes that version? Or do i have to build that
myself?
Laurie and Dave, thanks for the ideas.
I am embarrassed to say that the problem was the file permissions on my
jar file.
Thanks again,
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
Hello all,
I am trying to configure Struts 2 and Jasper Reports.
I am getting a:
java.lang.NoClassDefFoundError:net/sf/jasperreports/engine/JasperCompileManager
As you can see in my setup below, I have the jasperreports-2.0.5.jar in
WEB-INF/lib and a jar tvf verifies that that JasperCompileManag
Hello,
These webwork and xwork doc pages may help:
http://wiki.opensymphony.com/display/XW/Interceptors
http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/ActionInvocation.html
http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/ActionProxy.html
Passed in to your intercepto
On Mon, 2006-07-24 at 21:45 +0100, Adam Hardy wrote:
> Ted Husted on 24/07/06 15:22, wrote:
> > On 7/23/06, Adam Hardy <[EMAIL PROTECTED]> wrote:
> >> Can anyone involved in struts 2 tell me about potential brick walls that
> >> this sort of Action base class and its children would be heading into
The API docs can help:
http://struts.apache.org/1.x/struts-core/apidocs/index.html
more specifically:
http://struts.apache.org/1.x/struts-core/apidocs/org/apache/struts/action/ActionServlet.html
This link has a brief explanation
http://struts.apache.org/1.2.x/userGuide/building_controller.html#ac
Another avenue for exploration at this point is webwork:
http://opensymphony.com/webwork/
this is the basis for for struts 2.0, and its a great framework.
the basic concept remains the same (a url maps to a class method, which
returns a pointer to a resource, usually a view), but there is a lot
mo
This page may be helpful:
http://wiki.apache.org/struts/EventActionDispatcher
On Wed, 2006-05-31 at 10:42 -0700, pantichd wrote:
> Hello,
>
> I'm trying to figure out how to decide which "flavor" of DispatchAction
> (DispatchAction, LookupDispatchAction, MappingDispatchAction, etc) to use in
> wh
${list1Item}
${list2[status.index]}
the status variable is an instance of LoopTagStatus, which has an index
property that is set by the forEach loop.
I might favor combining the two lists (in your action) into a single
list, each element of which has a list that holds the two items from t
ossible to get the request object in any way.
>
> I have solved my problem now. But I am still wondering if it is a good
> idea to have access to the request object from anywhere. If yes, then is
> there a way to do it. Any thoughts?
>
> Harsh.
>
> -Original Messag
This page provides a good overview of the problem:
http://wiki.apache.org/struts/DataEntryForm
On Fri, 2006-05-12 at 10:35 +0200, dario wrote:
> hello everybody,
>
> I'd like to know how do you deal with situations where you need to
> display some dynamic elements (menus, dropdowns...) on the
Hello,
I don't think you can get the request from the ActionForm. From within
the ActionForm you can get the ServletContext this way:
ServletContext context = this.getServlet().getServletContext();
But i don't think that helps.
What is the scenario here? why do you need the request in the
Acti
Check out Velocity and Freemarker, both are templating systems that are
not tied to jsp.
http://jakarta.apache.org/velocity/
http://freemarker.sourceforge.net/
I use velocity to do all of the email body templating in my
applications, it works great.
Dave
On Thu, 2006-05-11 at 12:43 -0700, Kalce
This may help:
http://struts.apache.org/struts-action/struts-taglib/index.html
You may also want to consider using the jstl tags. i think the struts
logic tags may be depreciated in favor of jstl. the jstl tags to solve
your problem are and and the documentation is here:
http://java.sun.com/prod
Just a guess, as i don't use the struts html tags, but shouldn't that
method=get be method="post"? you can't "get" a multi part form.
dave
On Wed, 2006-05-10 at 11:59 -0700, kommineni Anita wrote:
> Kyle,
> Thanks for the reply. But I ahve it declared.
> I have that defined in my html as follows
if you are running on apache, you can use mod_rewrite to fix this, by
including a rewrite rule, something like:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domainname\.com$ [NC]
RewriteRule ^(.*)$ http://www.domainname.com$1 [R=301,L]
dave
On Tue, 2006-05-09 at 08:26 -0500, Scott Purcell
the answer to your first question is here:
http://struts.apache.org/struts-action/apidocs/org/apache/struts/upload/CommonsMultipartRequestHandler.html#getRepositoryPath(org.apache.struts.config.ModuleConfig)
I think the answer to your second question depends on the servlet
container being used, an
On Sun, 2006-04-30 at 20:33 -0500, Joe Germuska wrote:
> At 5:10 PM -0700 4/30/06, David Evans wrote:
> >below...
> >
> >On Sun, 2006-04-30 at 17:47 -0500, Joe Germuska wrote:
> >> On 4/30/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
> >> >I ha
Thanks for the idea. Are you differenciating using request.getMethod()
in the actions execute method?
dave
On Mon, 2006-05-01 at 10:03 -0400, Dave Newton wrote:
> David Evans wrote:
> > Is there a reason you don't use the two action (setup and submit) approach?
> >
&g
Here's a quick connect using standard java (not tested):
java.net.HttpURLConnection connection;
java.net.URL url;
try {
// Create new URL and connect
url = new URL("http://www.test.com/test.cgi";);
connection = (HttpURLConnection) url.openConnection();
// Setup HTT
below...
On Sun, 2006-04-30 at 17:47 -0500, Joe Germuska wrote:
> On 4/30/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
> >I have seen some discussions on this forum regarding
> >action chaining. Primarily, the advices are to think
> >through the business logic before making decision on
> >chaining
On Tue, 2006-04-25 at 16:52 -0300, Marisol Opreni wrote:
> De: Marisol Opreni [mailto:[EMAIL PROTECTED]
> Enviado el: Martes, 25 de Abril de 2006 03:52 p.m.
> Para: 'Struts Users Mailing List'
> Asunto: Combo Selection Missed
>
>
>
> Hi!
>
>
>
> I have textboxes and a drop down list.
>
>
Hello all,
I have a project i'm working on, that has the following view
requirement:
1) have a known filesystem directory into which static html files can be
placed. these html files have a marker somewhere in the body tag that
says . The marker could be anything, that is
just an example.
2) my
Hey its friday and its late :)
And while i'm talking to you, thanks for the struttin with struts
lessons, they really helped me when i first started using this stuff.
dave
On Fri, 2006-04-21 at 21:21 -0400, Rick Reumann wrote:
> On 4/21/06, David Evans <[EMAIL PROTEC
Hello,
Even if Struts is passing a true reference to the form bean that is
stored in the session, doing that reassignment inside the dispatch
method won't do what you want.
*
public ActionForward setUpForNew(ActionMapping mapping, ActionForm
form, ...{
form = new MyForm();
**
t all seems much cleaner so
far.
Dave
> [1]
> http://www.opensymphony.com/webwork/wikidocs/Basic%20configuration%20and%20your%20first%20action%20-%20Hello%20WebWorld.html
>
> On 4/19/06, David Evans <[EMAIL PROTECTED]> wrote:
> > I'm just getting started with Webwor
On Tue, 2006-04-18 at 13:23 -0500, Eric Rank wrote:
> Thanks Rick,
> Thanks for your feedback! I'm curious about this chaining and
> interceptor business too. What's it all about?
>
> Eric Rank
I'm just getting started with Webwork and so am no expert, but here's a brief
description of the inte
Instead of scattering the session/cookie checks throughout your actions,
you could make a BaseSecurityCheckAction that does the check and then
have the actions which need the checks extend the base action. In
Webwork and therefore Struts 2, you'll be able to implement this as an
interceptor, and us
On Fri, 2006-01-06 at 20:49 +, Niall Pemberton wrote:
> - Original Message -
> From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
> Sent: Friday, January 06, 2006 8:21 PM
>
> > Not at all a significant enhancement, but
> > think of all the things you could then do. How about a simple fla
In struts 1.1 (the only one i have the source for) its in the
processActionForm method.
dave
On Tue, 2006-01-03 at 08:38 -0600, Jim Reynolds wrote:
> Hello and Happy New Year
>
> I am trying to figure out which method (of the many) in the request
> processor physically takes the form bean and s
You will probably find this useful, it covers a variety of options to
solve the problem.
http://www.reumann.net/struts/articles/request_lists.jsp
On Fri, 2005-12-30 at 12:45 -0500, Alex wrote:
> Hi,
>
> I'm creating a web form that displays both editable and readonly data
> at the same time. I
ta.apache.org/taglibs/doc/standard-doc/intro.html
dave
On Fri, 2005-12-16 at 01:15 +0330, Legolas Woodland wrote:
> David Evans wrote:
> > As someone else mentioned, the problem could be the scope of your
> > variable. Another thing to check, are you sure that EL is being
> >
As someone else mentioned, the problem could be the scope of your
variable. Another thing to check, are you sure that EL is being
evaluated in your page?
dave
On Fri, 2005-12-16 at 00:30 +0330, Legolas Woodland wrote:
> [EMAIL PROTECTED] wrote:
> > Hi
> >
> > Don't use this. Use the jstl tags ins
ike
solution to the above problem.
dave
On Mon, 2005-12-12 at 18:12 -0800, David Evans wrote:
> Hello all,
>
> I have a requirement for a dynamically created menu on all pages of a
> web site i am creating. So i created an action that creates a List of
> MenuItems, and then for
Hello all,
I have a requirement for a dynamically created menu on all pages of a
web site i am creating. So i created an action that creates a List of
MenuItems, and then forwards to a jsp that uses jstl to forEach through
the list and generate the appropriate html. the jsp page only has the
snipp
A few ideas that may get you started:
you can use different names for the submit or image tags that you are
using to submit the forms, and set up an if, else if structure in your
validate method to see which page has submitted to the actionForm based
on the parameters input. or use hidden tags to
And you get the HttpSession object from the request in your action like
this:
HttpSession session = req.getSession();
// where req is the HttpServletRequest passed into the "execute" method
On Tue, 2005-11-29 at 10:21 -0500, Srinivas Jadcharla wrote:
> You can use HttpSession Object..In that yo
to persist the given cartEntries[].productCount,
> becouse my shoppingcart is in the database (which is more safe and easer
> to analye with some stastic apps later).
>
> Chhers,
>
> Danny
>
> P.S. And yes, I use Struts Dialogs :)
>
>
> David Evans schrieb:
>
Sorry, I've search for hours but can't seem to find the answer to this
basic problem.
I'm building a shopping cart for the first time in struts. I have a
display cart jsp that will show each item, and as expected, i have a qty
textbox for each item and an update cart button. so each qty field will
I think this might help:
http://www.niallp.pwp.blueyonder.co.uk/lazyactionform.html
On Fri, 2005-10-28 at 08:15, Brian Demers wrote:
> Hello all,
>
> I am creating a dynamic struts application. I don't think
> DynaActionForm is what I am looking for.
>
> My page contains many input fields which
I think you could use the java.lang.reflect package classes:
Object obj = new Object();
Method[] methods = obj.getClass.getMethods();
Create another test object that does implement all of the interfaces,
and then compare the methods array to the array created by the test
object's .getClass.getMet
Hello All,
I have a struts app which is having problems with its servlet mapping.
this problem appeared seemingly on its own, unrelated to any change to
the configuration. surely thats unlikely, but i'm the only admin on the
box and i don't remember changing anything. the app is running on
tomcat,
Hello,
comments below
On Wed, 2005-04-27 at 10:19, Scott Purcell wrote:
> Hello,
> I decided to try and implement a filter for my struts application. A filter
> that would check for a session object, and if it does not exist, send the
> user to a certain link.
>
> Anyway, I found an example in
I think that with RT the attribute is all expression or no expression.
so try :
">
I'm not sure if i parsed your intention correctly, but the idea is that
the attribute should be all expression. a simpler example:
wrong ->
right -> ">
dave
On Thu, 2005-04-14 at 12:42, [EMAIL PROTECTED] wrote
Hello,
I posted this question yesterday, and got no replies, figured i'd try
rephrasing/simplifying the question.
I have an application which i want to migrate to struts. It needs to be
able to use a different populate method depending on the information in
the submitted request. I am interested
Hello All,
When i first heard about struts, i was developing all in jsps. I read
about struts and at the same time MVC, and thought, "Well obviously
thats the way to go". So before i allowed my self to use struts i first
created my own "strutsLite" based on my very small understanding of
struts. I
Here's how i use the tomcat database pool.
(these are just the relevent snippets, if you need the
entire source, email me off list and i'll email you the entire DAO)
In my DAO:
import javax.sql.DataSource;
import javax.naming.Context;
import javax.naming.InitialContext;
import java.sql.Connection;
Hello,
I am creating an application which has a search form. the search form
has several fields which represent attributes of a person object that is
stored in a database. i gather the user inputted values into the
actionform and they are passed to my struts Action class. I will use
these values t
Are either Tapestry or Zope the kind of things you're talking about
here? They are both component based web app frameworks. If those are not
what you're talking about, whats the difference?
dave
On Wed, 2004-10-06 at 11:26, Michael McGrady wrote:
> I have a proposal at the bottom of this email.
>
I found another location for the tips:
http://www.jguru.com/faq/topicindex.jsp?topic=Struts
then search for
Tools:Framework:Struts:Tips
On Tue, 2004-08-24 at 08:48, Susan Bradeen wrote:
> David Evans <[EMAIL PROTECTED]> wrote on 08/23/2004 05:01:39 PM:
>
> > Anyone know wh
Anyone know what happened to the website that used to live here:
http://husted.com/struts/index.html
there was a design patterns catalog and a tips page and alot of great
links.
has it been mirrored?
dave
-
To unsubscribe, e-
Heres a good thread from the archives:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg24504.html
On Mon, 2004-08-23 at 12:29, struts wrote:
> Hi. Since most of Struts based applications has some sort of login facility
> I thought there must be some kind of "best practice" when using the Strut
On Thu, 2004-07-22 at 21:59, Rick Reumann wrote:
> David Evans wrote:
>
> > Velocitys other big sellling point to me is
> > that i can use it during an action's execution, for instance, to create
> > files on disc. theres no way to do that with jsp is there?
&
On Thu, 2004-07-22 at 13:43, Craig McClanahan wrote:
> On Thu, 22 Jul 2004 10:33:35 -0400, David Evans <[EMAIL PROTECTED]> wrote:
> > Thanks for the input. i can see what you mean about the conditionals and
> > looping looking cleaner. but the ease of use of sticking any kind
cleaner. tastes vary.
dave
On Wed, 2004-07-21 at 22:37, Rick Reumann wrote:
> David Evans wrote:
>
> > Could you elaborate on what you find distastful about Velocity?
>
> I wasn't being "all" seriously when I said "yuk":) but seriously I do
> find tha
Rick,
Could you elaborate on what you find distastful about Velocity? I've
just started using it as my primary presentation layer tool in struts,
because i found the templating language so clean and clear. The ablitiy
to stick what ever object i'd like in its context, and then refer to it
in a si
59 matches
Mail list logo