Author Login
Post Reply
user Digest 8 Jul 2008 12:35:52 -0000 Issue 8128
Topics (messages 188560 through 188586):
[S2] Problem injecting String with Spring plugin
188560 by: Gabriel Belingueres
188561 by: Musachy Barroso
188565 by: Gabriel Belingueres
188566 by: Musachy Barroso
188568 by: Gabriel Belingueres
Struts 2.0.11 and Tiles 2.0.5
188562 by: Francisco Spaeth
188564 by: Struts Two
188582 by: Antonio Petrelli
Re: [S2] File download save dialog
188563 by: Struts Two
188573 by: Wes Wannemacher
188576 by: Struts Two
188577 by: Wes Wannemacher
188579 by: Jeromy Evans
Struts2 and Jquery problem with LightBox or thickbox
188567 by: prashanth2
Re: Getting Struts2 Parameters?
188569 by: Chris Miles
188570 by: Jim Kiley
static list with <s:select> problem.
188571 by: sharath karnati
Re: Using Menu Links In Tiles2 + Struts 2
188572 by: Lukasz Lenart
188581 by: DEEP JADHAV
188583 by: Antonio Petrelli
Re: Struts1 and Struts2 mailing lists separation ?
188574 by: Jason Wyatt
188575 by: Gabriel Belingueres
188580 by: Al Sutton
Ajax based login not working in IE but Working in FF
188578 by: AjaySrini
188585 by: Jeromy Evans
Struts templates
188584 by: jiebe
Re: REST plugin URL syntax
188586 by: Jeromy Evans
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_188560.ezm (zipped)Hi,
I want to inject a String defined in the Spring's
applicationContext.xml file like this:
<bean id="templatesDir" class="
java.lang.String">
<constructor-arg><value>/WEB-INF/templates/</value></constructor-arg>
</bean>
but the Spring plugin does not try to inject it (It works with my
other injected, non String class objects though)
It is OK that the plugin does not try to inject String objects?
(because they later can be overwritten with a parameter?)
or is this just a bug in the plugin?
Regards,
Gabriel

