the other 3 threads were not enough?
musachy
On Fri, Oct 16, 2009 at 10:17 PM, shenxiaojing wrote:
> http://struts.apache.org/2.1.8/docs/generator.html
> Example Three doesn't work!!!
>
> Example Three:
>
> Generate an iterator with var attribute
> var="myAtt" />
> <%
> Iterator i = (Iterator
http://struts.apache.org/2.1.8/docs/generator.html
Example Three doesn't work!!!
Example Three:
Generate an iterator with var attribute
<%
Iterator i = (Iterator) pageContext.getAttribute("myAtt");
while(i.hasNext()) {
String s = (String) i.next(); %>
<%=s%>
<%}
%>
This generat
No out of the box way of dealing with that. You can send your jsp code /
Action code to see if we can figure out what is wrong.
Denis.
james billa a écrit :
Hi - I am using struts 2.1.6. From my jsp on submitting the form, the
control goes to my action class, methods prepare() and validate() g
What code are you using to output this message? Is it a s:text? a
s:property?
Denis.
Alex Siman a écrit :
I just have found that Struts 2.1.8 escapes messages, so instead of message
(in browser) like:
User with email u...@example.com registered successfully.
now I get this one:
User with emai
I concur. We are using struts 2.1.8 with WAS 6.1.0.27 and there is no
way around this variable. It is documented in our installation
procedure, and you will never get any filter based framework to work
unless you set this variable.
The default Websphere behaviour (without this variable that is
Make sure to use the tiles plugin as described in :
http://struts.apache.org/2.1.8/docs/tiles-plugin.html
I am using it, and have no issue so far with it. Your error seems to be
in the result you are redirecting to. How is your action tied up?
Denis.
Sommers, Elizabeth a écrit :
Is it possib
Actually, it's not my company code, just my tester.
I want to test if the "myAtt" in pageContext.
When I use pageContext, I got null from pageContext.getAttribute("myAttr");
When I tried request, I got the thing I want.
I just want to know the reason.
-邮件原件-
发件人: Chris Pratt [mailto:thechr
Actually, it's not my company code, just my tester.
I want to test if the "myAtt" in pageContext.
When I use pageContext, I got null from pageContext.getAttribute("myAttr");
When I tried request, I got the thing I want.
I just want to know the reason.
-邮件原件-
发件人: Chris Pratt [mailto:thechr
Personally, I don't allow scriplets in our company code, but the value is
placed in the page context, but you're trying to get it from the request
scope.
Try pageContext.getAttribute("myAtt").
(*Chris*)
On Fri, Oct 16, 2009 at 7:14 PM, shenxiaojing wrote:
> Hello, all
>
> Sorry for sending my
> iterator into page context
so try this:
jspContext.getAttribute("myAtt ");
leftkaren wrote:
>
> Hello, all
>
> Sorry for sending my email twice, I found something wired.
>
> Document from http://struts.apache.org/2.x/docs/generator.html
> tell us:
> var - The name to store the resu
Hello, all
Sorry for sending my email twice, I found something wired.
Document from http://struts.apache.org/2.x/docs/generator.html
tell us:
var - The name to store the resultant iterator into page context, if such
name is supplied
but:
<%
java.util.Iterator i = (java.util.Iterator) request
Hello, all
Could you tell me why Iterator i is null?
My struts version is 2.1.8
It's my code:
<%
java.util.Iterator i
=(java.util.Iterator)pageContext.getAttribute("myAtt");
while(i.hasNext()) {
String s = (String) i.next(); %>
<%=s%>
<%}
%>
JSP tells me NullPointerExceptio
Still see not-released webapp classes even actionForm &
actionClasses are
shown. May I know why these classes are not auto-released after
webapp has
been stopped from tomcat server?
Why would GarbageCollector need to release them? Because You want it?
GC is a tricky beast and it's not listenin
Are you using Struts2 Tiles plugin? Which version of Tiles did you try?
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional comm
execute() is the *default* method for an Action class. It's not the *only*
method.
execute() will get called if you don't have a different method specified.
You can basically call any method you want; leaving out the "method="
parameter is the same as specifying "method=execute". But you can spe
Typo?
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Hi - I am using struts 2.1.6. From my jsp on submitting the form, the
control goes to my action class, methods prepare() and validate() gets
executed. But after that the execute() is not getting called. I don't have
any error messages printed on my console. I have only system.out in
prepare() and v
when you declare a result using annotations, the param values can
contain OGNL values, just like in xml,:
@Action(value="/different/url",
result...@result(name="success", type="httpheader",
params={"status", "%{status}", "errorMessage", "%{error}"})}
)
public String execute() {
return
Thanks for hint! I have found the where messages get escaped:
Previously I have this variant:
Now these tags escape messages by default. Beware, upgraders!
I think this note must be included here:
http://struts.apache.org/2.1.8/migration-guide.html
BTW the
I don't remember when it was added, but there is an attribute for
s:property called 'escape' that defaults to 'true'
http://struts.apache.org/2.x/docs/property.html
If you set it to false, then you will probably get what you want.
-Wes
On Fri, Oct 16, 2009 at 6:05 AM, Alex Siman wrote:
>
> I j
Yes, it is. If you plan to turn on container security, you need another flag as
well.
--- On Fri, 10/16/09, Raghuveer.V wrote:
> From: Raghuveer.V
> Subject: Struts2 on Websphere 6.1 : 404 errors
> To: user@struts.apache.org
> Received: Friday, October 16, 2009, 1:03 PM
> Hi Struts2 Users,
>
Still see not-released webapp classes even actionForm & actionClasses are
shown. May I know why these classes are not auto-released after webapp has
been stopped from tomcat server?
Why would GarbageCollector need to release them? Because You want it?
GC is a tricky beast and it's not listenin
Is it possible to use 2.1.8 with tiles. I have tried everything I can
think of. Currently I am getting an error from
org/apache/tiles/impl/BasicTilesContainer.java
It says that
org.apache.tiles.definition.NoSuchDefinitionException:
/tiles/layout/default.jsp
org.apache.tiles.impl.BasicTiles
Hi Struts2 Users,
I have problem when deploying application struts2.1.6 application on
Websphere6.1 which was succefully working on apache-tomcat-5.5.23.
We have used configuration option to make it work as per information
available in Websphere forums and Struts2 forums on my local websphere.
Co
Hi. If I set struts.multipart.maxSize to, say, 2 MB, and I try to upload
a file larger than that, I get a validation error and my form fields
lose their value.
Is there anything I can do so the form doesn't lose all data?
Thanks in advance.
**
* ***
I just have found that Struts 2.1.8 escapes messages, so instead of message
(in browser) like:
User with email u...@example.com registered successfully.
now I get this one:
User with email u...@example.com registered
successfully.
In first example I used to escape only the inser
Hi
I'm tying to define a stream result using the convention plugin. The values
for the contentLength and inputName require dynamic values. Obviously I
know, for example, the length of the data stream within my action, but how
do I code this so either the @Annotation or the StreamResult can get t
Hi Emi,
>> Still see not-released webapp classes even actionForm & actionClasses are
>> shown. May I know why these classes are not auto-released after webapp has
>> been stopped from tomcat server?
Why would GarbageCollector need to release them? Because You want it?
GC is a tricky beast and it'
Hello,
I use a execAndWait interceptor in my struts2 app. I have action which does a
database query which takes a long time.
The interceptor prevent a session timeout.
The problem is that I need to run following functions in my action class.
request.getContextPath(); //return null
HttpSession s
I am using the struts-restful default interceptor stack which uses the static
params interceptor and the paramters interceptor. The result of using both
interceptors is that it is calling setId twice. However if I remove the
static params interceptor it does not call setId at all and if I remove t
30 matches
Mail list logo