.x/docs/building-the-framework-from-source.html,http://struts.apache.org/2.x/docs/building-with-maven.html
-Andre-
Jeromy Evans wrote:
Andre Prasetya wrote:
Any dates for 2.1.x release ? I just tried struts 2.0.9 and i like
it very much, feature that i need most is the ajax validation which
solved in struts 2.1 already.
If you let me know where the instructions fall-short maybe I can help a
little better?
regards,
Jeromy Evans
Jeromy Evans - Blue Sky Minds wrote:
As suggested, I've added these instructions to the community wiki.
http://cwiki.apache.org/confluence/display
Dipti, if you're using Struts 2.0.x, follow the example at :
http://struts.apache.org/2.0.9/docs/datetimepicker.html
It's likely you're just missing the essential
%@ taglib prefix=s uri=/struts-tags %
and/or
s:head theme=ajax/
tags mentioned at the top of that page.
Note there are several
Are you using Struts 2.0.7 or below? That warning's present in those
versions when you pass a literal string as a parameter.
https://issues.apache.org/struts/browse/WW-1714
It will go away if you upgrade to 2.0.9. If you can't upgrade, you can
turn off warn logging to hide it.
Tuyen Dinh
if the exception page is ever displayed.
Hope that helps,
Jeromy Evans
Richard Sayre wrote:
I am trying to log the exception that get cought by the struts
exception handler.
So far I have .jsp page that shows the exception:
An Exception Has occured!
br/br/
s:property value=%{exception}/
br/br
As suggested, I've added these instructions to the community wiki.
http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo+profile+for+Struts+2.0.9
Wes Wannemacher wrote:
This was my original suggestion to post it into the community wiki
because any changes that would be made
struts.ui.templateDir=template.
Again, I see no reason to change it. You can modify or add templates by
adding a /template directory to your application classpath (this however
is not an optimisation)
Hope that helps,
Jeromy Evans
Musachy Barroso wrote:
Everything ends up inside a jar, in this case
heavy-weight resource.
Hope that helps someone else. Improvements comments welcome. See
reference [3] below for detailed instructions and rationale.
regards,
Jeromy Evans
Resources
[1] http://struts.apache.org/2.x/docs/performance-tuning.html
[2]
http://www.nabble.com/-s2--Struts-head-tag
In IE6 the s:a can't have a target equal to a div that contains the
itself unless you set showLoadingText=false
The problem is that in IE6 the form nodes are overwritten by the loading
text before its actually read and posted. Disable the loading text and
it will be okay.
regards,
Jeromy
considering distributed transactions).
Hope that's helpful. I won't ever get into an argument about the
benefit of b). vs. c). vs. d). because they're all useful under certain
circumstances and most Java forums already contain a useless thread on
the topic.
cheers,
Jeromy Evans
Hayrol Reyes
.
James
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 30, 2007 1:34 AM
To: Struts Users Mailing List
Subject: Re: Adding additional parameters to struts 2 tags and accessing
them in the ftl files
It's not as easy as that. Each struts2 tag
.
The exception you quoted is unrelated and caused because you're writing
to the output stream within a JSP that's already doing so. That code is
better suited to its own servlet.
Hope that helps,
regards,
Jeromy Evans
Joe Lam wrote:
try to make a file download action without opening the file
Set the attribute showLoadingText=false on the div/submit/a tag.
If you're using an IDE you should be able to list the attributes
available for each tag (as looks like this attribute not documented on
the wiki)
Hari Prasad wrote:
I'm using Dojo for ajax.
and when i send ajax request to the
Suggestions:
Confirm that the dojo javascipt is actually included in the html output
Use FireBug to examine if the requests to get the javascript files and
images are working (and if not, why not)
Create a minimal test application and get it working first.
vamsi wrote:
Thanks for response,
I
and modify the template for
FieldError to get it.
hope that helps,
Jeromy Evans
afp wrote:
Guys any ideas on how to do the below??
afp wrote:
Reposting as last post was not very clear
Hi,
I am trying to add some custom parameters/attributes to the struts2
tags like s:fielderrors / etc
the validation filenames ActionClassName-alias-validation.xml:
MyAction-abc_methodA-validation.xml
MyAction-abc_methodB-validation.xml
References:
http://struts.apache.org/2.0.9/docs/wildcard-mappings.html
Hope that helps,
Jeromy Evans
j alex wrote:
Hi,
Just checking one more time
,then it works again.
But that may hurt the performace if you have many pictures contained in
static pages. I think the Apache Foundation should
pay some attention to banlance the conflict.
Speical thanks to *Jeromy Evans.*
**
2007/8/21, Andvar Woo [EMAIL PROTECTED]:
*in the struts
Sol, I think they're both great and your should try both out You need
to decide which is more suitable for each application you're building.
If you use a lot of similar pages you'll appreciate the decorator
approach used by sitemesh. If you reuse a lot of components within a
page (and ajax)
The resources are in the 2.0.9 jar under /org/apache/struts2/static
They are served from the /struts path by the struts FilterDispatcher if
struts.serve.static is true (default)
If it successfully served the javascript from that path it should have
served the images. Perhaps have a look with
/book/dojo-book-0-4/part-4-more-widgets/advanced-contentpane-usage
regards,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
(a CONFIDENTIAL
transport guarantee). You'll find examples of this everywhere.
If you need automatic HTTP-HTTPS redirection you'll need a redirect
interceptor. Another user contributed their version in a prior
discussion but I can't find the link.
regards,
Jeromy Evans
Srinivas.N. wrote:
I dont
In response to your second question:
Sebastian Kolbe wrote:
Another question:
Is there an easy way to catch the event (something like 'onclick') when
a different tab is selected?
Yes :
a. at page init time, lookup the id of each tab widget
b. connect a handler before the show event
in each action (eg. execute())
then the annotation validation works well as shown on the wiki.
Hope that helps you make a decision.
Jeromy Evans
j alex wrote:
Hi,
I am about to migrate a S1 app to S2 and need to decide which route to take
regarding validations - XML or annotations? . Our app
constant name=guice.module value=packagename.ExampleModule/
Extract from struts.properties:
struts.objectFactory = guice
ie. No need to use the Guice filter in web.xml.
hope that helps,
Jeromy Evans
Łukasz Łapiński wrote:
On Fri, 27 Jul 2007 13:13:15 +0200, Oleg Mikheev [EMAIL PROTECTED]
wrote
Your approach seems fine.
See if you can access CategoryEditor.action directly using the
browser. If not, the action name is incorrect.
Have you confirmed that its actually posting a request?
Also the logging and debugging interceptor for more insight.
Session A Mwamufiya wrote:
Hi,
I use
this working for Struts2? Any help is
appreciated.
Thank you.
- Kishan
Jeromy Evans - Blue Sky Minds wrote:
Within the displaytag 'display:table' tag, a 'row' object is set into
the page context.
How is this accessible from Struts 2?
#attr is the OGNL to access the page context
Is there a policy or person in the struts2, webwork or apache team with
a PR role that's going to announce the vulnerability?
I'm obliged to keep my clients informed and I'd rather point them to a
factual article announced by the community than to a misinformed post
that will undoubtedly soon
In IE, the form that does the ajax submit can't be contained in the
target div, unless you set the attribute showLoadingText=false.
There's an issue in JIRA about this and it's already been resolved in a
future S2 release. Basically in IE when the loading text is inserted
into the DOM it
on whether the problem was fixed in 2.0.8, or if the
exact cause of the intermittent problem was ever identified as a bug.
More details in this thread:
http://www.nabble.com/-S2--Optiontransfertselect-tag-t3827911.html
regards,
Jeromy Evans
[EMAIL PROTECTED] wrote:
There is bug
Within the displaytag 'display:table' tag, a 'row' object is set into
the page context.
How is this accessible from Struts 2?
#attr is the OGNL to access the page context.#attr.row will access
your display tag id object named row
eg. #1
s:url action=/MyAction.action
Within the displaytag 'display:table' tag, a 'row' object is set into
the page context.
How is this accessible from Struts 2?
#attr is the OGNL to access the page context.#attr.row will access
your display tag id object named row
eg. #1
s:url action=/MyAction.action
Guys, please read a classpath tutorial. There's a decent one here:
http://www.kevinboone.com/classpath.html
The following section is especially relevant that I've copied from that
page for you:
quote
JARs on the classpath
The java compiler and run-time can search for classes not only
s:submit type=button theme=ajax targets=div1 label=Submit
Button/
The submit won't work because div1 doesn't exist. The s:a should
work though.
I don't recognise the error messages you're getting. If you're
installed an copy of Dojo, remove it and use the version shipped within
struts.
Crocker, Patrick wrote:
Unfortunately, I can't get that (MySpringAction-crudsave-validation.xml)
to work. The validation never fires. Am I missing something, or just
barking up the wrong tree all-together?
The last time I checked you had to use the wildcard approach to call
methods in
, however Shahak Nageil contributed his
version on this mailing list in early June with the subject SSL
Interceptor.
regards,
Jeromy Evans
peter lee wrote:
Hello,
Does anyone use http switch in struts2?
It seems nobody answers my question.
please help.
Thanks,
peter c.
peter
We use:
s:datetimepicker name=incomingAnswer displayFormat=h:mm a
type=time
value=%{defaultAnswerTime}
required=true/
where incomingAnswer and defaultAnswerTime are Strings in the hh:mm
format. The string's components can then be applied to
Kishen Simbhoedatpanday wrote:
Thank you Jeromy!
When using the 'displayFormat=h:mm a' in the datetimepicker tag...
So we set the following in our Action method:
this.setCurrentTimePart(16:15);
The exception is in the DateFormat.parse() method called by the
DateTimePicker. 16:15 is an
Kishen Simbhoedatpanday wrote:
I thought the displayFormat was for display purposes only.
But HH:mm does not work when giving the currentTimePart 16:15.
It still gives the 00:00
My only remaining suggestion is that you create a page full of time
pickers and try all the possible
You can access variables in the page context using the OGNL expression
#attr.propertyname, although I also prefer JSP EL.
I'm unsure why this was deliberately left out of the duplicate pages of
the S2 wiki, but it's still described at WW:
See #attr at the bottom of this page:
It's not left out (of the wiki, but I left it out of
my head, I guess :/
I know the feeling!
This page omits attr from the context map diagram:
http://struts.apache.org/2.x/docs/ognl.html
but the equivalent WW page includes it:
http://wiki.opensymphony.com/display/WW/OGNL
, among other files, it
asynchronously requests an html template for its popup.
regards,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
into S2 is because I
can achieve higher levels of productivity with it compared to other web
frameworks.
Hope that was helpful and in some way addresses your questions and comments.
regards,
Jeromy Evans
-
To unsubscribe, e-mail
Let me re-articulate my interpretation of what you've done:
You load an entity E with say 4 properties (a, b, c, and d) from
persistence and render a view based on it. The persistence session is
closed.
In a new thread, the user submits an update that affects only two
properties of the entity
though, that's a lot more effort and the
additional cost is not appropriate in most web applications.
Glad I could help,
Jeromy Evans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I'm using a filter for hibernate in web.xml.. should I instead
use a S2 interceptor?
I use an S2 interceptor as per the open-session in view pattern. Pass
the SessionFactory or EntityManagerFactory (in stand-alone mode) to your
interceptor through the ServletContext.
Skip Hollowell wrote:
So now my question is ... how? I have a list of 5000 records. I want
to initially show them a 100 of these records, with a nice Prev / Next
feature.
1. Where / how do I safely store this list for this user? Obviously
it needs to be saved somewhere so it is not lost
Musachy, is this the https://issues.apache.org/struts/browse/WW-1766 issue. I
recall you made a partial fix in 2.0.8/2.0.9 but in 2.0.6 I used a work-around.
FanCo wrote:
Hi musachy,
Thanks for your reply. It doesn’t work even I set the executeScripts to
true. One thing I didn’t
Is there any way to automatically trim data from textfields etc?
I don't believe so, but in S2 you could write a converter or an
interceptor to do it for you. In both cases you'll have to come up with
a convention that determines when trimming is applied.
you the result you seek for a fixed set of parameters.
- Jeromy Evans
soum wrote:
Hi,
I have a servlet which implements some logic based on some URL parameters
passed to it. I can invoke this servlet directly from my browser, by simply
supplying the parameters thru the URL.
http://localhost
Bruyn, Bill-p6141c wrote:
Or maybe I could replace the ParametersInterceptor with one that used
reflection to figure out which property to set, ignoring case. Do
either of those options seem right to anyone else? Something like
//for each request parameter
//for each getter method on
Bruyn, Bill-p6141c wrote:
Yeah, that's about what I'd come up with too (unless I'm
misunderstanding you, this sounds like my option 1.)
That'll work I guess, but I was hoping not to have to muck up all my
method names (e.g., getWhatwouldordinarilybeacamelcasename(),
tom tom wrote:
I have the following in the jsp
s:select
name=testForm.inputAnswer
list=#session.question.answers
listKey=answer
listValue=answer
/
You're trying to assign a
Mark P Ashworth wrote:
Good Day,
Thank you for your help. I created properties that return string
representations of the date time values and I use the jscalendar component
to select the date times. Seems to work just grand. I have only one issue
that if the date string could parsed then it
(type=date) - sure it looks nice, but for
reasons I don't understand the popup's design seems to confuse
non-technical people. I'll be replacing that with the one Torsten
emailed about earlier at the first opportunity I get:
http://www.mattkruse.com/javascript/calendarpopup/
- Jeromy Evans
Torsten Römer wrote:
I'll be replacing that with the one Torsten
emailed about earlier at the first opportunity I get:
http://www.mattkruse.com/javascript/calendarpopup/
I just gave that a try myself and I ran into a few issues:
Thanks for this. You've saved me a lot of time!
Tomcat w/o the default servlet, though?
Ahh... you're right. It's a standard install with the default and jsp
servlets enabled. Sorry, I didn't look there.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
GEDA wrote:
Please help me. I don't really understand this debug message: ReferenceError:
validateForm_createuser is not defined. Here is the code:
s:form action=createuser.do validate=true
s:textfield label=Name name=name /
s:password label=Password name=password /
public User getUser() {return user;}
@EmailValidator(type = ValidatorType.FIELD,
fieldName = user.email, key = email.invalid,
message = Invalid mail addrss)
public void setUser(User user) {this.user = user;}
I noticed that using @Validations, I can
GEDA wrote:
I still get the same error. :-|
I discovered that this is happening when the jsp page where the form is
located, is loaded into a div tag. Is it normal the validation not working
from a div tag?
In 2.0.6 the javascript in your ajax-loaded section is automatically
removed by dojo.
Hi Al,
Are you saying the problem is new to 2.0.8?
I can confirm that formatLength and dayWidth have never worked for me in
2.0.6 but displayFormat was fine provided the date values are RFC3339
strings.
ie. I convert the Date to and from RFC3339 strings in the action, and
use displayFormat=dd
I have plenty of S2 webapps that don't include a servlet in web.xml and
haven't encountered this problem. Have you included a filter mapping
instead?
web.xml:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
and know
nothing of persistence. Their role is fetch and manipulate data to/from
the business/service layer for the view.
Hope that helps.
Jeromy Evans
Raghupathy, Gurumoorthy wrote:
It all Depends
If the business logic for each operation (CRUD) is complex then better
use 1 jsp
that your action contains getUsername(), getPassword() and
getPassword1() exactly (and their setters) because it's case sensitive.
The velocity macro itself is not the problem (provided you're calling it
correctly).
- Jeromy Evans
tallurisuresh wrote:
Hi,
I am using the velocity for UI
I am getting NullPointerException in this line Hashtable userList =
(Hashtable) servlet.getServletContext().getAttribute(userList);
As suggested by others the last time you asked this question, first try
to determine whether it's the the servlet, servletContext or HashTable
that's null.
Mansour wrote:
I am saving objects in the session. After the browser closes I would
like to clean the remaining junk. How do I achieve this ?
1. provide a logout action. In this action, get the ServletRequest and
invalidate the session immediately; but
2. if the user simply closes the
meeboo wrote:
Hey all
Is there a way to set a default value for a s:textfield?
s:textfield name=somefield value=%{'literal text value'}/
s:textfield name=somefield value=%{otherPropertyName}/
See http://struts.apache.org/2.x/docs/tag-syntax.html
I am trying
something like this: s:textfield
in an
interceptor or filter - the same as you do for stand-alone mode except
using a lookup. I haven't tried yet, but its described at [1].
Hope that helps,
Jeromy Evans
References:
1.
http://weblogs.java.net/blog/ss141213/archive/2005/12/dont_use_persis_1.html
2.
http://www.nabble.com/Re:--s2--Struts
to provide an FTL result.
Repeating the tests yielded consistent relative results on this server.
I can't explain why these are not consistent with your test results.
regards,
Jeromy Evans
More details from JMeter:
Case1:
Samples: 5000
Average: 247
Median: 251
90% line: 319
Min: 0
Max: 721
Property names are case sensitive. Your property name is userEmail
not useremail
public void setUserEmail(String userEmail)
s:textfield key=useremail / (wrong)
The params interceptor will try to call setUseremail(String). As this
doesn't exist userEmail is null.
validators
field
Ken,
Yes, the interface to your action is a File. The default implementation
uses the ServletFileUpload servlet from apache-commons-fileupload which
does create a temporary file.
You can switch to other implementations or configurations by changing
some struts2 properties but the fileupload
I can't even begin to image what you're describing.
However, install the firefox web developer plugin [1] and have a look at
the DOM to see what's really being created.
The dojo datepicker uses an html template in
struts/dojo/src/widget/templates/DatePicker.html and a css file at the
sample
decorator:body /
/td
tr
td colspan=2 align=center height=20 bgcolor=#777d6a
%@ includefile=/pages/layout/footer.jsp%
/td
/tr
/table
/body
/html
Jeromy Evans wrote:
I can't even begin to image what you're describing.
However, install the firefox web
qualify as CPM though which is what you asked for. I
haven't tried using S2 with an EJB container yet.
There's no need to use spring.
cheers,
Jeromy Evans
Caine Lai wrote:
No one? This seems like a major design flaw in Struts 2, if there is
no way
to use lazy loading in Struts 2 using JPA
Pierre Goupil wrote:
Do you mean that the only way is to generate a file by hand ? No help
from
Struts ?
Jasper reports [1] may suit you. The S2 jasper reports plugin gives you
a little bit of help, but not really. There's no 'automatically make
this JSP an XLS file' solution.
If you're
Interesting problem...
Using textfield as an example, the template (eg. text.ftl) takes the
literal name attribute from s:textfield and writes it straight to the
html. You could create your own theme that replaces the '.' with a
different character in the html. You could then write your own
The problem is that displaytag places the current row in the pageContext
but none of your expressions are addressing it.
I tend to just use JSTL within displaytag tables as its much easier to
access the current row.
I also tend to add getters to my bean to simplify the expressions
instead of
When I submit my form nothing in the optiontransfertselect is selected.
How can I solve the problem?
I work-around this bug but adding the following onsubmit attribute to
the s:form:
onsubmit=var selectObj =
document.getElementById('leftId');selectAllOptionsExceptSome(selectObj,
'key',
Struts2 uses xwork validation. The best description of how it finds
your xml files is here:
http://www.opensymphony.com/xwork/wikidocs/Validation%20Framework.html
Pay particular attention to the alias description in the Defining
Validation Rules section because that's what's not working for
/tr
/#list
Is JSP taglib an slow and not recommended solution for production portals?
Thanks a lot for your patience :)
Best regards!
Jordi Rubio Moreno
-Mensaje original-
De: Jeromy Evans [mailto:[EMAIL PROTECTED]
Enviado el: sábado, 19 de mayo de 2007 6:13
Para: Struts
Either use the 'handler' attribute of submit to specify the javascript
function to call to submit your form, or add a listener with
notifytopics/listentopics.
http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-dojoTopics
Jason Wyatt wrote:
Hi,
We're using an ajax-themed submit
/css_syntax.asp
If you don't understand what WW-1752 means, this is a reference to the
issue number reported on JIRA at
https://issues.apache.org/struts/browse/WW-1752
Good luck,
Jeromy Evans
Vijay Prajapati wrote:
Jeromy,
This can not worked according to your suggestion. There are bug in
Struts 2.0.6
public String intercept(ActionInvocation actionInvocation) throws
Exception {
I wouldn't do it, but actionInvocation provides information about the
action and method being invoked. Your interceptor could change its
behaviour based on the action name/class or method.
The preferred approach
An introduction is provided at
http://struts.apache.org/2.x/docs/ognl.html. The difference between %{}
and #{} is described there.
How it's applied within tags is here
http://struts.apache.org/2.x/docs/tag-syntax.html
For a deeper understanding flick through some of
In S2 your JSP is accessing the value stack. Lets say you only need one
bean for all the information your wizard collects (I'll use person as an
example)
eg. s:textfield name=person.firstName
It's your action's responsibility to ensure the same person instance is
being updated if you're
I haven't tried to use a dynamic action name like that so can't comment
on whether its a bug or feature, but one of these options should work:
1. Try using the ${} notation without the c:out
s:url id=url action=${actionName}
(I can't find the reference for this approach but it's somewhere on
In the simple case, this:
s:url id=url action=${courseName}
and this:
s:url id=url value=${courseName}.action
would be identical. You can also use the param tag to include request
parameters. You can create any URL you need using the value attribute
and params.
You referenced portal in
attribute and how could you generate given
below code in your JSP.
#userCompaniesAssigned {
width: 300px;
}
#userCompaniesNotAssigned {
width: 300px;
}
On 5/22/07, Jeromy Evans [EMAIL PROTECTED] wrote:
Hmm... I use 2.0.6.
The wiki at http://struts.apache.org/2.x/docs
optiontransferselect includes the doubleId attribute for the second
select. Your CSS can reference that ID.
To change the order of the buttons you'll need to create your own
optiontransferselect.ftl template based on the existing one.
Vijay Prajapati wrote:
Hi,
This is Vijay and
it shows
Bug in Optiontransferselect in version 2.0.6.
please send me code for it.
Vijay
On 5/22/07, Jeromy Evans [EMAIL PROTECTED] wrote:
optiontransferselect includes the doubleId attribute for the second
select. Your CSS can reference that ID.
To change the order of the buttons you'll need
, the
ServletContext will be injected into your action by the
ServletConfigInterceptor. That's a nice alternative to your call to the
static method ServletActionContext.getServletContext();
cheers,
Jeromy Evans
Michał Letyński wrote:
Michał Letyński napisał(a):
How to do this in struts 2 ?
In struts 1 i
### to evaluate expressions for String attributes for tags
struts.tag.altSyntax=true
regards,
Jeromy Evans
shadman wrote:
So, if the action properties are pushed onto the stack via OGNL, then what
from below would be preventing me from seeing the values that should be
there? Displaying a list worked just find
Assuming you're using an s:div theme=ajax for the tab that contains
your form, the scripts are 'stripped out' due to this bug:
https://issues.apache.org/struts/browse/WW-1766
Your work-round to include the scripts manually should work if you
include ALL the missing embedded javascript.
jdemic
Either:
- create your own theme for the radio button. Use simple/radiomap.ftl
tyo create mytheme/radiomap.ftl to exclude the label that's always
included (recommended); or
- do a hack: you can use html inputs in your form directly in your
JSP. These are also included as parameters for your
the
validation errors not to render...
Jeromy Evans - Blue Sky Minds wrote:
Assuming you're using an s:div theme=ajax for the tab that contains
your form, the scripts are 'stripped out' due to this bug:
https://issues.apache.org/struts/browse/WW-1766
Your work-round to include the scripts
accessible through the
ActionInvocation parameter.
Writing custom interceptors is described at
http://struts.apache.org/2.x/docs/writing-interceptors.html.
Hope that helps.
Jeromy Evans
Will Smith wrote:
Hi, I'm sure this has probably been beaten to death, but I can't seem to
find a viable
Ensure you've included s:head theme=ajax to include the required
javascript and try turning on ajax debugging (s:head theme=ajax
debug=true). Ensure the javascript exists in your html.
See the top of http://struts.apache.org/2.x/docs/ajax-tags.html
Mansour wrote:
I am populating some fields
, but
may be I am missing something here.
Jeromy Evans wrote:
Ensure you've included s:head theme=ajax to include the required
javascript and try turning on ajax debugging (s:head theme=ajax
debug=true). Ensure the javascript exists in your html.
See the top of http://struts.apache.org/2.x
There should be no additional concurrency limitations for struts actions
as for any request handled by other servlet implementations. It's the
container that determines how each request is handled. In the simplest
case it will use a thread per request drawn from an available thread
pool.
I'm not sure if you're proposed change is an improvement or not, but in
2.06 dynamic parameters do work for contentType, contentLength,
contentDisposition and the input stream name.
ie. I use this:
result name=download type=stream
param name=inputNamemyStream/param
param
If you mean you want a request to http://www.myapp.com/ to execute
input.action, you can:
- create an index.html with an http redirect header to index.action; or
- setup your webserver or container so that index.action is the
default welcome file (rather than index.html, index.jsp etc); or
-
601 - 700 of 701 matches
Mail list logo