Attachment:
user_188561.ezm (zipped)The plugin doesn't really inject anything, it is all up to Spring.
musachy
On Mon, Jul 7, 2008 at 3:03 PM, Gabriel Belingueres
<belingueres@(protected):
> Hi,
>
> I want to inject a String defined in the Spring's
> applicationContext.xml file like this:
>
> <bean id="templatesDir" class="
java.lang.String">
> <constructor-arg><value>/WEB-INF/templates/</value></constructor-arg>
> </bean>
>
> but the Spring plugin does not try to inject it (It works with my
> other injected, non String class objects though)
>
> It is OK that the plugin does not try to inject String objects?
> (because they later can be overwritten with a parameter?)
> or is this just a bug in the plugin?
>
> Regards,
> Gabriel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_188565.ezm (zipped)Debugging the Spring output I found the following:
2008-07-07 16:52:40,421 DEBUG
(
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
- Returning cached instance of singleton bean 'allEventoService'
2008-07-07 16:52:40,421 DEBUG
(
org.springframework.beans.factory.support.DefaultListableBeanFactory:1033)
- Added autowiring by name from bean name 'admin.EditConstancia' via
property 'allEventoService' to bean named 'allEventoService'
2008-07-07 16:52:40,421 DEBUG
(
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
- Returning cached instance of singleton bean 'constanciaService'
2008-07-07 16:52:40,421 DEBUG
(
org.springframework.beans.factory.support.DefaultListableBeanFactory:1033)
- Added autowiring by name from bean name 'admin.EditConstancia' via
property 'constanciaService' to bean named 'constanciaService'
2008-07-07 16:52:40,515 DEBUG (orm.SfapconstanciaManager:213) - EXECUTE
2008-07-07 16:52:40,562 DEBUG
(
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
- Returning cached instance of singleton bean 'templatesDir'
2008-07-07 16:52:40,562 DEBUG
(
org.springframework.beans.factory.support.DefaultListableBeanFactory:601)
- Autowiring by type from bean name
'
org.apache.struts2.dispatcher.ServletDispatcherResult' via
constructor to bean named 'templatesDir'
I found several weird things:
1) templatesDir _is well defined_ in Spring since I did the following
in my app context listener and it worked OK:
WebApplicationContext context =
WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());
System.out.println(context.getBean("templatesDir"));
2) In the above log trace, which corresponds to the execution of my
action, the other Spring dependencies are injected correctly (before
calling the action's execute() method)
3) The templateDir is NOT injected at this point (don't know why.)
4) AFTER my action's execute() method, templateDir _is_ injected into
a ServletDispatcherResult instance!!:
2008-07-07 16:52:40,562 DEBUG
(
org.springframework.beans.factory.support.DefaultListableBeanFactory:601)
- Autowiring by type from bean name
'
org.apache.struts2.dispatcher.ServletDispatcherResult' via
constructor to bean named 'templatesDir'
(even it is injected by _TYPE_, which I never specified it before,
because AFAIK the Spring plugin uses byName as the default)
I'm using Spring 2.5.5 and S2 2.1.2.
2008/7/7, Musachy Barroso <musachy@(protected)>:
> The plugin doesn't really inject anything, it is all up to Spring.
>
> musachy
>
> On Mon, Jul 7, 2008 at 3:03 PM, Gabriel Belingueres
> <belingueres@(protected):
> > Hi,
> >
> > I want to inject a String defined in the Spring's
> > applicationContext.xml file like this:
> >
> > <bean id="templatesDir" class="
java.lang.String">
> > <constructor-arg><value>/WEB-INF/templates/</value></constructor-arg>
> > </bean>
> >
> > but the Spring plugin does not try to inject it (It works with my
> > other injected, non String class objects though)
> >
> > It is OK that the plugin does not try to inject String objects?
> > (because they later can be overwritten with a parameter?)
> > or is this just a bug in the plugin?
> >
> > Regards,
> > Gabriel
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188566.ezm (zipped)Did you try forcing Spring to autowrie by name? Add
default-autowire="byName" to the "beans" tag in your spring config(s)
file(s).
musachy
On Mon, Jul 7, 2008 at 4:09 PM, Gabriel Belingueres
<belingueres@(protected):
> Debugging the Spring output I found the following:
>
> 2008-07-07 16:52:40,421 DEBUG
> (
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
> - Returning cached instance of singleton bean 'allEventoService'
> 2008-07-07 16:52:40,421 DEBUG
> (
org.springframework.beans.factory.support.DefaultListableBeanFactory:1033)
> - Added autowiring by name from bean name 'admin.EditConstancia' via
> property 'allEventoService' to bean named 'allEventoService'
> 2008-07-07 16:52:40,421 DEBUG
> (
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
> - Returning cached instance of singleton bean 'constanciaService'
> 2008-07-07 16:52:40,421 DEBUG
> (
org.springframework.beans.factory.support.DefaultListableBeanFactory:1033)
> - Added autowiring by name from bean name 'admin.EditConstancia' via
> property 'constanciaService' to bean named 'constanciaService'
> 2008-07-07 16:52:40,515 DEBUG (orm.SfapconstanciaManager:213) - EXECUTE
> 2008-07-07 16:52:40,562 DEBUG
> (
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
> - Returning cached instance of singleton bean 'templatesDir'
> 2008-07-07 16:52:40,562 DEBUG
> (
org.springframework.beans.factory.support.DefaultListableBeanFactory:601)
> - Autowiring by type from bean name
> '
org.apache.struts2.dispatcher.ServletDispatcherResult' via
> constructor to bean named 'templatesDir'
>
> I found several weird things:
>
> 1) templatesDir _is well defined_ in Spring since I did the following
> in my app context listener and it worked OK:
> WebApplicationContext context =
> WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());
> System.out.println(context.getBean("templatesDir"));
>
> 2) In the above log trace, which corresponds to the execution of my
> action, the other Spring dependencies are injected correctly (before
> calling the action's execute() method)
>
> 3) The templateDir is NOT injected at this point (don't know why.)
>
> 4) AFTER my action's execute() method, templateDir _is_ injected into
> a ServletDispatcherResult instance!!:
> 2008-07-07 16:52:40,562 DEBUG
> (
org.springframework.beans.factory.support.DefaultListableBeanFactory:601)
> - Autowiring by type from bean name
> '
org.apache.struts2.dispatcher.ServletDispatcherResult' via
> constructor to bean named 'templatesDir'
>
> (even it is injected by _TYPE_, which I never specified it before,
> because AFAIK the Spring plugin uses byName as the default)
>
> I'm using Spring 2.5.5 and S2 2.1.2.
>
> 2008/7/7, Musachy Barroso <musachy@(protected)>:
>> The plugin doesn't really inject anything, it is all up to Spring.
>>
>> musachy
>>
>> On Mon, Jul 7, 2008 at 3:03 PM, Gabriel Belingueres
>> <belingueres@(protected):
>> > Hi,
>> >
>> > I want to inject a String defined in the Spring's
>> > applicationContext.xml file like this:
>> >
>> > <bean id="templatesDir" class="
java.lang.String">
>> > <constructor-arg><value>/WEB-INF/templates/</value></constructor-arg>
>> > </bean>
>> >
>> > but the Spring plugin does not try to inject it (It works with my
>> > other injected, non String class objects though)
>> >
>> > It is OK that the plugin does not try to inject String objects?
>> > (because they later can be overwritten with a parameter?)
>> > or is this just a bug in the plugin?
>> >
>> > Regards,
>> > Gabriel
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>> > For additional commands, e-mail: user-help@(protected)
>> >
>> >
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> 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)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_188568.ezm (zipped)Thanks Musachy for your quick answer.
Tried setting default-autowire="byName" in the beans tag but the
behavior is the same, that is, the "templateDir" String bean is
injected after method execution AND byType:
2008-07-07 16:52:40,562 DEBUG
(
org.springframework.beans.factory.support.DefaultListableBeanFactory:601)
- Autowiring by type from bean name
'
org.apache.struts2.dispatcher.ServletDispatcherResult' via
constructor to bean named 'templatesDir'
Also I tested with an action that inject _other_ objects but NOT the
templateDir one, and the log is the same (even when I never defined
any setTemplateDir(String) method in the action!)
I'm seriously thinking in just put this templateDir String in my
web.xml context parameter list and move on...
2008/7/7, Musachy Barroso <musachy@(protected)>:
> Did you try forcing Spring to autowrie by name? Add
> default-autowire="byName" to the "beans" tag in your spring config(s)
> file(s).
>
> musachy
>
> On Mon, Jul 7, 2008 at 4:09 PM, Gabriel Belingueres
> <belingueres@(protected):
> > Debugging the Spring output I found the following:
> >
> > 2008-07-07 16:52:40,421 DEBUG
> > (
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
> > - Returning cached instance of singleton bean 'allEventoService'
> > 2008-07-07 16:52:40,421 DEBUG
> > (
org.springframework.beans.factory.support.DefaultListableBeanFactory:1033)
> > - Added autowiring by name from bean name 'admin.EditConstancia' via
> > property 'allEventoService' to bean named 'allEventoService'
> > 2008-07-07 16:52:40,421 DEBUG
> > (
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
> > - Returning cached instance of singleton bean 'constanciaService'
> > 2008-07-07 16:52:40,421 DEBUG
> > (
org.springframework.beans.factory.support.DefaultListableBeanFactory:1033)
> > - Added autowiring by name from bean name 'admin.EditConstancia' via
> > property 'constanciaService' to bean named 'constanciaService'
> > 2008-07-07 16:52:40,515 DEBUG (orm.SfapconstanciaManager:213) - EXECUTE
> > 2008-07-07 16:52:40,562 DEBUG
> > (
org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
> > - Returning cached instance of singleton bean 'templatesDir'
> > 2008-07-07 16:52:40,562 DEBUG
> > (
org.springframework.beans.factory.support.DefaultListableBeanFactory:601)
> > - Autowiring by type from bean name
> > '
org.apache.struts2.dispatcher.ServletDispatcherResult' via
> > constructor to bean named 'templatesDir'
> >
> > I found several weird things:
> >
> > 1) templatesDir _is well defined_ in Spring since I did the following
> > in my app context listener and it worked OK:
> > WebApplicationContext context =
> > WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());
> > System.out.println(context.getBean("templatesDir"));
> >
> > 2) In the above log trace, which corresponds to the execution of my
> > action, the other Spring dependencies are injected correctly (before
> > calling the action's execute() method)
> >
> > 3) The templateDir is NOT injected at this point (don't know why.)
> >
> > 4) AFTER my action's execute() method, templateDir _is_ injected into
> > a ServletDispatcherResult instance!!:
> > 2008-07-07 16:52:40,562 DEBUG
> > (
org.springframework.beans.factory.support.DefaultListableBeanFactory:601)
> > - Autowiring by type from bean name
> > '
org.apache.struts2.dispatcher.ServletDispatcherResult' via
> > constructor to bean named 'templatesDir'
> >
> > (even it is injected by _TYPE_, which I never specified it before,
> > because AFAIK the Spring plugin uses byName as the default)
> >
> > I'm using Spring 2.5.5 and S2 2.1.2.
> >
> > 2008/7/7, Musachy Barroso <musachy@(protected)>:
> >> The plugin doesn't really inject anything, it is all up to Spring.
> >>
> >> musachy
> >>
> >> On Mon, Jul 7, 2008 at 3:03 PM, Gabriel Belingueres
> >> <belingueres@(protected):
> >> > Hi,
> >> >
> >> > I want to inject a String defined in the Spring's
> >> > applicationContext.xml file like this:
> >> >
> >> > <bean id="templatesDir" class="
java.lang.String">
> >> > <constructor-arg><value>/WEB-INF/templates/</value></constructor-arg>
> >> > </bean>
> >> >
> >> > but the Spring plugin does not try to inject it (It works with my
> >> > other injected, non String class objects though)
> >> >
> >> > It is OK that the plugin does not try to inject String objects?
> >> > (because they later can be overwritten with a parameter?)
> >> > or is this just a bug in the plugin?
> >> >
> >> > Regards,
> >> > Gabriel
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> > For additional commands, e-mail: user-help@(protected)
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> "Hey you! Would you help me to carry the stone?" Pink Floyd
> >>
> >> ---------------------------------------------------------------------
> >> 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)
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188562.ezm (zipped)
Attachment:
user_188564.ezm (zipped)
Attachment:
user_188582.ezm (zipped)2008/7/7 Francisco Spaeth <francisco.spaeth.listas@(protected)>:
> Searching in the internet I notice that tiles 2.0.6 has a problem with UTF8,
Eh? What problem? I am not aware of it.
And anyway please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html
Antonio

