Please excuse me but i try again ... (hope will never die)
Hi all, i've the following problem using the tag
myBean Class:
public class myBean implements java.io.Serializable{
private Integ
Works but the values get reset all the time, doesnt
stay in the session scope, if I update form in the one
action class and if I try to retrieve from the other
action class the values has been lost.
Should I have to do any extra things
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> --- tom tom
Hi Mark,
On 10/04/07, Mark Menard <[EMAIL PROTECTED]> wrote:
There's a cleaner Struts 2 way of doing this. Take a look at the
org.apache.struts2.interceptor.SessionAware interface. This will make your
action independent of the servlet spec and more easily testable.
Thanks for the tip!
> This
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
the jsp file contai
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 "" for /?
S.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
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
Greg, use the 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
Greg Dunn
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 s
Well I tried ScopedModelDriven 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
ScopedModelDriven I update the form value in
one action class and retrieve the value in the other
but it looks
Dave:
Thank you for the email.
That was exactly what I wrote.
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 Newton <[EMAIL PROTECTED]> wrote:
--- Harring Figueiredo <[EMAIL
--- "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 s
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 t
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: Tuesda
--- 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
where
format.money={0,number,currency}
Not the correct syn
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
I tried this and it does not work.
What am I doing wrong?
Thank you.
-
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 ope
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, e-mai
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
Seriously, have you tried
http://www.nabble.com/forum/ViewPost.jtp?post=9930952&framed=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 o
+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
> wi
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 ad
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 ap
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 help
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]
--- 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
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 look
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
Sent: Tuesday, April 10, 2007 4:28:50 PM
Subject: Re: Cannot define a di
There is the "cssClass" parameter for (all?) struts2 tags.
view search results
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 tag as follows
>
>
>
>
> view search resu
Hi,
I tried to define a display style class in tag as follows
view search results
But, when I run it, I got org.apache.jasper.JasperException:
/pages/searchRequest.jsp(81,4) Attribute class invalid for tag a according to
TLD error.
My question is how can we define a style for a url l
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 :
javascript:NewCal('myfield','ddmmm',true,24) images/cal.gif
Skip Hollowell wrote:
>
> I tried the s:datetimepi
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 fo
Yes struts the old one 1.2.9
So with javascript it should be like implementing a function on the
something like that?
What is that valid token stud built into struts?? Can you sen me a
link???
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2
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 approac
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 fo
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 th
--- 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'
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 per
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 http://www
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 w
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
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.
Hi,
I have another simple question here.
I want to setup jsp pages to update a List, e.g. searchParameters
In my Action class I have:
public class SearchParameterAction implements Preparable {
private SearchParameterService service;
private List searchParameters;
In the main.jsp page:
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(), aCon
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:
But, it didn' work. Would somebody tell me how to do it?
Thanks in advance for you help.
Willa
__
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 d
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:
src=
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 versio
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, t
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:
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLo
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 attributes
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
Hi all, i've the following problem using the tag
myBean Class:
public class myBean implements java.io.Serializable{
private Integer code;
private String descr;
pu
I have the 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?
---
--- [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 , just
because ${} is so much more concise), but there was
already one
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
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 Dat
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 :
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 previou
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 B
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 sourc
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 /enames2/
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:
It displays correctly, except that the string is
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
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.
In
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 be
You probably want st like:
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
interceptor stacks, and does not extend any other packages.
PK
Christ
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 /enames2/html/LookupOrgs.
I am using the autocompleter tag like this:
When I type a two-char string in the text box it works
fine: six items in the dropdown. However, when I add
another char there is nothing in the dropdown. When I
add a fourth char I get six items again. When I
backspace to three chars
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
Hi all, i've the following problem using the tag
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
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 auto
--- [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 th
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 j
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:
> > Qu
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
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
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:
>
>
>method="generateReport">
>
> reports/rep
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 confi
I have the following package defined in my struts.xml file:
reports/report.jasper
dataSource
the generateReport method is called as expected except despite ReportAction
implementing ServletRequestAware the setServletRequest method is never
called.
How
Hi,
I use this jsp in my project
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 mod
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
>
> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony
I have a simple test case for using the action tag like so:
test=
the EventProfile.list() instantiates the EventProfile.test property.
Going to this jsp page via the !input method, the result is retrieved and we
get the ouput something like "test=testString", exactly as expected.
But, if i sub
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.
everyt
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.
_
how to pass dynamically entered values through or 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.
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" %>
in the
87 matches
Mail list logo