I am migrating from struts 1.2.4 - struts 1.3.5
and I am usingt all the new sturts tags and Also.
and having a problem in my custom tld. Does it concerns with DOCTYPE in my
custom tld?
--
View this message in context:
http://www.nabble.com/custom-tld-in-Struts1.3.5-tf3271646.html#a9096434
I think I have a problem with my library versions, but I cannot pinpoint the
problem. Here's the exception when I deploy on Tomcat 6.0.2:
org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD
META-INF/tld/struts-bean.tld from JAR file
Check the uri attribute of taglib directive in index.jsp is same as
content of uri tag in struts-bean.tld.
Srinivas
-Original Message-
From: Pierre Thibaudeau [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 2:38 PM
To: Struts Users Mailing List
Subject: Unable to read
On 2/22/07, Pierre Thibaudeau [EMAIL PROTECTED] wrote:
I think I have a problem with my library versions, but I cannot pinpoint the
problem. Here's the exception when I deploy on Tomcat 6.0.2:
org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD
META-INF/tld/struts-bean.tld
where can I set the font of the dropdown list for the autocompleter?
thanks
Ron
--
View this message in context:
http://www.nabble.com/-s2--autocompleter-tf3271959.html#a9097345
Sent from the Struts - User mailing list archive at Nabble.com.
Has anybody faced this problem for multiple file-uploading earlier??
Please help.
thanks regards
Nagraj.
- Original Message -
From: Nagraj Rao
To: Struts Users Mailing List
Sent: Wednesday, February 21, 2007 5:06 PM
Subject: Fw: FileUpload problem
Also i think i'm using the right
look at struts2-showcase.war , there´re several examples about that.
Herrera
Ron Chan wrote:
where can I set the font of the dropdown list for the autocompleter?
thanks
Ron
--
View this message in context:
http://www.nabble.com/-s2--autocompleter-tf3271959.html#a9098123
Sent
I'm using the code I copied from the showcase
it doesn't set the font of the dropdown in any of the examples
i would like to set it to monospace so that I can simulate a table with 2
columns in the dropdown
thanks
Ron
Pedro Herrera wrote:
look at struts2-showcase.war , there´re several
Hi all,
How can I change the default extension provided in struts 1.2.9 from .do
to .go or .whatever ?
Cheers
This e-mail (and any attachment) is intended only for the attention of the
addressee(s). Its unauthorised use, disclosure, storage or copying is not
permitted. If you are not the
just change the mapping in your web.xml?
regards
Leon
On 2/22/07, Bolutiwi, Olu [EMAIL PROTECTED] wrote:
Hi all,
How can I change the default extension provided in struts 1.2.9 from .do
to .go or .whatever ?
Cheers
This e-mail (and any attachment) is intended only for the attention of the
In web.xml:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
On 2/22/07, Leon Rosenberg [EMAIL PROTECTED] wrote:
just change the mapping in your web.xml?
regards
Leon
On 2/22/07, Bolutiwi, Olu [EMAIL PROTECTED] wrote:
Hi all,
How
Cheers, thought about that, but came across someone using a filter class
to perform the same thing so I got confused.
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: 22 February 2007 12:18
To: Struts Users Mailing List
Subject: Re: How to change from .do to
hi,
hi I have a big problem. I want to make a form in my
JSP with many input fields which should be sorted by groups. in my
action i've
saved many Objects to which i can acess with data transfer objects in a
LinkedList which should represent one group. the number
of
existing groups is unknown.
Hi all,
I was wondering how I could possibly solve this: I have an action in which
I construct quite a complex data structure. From that data structure I display
some tables and create some charts. Now, I have got this one big-ass java
class - extending ActionSupport, in which I do all the stuff -
Hi
I'm a struts2 newbie I've just got the hello world app running. I'm
now trying to convert a simple servlet app to struts2. In the original
servlet I use a singleton factory class which I initialise/setup in
the servlets init() method and use it in the servlet service() method.
What is the
I solved the problem with this method:
public static String euroAdjust(String value)
{
if (value != null)
{
value = value.replaceAll(\u0080,\u20AC);
}
return value;
}
the param of the request is parsed with euroAdjust() and the right € euro
symbol is sent to db and saved.
I looked for something similar a while back and didn't find anything simple.
There are servlet context listeners (but that isn't really struts-2-ish).
What I did (and I know it's inelegant) is to create a static initializer
block. One main difference to remember between servlets and actions is
I could be wrong, but perhaps you should use the Spring IoC container for this.
I can't point you to the correct documentation off hand, but I believe that
this is the way to maintain a resource such as what you had previoulsy done
with the Servlet's init method and the factory class.
struts2-core-2.0.5.jar
xwork-2.0.0.jar
S2-tiles-plugin-2.0.5
tiles-core-2.0-20070130.184344-3.jar
tiles-api-2.0-20070130.184344-3.jar
I have an org.apache.tiles.TilesException from BasicTilesContainer.java.
Does anyone know if the following configuration is incorrect? Thanks!
1) web.xml
On 2/22/07, Wesley Wannemacher [EMAIL PROTECTED] wrote:
I looked for something similar a while back and didn't find anything
simple.
There are servlet context listeners (but that isn't really struts-2-ish).
I would strongly disagree that ServletContextListeners are not really
struts-2-ish.
I see a couple of options.
The first would be to create an interceptor for your singleton factory.
In the init of the interceptor you would initialize this factory and
then provide some mechanism to inject that factory into your actions.
(possibly via a FactoryAware interface)
Another
I have found a solution to this. The good news is it is a simple
pass-through to the dojo contentpane.
changing this:
s:div theme=ajax href=PersonByAge_input.action executeScripts=true /
to this:
div dojoType=ContentPane href=s:url action=PersonByAge_input
/ scriptSeparation=false
On 2/22/07, Joe Germuska [EMAIL PROTECTED] wrote:
This page is the place to start on using the Spring plugin with Struts 2:
http://struts.apache.org/2.x/docs/spring-plugin.html
In short, Spring can instantiate any beans you want, either as singletons
or as prototypes (that is, a new bean is
Can you log a Jira ticket with the request?
thanks
musachy
On 2/22/07, C. Adams [EMAIL PROTECTED] wrote:
I have found a solution to this. The good news is it is a simple
pass-through to the dojo contentpane.
changing this:
s:div theme=ajax href=PersonByAge_input.action executeScripts=true
/
I guess you're right, it's not that they aren't struts-2-ish... But, one
significant advantage of a static initializer block vs. servlet context
listeners is easier unit testing. I found it much easier to write the unit
tests for my actions if the JVM is in charge of initialization duties. I
don't
Do you have a link to some docs on how to use annotations to specify
validation rules? I haven't seen anything about that yet.
I am attempting to do the same thing and it definitely isn't working
properly. If you simply use a validator for the entire Action defined
in
Allen Gilliland wrote:
Do you have a link to some docs on how to use annotations to specify
validation rules? I haven't seen anything about that yet.
ack, never mind, i see the link now :/
http://struts.apache.org/2.x/docs/validation-annotation.html
I am attempting to do the same thing
On 2/22/07, Wesley Wannemacher [EMAIL PROTECTED] wrote:
I don't know much about Spring and shied away from servlet context
listeners
because I didn't want the external dependencies. I'm not suggesting that
my
way is the best way, but if you have a requirement to write unit tests for
all of
I tried out using the validation annotations to only validate a specific
action method but the result is the same, it just does the validation on
all methods :/
This is what I tried ...
@Validation()
public class MyAction extends ActionSupport {
... yada yada ...
public String execute()
I think I have a problem with my library versions, but I cannot pinpoint the
problem. Here's the exception when I deploy on Tomcat 6.0.2:
org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD
META-INF/tld/struts-bean.tld from JAR file
Allen Gilliland wrote:
I tried out using the validation annotations to only validate a specific
action method but the result is the same, it just does the validation on
all methods :/
I use the ActionName-methodName-validation.xml technique.
Just because the ActionName-validation.xml file is
Does anyone have a use case for the params field in the Result
annotation? Currently it's defined in the annotation as:
String[] params() default {};
which I'm not sure makes sense as a name and value was passed in the XML
configuration.
/Ian
Dale Newfield wrote:
Allen Gilliland wrote:
I tried out using the validation annotations to only validate a
specific action method but the result is the same, it just does the
validation on all methods :/
I use the ActionName-methodName-validation.xml technique.
Would you mind sharing a
I promised that I'd report back with the eventual solution, so here
goes.
There were quite a few problems that I ended up finding along the way,
but the most important one was that I was trying to feed form element
values as arguments to a JS function, and the form hadn't been submitted
yet at
I removed jsp-api.jar from WEB-INF/lib. (It is still in the build
path, though.)
Problem solved! (Though I don't understand why!)
2007/2/22, Pierre Thibaudeau [EMAIL PROTECTED]:
I think I have a problem with my library versions, but I cannot pinpoint the
problem. Here's the exception
I am trying to develop some classes used for XML parsing or generating
purposes. But I think it is difficult to abstract to write a common
utility since each XML document is different, and to parse that
document, we should have a different parser. So the question is what
utility class will look
Hi Zhang,
I am not sure if i got your question correct. But, if you want some
already existing XML parsers then DOM and SAX Parsers are the ones which
are used extensively. Again, i might be missing more efficient ones.
I know that DOM and SAX but what I am looking for is some sort of
wrapper or single point class so that all team members will use my class
instead of calling DOM or SAX directly.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 4:47
I think there was a thread recently about a similar issue. That poster's
problem turned out to be a missing ActionContextCleanUp filter. Do you
have that configured? What order are your filters mapped in?
L.
Nagraj Rao wrote:
Has anybody faced this problem for multiple file-uploading
Allen Gilliland wrote:
Would you mind sharing a couple details about how you have it
configured, because if it's working for you then I suppose I must be
doing something wrong? I am using Struts 2.0.5.
Sure. I'll just mirror your snippets with my own. I am also using 2.0.5.
What I have
I think what you have to do is create your own generic XML utility class
that is specific to your XML schema, that uses dom4j, or digester or
XMLBeans as XML engine. You will have to create your a commons schema
base for all your developers, that they will have to follow.
Andrew Pliszka
What your suggesting is close to what I am trying to do. Do you have
some sample code or internet link discussing this? Another interesting
question -- when you talk about the schema --, is there a way to define
generic schema?
-Original Message-
From: Andrew Pliszka [mailto:[EMAIL
This is so odd, yet I'm surprised no one's come across this.
This is S2 built off the 2_0_X branch ( no modifications, straight clean
build ), running under Java 1.5 in both resin and tomcat.
Given a snippet like so :
s:action name=listAllAuthors namespace=/general
id=authorsAction/s:action
Struts 1.2.9
I have 2 session scoped form beans which share a getter method. I would
like to re-use a particular jsp in this case as well. However, what I'm
finding is that the first session scoped form encountered will be the
one the jsp gets its values from. This may well not be the form
When I talk about generic schema I am mean domain specific schema, for
example if you are working on web phot gallery you will have:
?xml ...
...
images
image
thumbnailUrl/thumbnail01.jpg/thumbnailUrl
imageUrl/thumbnail01.jpg/imageUrl
/image
..
/images
Since this is web gallery
Andrew Pliszka wrote:
When I talk about generic schema I am mean domain specific schema
How is that different from a DTD?
Pretty much any xml format that you intend to use heavily should be well
defined enough for you to generate one, and then you can easily have the
parsers validate
I agree with you Dale. DTD or XSD files enforce schema once you define
it, based on your problem domain. I think Zhnag's wants to create
generic Java classes to parse XML files. He is trying to create XML
library or XmlUtils class for his project, so all developers can us it.
Andrew Pliszka
Isn't this kind of off topic?
Oh well . . . I understand your writing a higher level API class for you
developers to use. So, your not exactly looking for suggestions about the XML
api you will use inside your utility. But in the off topic spirit, I'll just go
ahead and recommend a
Dale Newfield wrote:
Allen Gilliland wrote:
Would you mind sharing a couple details about how you have it
configured, because if it's working for you then I suppose I must be
doing something wrong? I am using Struts 2.0.5.
Sure. I'll just mirror your snippets with my own. I am also
JAXB or XPath.
AFAICT all you're trying to do is bind XML to Java. I
don't know what a generic schema would be; that
doesn't really make any sense.
--- Zhang, Larry (L.) [EMAIL PROTECTED] wrote:
What your suggesting is close to what I am trying to
do. Do you have
some sample code or internet
Does anyone know of any article/document that will allow me to profile a
Struts application?
I am still using Struts 1.1 with Eclipse 3.1 as IDE. I tried TPTP but
couldn't figure out how to use it for a web app.
Thanks,
Rahul
Hi,
i want to use LazyActionForm in my program. Kindly provide me with complete
sample code like how to use it.
Thanks and Regards,
Vikash Manoranjan
Senior Software Engineer
Infotech Enterprises Limited
B-37, Sector-1,
Noida - 201301
Uttar Pradesh, India
Migrating from sruts 1.2.4 to struts 1.3.5
according to http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
StrutsUpgradeNotes12to13
in order for me to use the tiles I must set the chainConfig in web.xml.
my questions are:
1. Even If I don`t set the chainConfig in web.xml my application
There are already so many tools to automate this. With these tools you
don't have to write ugly parsing code. Search for xml beans, jaxb,
Castor. They all require schema to work on and then it will generate
some stubs which are specific to your schema. These classes will be just
like javabeans
54 matches
Mail list logo