Attachment:
user_188563.ezm (zipped)I have already set the content type to application/octet-stream in my xml file
<action name="ticketFileDownload" class="ccol.action.ticket.TicketFileDownload">
<result name="success" type="stream">
<param name="contentType">application/octet-stream</param>
</result>
</action>
The problems occurs with IE browser, Using firefox 2.0.15, I get the download dialog box but using IE the box is opened in a browser window.
----- Original Message ----
From: Chris Pratt <thechrispratt@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Monday, July 7, 2008 2:31:08 PM
Subject: Re: [S2] File download save dialog
One way is to set the content type of the downloaded item to something
the browser doesn't know how to handle itself, like
application/octet-stream
(*Chris*)
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.

Attachment:
user_188573.ezm (zipped)Although Chris's solution works, I've always been partial to setting
content-disposition to attachment.
I can't tell you off the top of my head the struts-y way to do it, but
this is what it's meant for.
-Wes
On Mon, 2008-07-07 at 11:31 -0700, Chris Pratt wrote:
> One way is to set the content type of the downloaded item to something
> the browser doesn't know how to handle itself, like
> application/octet-stream
> (*Chris*)
>
> On Mon, Jul 7, 2008 at 10:21 AM, Struts Two <strutstwo@(protected):
> > I have an action class that downloads a file from db2 database. However; when the download occurs, the file is displayed in the browser. I would like to have the user prompted with the save/open dialog. I was wondering what I am missing here. Below are my configuration and action class for the file download:
> > <action name="ticketFileDownload" class="ccol.action.ticket.TicketFileDownload">
> > <result name="success" type="stream">
> > <param name="contentType">application/octet-stream</param>
> > </result>
> > </action>
> > public class TicketFileDownload extends ActionSupport {
> > @EJB3Local
> > TicketLocal ticketLocal;
> > private long attachmentId;
> >
> > private InputStream inputStream;
> > public long getAttachmentId() {
> > return attachmentId;
> > }
> > public void setAttachmentId(long attachmentId) {
> > this.attachmentId = attachmentId;
> > }
> > public void setInputStream(InputStream inputStream) {
> > this.inputStream = inputStream;
> > }
> >
> > public InputStream getInputStream() {
> > return inputStream;
> > }
> >
> > public String execute(){
> > Attachment attachment = ticketLocal.findAttachment(getAttachmentId());
> > setInputStream(new ByteArrayInputStream(attachment.getAttachment()));
> > return Action.SUCCESS;
> >
> > }
> > }
> > I would appreciate any hints in this regard, thanx.
> >
> >
> > __________________________________________________________________
> > Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
> >
> >
> > ---------------------------------------------------------------------
> > 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)
>

