Hi all,
My application uses a bean to store a collection of values to display
in a select input. Since the generation of this collection is
time-consuming, I set this bean to a session scope, and using the
following code :
in jsp:
%@ taglib prefix=s uri=/WEB-INF/struts-tags.tld %
s:set
how to pass dynamically entered values through html:linkor any using struts
--
View this message in context:
http://www.nabble.com/passing-values-that-are-entered-dynamically-tf3551523.html#a9915135
Sent from the Struts - User mailing list archive at Nabble.com.
If I use the datetimepicker in date format I can preset the date value
using an action and I can use the displayFormat to format the date.
If I use it in type=time the time is always 12:00. I can't adjust the
time or the time display format.
it doesn't depend on struts or not struts, but on what you want to
model and how deep you want to go.
I'd say use-cases and activity-diagrams for the first level.
class diagrams and collaborations for the seconds level (which can be
less or more detailed)
sequence if you like sequences.
I have a simple test case for using the action tag like so:
s:action name=eventProfile!list id=eventProfile executeResult=false/
test=s:property value=%{#eventProfile.test}/
the EventProfile.list() instantiates the EventProfile.test property.
Going to this jsp page via the !input method, the
Personally I would suggest nabble.com
google for nabble struts user
Dave Newton-4 wrote:
--- [EMAIL PROTECTED] wrote:
Beyond this, how do I get an S2 action class to
display a message on the web page?
See
Hi,
I was trying struts module switching and was successful doing it using
SwitchAction. I am also using tiles. The problem is I am not able to use a
separate tiles definition file for the other module (i have two modules).
I have two struts config files. struts-config.xml for the default
Hi,
I use this jsp in my project
form name=form1 method=post
action=/EmailToSMS/emailSmsAlertsAct.do?do=executeSmsAlerts
display:table border = 0 width=100%
scope=session pagesize=15 offset=15 name=emailSmsAlertsAtt
styleClass=table_report
I have the following package defined in my struts.xml file:
package name=jasper extends=jasperreports-default
action name=getReport class=com.action.ReportAction
method=generateReport
result name=success type=jasper
param name=locationreports/report.jasper/param
Have you considered removing the use of modules? Modules are really a
nuisance, and were originally developed to allow multiple Struts apps
running under one context. There's a hard barrier between modules and
almost all developers I know no longer use them. You can split up your
struts config
Apparently using HttpServletRequest request =
ServletActionContext.getRequest();
So why is the setServletRequest method not called?
ChristopherAngel wrote:
I have the following package defined in my struts.xml file:
package name=jasper extends=jasperreports-default
action
Frank W. Zammetti wrote:
Quick question... can anyone tell me if it's possible to forward to a
JSP that is stored in a JAR file (i.e., in a JAR located in
WEB-INF/lib), and if so, how? I couldn't find a quick answer on the
first few pages of Googling, figured someone here would probably know
I'm working on an Struts plugin to try to work around (more like hack
around) that and other fun stuff :)
musachy
On 4/10/07, Laurie Harper [EMAIL PROTECTED] wrote:
Frank W. Zammetti wrote:
Quick question... can anyone tell me if it's possible to forward to a
JSP that is stored in a JAR
resin does, tomcat doesnt.
:-)
Leon
On 4/10/07, Musachy Barroso [EMAIL PROTECTED] wrote:
I'm working on an Struts plugin to try to work around (more like hack
around) that and other fun stuff :)
musachy
On 4/10/07, Laurie Harper [EMAIL PROTECTED] wrote:
Frank W. Zammetti wrote:
Quick
How will S2 know which field the message is associated with? I was able to
get this to work last night, but I would like to get your feedback as to
whether or not it was an end around solution:
addFieldError(course.text, getText(label.duplicate));
I really do not like placing a jsp
--- [EMAIL PROTECTED] wrote:
addFieldError(course.text...
I really do not like placing a jsp field
name name in Java source code, but I could
not find another way to correlate the
message to the field.
No, I think that's how it works. Technically
you already have the field name in the java
Can you post the url that its using for 1,2,3,4 characters? You can use
FireBug for that, they should be something like
http://../LookupOrgs.action?org=ab
http://../LookupOrgs.action?org=abc
...
regards
musachy
On 4/10/07, Scott Nesbitt [EMAIL PROTECTED] wrote:
I am using the
Hi all, i've the following problem using the tag html:optionsCollection
Let's say this is my code (actionForm, jsp, bean class)
public class MyForm extends ActionForm {
private myBean[] arrayOfMyBean;
public void reset(ActionMapping mapping, HttpServletRequest
request){
Sounds cool Musachy! I could see that being a useful thing for sure.
Thanks Laurie, that's what I was thinking was the case... I'd need to do
it in a compliant way, so I'll have to go with my backup plan instead.
Thanks guys.
Frank
Musachy Barroso wrote:
I'm working on an Struts plugin to
I am using the autocompleter tag like this:
s:url id=autoorgs action=LookupOrgs/
s:autocompleter name=org
id=org
keyName=orgKey
theme=ajax
href=%{#autoorgs}
Well, because loadMinimumCount is set to 2 it does not
fire with one char. Here are the requests for strings
of length 2, 3, 4, then backspace to 3 from fiddler.
GET /enames2/html/LookupOrgs.action?org=nc HTTP/1.1
GET /enames2/html/LookupOrgs.action?org=nca HTTP/1.1
GET
You probably want st like:
package name=jasper extends=jasperreports-default,struts-default
The problem is that the servlet request is set by an interceptor
(servlet-config) that is in the default stack defined in
struts-default. The jasperreports-default package does not define any
Can someone point to a nice explanation (preferably a graphic) that explains
how values are exposed to the OGNL by the S2 framework *and* the preferred
technique to access them? S2 or JSTL tag? What is the appropriate access
syntax? I realize OGNL is a stand-alone facility, but it appears to
If I may tag on a question here
In your action then, how do you capture all 7 (for example) user id's that
the admin wants to delete? I have a very similar design, I have a list of
users, and each user has a checkbox. The admin can select multiple users to
either activate or deactivate.
The thing is that with current plugins you can add stuff to the framework,
but I want a way to plugin stuff into my application, not the framework
alone, ala eclipse. So I could plugin actions, with their jsps or whathever
they use, and have extension points in my application that get extended by
Folks,
I read http://struts.apache.org/2.x/docs/text.html and could not make sense
on how to display currency format with s:tags
I have an iterator, during the iteration, I would like to set the currency
with the correct format.
If I use:
s:iterator ...
s:property value=amount
/s:iterator
Looks right, and is it returning data for all of them?
musachy
On 4/10/07, Scott Nesbitt [EMAIL PROTECTED] wrote:
Well, because loadMinimumCount is set to 2 it does not
fire with one char. Here are the requests for strings
of length 2, 3, 4, then backspace to 3 from fiddler.
GET
I can't get labelposition or requiredposition to do anything!
top/bottom/right/left/*random* -- I tried them all.
On 4/10/07, Dave Newton [EMAIL PROTECTED] wrote:
--- [EMAIL PROTECTED] wrote:
addFieldError(course.text...
I really do not like placing a jsp field
name name in Java source
Yes, the JSON looks good. For the 3, 4, backspace 3
it returns the identical data:
[
[NCAA BKBL ATLANTIC 10 CONF-EAST],
[NCAA BKBL ATLANTIC COAST CONF],
[NCAA BKBL BIG 10 CONF],
[NCAA BKBL BIG 12 CONF],
[NCAA BKBL BIG EAST CONF],
[NCAA BKBL BIG
Are you talking about reset in a Struts form? Make sure the bean is scoped
to request.
On 4/6/07, Laurie Harper [EMAIL PROTECTED] wrote:
Chris Pat wrote:
Hello
Is/how it possible to clear the cache on an action?
My action works perfectly, however when the user hits reload
the previous
On 4/10/07 3:00 AM, Alexis Pigeon [EMAIL PROTECTED] wrote:
Hi all,
My application uses a bean to store a collection of values to display
in a select input. Since the generation of this collection is
time-consuming, I set this bean to a session scope, and using the
following code :
in
Hi is there any theme repository ??? I want to change my theme, like putting
the field errors in red, in the right of the component (field) who cause the
error...
Regards
Juan Espinosa
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus
No, the comma should not be a problem. I can't debug it right now, I will
late you know later. In the meantime creating a Jira ticket would ensure I
don't forget it :)
musachy
On 4/10/07, Scott Nesbitt [EMAIL PROTECTED] wrote:
Yes, the JSON looks good. For the 3, 4, backspace 3
it returns
--- [EMAIL PROTECTED] wrote:
[...] the preferred technique to access them?
S2 or JSTL tag?
Preferred is a matter of taste; I don't have any
issues accessing the attributes or OGNL stack via JSP
2.0 EL syntax (instead of s:property.../, just
because ${} is so much more concise), but there was
I have the controller nocache=true/ set in struts-config, but I
have a certain page that streams a PDF file where I need to allow
caching to accommodate IE users. Is it possible to override the setting
for an individual page? Maybe by setting the headers for the page
itself to allow caching?
Hi all, i've the following problem using the tag html:optionsCollection
Let's say this is my code (actionForm, jsp, bean class)
public class MyForm extends ActionForm {
private myBean[] arrayOfMyBean;
public void reset(ActionMapping mapping, HttpServletRequest
request){
On 4/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Let's face it... this is confusing! I understand the interplay with
dependency injection and how the Action interfaces fills this contract. Not
real sure about ModelDriven however (or is it ScopedModelDriven). I also
realize the infamous
Allow me to answer my own question, before somebody tells me how stupid I am.
I think the problem was my action wasn't set up correctly. The following
snippets of jsp and java give me an array (xxx) containing the values that
were checked on the page. In production, these fieldValues
I'm trying to get a Struts 1.1 (or...maybe 1.2) app to run under
Weblogic 9.0. It's been running happily under WL 8.
WL 9 supports J2EE 2.4, so I replaced the top line in web.xml with:
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
sorry for my English!
in my term paper i want to use Struts. Before this time i don`t have a deal
with it. in http://struts.apache.org/ i saw that struts had two versions. i
try to found what version is preferable, but can`t...
Can anybody says how many differencies bitween them? Or, at least,
for new projects where you have the choice what to use, I suggest struts2.
On Tuesday 10 April 2007 20:30:21 dire wrote:
sorry for my English!
in my term paper i want to use Struts. Before this time i don`t have a deal
with it. in http://struts.apache.org/ i saw that struts had two versions.
I tried the s:datetimepicker to work on things, but since I am not using
AJAX, I believe that is a dead end, no? There'd be no point in bringing
in the ajax theme if I wasn't using AJAX.
So how do I incorporate a standard js calendar routine into a field on
my form?
What I want to add:
a
Struts 2 is the way to go, IMHO.
On 4/10/07, Piero Sartini [EMAIL PROTECTED] wrote:
for new projects where you have the choice what to use, I suggest struts2.
On Tuesday 10 April 2007 20:30:21 dire wrote:
sorry for my English!
in my term paper i want to use Struts. Before this time i don`t
Hi,
I tried to pass a Javascript variable to a struts url tag and I did it as
follow:
In the Javascript part:
var id_ = 10;
In the struts tag par:
s:url action=myAction id=myUrl
s:param name=id value=%{id_} /
/s:url
But, it didn' work. Would somebody tell me how to do it?
Thanks in advance
How can I iterate a collection and modify at the same time ?
Example
public static Collection getAncestors(
Entity aEntity, Object aContext ){
Collection vAncestors=new ArrayList();
IDocument vDocument= findDocumentByName(
aEntity.getSuper(),
Hi,
I have another simple question here.
I want to setup jsp pages to update a Listobject, e.g. searchParameters
In my Action class I have:
public class SearchParameterAction implements Preparable {
private SearchParameterService service;
private ListSearchParameter searchParameters;
In
Hello,
I have a great deal of experience developing web based applications. I have
used home-grown frameworks and several commercial frameworks.
I am new to STRUTS2, but my initial impression is that STRUTS2 kicks-butt.
Form validation and action/navigation management is extremely intuitive.
Not to show any disrespect, but if you are starting a new project with a clean
slate, I'd seriously look at JSF/Facelets if I were you.
Both frameworks have their pros/cons, but I think JSF's pros well outweigh the
cons. Plus, if you are going to take the time and learn a new framework, which
Frank, what is it about JSF that you find superior to Struts 2? We are
internally in a debate on which way to go (JSF v Struts 2) and I'd like to
hear your opinion.
(*Chris*)
On 4/10/07, Frank Russo [EMAIL PROTECTED] wrote:
Not to show any disrespect, but if you are starting a new project
I don't want to let the user press the submit button more than once?? Is
there a property for that, or what can I do?
If there is no javascript involved the better.
Thanks.
Ashuin Sharma
Software Developer
Isthmus Inc.
The Costa Rica IT Outsourcing Company
www.isthmusit.com
Good Afternoon Andrew --
Struts2 introduces the concept of Interceptors allowing you to configure n
number pre methods and n number post methods before and after an Action
so in one situation you might have an Action such as
PrimaryInvestigatorDocumentUpload so you may desire the ability to
--- Ashuin Sharma Chamorro wrote:
I don't want to let the user press the submit button
more than once?? Is there a property for that, or
what can I do?
Struts 1?
You can use the valid token stuff built in to Struts
and/or you can use JavaScript to remove/disable/etc.
the button. I don't
Tags are evaluated on the *server* side, javascript runs on the *client*
side. Can you give more details on what you are trying to do?
regards
musachy
On 4/10/07, Minerva CC [EMAIL PROTECTED] wrote:
Hi,
I tried to pass a Javascript variable to a struts url tag and I did it as
follow:
In the
I implemented the Search Engine.
The SearchResult has multiple Pages, How I postback Action Class itself with
parameter(PageNumber and same SearchPart) ?
layout
PartSearchMain.jsp, it include two jsps.( no frame)
left column is PartSearchInput.jsp with an text box
I did look at JSF/Seam/Shale and other web frameworks before I decided to use
Struts2.
There were several reasons for my decision and I have not regret it since now.
After many years of web development an action based framework like s2 for me
is much more natural than a component based
Yes struts the old one 1.2.9
So with javascript it should be like implementing a function on the
html:submit value=Submit styleid=button
onclick=document.button.enabled=false /
something like that?
What is that valid token stud built into struts?? Can you sen me a
link???
-Original
I implemented the Search Engine.
The SearchResult has multiple Pages, How I postback Action Class itself with
parameter(PageNumber and same SearchPart) ?
layout
PartSearchMain.jsp, it include two jsps.( no frame)
left column is PartSearchInput.jsp with an text box
Struts 2 tags support pretty much all the attributes that their html
counterparts do.
I haven't used NewCal ( seen it, but not used it )
but you can try something like this :
s:textfield id=myfield key=p.datePaid/
javascript:NewCal('myfield','ddmmm',true,24) images/cal.gif
Skip
Hi,
I tried to define a display style class in s:a tag as follows
s:url id=resultPageUrl action=searchResult
s:param name=id value=%{#parameters.id} /
/s:url
s:a href=resultPageUrl class=taboffview search results/s:a
But, when I run it, I got org.apache.jasper.JasperException:
There is the cssClass parameter for (all?) struts2 tags.
s:a href=resultPageUrl cssClass=taboffview search results/s:a
More information:
http://struts.apache.org/2.x/docs/a.html
Piero
On Wednesday 11 April 2007 01:10:43 Minerva CC wrote:
Hi,
I tried to define a display style class in s:a tag
Hi Piero,
Thank you so much for your help again :-) I am new to struts and Java. But, I
lean it from your every day.
Willa
- Original Message
From: Piero Sartini [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, April 10, 2007 4:28:50 PM
Subject:
This list seems to be quite busy, and I think everyone would benefit hugely
from separating out the two frameworks for obvious reasons. Actually I'm
surprised this hasn't been done already.
Most notably is that the S2 posts won't get drowned out by S1 posts but
perhaps developers should get a
--- Antony Stubbs [EMAIL PROTECTED] wrote:
This list seems to be quite busy, and I think
everyone would benefit hugely from separating out
the
two frameworks for obvious reasons. Actually I'm
surprised this hasn't been done already.
It's been brought up (even by me) in the past; I still
agree
Wouldn't a forum be more appropriate for this kind of exchange?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Well it might have made sense if struts 2 issues were somehow applicable to
struts 1, but they're mostly not.
For Struts 2 to be adopted, it needs to be clearly separated from struts 1,
as is the code base. This includes having clearly separate support to make
it as easy as possible to find
I completely agree. In fact, I quite like the forum the Spring guys use. (esp
with the question / answered functionality).
I imagine a lot of people (as i do) treat this list as a forum, esp through
archives like Nabble.com which I use.
Asaf Paris Mandoki wrote:
Wouldn't a forum be more
The webwork forum at www.opensymphony.com looks pretty good. Now that
webwork and struts 2 are almost the same thing, couldn't a special
forum for struts 2 be created over there?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
+1 for using a forum. It saves having to archive the whole list locally to
keep track of threads. This is particularly relevant with S2 where we're
trying to keep track of latest issues and common pitfalls.
Z.
I completely agree. In fact, I quite like the forum the Spring guys use. (esp
with
Seriously, have you tried
http://www.nabble.com/forum/ViewPost.jtp?post=9930952framed=y ???
Zoran Avtarovski wrote:
+1 for using a forum. It saves having to archive the whole list locally to
keep track of threads. This is particularly relevant with S2 where we're
trying to keep track of
On Wednesday 11 April 2007 01:49:01 Asaf Paris Mandoki wrote:
Wouldn't a forum be more appropriate for this kind of exchange?
I am not sure. Personally I do prefer mailing lists. They save a lot of time,
especially if you are subscribed to a lot of lists. Navigating to different
forums is not
How could we get a forum?
Is there a way to get a place at opensymphony's forum dedicated to struts users?
What other alternatives are there?
How difficult would it be to get a forum at struts.apache.org ?
-
To unsubscribe,
I don't think apache.org run forums, only moderate mailing lists. I think
they advocate using http://www.nabble.com/.
I think for a start, simply a separate list for Struts 2 would be a massive
help.
Asaf Paris Mandoki wrote:
How could we get a forum?
Is there a way to get a place at
How can I format a number with the currency format?
I have taken a look at http://struts.apache.org/2.x/docs/text.html and still
cannot figure out the correct syntax.
This works, but without formatting the output
s:iterator ...
s:property value=amount
/s:iterator
I tried this and it does not
--- Harring Figueiredo [EMAIL PROTECTED] wrote:
How can I format a number with the currency format?
I have taken a look at
http://struts.apache.org/2.x/docs/text.html and
still cannot figure out the correct syntax.
Is
s:text name=format.money
s:param name=value value=myMoneyValue/
I actually prefer to use a template based approach instead of JSP. Velocity
and FreeMarker are great for generating responses. This cleanly separates
the presentation layer.
Just my 2 cents...
Regards
Andrew
-Original Message-
From: Frank Russo [mailto:[EMAIL PROTECTED]
Sent:
I think the thought behind not splitting the lists to this point is that
Apache experience has been that it tends to divide a community rather
than direct traffic in a more granular way. The idea is that a Struts
user is a Struts user regardless of version, and those that may not be
using S2
--- Love, Andrew [EMAIL PROTECTED] wrote:
I actually prefer to use a template based approach
instead of JSP. Velocity and FreeMarker are great
for generating responses. This cleanly separates
the presentation layer.
Just out of curiosity, what do you feel makes JSP
*not* a template system?
Dave:
Thank you for the email.
That was exactly what I wrote.
s:text name=currency
s:param name=amount value=amount/
/s:text
It the value does no appear at all.
If there any way we can have output for TLD to see what goes on?
Thank you again for the response.
Harring
On 4/10/07, Dave
Well I tried ScopedModelDrivenmyForm Yes it
works but the values get reset all the time, The form
is defined as it is in session scope.
What I did was
I got two action claases which extends
ScopedModelDrivenMyForm I update the form value in
one action class and retrieve the value in the other
While I understand that people want a separate mailing list, and at
times I believed the same thing, the fact is that most questions to
this list will be about 2.x. The reason is because, imo, 1.x has been
out for 7 years and virtually every possible question and answer has
been given -- there's
Greg, use the set-property tag to give a custom property to an action.
Perhaps you'd want a property called yescache which, when present, you
want to perform caching. To take effect, you'll have to create a new
command in the controller (1.3) or override the processNoCache (1.2) method.
Paul
I have to agree with Frank and Paul. The list has been the best source of
current information on S2. We're using the WebWork in Action Book and other
resources but by far this mailing list has been the most valuable resource.
Z.
While I understand that people want a separate mailing list, and
Hi,
Is there a way to format the value of a s:textfield like it possible
with s:text?
For example what would be the equivalent of s:text
name=format.moneys:param name=value
value=myMoneyValue//s:text for s:textfield/s:textarea?
S.
Hello All,
I want to use struts dynamic form feature.
There is form which has an upload file field. I am having the following
settings in struts config file
form-bean name=uploadItemForm
type=org.apache.struts.validator.DynaValidatorForm
form-property
84 matches
Mail list logo