I'd like to be able to access the first element of my people list as a person
in a property tag later on in an included page as follows:
I know that would work, but I
unfortunately cannot do that because I may enter the page another way in
which I set a person as a request attribute.
Can I u
Hi All,
I'm having problem with JasperReports and Struts 2 when I tried to
output the report in HTML format. When I run the report, all the images
doesn't display and only the data are displayed. I think I'm missing
something in the action mapping part and specially in specifying the image
s
encode as UTF-16
Good Luck,
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email
We usually have several resource files, and output fields with tag
. Instead of storing values, we
store those keys in DB.
for instance:
--
北半球的狗几月份掉毛?
<>
I just started using the maven 2 tomcat plugin from
http://mojo.codehaus.org/tomcat-maven-plugin/introduction.html
It works by default using tomcat 5.5 server.
Is there a way to make mvn tomcat plugin to use tomcat v6 in this case,
instead of tomcat 5.5.
Since I would rather like to work in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Joe,
Joe Yuen wrote:
> How does one detect which language and country is selected?
Since you are posting to the Struts mailing list, I would imagine that
you are using Struts. Struts 1.x allows you to grab the user's Locale by
using Action.getLocale(
Couldn't you use the JavaScript "Load" event to know when the page has
been completely rendered, and postpone your reload until then?
Torsten
Greg Stasica schrieb:
> hi,
>
> My problem is that I've a big JSP page with a lot of scriptlets and a
> JavaScript which basically reloads the whole page
http://www.nicolatsboutique.com/shop/home/
took 3000 orders in the first week, peaking at 830 for one day and 85 in one
hour
on peak day, 10Gb outgoing traffic, 5000 visits, 53500 page views
and never went down :)
S2 bits used :-
guice plugin
RestfulActionMapper
codebehind and zeroconfig
annota
Thanks Chris.
How does one detect which language and country is selected?
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wed 5/30/2007 1:37 PM
To: Struts Users Mailing List
Subject: Re: Multi lingual web site
-BEGIN PGP SIGNED MESSAGE-
Hash
I think I found an OK solution but one thing does not work and I don't
understand why.
So what I am doing is creating single checkboxes in an iterator,
disabling the automatically generated label through a modified "simple"
theme and creating my custom labels:
thanks , that's a helpful link.
I like the idea of using manager app do the reload for you..
for eg: http://localhost:8080/manager/reload?path=/examples
Is there a way to make mvn tomcat plugin to use tomcat v6 in this case,
instead of tomcat 5.5.
Since I would rather like to work in tomcat 6
Hello,
There are a few ways I've gotten around this:
1. Store the other languages in the same table that populates the
"select" control. In the future, if you add more languages to your
site, you just add to that table. (Which would be similar to adding
another resource file for that new langua
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Joe,
Joe Yuen wrote:
> I'm currently using a
> resource file and that all work great except for some select boxes
> the data comes from the database where the data is in English. I was
> wondering how other people handle this situation?
You'll need y
Hi all,
I would like to display a large result set using
e.g. Top N query and was wondering whether Struts 2
out of the box includes such UI tag or special
action/interceptor component implementing such
requirement. The result type would not be so important
assume JSP but I am open to use any.
I am trying to build a mutilingual website. I'm currently using a resource file
and that all work great except for some select boxes the data comes from the
database where the data is in english. I was wondering how other people handle
this situation? Should I have the same table also store the
Did you look at
http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server
?
Also view:
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Reload%20An%20Existing%20Application
thanks a lot yitzle.
I got the ant script.
but now that I am working with maven , i would like to explore it a little
more
to see if I can get the hot-deploy working with it. And most probably it
looks
like there's some setting on tomcat side (as u earlier mentioned) that will
let
me do the ho
Hi there,
I just setup tomcat 5.5 as my web-container for struts2 project.
But I cann't seem to figure out how to force the hot deploy work with it.
I noticed (following struts2 bootstrap tutorial) that jetty can hot-deploy
my changes,
ie whenever I change my .java / struts.xml , it picks up t
I don't use the Tomcat manager.
I'll email you the ANT script I use
On 5/30/07, robinbajaj <[EMAIL PROTECTED]> wrote:
ooops I looked at the error message again
--
18K downloaded
[INFO] [tomcat:deploy]
[INFO] Deploying war to http://localhost:8080/tutorial64
[INFO]
--
Maybe you're creating a new session with each request.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ooops I looked at the error message again
--
18K downloaded
[INFO] [tomcat:deploy]
[INFO] Deploying war to http://localhost:8080/tutorial
[INFO]
[ERROR] BUILD ERROR
[INFO]
Thanks for your response Dave.
I tried the tomcat-maven-plugin
basically removed the jetty plugin and introduced tomcat-maven-plugin into
my pom.xml
as follows
org.codehaus.mojo
tomcat-maven-plugin
Paul-
Looks like it still exists in 1.3.8. Do you want me to file the bug
against 1.3.8? Also, what type of sample code are you looking for? The
whole package (struts/tiles config files, Action class, JSP page,
etc...) or something smaller? Thanks.
--adam
Paul Benedict wrote:
Adam,
Wo
--- yitzle <[EMAIL PROTECTED]> wrote:
> The way I deploy is by shutting down Tomcat, using
> an ANT script to copy to files into the
> Tomcat/webapps and starting Tomcat.
The OP, however, wanted to use Maven.
http://mojo.codehaus.org/tomcat-maven-plugin/
d.
___
Hi Yitzle,
thanks for your response.
Essentially I am looking for that ant script :-)
that will let me do this build etc.
And yes, I have already gotten that Struts 2 book and reading through it to
catch up. I have a good Struts 1.x background but never had to deal with Ant
build scripts befo
I'm using Struts2 + Tomcat (for a whole 2 weeks!) and its all good.
The way I deploy is by shutting down Tomcat, using an ANT script to
copy to files into the Tomcat/webapps and starting Tomcat.
I think you can deploy without closing Tomcat. You may want to check
out Tomcat's manual... There's the
Thank you. So MyAction-validation.xml will only work with the following
(equivalent configs)?
/result.jsp
or
/result.jsp
- Original Message
From: Musachy Barroso <[EMAIL PROTECTED]>
To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL
PROTECTED]>
Sent: Wednesday, Ma
for:
/result.jsp
it would be
MyAction-save-validation.xml.
musachy
On 5/30/07, Jon Wilmoth <[EMAIL PROTECTED]> wrote:
http://struts.apache.org/2.x/docs/validation.html says:
Validation rules can be specified:
Per Action class: in a file named ActionName-validation.xml
Per Action alias
http://struts.apache.org/2.x/docs/validation.html says:
Validation rules can be specified:
Per Action class: in a file named ActionName-validation.xml
Per Action alias: in a file named ActionName-alias-validation.xml
Inheritance hierarchy and interfaces implemented by Action class: XWork
searche
Hi there,
I am struts2 newbie. Just completed bootstrap tutorial (using Maven Starter
archetype) that works with Jetty. I was wondering if I could make it work
with my favorite web server - tomcat 5.5/6.
Essentially I think I have to change the maven scripts to deploy to tomcat.
Has anyone done
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Balazs,
I just realized that we're talking about approximately 1MB of char[]
data... what's the big deal about that? ;)
Balazs Michnay wrote:
>> Can you expand the "+" next to Arrays.copyOfRange to see what the rest
>> of the stack trace is? I'm sure
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam,
Adam Gordon wrote:
> So, we have a form in a JSP, and generally, the OS allows the user to
> copy/paste a bullet list from MS Word, OOWriter, et. al. into a text
> area in the form. Regardless of whether the browser is in UTF-8
> mode or ISO-88
--- Ted Husted <[EMAIL PROTECTED]> wrote:
> Dave Newton <[EMAIL PROTECTED]> wrote:
> Web services are useful, but it's important to note
> that they are not essential to a Service Orientated
> Architecture. Business objects loaded via Spring, or
> just popped into application scope, work just as
>I meant filters defined in web.xml, not scriptlets. It's /possible/ that
>your tags are using a whole lot of memory, but probably not
>(you'd have to be creating randomly-named session attributes over and
>over, and never freeing them... I'm guessing you're not doing that).
No, I'm not doing tha
Paul-
Of course. I'll email back when I have the results. Hopefully there
won't be too many code changes due to the upgrade...
--adam
Paul Benedict wrote:
Adam,
Would you be kind enough to try this in 1.3.8? I'd be interested in
fixing
this, if you can help me diagnose the issue. After y
Christopher-
So, we have a form in a JSP, and generally, the OS allows the user to
copy/paste a bullet list from MS Word, OOWriter, et. al. into a text
area in the form. Regardless of whether the browser is in UTF-8 mode or
ISO-8859-1 mode, the bullets show up as bullets. We submit the form,
I will give that a try. I am sure it will work. Thank you so much for
your clear and detailed response. I now not only know what to do, but
more importantly why it needs to be done that way. Thank you!
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
On 5/30/07, Dave Newton <[EMAIL PROTECTED]> wrote:
The nice part is that with a good set of service
("util") classes the web app, the web services, the
unit tests, etc. all use the same underlying code
(functionality). As would a desktop Swing client or
utilities, etc.
Yes, we're in the midst o
--- Jeromy Evans wrote:
> The problem is that displaytag places the current
> row in the pageContext but none of your expressions
> are addressing it.
Or it could be that ;)
Dave "Shouldn't answer questions about taglibs he
doesn't know" Newton
--- "Hoying, Ken" <[EMAIL PROTECTED]> wrote:
> "${idContract.status}=='NEW'"
> '${idContract.status}=="NEW"'
> "%{idContract.status}=='NEW'"
These close the OGNL expression too early.
> "${idContract.status=='NEW'}"
> "%{idContract.status=='NEW'}"
> "idContract.status=='NEW'"
> "#idContract.statu
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 h
Yep. Still in Boston. I'll have to ping them about that.
/Ian
Ted Husted wrote:
On 5/29/07, Ian Roughley <[EMAIL PROTECTED]> wrote:
Ah - thanks for the link Ted. And for all the kind words on the list.
Don't forget the blog :)
* http://husted.com/ted/blog/
Hey, isn't the New England JUG
You should be right if you implement the 4 indexed bean methods on your
form.
@see
http://java.sun.com/j2se/1.4.2/docs/api/java/beans/IndexedPropertyDescriptor.html#IndexedPropertyDescriptor(java.lang.String,
java.lang.Class)
Here is an example if your property holding the files is called "fil
I am having a devil of a time getting a simple if test condition to work
properly.
Here is the jist of what I am trying to do:
${idContract.status}
--- Luiz Henrique Rossetti wrote:
> Why this happens?
>
> ERROR - Could not find action or result
> No result defined for action
> br.com.cpm.gepro.action.CadastroProjetoActionand
> result input - action
Probably because you have not defined an "input"
result for the action in question.
If you w
Hi all,
We have got an Application wherein we are having many layouts. But we can
easily group some layouts of some pages. We also can say that some part is
common to all pages in a group. Hence we thought of segregating those
contents into common files and including these as shown below.
<%@ inc
Why this happens?
2007-05-30 09:51:49,986 ERROR (org.apache.struts2.dispatcher.Dispatcher:515)
- Could not find action or result
No result defined for action
br.com.cpm.gepro.action.CadastroProjetoActionand result input - action
- file:/C:/apache-
tomcat-6.0.13/webapps/gepro/WEB-INF/classes/strut
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam,
Adam Gordon wrote:
> We're using the html:form element and we have the acceptCharset
> attribute set to "UTF-8" and when we enter a unicode character in a
> textarea in this form element, the UTF-8 character (in this case \u2022,
> the bullet sy
--- Skip Hollowell wrote:
> I already have my DAO for the actual data layer
> retrieval via our webservices and that has worked
out
> great, as per the CRUD demos and Mailreader.
The nice part is that with a good set of service
("util") classes the web app, the web services, the
unit tests, etc. a
I have the following;
Action A --- forwards to ---> A.jsp --- submits to ---> Action B ---
redirects to ---> Action A
The B to A redirect uses the store interceptor to pass action messages and
action errors to Action A.
When I add an ActionError in Action B (using addActionError from
ActionSu
Dave and Laurie:
So I am complicating things, as usual, by over thinking them. Say I
have an AccountAction. Then it's as simple as having an AccountUtil
class (or several classes depending on need) that will contain most of
the logic that will need to be performed by the Account Action. The
Hi,
I try the client side validation with Struts 2. The validation is well done,
but I have many problems :
- For each datetimepicker field in my form, I have the following Javascript
error, which displays in a pop up : "TypeError: row.cells has no properties"
- Another problem with datetimepicke
I have found this:
Chaining interceptor:
The Interceptor will copy the original parameters from the request, and
the ValueStack is passed in to the target Action. The source Action is
remembered by the ValueStack, allowing the target Action to access the
properties of the preceding Action(s) us
Hi,
No, I am not using FormFile.
I set debug trace on and this is my output log :
[DEBUG] 26:51 (ActionCommandBase.java:execute:46)
Executing org.apache.struts.chain.commands.servlet.PopulateActionForm
[DEBUG] 26:51 (BeanUtilsBean.java:populate:795)
BeanUtils.populate([EMAIL PROTECTED],
{co.bi
54 matches
Mail list logo