Attachment:
user_188576.ezm (zipped)Even afterI extended the StreamResult to be able to set the content-desposition dynamically, Internet explorer would open the file in a separate browser while firefox was prompting with the save/open dialog. However, the issue was fixed when I directly got the httpresponse and set the header there.
----- Original Message ----
From: Wes Wannemacher <wesw@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Monday, July 7, 2008 4:19:02 PM
Subject: Re: [S2] File download save dialog
Although Chris's solution works, I've always been partial to setting
content-disposition to attachment.
I can't tell you off the top of my head the struts-y way to do it, but
this is what it's meant for.
-Wes
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.

Attachment:
user_188577.ezm (zipped)Oops, I forgot there are two parts to this, you should set two headers
Content-Type = application/download
Content-Disposition = attachment; filename=foo.bar
I didn't look back through the thread to see if you were also setting
content-type. If so, add a test case to your JIRA (WW-2711?).
-Wes
On Mon, 2008-07-07 at 18:59 -0700, Struts Two wrote:
> Even afterI extended the StreamResult to be able to set the content-desposition dynamically, Internet explorer would open the file in a separate browser while firefox was prompting with the save/open dialog. However, the issue was fixed when I directly got the httpresponse and set the header there.
>
>
> ----- Original Message ----
> From: Wes Wannemacher <wesw@(protected)>
> To: Struts Users Mailing List <user@(protected)>
> Sent: Monday, July 7, 2008 4:19:02 PM
> Subject: Re: [S2] File download save dialog
>
> Although Chris's solution works, I've always been partial to setting
> content-disposition to attachment.
>
> I can't tell you off the top of my head the struts-y way to do it, but
> this is what it's meant for.
>
> -Wes
>
>
> __________________________________________________________________
> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
> http://ca.toolbar.yahoo.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_188579.ezm (zipped)
Struts Two wrote:
> Even afterI extended the StreamResult to be able to set the content-desposition dynamically, Internet explorer would open the file in a separate browser while firefox was prompting with the save/open dialog. However, the issue was fixed when I directly got the httpresponse and set the header there.
>
>
IE behaviour depends on the type of content it "sniffs", not just the
disposition and mime content-type. See my comments in WW-2647 and WW-2711

Attachment:
user_188567.ezm (zipped)I tried to implement thickbox functionality in a jsp ,to display iframe in a
thickbox. If I use a simple a href using a jsp,thickbox works fine, but if i
use s:url with *.action as the url ,and if i pass height,width attributes
,iam getting an error .I tried removing height and width, but iam getting an
exception saying ParametersInterceptor exception using "random" ."Random"
variable is used by jQuery.js internally.
If i can not use Jquery 'thickbox, what other frameworks support thickbox
kind of functionality, as i need thick box to show some dynamic content,such
as user's information or it can be a form submit.
Jul 2, 2008 3:39:54 PM
com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'height' on 'class com.hicom.web.action.UserSignupAction: Error
setting expression 'height' with value '[Ljava.lang.String;@(protected)'
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188569.ezm (zipped)No exceptions.
The action class is as follows.
public class AddToCartAction extends ActionSupport implements Action {
private String productId = "";
private int quantity = 0;
private void setProductId(String productId) {
this.productId = productId;
}
private void setQuantity(int quantity) {
this.quantity = quantity;
}
public String execute() {
System.out.println("Product Id = " + productId);
System.out.println("Quantity = " + quantity);
return Action.SUCCESS;
}
}
My struts.xml is
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="default" extends="struts-default" namespace="/checkout">
<interceptors>
<interceptor name="static-params"
class="
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor" />
<interceptor name="params"
class="
com.opensymphony.xwork2.interceptor.ParametersInterceptor" />
<interceptor-stack name="defaultStack">
<interceptor-ref name="static-params" />
<interceptor-ref name="params" />
</interceptor-stack>
</interceptors>
<default-interceptor-ref name="defaultStack"/>
<!-- Product Form / addToCart -->
<action name="viewCart"
class="cakeinabox.struts2.actions.AddToCartAction">
<result name="success">/jsp/checkout/viewCart.jsp</result>
<result name="error">/jsp/checkout/error.jsp</result>
</action>
</package>
</struts>
and my JSP is:
<form action="/checkout/addToCart.action" method="GET">
<input type="hidden" value="<%=pId%>" name="productId">
<input type="hidden" value="1" name="quantity">
..............
pId renders as a valid productId in the HTML - this has been checked.
I have also tried a POST rather than a GET with no joy.
many thanks
Chrix
----- Original Message -----
From: "Musachy Barroso" <musachy@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Monday, July 07, 2008 4:46 PM
Subject: Re: Getting Struts2 Parameters?
> Are there any exceptions in the logs? Does your class implement
> ModelDriven? if you posts the relevant parts of your configuration
> (jsp fragment, action and xml fragment), it will be easier to get
> help.
>
> musachy
>
> On Mon, Jul 7, 2008 at 11:38 AM, <chris@(protected):
>> In my struts.xml I have set up a stack for "defaultStack" to include the
>> Parameters Interceptor, and I have then set the default stack to
>> "defaultStack".
>>
>> In my action class I have set up a setter injector called
>> setProductId(String productId) which sets to a local variable.
>>
>> I then have a form which points to that action, which is AddToCart.action
>> to be precise. I have an hideen HTML input with the name "productId" and
>> a
>> value set, however when I submit the form the productId variable in the
>> action class has not been set?
>>
>> Is there something obvious that I might be missing?
>>
>> Many thanks and best regards,
>>
>> Chris
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.12/724 - Release Date:
> 16/03/2007 12:12
>
>

