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
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--more of
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
i am using tiles 1.2 with struts 1.3.5
What? Why Tiles 1.2 with Struts 1.3.5?
Tiles 1.x and Struts 1.x must have the same version number.
Antonio
-
To unsubscribe,
2008/4/29 Musachy Barroso [EMAIL PROTECTED]:
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
i have taken the tld version of struts-tiles which i have taken from
struts-blank.
Antonio Petrelli-3 wrote:
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
i am using tiles 1.2 with struts 1.3.5
What? Why Tiles 1.2 with Struts 1.3.5?
Tiles 1.x and Struts 1.x must have the
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
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
no i don want to show an error page made with tiles definition wat i need
is an error page say an simple jsp stating there is an application error
error-page
exception-typejava.lang.Exception/exception-type
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
no i don want to show an error page made with tiles definition wat i need
is an error page say an simple jsp stating there is an application error
error-page
exception-typejava.lang.Exception/exception-type
Hello and good day;
I'm trying to migrate an application that is made in Struts and hosted
Tomcat/4.1.31 and works well.
Now I want to operate in a Tomcat 5 or 6 but when I try to make the migration
are errors such as:
- This error only appears in JSP with forms, whether it helps.
Hello and good day;
I'm trying to migrate an application that is made in Struts and hosted
Tomcat/4.1.31 and works well.
Now I want to operate in a Tomcat 5 or 6 but when I try to make the migration
are errors such as:
- This error only appears in JSP with forms, whether it helps.
Hi,
I have the same problem once i place the
struts2-jfreechart-plugin-2.0.11.jar I have got the deployment error like
this
Apr 29, 2008 2:13:30 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
Class: gnu.xml.dom.DomElement
File:
error jsp or the tiles jsps...with the layout.?
Antonio Petrelli-3 wrote:
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
no i don want to show an error page made with tiles definition wat i
need
is an error page say an simple jsp stating there is an application error
Clearly stating you
My application uses tiles for my view purpose in the normal flow if
every thing goes fine
if some exception raises @ jsp level
i will show a clean error jsp stating sorry for the trouble u have
been met with an application error
. (while rendering into
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
Clearly stating you
My application uses tiles for my view purpose in the normal flow if
every thing goes fine
if some exception raises @ jsp level
i will show a clean error jsp stating sorry for the trouble u have
been met
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
error jsp or the tiles jsps...with the layout.?
Your /jsp/sample/error.jsp obviously.
Wait a moment: are you using Tiles tags in that JSP files? But you
told that you don't want to use Tiles.
I just don't get your point.
Antonio
its my /jsp/sample/error.jsp
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
%@ page isErrorPage=true%
%@ page import=java.io.PrintWriter,java.io.StringWriter%
html xml:lang=en xmlns=http://www.w3.org/1999/xhtml;
head
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
when there is an error
in a jsp tile say a body part or a left part the error page is replaced @
that particular tile
Oh finally I think that I understood :-)
You are saying that, when you have an error occurring in a tile, you
see the error page
finally u got it man.. its wat im sayin.. im using oracle app server 10 g. as
production server .locally im using jdevloper with oc4j embedded
server
Antonio Petrelli-3 wrote:
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
when there is an error
in a jsp tile say a body part or a left
I did something like src=%=request.getContextPath()%/images/header.gif
On Tue, Apr 29, 2008 at 12:51 AM, Yellek [EMAIL PROTECTED] wrote:
I am trying to write an image button of the form:
s:submit type=image src=context-root/images/search1.gif
name=search/
where context-root is the
2008/4/29 balaji.m.cs [EMAIL PROTECTED]:
finally u got it man.. its wat im sayin.. im using oracle app server 10 g. as
production server .locally im using jdevloper with oc4j embedded
server
I think that this problem cannot be solved. This bug should be
visible even with simple
Does anyone know if it's possible to inject values into struts.xml
(something like PropertyConfigurer does in Spring)?
Thanks!
--
Alberto A. Flores
http://www.linkedin.com/in/aflores
-
To unsubscribe, e-mail: [EMAIL
No, that's not good :)
thanks Antonio
musachy
On Tue, Apr 29, 2008 at 4:00 AM, Antonio Petrelli
[EMAIL PROTECTED] wrote:
2008/4/29 Musachy Barroso [EMAIL PROTECTED]:
Does anyone know how to use nested tags in velocity, like building a
url? I have tried many, many combinations of the
--- Sandy143 [EMAIL PROTECTED] wrote:
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
Getting the context path in jsp is something struts doesn't really
support--something I've had trouble with many times. One way to get around
the problem is scriptlet like Jim showed you. Recently, we used url tag for
the same purpose:
s:url id=saveImg value=/images/save.gif /
s:submit
Hi,
I'm using struts ajax tag tabbedPanel inside a form. I have the following
problem: the tabbedpanel renders outside the form in generated html, even if
the tags are placed inside the form element in jsp, and thus the tabbedpanel
can't be used to submit data. Is there a way around this?
With this we will not have ... struts1 config file right
struts-config.xml would be completely modified to struts.xml. Am I on the
right path?
Thanks,
newton.dave wrote:
--- Sandy143 [EMAIL PROTECTED] wrote:
It is a single application.
when trying to access struts2 action ... it
--- Sandy143 [EMAIL PROTECTED] wrote:
With this we will not have ... struts1 config file right
struts-config.xml would be completely modified to struts.xml. Am I on the
right path?
Are you trying to use the plugin, or are you trying to run in parallel?
The S1 plugin wraps S1 actions
It sounds like you are using Struts 2.0.11+ and if this is the case then EL
is not allowed in Struts tags.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: xianwinwin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Mon, 28
If you're not using the plugin, then you configure S1 and S2 completely
separately from each other.
Can I do this if I want to use both S1 and S2 in the same web app (single
web.xml)?
newton.dave wrote:
--- Sandy143 [EMAIL PROTECTED] wrote:
With this we will not have ... struts1 config
Jukka Välimaa wrote:
Getting the context path in jsp is something struts doesn't really
support--something I've had trouble with many times. One way to get around
the problem is scriptlet like Jim showed you. Recently, we used url tag for
the same purpose:
s:url id=saveImg
Hi there,
On Tue, Apr 29, 2008 at 3:46 AM, crappycrumpet [EMAIL PROTECTED] wrote:
Hi,
I have a problem where I have a page (let's call it a.jsp) which calls an
action using s:action (let's call it actionB in namepaceB) which redirects
to actionA in namespaceA, using redirect-action,
I'm not sure what you mean by that; setting it to 'none' means it will
not add any parameters from the current request to the generated URL.
You can explicitly add any parameters you want and obviously those will
go into the URL, it just wont *copy* any parameters from the current
request
Hello,
I'm new to Struts 2.
Assume that I'm on a JSP that has been rendered with a Struts2 Action.
Somehow I want to access the Action and its properties via a JSP tag,
something like this:
c:out value=${action.myValue} /
What is the correct way to do this? Is the Struts 2 Action placed
--- Asleson, Ryan [EMAIL PROTECTED] wrote:
Assume that I'm on a JSP that has been rendered with a Struts2 Action.
Somehow I want to access the Action and its properties via a JSP tag,
something like this:
c:out value=${action.myValue} /
What is the correct way to do this? Is the Struts
OK, so by just using:
${myValue}
The myValue property of the Action class will be accessed? I suppose
this works as long as there aren't other myName properties in the
other scopes, right?
I take it that Struts2 essentially exposes the action as another scope
to JSP EL?
Thank you!
--- Asleson, Ryan [EMAIL PROTECTED] wrote:
OK, so by just using:
${myValue}
The myValue property of the Action class will be accessed? I suppose
this works as long as there aren't other myName properties in the
other scopes, right?
The request wrapper searches the JSP contexts first;
What is the bean under name beanSerie? Does it have a getCodigo()
method? Is it public? Is the class public? Without more info it's
impossible to diagnose definitively.
L.
Christian Villamizar wrote:
Hello and good day;
I'm trying to migrate an application that is made in Struts and hosted
Alberto A. Flores wrote:
Does anyone know if it's possible to inject values into struts.xml
(something like PropertyConfigurer does in Spring)?
I couldn't find a PropertyConfigurer class in Spring; perhaps you meant
PropertyPlaceholderConfigurer or PropertyOverrideConfigurer? In any
case,
Yes. If you don't want to migrate any of your existing Struts 1 JSPs,
you can just add Struts 2 to the application, leaving everything else as
it is. Later, you can add the Struts 1 plugin to help with migrating
existing (Struts 1) views to Struts 2.
L.
Sandy143 wrote:
If you're not using
- Start JSP -
s:select value=selectKeyword theme=simple key=selectKeyword
id=selectKeyword name=selectKeyword list=selectKeyword
multiple=true/s:select
- End JSP -
You've specified 'selectKeyword' for every attribute... Each of those
attributes has a different meaning, so
--- Laurie Harper [EMAIL PROTECTED] wrote:
Alberto A. Flores wrote:
Does anyone know if it's possible to inject values into struts.xml
(something like PropertyConfigurer does in Spring)?
I couldn't find a PropertyConfigurer class in Spring; perhaps you meant
I have a problem that can be stripped down to the following: a jsp with a
form:
s:form action=batch
s:checkbox name=formReturned theme=simple fieldValue=0
value=false/s:checkbox
s:checkbox name=formReturned theme=simple fieldValue=1
value=false/s:checkbox
Have you tried fieldValue=%{#attr.current.entityId}?
If you're using the displayTag, you could also have a check at an issue I
have:
http://www.nabble.com/No-result-defined-for-action-and-result-input-with-checkbox-to16966533.html
Thanks a lot.
On 4/28/08, Wes Wannemacher [EMAIL PROTECTED] wrote:
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
Thanks for the replies and info.
nagrik
On 4/28/08, Wes Wannemacher [EMAIL PROTECTED] wrote:
Vinay,
You are talking about two different things... First off, in the java
source file, the statement 'package tutorial;' relates to the following
I've run into a situation that I would like to get others opinions on.
The problem is with handling a form. Here is the scenario: I have a form
called form.jsp, this form needs data from the database so it has an
associated FormAction.java class. The struts.xml file looks like this:
action
Hi,
I've got a s:textfield where I show an double value. But I wanted to
change the value to an currency (EUR).
But I only get the standard 100.00 instead of 100,00. When I only wants
to publish it in a website I use
s:text name=format.currency
s:param name=value
Hi
I am quite new to Struts 2 and have problems with StrutsTypeConverter I have
created my custom converter but i can see it is not fired when my
Action-conversion.properites contains more than 2 level property expression.
Example:
datePeriodFilterParameters.dateTo=MyConverter (works as
Hi,
Today I've been presenting Struts2 to member of Warsaw JUG and I got such
question:
it is possible to exclude interceptor for given action?
As I know no, but maybe I'm wrong. The only way is to define interceptor for
each action and omit for given one.
Regards
--
Lukasz
As soon as you define interceptors at the action level you are excluding all
other interceptors *except* the ones you specify for the action, so in this
way you can exclude interceptors on a per action basis. You could also roll
your own packages with the interceptors you want and exclude them
Hi,
This page may help you:
http://www.roseindia.net/struts/struts2/struts-2-format.shtml
Regards.
On 4/29/08, Marc Ende [EMAIL PROTECTED] wrote:
Hi,
I've got a s:textfield where I show an double value. But I wanted to
change the value to an currency (EUR).
But I only get the standard
This is the another page:
http://struts.apache.org/2.0.11/docs/how-to-format-dates-and-numbers.html
On 4/30/08, Okan Özeren [EMAIL PROTECTED] wrote:
Hi,
This page may help you:
http://www.roseindia.net/struts/struts2/struts-2-format.shtml
Regards.
Does the following work -
s:set name=C value=@[EMAIL PROTECTED] /
s:property value=#C /
Also, is com.company.Constants.STATIC_CONSTANTS1 a String?
-Wes
On Tue, 2008-04-29 at 10:57 +0530, Ravichandra C wrote:
Hi,
This doesn't seem to be working. My main problem is that why is it not
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello struts freaks,
i would like to implement a rights management for my application.
Therefore I need to retrieve a list of actions configured in struts.xml.
Does anyone of you have an idea how to get this information ?
I can get a list of
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello struts freaks,
i have quite an interesting problem again. In my struts.xml i have
defined a method to call for my action (method=save)
Every time execute() is called in my action class, the method validate()
is executed before.
The same
Volker Karlmeier wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello struts freaks,
i have quite an interesting problem again. In my struts.xml i have
defined a method to call for my action (method=save)
Every time execute() is called in my action class, the method validate()
is
thank you Wild Oscar,
this is a good starting point for me.
what is the attr and current here?
%{#attr.current.entityId}?
I have this on the action:
private String[] userCheck;
private Long[] myid; which is a list of Longs {23,62,67,88,125}
those reflects all the entitieIDs
The list is
They are attributes of the displaytag.
current is the id you give to each line in the table:
display:table class=lista name=list pagesize=10 id=current
Check the displaytag's documentation for more info.
xianwinwin wrote:
thank you Wild Oscar,
this is a good starting point for me.
what
hi all
i just get an idea to make one of my class a POJO will be recognized
globally inside S2 environment
so i get the values from this POJO, such as username, password all across
application
anyone can help, what is the best way to implement this?
F
Hi Ralf,
Ralf Fischer-2 wrote:
Please tell us exactly what you want to do, as there might be a
simpler solution to your problem.
Okay I don't have hibernate and this is what I'm sort of doing. Let's say
that I have a table of staffs, offices and things_assignment (which links
staffs and
Wow -- thanks for making that point. I think I had known that but hadn't
really seen it or thought about it. Excellent stuff, thank you.
jk
On Tue, Apr 29, 2008 at 5:12 PM, Randy Burgess [EMAIL PROTECTED] wrote:
As soon as you define interceptors at the action level you are excluding
all
Is this something you want to have accessible from your view pages, or just
from your action classes? For the most part you can deal with this in the
same way you'd deal with any other singleton or singleton-oid. Use the good
old static singleton pattern per Josh Bloch et al, or (preferably) use
On Wed, Apr 30, 2008 at 7:44 AM, Jim Kiley [EMAIL PROTECTED] wrote:
Is this something you want to have accessible from your view pages, or
just
from your action classes? For the most part you can deal with this in the
same way you'd deal with any other singleton or singleton-oid. Use the
Do you want one static copy of your POJO available everywhere, or do you
need a unique copy of your POJO for each request or session?
-Wes
On Tue, 2008-04-29 at 20:44 -0400, Jim Kiley wrote:
Is this something you want to have accessible from your view pages, or just
from your action classes?
On Wed, Apr 30, 2008 at 7:51 AM, Wes Wannemacher [EMAIL PROTECTED] wrote:
Do you want one static copy of your POJO available everywhere, or do you
need a unique copy of your POJO for each request or session?
i want this pojo available in my context (only inside current .war).
i have a
On Wed, 2008-04-30 at 08:01 +0700, Frans Thamura wrote:
On Wed, Apr 30, 2008 at 7:51 AM, Wes Wannemacher [EMAIL PROTECTED] wrote:
Do you want one static copy of your POJO available everywhere, or do you
need a unique copy of your POJO for each request or session?
i want this pojo
Jakub Milkiewicz wrote:
Hi
I am quite new to Struts 2 and have problems with StrutsTypeConverter I have
created my custom converter but i can see it is not fired when my
Action-conversion.properites contains more than 2 level property expression.
Example:
hi,
Does the following work -
s:set name=C value=@[EMAIL PROTECTED] /
s:property value=#C /
Yes it does. But my requirement is more like i would import the class into
some bean/ variable (C) so that i can say C.staticconstant1 etc... but by
the approach mentioned above, i should repeat the
hi,
When we had the data structure as: HashMapString,String the following jsp
fragment was able to populate it:
s:textfield name=map['key'] /
but the same thing is not working with HashMapString, ArrayListStirng
when we tried:
s:textfield name=mapOfList['key'].
We also tried instantiating the
Hi,
the examples are for output formatting in s:text but this doesn't work
for s:textfield.
This...
s:textfield name=text.message
s:param value=userName/
/s:textfield
doesn't work... :(
Regards
Marc
Okan Özeren schrieb:
This is the another page:
Did you try to import your Constants class?
%@ page import=com.company.Constants %
s:property value=@[EMAIL PROTECTED] /
As far as say C.staticconstant1, all I can really say is that the @
symbol is how you access static vars/methods in OGNL.
Another choice might be to use regular ol' EL
Maybe try:
s:text name=format.currency id=model.currency
s:param name=value value=model.price /
/s:text
s:textfield name=text.message value=%{model.currency}/
(*Chris*)
On Tue, Apr 29, 2008 at 10:27 PM, Marc Ende [EMAIL PROTECTED] wrote:
Hi,
Assuming you have appropriate getters and setters on your action for the
HashMap of ArrayLists, you should be able to set them using indexing
like this -
s:textfield name=mapOfList.key[i] /
or
s:textfield name=mapOfList['key'][i] /
(where i is an integer representing the index where you want
73 matches
Mail list logo