Thank you for answering my question. I assume setting includeParams to
'none' means it will not automatically set any parameters at all, including
ajax parameters?
On Mon, Apr 28, 2008 at 10:52 PM, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Jukka Välimaa wrote:
>
> > Hi,
> >
> > I have a problem-
It is a single application.
when trying to access struts2 action ... it is unable to find the path.
(Error: Invalid Specified Path ...)
I have interceptors in struts.xml. I have plugin jar in web-inf/lib.
I am not sure of what needs to be done in addition to this...
Your help would be greatly
I'm pretty sure it's an Windows/Eclipse thing as I see the same thing with
or without devMode set to true on Windows with JDK 1.5.0_14.
Struts has very little control over how it is deployed into the webapp
container (tomcat in your case), so you might want to check in with the
eclipse guys to
Hi,
This doesn't seem to be working. My main problem is that why is it not
throwing any exceptions if its not the right way to display it?
Any other way of fixing this issue???
Ravi
-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 29, 2008 10:40 AM
Just moving from Struts1 to Struts2.0.11.
No problem on Tomcat 6.0.16.
However, I get the following exception on startup with Tomcat 6.0.14.
Does anyone know a way round this?
(I've included excerpts from web.xml further down.)
***
EXCE
I think it may need to be:
But I haven't tried it myself.
(*Chris*)
On Mon, Apr 28, 2008 at 9:44 PM, ravi_eze <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> i tried this way:
>
>
>
>
> but its not working nor it throws an exception if its wrong way of doing.
>
> any help?
>
> cheers,
> r
I am trying to write an image button of the form:
where context-root is the configured context root of my web application. Can
anyone suggest a good way to dynamically populate the context root?
I am assuming that the src string is being interpreted via OGNL but I can't
figure out an appropria
hi,
i tried this way:
but its not working nor it throws an exception if its wrong way of doing.
any help?
cheers,
ravi
Wes Wannemacher wrote:
>
>
> http://struts.apache.org/2.x/docs/set.html
>
>
>
> On Mon, 2008-04-28 at 08:17 -0700, ravi_eze wrote:
>> hi,
>>
>> we want to access
Alan Nisbet wrote:
Hi,
I'm trying to capture date and time from a datetimepicker, so I want
the date object to contain both date and time. Has anyone come up with
a decent solution on how to do this?
I would have thought it was a relatively common thing to try and do!
Best Regards,
Alan.
Currently I have made a work around by assigning the result for actionB to
b.jsp which invoke actionA using another and parsing the
parameter through using . I just thought perhaps you can just
redirect action without a page in between the two actions. Oh well.
cheers.
--
View this message in
Does anyone know how to use nested tags in velocity, like building a
url? I have tried many, many combinations of the form:
#surl ...
#sparam ... #end
#end
and can't seem to get it right. (and google is no giving me any love
on this one)
musachy
--
"Hey you! Would you help me to carry the ston
i want to show an error page with a application error
messages 2 the users when there is an technical error...
i am using tiles 1.2 with struts 1.3.5 when there is an error
in a jsp tile say a body part or a left part the error page is replaced @
that particular til
ya its not a problem but i am asking can we able to reffer a childform bean
object specified in struts config with the baseform reference.. in the time
of rendering into a jsp...?
Antonio Petrelli-3 wrote:
>
> 2008/4/27 balaji.m.cs <[EMAIL PROTECTED]>:
>> BaseFrom extends ActionForm {
>
This does not help. :(
I tried using the setter method as below
void setSelectKeyword(String[] selectKeyword) {
log.debug(LoginAction.class.getName() + ": execute() : Checkpoint 1");
this.temp = selectKeyword;
}
But the log statement even does not gets printed. That me
Hi,
I have a problem where I have a page (let's call it a.jsp) which calls an
action using
show_name.jsp
actionA
namespaceA
b.thingyId
Now it works fine when I call it by going to the url
http://XXX/namespaceB/actionB.action?b.id=123 but w
Vinay,
did you try -
http://localhost:8080/mailreader/
?
On Mon, 2008-04-28 at 17:46 -0700, Vinay Nagrik wrote:
> Hello Group,
>
> In my server.xml the appbase is "webapps" and I have copied a mailreader.war
> file in "webapps" directory
>
> However the following url does not work in tomcat
Vinay,
You are talking about two different things... First off, in the java
source file, the statement 'package tutorial;' relates to the following
http://java.sun.com/docs/books/tutorial/java/package/packages.html
In struts2, the package declaration is a way to logically organize your
actions
--- Vinay Nagrik <[EMAIL PROTECTED]> wrote:
> In my server.xml the appbase is "webapps" and I have copied a
> mailreader.war file in "webapps" directory
>
> However the following url does not work in tomcat
>
> localhost:8080/mailreader.war
>
> It says
>
> "The requested resource (/mailreader.w
Is the Java class being deployed to the proper location? If you just deleted
the package statement w/o moving the file to the appropriate directory you
might run into problems.
Do you have debugging turned up and/or struts.devMode turned on?
Dave
--- Vinay Nagrik <[EMAIL PROTECTED]> wrote:
> I a
Hello Group,
In my server.xml the appbase is "webapps" and I have copied a mailreader.war
file in "webapps" directory
However the following url does not work in tomcat
localhost:8080/mailreader.war
It says
"The requested resource (/mailreader.war) is not available.
--
Thanks
Nagrik
Adam Hardy wrote:
Chase on 28/04/08 22:14, wrote:
Anyone had issues with devMode not working fully on Windows?
I've got set and in
my Tomcat console log I'm seeing:
INFO: Overriding property struts.configuration.xml.reload - old
value: false new value: true
Windows XP
Sun JDK 1.6u6
Eclipse
Hello Group,
I am working with the preliminary HelloWorld.java example and removed the
very first line in HelloWorld.java
i.e I commented out
package tutorial;
Thereafter I modified the struts.xml file and it looks like
http://struts.apache.org/dtds/struts-2.0.dtd";>
http://struts.apache.org/2.x/docs/set.html
On Mon, 2008-04-28 at 08:17 -0700, ravi_eze wrote:
> hi,
>
> we want to access the constants in our jsp page. So we are proceeding as
> follows:
>
> < s:text field name="[EMAIL PROTECTED]@STATIC_CONSTANTS1]" />
>
> the problem with this is that we n
Hi all,
I have a table with a list of buyers. Each buyer has a checkBox that the
user can click and decide if he wants to work with them.
I'm using displayTag and this is my code:
I wonder why I don't get the *value/content* of the userCheck. Instead, I
get ${entityId} (this really very s
Chase on 28/04/08 22:14, wrote:
Anyone had issues with devMode not working fully on Windows?
I've got set and in my
Tomcat console log I'm seeing:
INFO: Overriding property struts.configuration.xml.reload - old value:
false new value: true
Windows XP
Sun JDK 1.6u6
Eclipse 3.3.2
Tomcat 6.0.1
Hello
I am using struts 1
have a Question with the hidden tag.
I have a bean named addPartnerGrantModificationForm which has a
property called dateStart
I want to pass a hidden property named dateStartHidden and give it the
value coming from dateStart method of the
addPartnerGrantModificationFo
Anyone had issues with devMode not working fully on Windows?
I've got set and in my
Tomcat console log I'm seeing:
INFO: Overriding property struts.configuration.xml.reload - old value:
false new value: true
Windows XP
Sun JDK 1.6u6
Eclipse 3.3.2
Tomcat 6.0.16
Tomcat is being controlled and
Nils-Helge Garli Hegvik on 28/04/08 17:51, wrote:
- Don't get caught up in the code coverage hysteria. Focus on writing
good tests instead of how many lines and branches of code you have
tested.
I've no idea what level of code coverage Nils holds to be hysterical, but I
wouldn't take his advic
Are you using the OpenSessionInViewFilter? If you aren't, you'll want to.
If you are doing that already, you may be trying to persist when you should
merge. If you're using Hibernate's API directly, take advantage of
Hibernate's saveOrUpdate() method, rather than the JPA merge()/persiste()
metho
Jukka Välimaa wrote:
Hi,
I have a problem--more of an annoyance, really--with struts s:url tag. It
adds parameters into the result url without my say-so and I don't really
understand on what grounds. For example, I had the following in my jsp page:
It evaluated to this:
ajaxEditContract.
HI! i had the same problem, but I have another problem:
When i push the button for save Event... throws this exception:
excepción
javax.servlet.ServletException: javax.persistence.PersistenceException:
org.hibernate.PersistentObjectException: detached entity passed to persist:
com.fdar.apress.
--- Sandy143 <[EMAIL PROTECTED]> wrote:
> Am I wrong? Please let me know ...how to use both the config files.
An included file within struts.xml is expected to be an S2 config, AFAIK.
Were there any error messages in the logs?
If you're using the S1 plugin then the docs at [1] give a decent over
Even if I don't include ... it is the same.
It doesnot invoke struts2 action class.
newton.dave wrote:
>
> You're including the S1 configuration file in the S2 config file?
>
> Dave
>
> --- Sandy143 <[EMAIL PROTECTED]> wrote:
>
>>
>> In struts.xml, I have
>>
>> ---
yes!
Am I wrong? Please let me know ...how to use both the config files.
I tried that way ...I should be wrong as I remained unsuccessful in using
that way.
I get an error :
" ERROR action.RequestProcessor - Invalid path was requested "
newton.dave wrote:
>
> You're including the S1 confi
Thank you very much for the very prompt reply.
If it possible, then How would I differentiate between struts1 action
classes and struts2 action classes (apart from ActionSupport)?
Right now, I am trying to use struts2 action in the flow of struts1 action
classes.
How do I map action classes?
I
You're including the S1 configuration file in the S2 config file?
Dave
--- Sandy143 <[EMAIL PROTECTED]> wrote:
>
> In struts.xml, I have
>
> -
>
>
> -
> yes! struts.xml is placed in WEB-INF/classes/
>
> Do yo
Yes it is!
Sandy143 wrote:
Hello,
Can't we have the existing struts1 actions and struts2 actions in the same
application?
I want to retain my existing web app which is using struts 1.2.8 and tiles
1.1
The new module in the same webapp, I would like to develop using struts2 .
Please let me kn
Hello,
Can't we have the existing struts1 actions and struts2 actions in the same
application?
I want to retain my existing web app which is using struts 1.2.8 and tiles
1.1
The new module in the same webapp, I would like to develop using struts2 .
Please let me know if this is something that
>
> > - Don't get caught up in the code coverage hysteria. Focus on writing
> > good tests instead of how many lines and branches of code you have
> > tested.
> >
>
> I've no idea what level of code coverage Nils holds to be hysterical, but I
> wouldn't take his advice to mean you should avoid cod
I can't seem to find any indication where this ever wound up from
several months ago, but I found the same issue independently after
making the (poor) assumption that a statically assigned parameter
wouldn't be overridden by a request parameter. I did some searching and
found this thread.
Li
OK, I answered my own question. Apparently I can use the
struts.custom.i18n.resources property and specify the fully-qualified
class name of our custom ResourceBundle.
-Original Message-
From: Asleson, Ryan [mailto:[EMAIL PROTECTED]
Sent: Monday, April 28, 2008 9:54 AM
To: user@struts
In struts.xml, I have
-
-
yes! struts.xml is placed in WEB-INF/classes/
Do you have any solution for it?
KonTiki wrote:
>
> Hi Sandy,
>
> How exactly did you do the struts.xml inclusion?
> (I had a similar
Nils-Helge Garli Hegvik on 28/04/08 09:02, wrote:
- Don't get caught up in the code coverage hysteria. Focus on writing
good tests instead of how many lines and branches of code you have
tested.
I've no idea what level of code coverage Nils holds to be hysterical, but I
wouldn't take his advic
hi,
we want to access the constants in our jsp page. So we are proceeding as
follows:
< s:text field name="[EMAIL PROTECTED]@STATIC_CONSTANTS1]" />
the problem with this is that we need to repeat the @com.company.Constants
always. So is there a simple way to get this working? I wanted to try ou
Hi,
I am trying to use the select tag and somehow it does not work as expected.
I am populating a Map with the desired values and using that Map object in the
select tag.
<- Start JSP ->
<- End JSP ->
<- Start Action Code ->
private Map selectKeyword = new HashMap();
pu
Hello,
I am new to Struts 2.
Our application uses a custom database-backed ResourceBundle. I see
that in Struts 2, resource bundle files can be specified using the
struts.custom.i18n.resources property.
Since we aren't sung resource bundle files, how can I specify the class
of our custom
If you want to use the value parameter, you must enclose the value
with single quotation marks in addition to double quotation marks. ,
if your value is a string
" ' value ' "
The value parameter is assuming you are passing an object. This is
associated with OGNL
What worked for you A
Hi,
In case anyone is interested
s:param tag only works(for me) when value is defined in body of tag and
not in value attribute
doesn't work
fromDate does work
Alan Nisbet wrote:
Hi,
First time poster and relative struts newbie,
I'm trying to create an ftl template that positions two
s:
:-)
This article should help:
http://www.infoq.com/news/2006/12/struts-migration
Antonio Petrelli-3 wrote:
>
> 2008/4/28 Fernandes Celinio SGCF <[EMAIL PROTECTED]>:
>> Can anyone tell me what are the main differences between Struts 1 and
>> Struts 2 ?
>
> It's faster to say what they have
http://struts.apache.org/2.x/docs/comparing-struts-1-and-2.html
Nils-H
On Mon, Apr 28, 2008 at 1:33 PM, Fernandes Celinio SGCF
<[EMAIL PROTECTED]> wrote:
> Hi,
> Can anyone tell me what are the main differences between Struts 1 and
> Struts 2 ?
> Or point me to links describing them.
>
> What
2008/4/28 Fernandes Celinio SGCF <[EMAIL PROTECTED]>:
> Can anyone tell me what are the main differences between Struts 1 and
> Struts 2 ?
It's faster to say what they have in common:
they both are MVC implementations;
they both are under the Apache umbrella.
The end :-)
Antonio
--
Hi,
Can anyone tell me what are the main differences between Struts 1 and
Struts 2 ?
Or point me to links describing them.
What was added in version 2 ?
Thanks !
===
Ce message et toutes les pieces jointes (ci-apres le "message")
sont confide
Hi Sandy,
How exactly did you do the struts.xml inclusion?
(I had a similar problem, where I found the struts.xml for struts 2 wasn't
picking the correct xml)
And by java source folder - do you mean WEB-INF/classes/ ?
Sandy143 wrote:
>
> I have to integrate struts 2 actions in my existing st
Here are some tests which seemed to have worked with really long URL's.
Such as 2K in IE and upto 100,000 characters in Firefox.
http://www.boutell.com/newfaq/misc/urllength.html
newton.dave wrote:
>
> --- ancatdubher <[EMAIL PROTECTED]> wrote:
>> (Also, the URL is limited to 256 characters
Brad A Cupit wrote:
>
> Having said that, I question using the session, since
> redirect-after-post was designed to help alleviate back and refresh
> button problems. If we store information in the session for the
> redirect, then the first GET will find that information, but subsequent
> GETs (
Hi,
I have a problem--more of an annoyance, really--with struts s:url tag. It
adds parameters into the result url without my say-so and I don't really
understand on what grounds. For example, I had the following in my jsp page:
It evaluated to this:
ajaxEditContract.html?id=-3&decorate
Yes.
In fact, the Actions are POJO's only if they do not extend the ActionSupport
class and dont get hooked into the framework statically.
An excellent (meaning precise and sweet) introduction to this migration
scenario is here by Ian Roughley:
http://www.infoq.com/news/2006/12/struts-migration
Hi,
I'm trying to capture date and time from a datetimepicker, so I want the
date object to contain both date and time. Has anyone come up with a
decent solution on how to do this?
I would have thought it was a relatively common thing to try and do!
Best Regards,
Alan.
--
-
Where are certainly a number of calls through to OGNL within the Freemarker
code, so it could still be that.
Unfortunately, I have already
in my struts.xml
I don't see the WARNings you mention in my logs.
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: 27 April
This is a really big question. Just having unit tests does not
necessarily mean that your code is any better. Writing good unit tests
is an art (for any code, not just Struts 2), and is hard to summarize
in a few lines. A good book would be a good place to start. I haven't
read too many books on th
60 matches
Mail list logo