Attachment:
user_188570.ezm (zipped)Your setter is private. It needs to be public.
On Mon, Jul 7, 2008 at 5:49 PM, Chris Miles <chris@(protected):
> No exceptions.
>
> The action class is as follows.
>
> public class AddToCartAction extends ActionSupport implements Action {
> private String productId = "";
> private int quantity = 0;
>
> private void setProductId(String productId) {
> this.productId = productId;
> }
>
> private void setQuantity(int quantity) {
> this.quantity = quantity;
> }
>
> public String execute() {
> System.out.println("Product Id = " + productId);
> System.out.println("Quantity = " + quantity);
> return Action.SUCCESS;
> }
> }
>
> My struts.xml is
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE struts PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.0.dtd">
>
> <struts>
> <package name="default" extends="struts-default" namespace="/checkout">
> <interceptors>
>
> <interceptor name="static-params"
> class="
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor" />
> <interceptor name="params"
> class="
com.opensymphony.xwork2.interceptor.ParametersInterceptor" />
>
> <interceptor-stack name="defaultStack">
> <interceptor-ref name="static-params" />
> <interceptor-ref name="params" />
> </interceptor-stack>
>
> </interceptors>
>
> <default-interceptor-ref name="defaultStack"/>
>
> <!-- Product Form / addToCart -->
> <action name="viewCart"
> class="cakeinabox.struts2.actions.AddToCartAction">
> <result name="success">/jsp/checkout/viewCart.jsp</result>
> <result name="error">/jsp/checkout/error.jsp</result>
> </action>
> </package>
> </struts>
>
> and my JSP is:
>
> <form action="/checkout/addToCart.action" method="GET">
> <input type="hidden" value="<%=pId%>" name="productId">
> <input type="hidden" value="1" name="quantity">
> ..............
>
> pId renders as a valid productId in the HTML - this has been checked.
>
> I have also tried a POST rather than a GET with no joy.
>
> many thanks
>
> Chrix
> ----- Original Message ----- From: "Musachy Barroso" <musachy@(protected)>
> To: "Struts Users Mailing List" <user@(protected)>
> Sent: Monday, July 07, 2008 4:46 PM
> Subject: Re: Getting Struts2 Parameters?
>
>
> Are there any exceptions in the logs? Does your class implement
>> ModelDriven? if you posts the relevant parts of your configuration
>> (jsp fragment, action and xml fragment), it will be easier to get
>> help.
>>
>> musachy
>>
>> On Mon, Jul 7, 2008 at 11:38 AM, <chris@(protected):
>>
>>> In my struts.xml I have set up a stack for "defaultStack" to include the
>>> Parameters Interceptor, and I have then set the default stack to
>>> "defaultStack".
>>>
>>> In my action class I have set up a setter injector called
>>> setProductId(String productId) which sets to a local variable.
>>>
>>> I then have a form which points to that action, which is AddToCart.action
>>> to be precise. I have an hideen HTML input with the name "productId" and
>>> a
>>> value set, however when I submit the form the productId variable in the
>>> action class has not been set?
>>>
>>> Is there something obvious that I might be missing?
>>>
>>> Many thanks and best regards,
>>>
>>> Chris
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>> --
>> Internal Virus Database is out-of-date.
>> Checked by AVG Free Edition.
>> Version: 7.5.446 / Virus Database: 268.18.12/724 - Release Date:
>> 16/03/2007 12:12
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_188571.ezm (zipped)Hi All,
I need to populate static list of values in <s:select> tag in struts2.
<s:select key="caller_id" onchange="javascript:callerid(this.value);"
list="#{'O':'Select','Y':'Yes','N':'No','C':'Don't have caller ID'}" />
How to add single quote in (Don't have caller ID) value in static list.
Thanks,
Sharath.

Attachment:
user_188572.ezm (zipped)Hi,
Could you provide some more details, maybe some examples? Right now I
don't know what kind of problem you have.
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_188581.ezm (zipped)
I am using tiles 2 in struts 2 and I have configured it. I created one
layout containing title,menu,body and footer regions and in each
region I inserted tiles(jsp's).
In menu region I have list of menu links and I want 'body' region of
layout to be rendered corresponding to the link clicked. How can I do
that..?? Means what configurations needs to be done in tiles.xml file?
Thanks.
DEEP JADHAV wrote:
>
> Hi everybody,
> I want list of links in menu region of my layout and I am not
> getting how to configure it for rendering body region corresponding to
> particular link.
> If anybody can solve plz reply..!!
> Thanks in advance.
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188583.ezm (zipped)2008/7/8 DEEP JADHAV <jadhav.21@(protected)>:
>
> I am using tiles 2 in struts 2 and I have configured it. I created one
> layout containing title,menu,body and footer regions and in each
> region I inserted tiles(jsp's).
> In menu region I have list of menu links and I want 'body' region of
> layout to be rendered corresponding to the link clicked. How can I do
> that..?? Means what configurations needs to be done in tiles.xml file?
Please ask the Tiles Users mailing list:
http://tiles.apache.org/mail.html
Antonio

Attachment:
user_188574.ezm (zipped)Dave, may I ask why it has been consistently voted down (and voted by who?). It would seem to be a logical separation IMHO, what's the benefit of keeping them together when the platforms have nothing in common except the name struts?
If people still don't know about or use the [S1] and [S2] convention, which seems to be the case, its likely that won't change because new members will be joining the list all the time.
+1 to split
Regards
Jason
-----Original Message-----
From: Dave Newton [mailto:newton.dave@(protected)]
Sent: Tuesday, 8 July 2008 2:40 AM
To: Struts Users Mailing List
Subject: Re: Struts1 and Struts2 mailing lists separation ?
This has been brought up from time to time over the years and has been consistently voted down. (I suggested it once myself and am in favor of it as well.)
In lieu of that happening I'd urge people to tag the subject line of all list messages with either [S1] or [S2] (or whatever, as long as it's adopted as an ad-hoc convention) and deal with it on the client side.
Dave
--- On Mon, 7/7/08, Chris Pratt <thechrispratt@(protected):
> Not that my vote counts, but +1 again.
>
> On Mon, Jul 7, 2008 at 6:40 AM, Owen Berry <owen.berry@(protected)>
> wrote:
> > And another, +1
> >
> > On Mon, Jul 7, 2008 at 8:28 AM, ManiKanta G
> <manikanta.gade@(protected):
> >> +1 me too
> >>
> >> Alessio Mereu wrote:
> >>>
> >>> +1 for me too
> >>>
> >>> 2008/7/7 Marc Logemann
> <ml@(protected)>:
> >>>
> >>>
> >>>>
> >>>> +1 for the suggestion
> >>>>
> >>>> Marc
> >>>>
> >>>> On Mon, 7 Jul 2008 12:53:14 +0200 (MEST),
> "MARCOSTOMSOBRAD@(protected)"
> >>>> <MARCOSTOMSOBRAD@(protected):
> >>>>
> >>>>>
> >>>>> Could Struts project admins separate
> Struts1 and Struts2 users mailing
> >>>>> lists?
> >>>>> I think it is bad for the users to
> have two frameworks under the same
> >>>>> mailing list.
> >>>>>
> >>>>>
> >>>>>
> >>>>> Ahora también puedes acceder a tu
> correo Terra desde el móvil.
> >>>>> Infórmate pinchando aquí.
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> ---------------------------------------------------------------------
> >>>>> 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)
> >>>>
> >>>>
> >>>>
> >>
> >>
> >>
> >> ********** DISCLAIMER **********
> >> Information contained and transmitted by this
> E-MAIL is proprietary to Sify
> >> Limited and is intended for use only by the
> individual or entity to which it
> >> is addressed, and may contain information that is
> privileged, confidential
> >> or exempt from disclosure under applicable law. If
> this is a forwarded
> >> message, the content of this E-MAIL may not have
> been sent with the
> >> authority of the Company. If you are not the
> intended recipient, an agent of
> >> the intended recipient or a person responsible
> for delivering the
> >> information to the named recipient, you are
> notified that any use,
> >> distribution, transmission, printing, copying or
> dissemination of this
> >> information in any way or in any manner is
> strictly prohibited. If you have
> >> received this communication in error, please
> delete this mail & notify us
> >> immediately at admin@(protected)
> >>
> >>
> ---------------------------------------------------------------------
> >> 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)
> >
> >
>
> ---------------------------------------------------------------------
> 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)

