Author Login
Post Reply
user Digest 1 Aug 2010 18:02:09 -0000 Issue 9138
Topics (messages 207114 through 207126):
Re: Not able to deploy the Struts Framework application on Jboss server
207114 by: Lukasz Lenart
Where to find variables added in context
207115 by: Amol Ghotankar
Re: Mix SpringMVC 3.0 with Struts2
207116 by: Struts Two
207117 by: Frans Thamura
Re: Can I access URL parameters within struts.xml using ognl ?
207118 by: Dale Newfield
Re: Reading input stream (xml)
207119 by: Arun Kumar Boppudi
Re: Regular expression action mapper
207120 by: Wes Wannemacher
Re: Migrating from struts 1.1 to 1.3
207121 by: Wes Wannemacher
Re: Struts 2 field validator thread safety
207122 by: Wes Wannemacher
Re: Struts 2 constant not working...
207123 by: Wes Wannemacher
Re: Problem accessing a field from an object which is placed in session using the key from property file
207124 by: Wes Wannemacher
Struts2's Injection based on JSR 330
207125 by: Frans Thamura
207126 by: Frans Thamura
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_207114.ezm (zipped)2010/7/30 venkat_y03@(protected)>:
> While deploying the Struts Framework application on Jboss server, I am
> getting the error messages.
> Here with I am attaching errors.txt file for error messages.
>
> Could any body guide/suggest to resolve my issue.
I don't see anything related to Struts 2 in stack trace, could you
check error.log for more informations? Or setup DEBUG level?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

Attachment:
user_207115.ezm (zipped)Dear List members,
I am debugging my jsp page.
I have added few list in my action context from my action.
Now where do I find these list on my jsp page while debugging under which
object.
I get these objects on my debug window, in which object and exactly under
which map do I get the values added in context.
this edit_jsp (id=403)
_jspx_th_s_005fif_005f9 IfTag (id=500)
_jspx_page_context PageContextImpl (id=5102)
--
With Best Regards,
Amol Ghotankar

Attachment:
user_207116.ezm (zipped)And why do you want to mix Struts 2 with Spring 3.0MVC? It is understandable if
you want to use Spring DI with struts 2, however; if you already have Spring
3MVC, I think you should stick to it.
----- Original Message ----
From: Frans Thamura <frans@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Thu, July 29, 2010 6:49:31 PM
Subject: Mix SpringMVC 3.0 with Struts2
hi all
I try to mix Struts2 2.2.1 with SpringMVC 3.0
i got a Validator error when ass Struts2, but if i remove struts2, the code
work well
i believe there is a problem with the validation
any tips for the exclude ? i see that struts2 using spring 2.5.6, this is my
exclusions
am i put in the wrong depedency? if yes, where i must put it, or ...
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.2.1</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
--
Frans Thamura
Meruvian.
We grow because we share the same believe.
Mobile: +6287885901958
Blog & Profile: http://frans.thamura.info
We provide services to migrate your apps to Java (web), in amazing fast and
reliable.