Attachment:
user_188575.ezm (zipped)I personally would like to interact using a web based forum where you
can post with formatted java and xml code and even with emoticons
instead of this email based mailing list, but this would be even more
utopian....phpBB would do :)
2008/7/7 Jason Wyatt <jwyatt@(protected)>:
> Dave, may I ask why it has been consistently voted down (and voted by who?). It would seem to be a logical separation IMHO, what's the benefit of keeping them together when the platforms have nothing in common except the name struts?
>
> If people still don't know about or use the [S1] and [S2] convention, which seems to be the case, its likely that won't change because new members will be joining the list all the time.
>
> +1 to split
>
> Regards
> Jason
>
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@(protected)]
> Sent: Tuesday, 8 July 2008 2:40 AM
> To: Struts Users Mailing List
> Subject: Re: Struts1 and Struts2 mailing lists separation ?
>
> This has been brought up from time to time over the years and has been consistently voted down. (I suggested it once myself and am in favor of it as well.)
>
> In lieu of that happening I'd urge people to tag the subject line of all list messages with either [S1] or [S2] (or whatever, as long as it's adopted as an ad-hoc convention) and deal with it on the client side.
>
> Dave
>
> --- On Mon, 7/7/08, Chris Pratt <thechrispratt@(protected):
>> Not that my vote counts, but +1 again.
>>
>> On Mon, Jul 7, 2008 at 6:40 AM, Owen Berry <owen.berry@(protected)>
>> wrote:
>> > And another, +1
>> >
>> > On Mon, Jul 7, 2008 at 8:28 AM, ManiKanta G
>> <manikanta.gade@(protected):
>> >> +1 me too
>> >>
>> >> Alessio Mereu wrote:
>> >>>
>> >>> +1 for me too
>> >>>
>> >>> 2008/7/7 Marc Logemann
>> <ml@(protected)>:
>> >>>
>> >>>
>> >>>>
>> >>>> +1 for the suggestion
>> >>>>
>> >>>> Marc
>> >>>>
>> >>>> On Mon, 7 Jul 2008 12:53:14 +0200 (MEST),
>> "MARCOSTOMSOBRAD@(protected)"
>> >>>> <MARCOSTOMSOBRAD@(protected):
>> >>>>
>> >>>>>
>> >>>>> Could Struts project admins separate
>> Struts1 and Struts2 users mailing
>> >>>>> lists?
>> >>>>> I think it is bad for the users to
>> have two frameworks under the same
>> >>>>> mailing list.
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> Ahora también puedes acceder a tu
>> correo Terra desde el móvil.
>> >>>>> Infórmate pinchando aquí.
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> ---------------------------------------------------------------------
>> >>>>> 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)
>> >>>>
>> >>>>
>> >>>>
>> >>
>> >>
>> >>
>> >> ********** DISCLAIMER **********
>> >> Information contained and transmitted by this
>> E-MAIL is proprietary to Sify
>> >> Limited and is intended for use only by the
>> individual or entity to which it
>> >> is addressed, and may contain information that is
>> privileged, confidential
>> >> or exempt from disclosure under applicable law. If
>> this is a forwarded
>> >> message, the content of this E-MAIL may not have
>> been sent with the
>> >> authority of the Company. If you are not the
>> intended recipient, an agent of
>> >> the intended recipient or a person responsible
>> for delivering the
>> >> information to the named recipient, you are
>> notified that any use,
>> >> distribution, transmission, printing, copying or
>> dissemination of this
>> >> information in any way or in any manner is
>> strictly prohibited. If you have
>> >> received this communication in error, please
>> delete this mail & notify us
>> >> immediately at admin@(protected)
>> >>
>> >>
>> ---------------------------------------------------------------------
>> >> 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)
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> 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)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_188580.ezm (zipped)web forums are a nightmare for the dynamics shown by this list.
There are a core few who respond to many of the questions asked, and
there is a lot of traffic, which means with a web forum those few would
need to either check for new posts every so often (which is a chore), or
receive an endless string of messages saying "New thread, click here to
read".
Web forums are OK when then volume is low or there is a higher
peer-to-peer solution ratio is high, but personally I'd read even less
of the posts if I had to go to a web page and click through a few times
just to see whats been said.
Al.
Gabriel Belingueres wrote:
> I personally would like to interact using a web based forum where you
> can post with formatted java and xml code and even with emoticons
> instead of this email based mailing list, but this would be even more
> utopian....phpBB would do :)
>
> 2008/7/7 Jason Wyatt <jwyatt@(protected)>:
>
>> Dave, may I ask why it has been consistently voted down (and voted by who?). It would seem to be a logical separation IMHO, what's the benefit of keeping them together when the platforms have nothing in common except the name struts?
>>
>> If people still don't know about or use the [S1] and [S2] convention, which seems to be the case, its likely that won't change because new members will be joining the list all the time.
>>
>> +1 to split
>>
>> Regards
>> Jason
>>
>> -----Original Message-----
>> From: Dave Newton [mailto:newton.dave@(protected)]
>> Sent: Tuesday, 8 July 2008 2:40 AM
>> To: Struts Users Mailing List
>> Subject: Re: Struts1 and Struts2 mailing lists separation ?
>>
>> This has been brought up from time to time over the years and has been consistently voted down. (I suggested it once myself and am in favor of it as well.)
>>
>> In lieu of that happening I'd urge people to tag the subject line of all list messages with either [S1] or [S2] (or whatever, as long as it's adopted as an ad-hoc convention) and deal with it on the client side.
>>
>> Dave
>>
>> --- On Mon, 7/7/08, Chris Pratt <thechrispratt@(protected):
>>
>>> Not that my vote counts, but +1 again.
>>>
>>> On Mon, Jul 7, 2008 at 6:40 AM, Owen Berry <owen.berry@(protected)>
>>> wrote:
>>>
>>>> And another, +1
>>>>
>>>> On Mon, Jul 7, 2008 at 8:28 AM, ManiKanta G
>>>>
>>> <manikanta.gade@(protected):
>>>
>>>>> +1 me too
>>>>>
>>>>> Alessio Mereu wrote:
>>>>>
>>>>>> +1 for me too
>>>>>>
>>>>>> 2008/7/7 Marc Logemann
>>>>>>
>>> <ml@(protected)>:
>>>
>>>>>>
>>>>>>> +1 for the suggestion
>>>>>>>
>>>>>>> Marc
>>>>>>>
>>>>>>> On Mon, 7 Jul 2008 12:53:14 +0200 (MEST),
>>>>>>>
>>> "MARCOSTOMSOBRAD@(protected)"
>>>
>>>>>>> <MARCOSTOMSOBRAD@(protected):
>>>>>>>
>>>>>>>
>>>>>>>> Could Struts project admins separate
>>>>>>>>
>>> Struts1 and Struts2 users mailing
>>>
>>>>>>>> lists?
>>>>>>>> I think it is bad for the users to
>>>>>>>>
>>> have two frameworks under the same
>>>
>>>>>>>> mailing list.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Ahora también puedes acceder a tu
>>>>>>>>
>>> correo Terra desde el móvil.
>>>
>>>>>>>> Infórmate pinchando aquí.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>> ---------------------------------------------------------------------
>>>
>>>>>>>> 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)
>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>> ********** DISCLAIMER **********
>>>>> Information contained and transmitted by this
>>>>>
>>> E-MAIL is proprietary to Sify
>>>
>>>>> Limited and is intended for use only by the
>>>>>
>>> individual or entity to which it
>>>
>>>>> is addressed, and may contain information that is
>>>>>
>>> privileged, confidential
>>>
>>>>> or exempt from disclosure under applicable law. If
>>>>>
>>> this is a forwarded
>>>
>>>>> message, the content of this E-MAIL may not have
>>>>>
>>> been sent with the
>>>
>>>>> authority of the Company. If you are not the
>>>>>
>>> intended recipient, an agent of
>>>
>>>>> the intended recipient or a person responsible
>>>>>
>>> for delivering the
>>>
>>>>> information to the named recipient, you are
>>>>>
>>> notified that any use,
>>>
>>>>> distribution, transmission, printing, copying or
>>>>>
>>> dissemination of this
>>>
>>>>> information in any way or in any manner is
>>>>>
>>> strictly prohibited. If you have
>>>
>>>>> received this communication in error, please
>>>>>
>>> delete this mail & notify us
>>>
>>>>> immediately at admin@(protected)
>>>>>
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>>
>>>>> 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)
>>>
>>>>
>>> ---------------------------------------------------------------------
>>> 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)
>>
>>
>> ---------------------------------------------------------------------
>> 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)
>
>