Attachment:
user_207117.ezm (zipped)To make development of choice in one container
We success make dao sesfactory same
(m)
-----Original Message-----
From: Struts Two <strutstwo@(protected)>
Date: Fri, 30 Jul 2010 05:43:37
To: Struts Users Mailing List<user@(protected)>
Reply-To: "Struts Users Mailing List" <user@(protected)>
Subject: Re: Mix SpringMVC 3.0 with Struts2
And why do you want to mix Struts 2 with Spring 3.0MVC? It is understandable if
you want to use Spring DI with struts 2, however; if you already have Spring
3MVC, I think you should stick to it.
----- Original Message ----
From: Frans Thamura <frans@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Thu, July 29, 2010 6:49:31 PM
Subject: Mix SpringMVC 3.0 with Struts2
hi all
I try to mix Struts2 2.2.1 with SpringMVC 3.0
i got a Validator error when ass Struts2, but if i remove struts2, the code
work well
i believe there is a problem with the validation
any tips for the exclude ? i see that struts2 using spring 2.5.6, this is my
exclusions
am i put in the wrong depedency? if yes, where i must put it, or ...
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.2.1</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
--
Frans Thamura
Meruvian.
We grow because we share the same believe.
Mobile: +6287885901958
Blog & Profile: http://frans.thamura.info
We provide services to migrate your apps to Java (web), in amazing fast and
reliable.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_207118.ezm (zipped)On 7/30/10 3:42 AM, colaru wrote:
> Good question. Did you get a response, somehow?
> Is possible to use attributes from request, session or application in
> dynamic URL's?
> I'm interested in this.
http://struts.apache.org/2.1.8.1/struts2-core/apidocs/org/apache/struts2/dispatcher/StrutsResultSupport.html
Although now %{} works, too (and makes more sense as ${} usually means
EL, not OGNL).
-Dale
> mikeh96 wrote:
>>
>> I would like to do something like this:
>>
>> (e.g. http://foo/view.action?page=help.vm)
>>
>> <action name="view"
>> class="
com.opensymphony.xwork2.ActionSupport">
>> <interceptor-ref name="defaultStack" />
>> <result
>> type="velocity">/templates/screens/#request['page']</result>
>> </action>
>>
>> I know I can do it if I write my own action with setters/getters for the
>> parameter .. but I was wondering
>> if I can use some ognl syntax or other (e.g.
>> $request.getParameter("page"))
>>
>> thanks
>>
>>
>

Attachment:
user_207119.ezm (zipped)Thanks. But I am looking for a solution in Struts 1.3.
-- AB
On Fri, Jul 30, 2010 at 4:17 PM, adam pinder <apinder@(protected):
>
>
>
> your action could implement ServletRequestAware then it has access to the
> full request including posted content.
>
>
>
> adam
>
>
>
> > From: arunkumar.boppudi@(protected)
> > Date: Fri, 30 Jul 2010 15:31:15 +0530
> > Subject: Re: Reading input stream (xml)
> > To: user@(protected)
> >
> > Request to this controller comes from other applications, only in XML
> > format. So, I cannot expect multi-part.
> > -- AB
> >
> >
> > On Fri, Jul 30, 2010 at 2:38 PM, Rahul Mohan <rahul.mohan@(protected)>
> wrote:
> >
> > > A variant of the first: change your encoding to multi-part and send
> > > 'data=your_xml_content'. Then struts will take care of getting the
> > > content, and also you don't have to worry about encoding the xml.
> > >
> > >
> > >
> > > From:
> > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > To:
> > > Struts Users Mailing List <user@(protected)>
> > > Date:
> > > 30-07-2010 13:48
> > > Subject:
> > > Re: Reading input stream (xml)
> > >
> > >
> > >
> > > Unfortunately, I have to use XML here. So, I cannot use the first
> > > suggestion.
> > >
> > > If I use request.getInputStream, subsequent request.getParameter calls
> > > will
> > > fail. Will it cause any problems in struts?
> > >
> > > I would like to give a try to the third one. But not all the action
> > > controllers gets XML in the request. So, I may have to list down the
> > > controllers which gets the XML content in the request.
> > >
> > > -- AB
> > >
> > >
> > > On Fri, Jul 30, 2010 at 10:41 AM, Rahul Mohan <rahul.mohan@(protected)>
> wrote:
> > >
> > > > Think I understand your problem now. AFAIK Struts doesn't have any
> > > > available mechanism to handle these. I can suggest the following
> > > > solutions:
> > > > 1. Create your request body in the way Struts is expecting -
> name-value
> > > > pairs.
> > > >
> > > > 2. Extend struts by creating a custom request processor. ( See:
> > > > http://onjava.com/pub/a/onjava/2004/11/10/ExtendingStruts.html ).
> You
> > > will
> > > > have to identify the first possible hook and call getInputStream to
> > > > extract the info and pass it as a request parameter or invoke a
> custom
> > > > action since request.getInputStream cannot be called after the
> request
> > > is
> > > > parsed.
> > > >
> > > > 3. Put a custom servlet-filter in front of the struts controller to
> get
> > > > the request data and re-pass it as a request parameter to struts.
> > > >
> > > > I prefer the first approach which is the easiest and does no harm.
> > > >
> > > > - Rahul
> > > >
> > > >
> > > >
> > > > From:
> > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > To:
> > > > Struts Users Mailing List <user@(protected)>
> > > > Date:
> > > > 30-07-2010 09:49
> > > > Subject:
> > > > Re: Reading input stream (xml)
> > > >
> > > >
> > > >
> > > > There is no form and I am sending XML content to the action
> controller
> > > > using
> > > > Fiddler.
> > > >
> > > > And data sent is not in the format of query string. (not in the
> format:
> > > > paramname=*xml_content*). So, struts may not be mapping it to a
> property
> > > > in
> > > > the form bean. In this case, how can I get the posted XML contents?
> > > >
> > > >
> > > > -- AB
> > > >
> > > >
> > > > On Thu, Jul 29, 2010 at 5:59 PM, Rahul Mohan <rahul.mohan@(protected)>
> > > wrote:
> > > >
> > > > > Data goes in request body when you are posting a form. Post
> requests
> > > are
> > > > > obviously handled by Struts. So it should work. ( Only you know
> that
> > > it
> > > > is
> > > > > XML, for Struts its just another String. ) Please see your log for
> any
> > > > > exceptions in setting the action form. Also try inspecting your
> > > request
> > > > > using firebug to see if it is being posted.
> > > > >
> > > > >
> > > > >
> > > > > From:
> > > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > > To:
> > > > > Struts Users Mailing List <user@(protected)>
> > > > > Date:
> > > > > 29-07-2010 14:58
> > > > > Subject:
> > > > > Re: Reading input stream (xml)
> > > > >
> > > > >
> > > > >
> > > > > I think we should use the query string format to use the string in
> > > > action
> > > > > form class format. But I am not sending it in the query string
> format.
> > > > And
> > > > > I
> > > > > am not using multipart encoding. Just sending the XML content in
> POST
> > > > > body.
> > > > >
> > > > > -- AB
> > > > >
> > > > >
> > > > > On Thu, Jul 29, 2010 at 2:38 PM, Rahul Mohan <rahul.mohan@(protected)>
> > > > wrote:
> > > > >
> > > > > > Arun,
> > > > > >
> > > > > > Are you doing a POST with multi-part encoding? If so, a solution
> > > > > similar
> > > > > > to file upload would work for you. If not, then the String in
> > > > > action-form
> > > > > > approach that I posted earlier should work.
> > > > > >
> > > > > > - Rahul Mohan
> > > > > >
> > > > > >
> > > > > >
> > > > > > From:
> > > > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > > > To:
> > > > > > Struts Users Mailing List <user@(protected)>
> > > > > > Date:
> > > > > > 29-07-2010 13:34
> > > > > > Subject:
> > > > > > Re: Reading input stream (xml)
> > > > > >
> > > > > >
> > > > > >
> > > > > > Rahul,
> > > > > >
> > > > > > I am not sending XML content as part of the query string, only
> XML
> > > > > content
> > > > > > will be sent in the request body. As struts framework uses the
> > > > > > getParameter
> > > > > > to populate data into the form beans before calling the execute
> > > > method,
> > > > > we
> > > > > > cannot use the request.getInputStream.
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0106&L=jsp-interest&F=&S=&P=49196
> > >
> > > >
> > > > >
> > > > > >
> > > > > >
> > > > > > -- AB
> > > > > >
> > > > > >
> > > > > > On Thu, Jul 29, 2010 at 11:01 AM, Rahul Mohan <
> rahul.mohan@(protected)>
> > > > > wrote:
> > > > > >
> > > > > > > Arun,
> > > > > > >
> > > > > > > You can keep a string property on action form and map it to the
> > > xml
> > > > > > field
> > > > > > > so that the xml content is available here on page submit. In
> the
> > > > > action
> > > > > > > class, then you will be able to get the string and parse it
> using
> > > > any
> > > > > > > available xml parser. I don't think Struts provides any
> shortcut
> > > for
> > > > > > this
> > > > > > > requirement.
> > > > > > >
> > > > > > > - Rahul Mohan
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > From:
> > > > > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > > > > To:
> > > > > > > Struts Users Mailing List <user@(protected)>
> > > > > > > Date:
> > > > > > > 29-07-2010 10:32
> > > > > > > Subject:
> > > > > > > Re: Reading input stream (xml)
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Actually, I am not uploading a file. I am creating XML from the
> > > data
> > > > > > > entered
> > > > > > > into the form and sending it to the action controller in the
> POST
> > > > > > request
> > > > > > > body. In the action controller, I would like to parse the XML.
> How
> > > > to
> > > > > do
> > > > > > > it
> > > > > > > in Struts 1.3?
> > > > > > >
> > > > > > > -- Arun Kumar Boppudi
> > > > > > >
> > > > > > >
> > > > > > > On Thu, Jul 29, 2010 at 10:24 AM, Rahul Mohan
> > > <rahul.mohan@(protected)>
> > > > > > wrote:
> > > > > > >
> > > > > > > > Doesn't this link (
> > > > > > http://struts.apache.org/2.0.14/docs/file-upload.html
> > > > > > > )
> > > > > > > > help you?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > From:
> > > > > > > > Arun Kumar Boppudi <arunkumar.boppudi@(protected)>
> > > > > > > > To:
> > > > > > > > Struts Users Mailing List <user@(protected)>
> > > > > > > > Date:
> > > > > > > > 28-07-2010 22:09
> > > > > > > > Subject:
> > > > > > > > Reading input stream (xml)
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > If we send XML content in the POST/PUT request to Struts
> action
> > > > > > > > controller,
> > > > > > > > how to read this content in the Action class?
> > > > > > > >
> > > > > > > > -- AB
> > > > > > > >
> > > > > > > >
> > > > > > > > =====-----=====-----=====
> > > > > > > > Notice: The information contained in this e-mail
> > > > > > > > message and/or attachments to it may contain
> > > > > > > > confidential or privileged information. If you are
> > > > > > > > not the intended recipient, any dissemination, use,
> > > > > > > > review, distribution, printing or copying of the
> > > > > > > > information contained in this e-mail message
> > > > > > > > and/or attachments to it are strictly prohibited. If
> > > > > > > > you have received this communication in error,
> > > > > > > > please notify us by reply e-mail or telephone and
> > > > > > > > immediately and permanently delete the message
> > > > > > > > and any attachments. Thank you
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > =====-----=====-----=====
> > > > > > > Notice: The information contained in this e-mail
> > > > > > > message and/or attachments to it may contain
> > > > > > > confidential or privileged information. If you are
> > > > > > > not the intended recipient, any dissemination, use,
> > > > > > > review, distribution, printing or copying of the
> > > > > > > information contained in this e-mail message
> > > > > > > and/or attachments to it are strictly prohibited. If
> > > > > > > you have received this communication in error,
> > > > > > > please notify us by reply e-mail or telephone and
> > > > > > > immediately and permanently delete the message
> > > > > > > and any attachments. Thank you
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > =====-----=====-----=====
> > > > > > Notice: The information contained in this e-mail
> > > > > > message and/or attachments to it may contain
> > > > > > confidential or privileged information. If you are
> > > > > > not the intended recipient, any dissemination, use,
> > > > > > review, distribution, printing or copying of the
> > > > > > information contained in this e-mail message
> > > > > > and/or attachments to it are strictly prohibited. If
> > > > > > you have received this communication in error,
> > > > > > please notify us by reply e-mail or telephone and
> > > > > > immediately and permanently delete the message
> > > > > > and any attachments. Thank you
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > =====-----=====-----=====
> > > > > Notice: The information contained in this e-mail
> > > > > message and/or attachments to it may contain
> > > > > confidential or privileged information. If you are
> > > > > not the intended recipient, any dissemination, use,
> > > > > review, distribution, printing or copying of the
> > > > > information contained in this e-mail message
> > > > > and/or attachments to it are strictly prohibited. If
> > > > > you have received this communication in error,
> > > > > please notify us by reply e-mail or telephone and
> > > > > immediately and permanently delete the message
> > > > > and any attachments. Thank you
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > =====-----=====-----=====
> > > > Notice: The information contained in this e-mail
> > > > message and/or attachments to it may contain
> > > > confidential or privileged information. If you are
> > > > not the intended recipient, any dissemination, use,
> > > > review, distribution, printing or copying of the
> > > > information contained in this e-mail message
> > > > and/or attachments to it are strictly prohibited. If
> > > > you have received this communication in error,
> > > > please notify us by reply e-mail or telephone and
> > > > immediately and permanently delete the message
> > > > and any attachments. Thank you
> > > >
> > > >
> > > >
> > >
> > >
> > > =====-----=====-----=====
> > > Notice: The information contained in this e-mail
> > > message and/or attachments to it may contain
> > > confidential or privileged information. If you are
> > > not the intended recipient, any dissemination, use,
> > > review, distribution, printing or copying of the
> > > information contained in this e-mail message
> > > and/or attachments to it are strictly prohibited. If
> > > you have received this communication in error,
> > > please notify us by reply e-mail or telephone and
> > > immediately and permanently delete the message
> > > and any attachments. Thank you
> > >
> > >
> > >
>
>

Attachment:
user_207120.ezm (zipped)Make sure you register it as a plugin here -
https://cwiki.apache.org/confluence/display/S2PLUGINS
-Wes
On Sun, Jul 18, 2010 at 7:48 AM, koolbunnyrabbit <linutrix@(protected):
> Hi all,
>
> Just trying to give back (or a shameless plug - you decide)
> Months ago (last year really) I implemented a regular expression
> action mapper similar to Django's URL dispatcher.
>
> Given this regex.mapping file
>
> listProduct::^/products$
> showProduct:entityId:^/product/([0-9]+)$
> showProduct:productName:^/product/([a-zA-Z0-9_]+)$
> deleteAttributeProductAdmin:entityId,entityType,attributeId:^/admin/product/([0-9]+)/delete/(type|colour|size)/([0-9]+)$
>
> Given a URL the regex action mapper will search through its list (in
> order) for a match (the patterns are compiled so it's fast).
>
> Therefore
>
> /pepperviolet/products will invoke the listProduct action
> /pepperviolet/product/89 will assign 89 to the variable entityId and
> call showProduct
> /pepperviolet/product/Sony_Bravia will assign "Sony_Bravia" to
> productName and call showProduct
> /pepperviolet/admin/product/999/delete/type/77 will do entityId = 999,
> entityType = "type" and attributeId = 77 and call
> deleteAttributeProductAdmin
>
> It is hosted at http://code.google.com/p/pepperviolet/
> I'm not sure what's the state of RESTful style mapping in Struts2 now,
> but if just 1 person finds this useful I'm happy already.
> Feedback is greatly appreciated.
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

Attachment:
user_207121.ezm (zipped)swap the jars and test?
If you get errors that you don't understand, post here and we'll try to help.
-Wes
On Sun, Jul 18, 2010 at 3:48 AM, amine123456 <eh.m.amine@(protected):
>
> thanks but is there any way I can jump directly from 1.1 TO 1.3??
>
> --
> View this message in context: http://old.nabble.com/Migrating-from-struts-1.1-to-1.3-tp29191020p29195699.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

Attachment:
user_207122.ezm (zipped)I would say that you probably should write the validator to be
thread-safe (just to be sure). But, that being said, from a quick look
at the validation framework (check classes like
DefaultValidationFactory, ValidationInterceptor, etc. inside of
xwork), it looks like xwork caches the "validator config" and asks the
validator factory for instances when they are needed. The validator
factory retrieves the instance from the Object Factory, which is
creating and injecting a new instance for each validation.
I say that you should still make them thread-safe because I would
imagine at some point, the framework might create instances and cache
/ reuse them since reflections-based instantiation can be slow.
-Wes
On Sat, Jul 17, 2010 at 6:25 PM, Marshall Gunter <marshall@(protected):
> Writing my own.
>
> On 10-07-15 08:33 PM, Christopher Schultz wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Marshall,
>>
>> On 7/15/2010 9:27 AM, Marshall Gunter wrote:
>>
>>>
>>> Do Struts 2 field validators need to be thread safe?
>>>
>>
>> That depends on what you want to do with them. Are you writing your own,
>> or are you critiquing the existing validator implementations?
>>
>> - -chris
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAkw/qMgACgkQ9CaO5/Lv0PCUrACgstaFyPiVsxZJ8iswTE4zmn0k
>> qKUAn2J769JmFnQuL6VDVS01dX1SIW8c
>> =FM2d
>> -----END PGP SIGNATURE-----
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

Attachment:
user_207123.ezm (zipped)I'd have to see more of the package configuration to be certain...
Generally, when I've seen SlashesInActionNames it isn't mapping to the
top of the package. For instance, I'd expect this to work -
<package name="top" namespace="/" extends="struts-default">
<action name="some/name/with/*" class="actionBean">
<result>success-result.jsp</result>
</action>
</package>
-Wes
On Sat, Jul 17, 2010 at 12:16 PM, JP Cafaro <jcafaro10@(protected):
> I can't get this struts2 constant to work:
> <constant name="struts.enable.SlashesInActionNames" value="true"/>
>
> I have this wildcard mapping:
> [ <action name="/secure/**" class="actions.secure.SecurePassThrough">
> <interceptor-ref name="secureStack"/>
> <result>{1}</result>
> </action>
>
> When I try and go to http://localhost:8080/Struts2NewChapter8/secure/blah I
> get an error: "There is no Action mapped for namespace /secure and action
> name blah." Why does this happen?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

Attachment:
user_207124.ezm (zipped)try something like this -
#session[@fully.qualified.SalesConstants@(protected)
-Wes
On Tue, Jun 22, 2010 at 9:56 PM, prathima <prathima_blue@(protected):
> Hi,
> We are migrating Struts 1.2 application to Struts2 and I am facing some issues.
>
> I have all the constants defined in a file called SalesConstants.java. It has a constant which is SALES_MKT_CAT ="marketing". In the Action class, an object(marketingProduct) of type Product is placed in session with key as "marketing".
> For example: session.put(SalesConstants.SALES_MKT_CAT,marketingProduct).
>
> I have to check if marketingProduct is in session and if so if it has salesPrice = 100 where salesPrice is a field in marketingProduct object which is of type Product.
>
> How can I check this in if tag?
> I tried #session.%{SalesConstant.SALES_MKT_CAT}.salesPrice but it didnt work
> I do not want to specify "marketing" directly which is the value of SalesConstant.SALES_MKT_CAT.
> Also, how can I check if "marketingProduct" is in session or not?
> We are currently upgrading from Struts 1.2 to Struts2 and we are in tight schedule. I understand we do not have logic:present , logic:equal tags in Struts2 :(
> I am new to Struts2, Please help.
>
> Thanks,
> Prathima
>
>
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

Attachment:
user_207125.ezm (zipped)anyone using this
code.google.com/p/atinject/
any idea to change the Spring/XWork IoC with this
so we have standard injection
--
Frans Thamura
Meruvian.
We grow because we share the same believe.
Mobile: +6287885901958
Blog & Profile: http://frans.thamura.info
We provide services to migrate your apps to Java (web), in amazing
fast and reliable.

Attachment:
user_207126.ezm (zipped)done
https://issues.apache.org/jira/browse/WW-3474
but still seeking a way to use the @Services and @transactional in javax.inject
F
On Mon, Aug 2, 2010 at 12:06 AM, Paul Benedict <pbenedict@(protected):
> Frans, this is a good idea. Do you want to open a JIRA ticket and officially
> recommend this?
>
> PS: The correct spelling should be "We grow because we share the same
> belief." (not believe)
>
> On Sun, Aug 1, 2010 at 5:41 AM, Frans Thamura <frans@(protected):
>>
>> anyone using this
>>
>> code.google.com/p/atinject/
>>
>> any idea to change the Spring/XWork IoC with this
>>
>> so we have standard injection
>>
>>
>> --
>> Frans Thamura
>> Meruvian.
>>
>> We grow because we share the same believe.
>>
>> Mobile: +6287885901958
>> Blog & Profile: http://frans.thamura.info
>>
>> We provide services to migrate your apps to Java (web), in amazing
>> fast and reliable.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>