Attachment:
user_188578.ezm (zipped)
Hi all,
I'm new to sturts 2.0.Currently i'm developing a web application in which i
have a login screen which is ajax based(using <s:head theme="ajax">)
It works fine in FF but when i used to login through IE it is not working.
Whether Struts2.0 + ajax functionality will support IE.
looking forward to ur reply.
Thanks,
Srini
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188585.ezm (zipped)AjaySrini wrote:
> Hi all,
>
> I'm new to sturts 2.0.Currently i'm developing a web application in which i
> have a login screen which is ajax based(using <s:head theme="ajax">)
> It works fine in FF but when i used to login through IE it is not working.
> Whether Struts2.0 + ajax functionality will support IE.
> looking forward to ur reply.
>
>
> Thanks,
>
> Srini
>
Yes, Struts2 ajax works okay with IE. However it's very easy to do
ajaxy things that don't work in IE and struts2 can do little to prevent
that.
The most common struts2-specific problem I've seen that occurs only in
IE is that the TARGET for your ajax request (eg. a div) cannot contain
the form that's used to generate the request unless you set the
showLoadingText=false attribute on the tag. It's well documented in
previous emails in this group so I won't go into details again, but in a
nutshell, in IE the text that says "Loading..." overwrites the form
PRIOR to making the request, so the request fails.
If that's not the cause, it's possible that your html result cannot be
inserted into the DOM by IE. There's so many things that can go astray
here you'll need to be specific about what you've doing and what didn't
work. Try turning on the s:head's debug feature.

Attachment:
user_188584.ezm (zipped)
Hi,
Question regarding Struts templates. Currently we are finding that each form
element gets wrapped in its own div can this be changed?
Also for error messages I want the error to appear on the parent div not per
form element...can this be done? Basically the error class is being set only
on that div surrounding the form element but i want it to just be on the
parent?
regards,
jennie.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_188586.ezm (zipped)Mike Watson wrote:
> The trick (I believe) is that the url should be parsed from right to
> left, not left to right. I don't think it's a hijack; for the
> application I'm working on context is very important so knowing that a
> given resource is being accessed in the context of another resource
> has a big part to play in dictating which functions should be
> available and how they behave. (The book/chapter model is just an
> example I used to try and simplify the problem).
>
> Jeromy, I'm still really struggling to get this going, I don't suppose
> you've found time to knock up that demo app?
>
> Thanks in advance,
>
Sorry guys, I haven't had a chance to get back to this yet.
Dusty wrote:
> This doesn't seem right. How can you distinguish between something like
> /book/1/customMethod and /book/1/chapter?
Dusty, you're right. I just had a quick look and I do have a custom
action mapper that checks whether the pattern above references an action
or method for that exact reason (it checks the list of available actions
and gives precedence to those). Works great for me.
I released another actionmapper that solved the problem using a
different approach. It will be deprecated, but it's still up for info:
http://code.google.com/p/struts2urlplugin/