2007/7/19, Arunkumar Balasubramanian <[EMAIL PROTECTED]>:
If you could get me a link which has the sample for this steps, it would
assist me.
The reason because I did not give a link is that such documentation is
present only for Tiles 2, while it seems that you are using Struts-Tiles 1.
An
Yes. I can confirm that.
Also, in the move from Struts 2.0.6 to 2.0.8, I had to
change my tiles.xml put tags to put-attribute, like this:
before:
after:
value="/WEB-INF/tiles/content/userList.jsp" />
also, make sure you have all the tile
Hi,
Have you looked at the struts-config.xml DTD file, i think it has the
descriptions of the elements in struts-config.
Thanks,
Nuwan
- Original Message -
From: "jiangfan shi" <[EMAIL PROTECTED]>
To:
Sent: Thursday, July 19, 2007 4:03 AM
Subject: struts-conf.xml Quesitons.
Try Decorators.
You will have to write java code and add the code as a decorator to
your table.
Just look up the documentation in Dispyay tags.
Regards,
Thomas
Sachin wrote:
Here is a clear pic of my doubt.
* header row*
* columns *
group-total row <--- *how to get thi
Hi,
Add a property file to your classpath, read it from your java code. this is
what i got from google :)
http://www.exampledepot.com/egs/java.util/Props.html
http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html?page=1
Thanks,
Nuwan
- Original Message -
From
Hi,
Try xdoclets
Thanks,
Nuwan
- Original Message -
From: "Antoine Solomon" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, July 18, 2007 10:54 PM
Subject: automating the generating of web.xml and struts-config.xml
Hello all,
I just wanted to know if there are any technologies used fo
Hi all,
I am new to struts, so please forgive me if this question has an obvious
answer.
I want to be able to define some global settings for my application, such
as:
- the path to the applications temporary directory;
- the path to a static (input) data directory;
- the location/name of a db.
Hi, All,
I wonder if anyone could give me some information (any web page, book or
reference doc etc ) about the relations over the elements in the
struts-config.xml. As to the relationship, I mean some dependency or
constraints. For example, data-sources refers to some data source. But I
could no
Thanks much for your quick response. If you could get me a link which has the
sample for this steps, it would assist me. Being new to tiles, it will be of
great help to me. Hope I am not disturbing too much. Thanks once again in
advance.
_
Thanks much for your quick response.
If you could get me a link which has the sample for this steps, it would assist
me. Being new to tiles, it will be of great help to me. Hope I am not
disturbing too much.
Thanks once again in advance.
Regards,
Arun
> Date: Wed, 18 Jul 2007 09:0
Wow,it works!
I now get it work when tried 2 times to find that "login_violation" the
actionName you defined in the global result is a style of wildcard you map
your action.
yup?
Thanks a lot!
Appreciation is given to Nuwan,too.He showed me a way to do my own
interceptors.
On 7/18/07, Arnaud Cog
Ah beautiful, I like the "in" better (the types are enums), maybe I should
finally look at the OGNL documentation :)
musachy
On 7/18/07, cilquirm <[EMAIL PROTECTED]> wrote:
That's a mouthful.
OGNL does have an 'in' operator
customer.creditCards[0].type in [ 'AMERICAN_EXPRESS', 'VISA', 'DIS
Hello all,
I just wanted to know if there are any technologies used for automatically
creating the web.xml and struts-config.xml files?
Thanks in advanced,
--
Antoine W. Solomon Jr.
That's a mouthful.
OGNL does have an 'in' operator
customer.creditCards[0].type in [ 'AMERICAN_EXPRESS', 'VISA', 'DISCOVER' ,
'MASTERCARD']
note that you don't have to do toString() if type is already a string ;
ognl's equality operator ( == ) already uses equals.
If it's not of type String, y
I think you have to 'know' somebody to get it incubated. i.e. Just because
you're offering, doesn't mean they'll bite. (And I don't mean that in a bad
way, either. )
Check out the incubation docs for more info :
http://incubator.apache.org/incubation/Incubation_Policy.html
Barring that, yo
IIRC the Tiles tags and possibly the DTD has changed;
I had to update at least my tiles tags between 2.0.6
-> 2.0.8.
d.
--- "Jiang, Jane (NIH/NCI) [C]" <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> Has any one got tiles plug-in to work with tiles
> version 2.0.3 or 2.0.4?
>
> We have developed a St
Antonio Petrelli wrote:
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
>
> 2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
> >
> > If I telnet to the tomcat server on port 8080 I don't get the
> > contentType header for the tiles pages.
>
>
>
>
Ding!
musachy
On 7/18/07, Eric Rank <[EMAIL PROTECTED]> wrote:
At risk of pointing out the obvious, I notice is that your expression
validates when:
1. reason is "friend"
2. and when friendEmail is null
I'm guessing that you want it to successfully validate when
1. reason equals "friend"
2.
...
//more elegant :)
On 7/18/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
...
musachy
On 7/18/07, Neil Aggarwal < [EMAIL PROTECTED]> wrote:
>
> Hello:
>
> Is there a struts tag to check if a collection is not null
> and has at least one element?
>
> I want to check a collection before
...
musachy
On 7/18/07, Neil Aggarwal <[EMAIL PROTECTED]> wrote:
Hello:
Is there a struts tag to check if a collection is not null
and has at least one element?
I want to check a collection before printing the table
containing the elements using an tag.
Thanks,
Neil
--
Neil Agg
I think IFrame is used by default when IE is detected
musachy
On 7/18/07, Pierre Goupil <[EMAIL PROTECTED]> wrote:
I'm not sure but maybe its due to a bug in IE. See :
http://developer.yahoo.com/yui/autocomplete/
and look for the "use iframe" parameter. Which give this :
myAutoComp.useIFram
At risk of pointing out the obvious, I notice is that your expression
validates when:
1. reason is "friend"
2. and when friendEmail is null
I'm guessing that you want it to successfully validate when
1. reason equals "friend"
2. And when friendEmail IS NOT null
Could that be the problem?
I
Session A Mwamufiya wrote:
Hi All,
Has anyone come across an struts 2 example that uses a tree viewer to represent
categories and questions, like what eclipse has for its online help webpage.
I'd like to copy a similar example for a project I'm working on. Any help
would be much appreciated
Looks ok, here is one that I have:
'AMERICAN_EXPRESS'.equals(customer.creditCards
[0].type.toString())
|| 'VISA'.equals(customer.creditCards[0].type.toString())
|| 'DISCOVER'.equals(customer.creditCards
[0].type.toString())
Hello:
Is there a struts tag to check if a collection is not null
and has at least one element?
I want to check a collection before printing the table
containing the elements using an tag.
Thanks,
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email
We had the same concern, so by putting this in the top of our struts.xml:
It makes all the actions look like regular old .html requests.
(*Chris*)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I'm not sure but maybe its due to a bug in IE. See :
http://developer.yahoo.com/yui/autocomplete/
and look for the "use iframe" parameter. Which give this :
myAutoComp.useIFrame = true;
My 2 cents,
Pierre Goupil
2007/7/18, Scott Nesbitt <[EMAIL PROTECTED]>:
Using the YUI plugin with the
Hi,
I am a struts newbie and am exploring struts2 for a website rewrite.
I don't want the user to know whether or not they are accessing an
action - and I don't want to expose the .action suffix in the url.
examples:
http://www.junitfactory.com/demo
- needs to go via DemoAction to /demo/
That didn't work - how about this: http://rafb.net/p/cmnEKB18.html
mraible wrote:
>
> Looks like Nabble was escaping my HTML - let's try again with HTML Format
> checked:
>
>
>
> true
> Reason is required.
>
>
>
>
>
> frien
Looks like Nabble was escaping my HTML - let's try again with HTML Format
checked:
true
Reason is required.
friendEmail
reason.equals('friend') and friendEmail == null
Please provide your friend's email
Hi Matt,
I've used the fieldexpression validator with some success. I use the
element. I would have written the validator
as follows:
Please provide your friend's email
It's unrelated to your probblem directly, but I DO wish that the
validation framework would a
I am having the exact same problem, except I am also using Freemarker along
with Sitemesh and Struts 2. I tried using the style tags
as well as the OGNL style <@decorator.head/> tags. Viewing the source of the
rendered page on the browser doesn't show the tags themselves (for the OGNL
styled ones
I'm not a place where I can reference, but I seem to remember having to add
chain config to the web.xml.
On 7/18/07, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote:
Hi all,
Has any one got tiles plug-in to work with tiles version 2.0.3 or 2.0.4?
We have developed a Struts 2 applicati
I've read this like 10 times just to make sure I'm not missing something,
but:
friendEmail
reason.equals('friend') and friendEmail == null
Please provide your friend's email
why is "friendEmail" in the expression?(should be " reason.equals('friend')
and friendEmail == null
Hi all,
Has any one got tiles plug-in to work with tiles version 2.0.3 or 2.0.4?
We have developed a Struts 2 application that uses tiles plug in 2.0.6
with tiles-api-2.0-20070207.130156-4.jar and
tiles-core-2.0-20070207.130156-4.jar. When I tried to replace these two
jar files with the three 2.
run it by yourself and make a lot of money like the guy who owns
plentyoffish.com
On 7/18/07, Strut Date <[EMAIL PROTECTED]> wrote:
Hi
I have been writing a Struts based dating application for the last 2 years,
and would like to explore the possibility of contributing this to the Apache SW
Hi
I have been writing a Struts based dating application for the last 2 years,
and would like to explore the possibility of contributing this to the Apache SW
Foundation. I wondered whether this would be possible, and if so, what would
be involved / who I should contact.
Functiona
2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
Are you going to create a new jira issue or reopen an old one so
that I can watch it?
The old one, WW-1724, is still open, due to a non-completion of the task:
https://issues.apache.org/struts/browse/WW-1724
so you can watch it :-)
Antonio
Hi,
Has anyone used a treeviewer in a struts 2 project? I'm looking to generate a
tree view from a database of categories and questions, and have the tree update
when the database is changed from a web page.
Thanks,
Session
Hi
Im trying to make a loading jsp for a another jsp which takes considerable
time pulling out huge amount of data.
Can some body help me in making a loading screen which is displayed(perhaps
with hepl of javascript) while the page is loading a redirects to the actual
page once it has got the re
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
>
> 2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
> >
> > If I telnet to the tomcat server on port 8080 I don't get the
> > contentType header for the tiles pages.
>
>
>
> Strange... Using the sh
Antonio Petrelli wrote:
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
>
> If I telnet to the tomcat server on port 8080 I don't get the
> contentType header for the tiles pages.
Strange... Using the showcase in trunk of Struts 2 it works co
We recently migrated our project over from WebWork to Struts 2. The move was
fairly painless, however, there is one issue that is plaguing us. Whenever
it seems that we use a *-validation.xml file to do our validation, it
doesn't complete and throws a large stack trace. I'll attach a snippet of
I'm trying to use a FieldExpressionValidator (or ExpressionValidator) to
compare fields. Unfortunately, it doesn't seem to be working. I have a radio
button (named "reason") and a text field named "friendEmail". If the
selected radio has a reason of "friend", I want to require the text field.
Howe
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
>
> If I telnet to the tomcat server on port 8080 I don't get the
> contentType header for the tiles pages.
Strange... Using the showcase in trunk of Struts 2 it works correctly.
I will try to ch
Perhaps the result name in my example does not correspond to the return
value of your action ?
I assume you are using the param interceptor here
public class ImageAction {
privateint imageId;
privateImage image;
// this method is called when using the param-interceptor
pu
my fault.. action.execute() was still returning SUCCESS while
the mapping result name is "all"!
Thank you!
--
Robi.
Roberto Nunnari wrote:
Hi bartlebooth.
That is very neat!
But the getImageStream method in my action is never called..
why?
bartlebooth wrote:
You could use the stream re
Hi bartlebooth.
That is very neat!
But the getImageStream method in my action is never called..
why?
bartlebooth wrote:
You could use the stream result-type.
image/jpg
imageStream
name="contentDisposition">filename="image.jpg"
Thank you Antonio.
Antonio Petrelli wrote:
2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
If I telnet to the tomcat server on port 8080 I don't get the
contentType header for the tiles pages.
Strange... Using the showcase in trunk of Struts 2 it works correctly.
I will try to check it in
Using the YUI plugin with the Yahoo autocompleter is
working pretty well, but the autocompletion dropdown
is not positioned under the textfield. Here is my
markup:
State:
Is there something I have to do to get the dropdown
positioned correctly? Does anyone else see this?
Thanks,
Scott
You could use the stream result-type.
image/jpg
imageStream
name="contentDisposition">filename="image.jpg"
1024
In your action, you have to provide a method getImageStream
(corresponding to the inputName parame
2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
If I telnet to the tomcat server on port 8080 I don't get the
contentType header for the tiles pages.
Strange... Using the showcase in trunk of Struts 2 it works correctly.
I will try to check it in Struts 2.0.8 ASAP.
I thought the problem was
Thank you Josh!
I'll try that right away..
I thought that struts actions could only return text..
Do you have to change the resultType for that action?
--
Robi
Josh Vickery wrote:
If you return null from your Action you can write directly to the response:
HttpServletResponse response = Serv
If you return null from your Action you can write directly to the response:
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("image/jpg");
out = response.getOutputStream();
write image here
return null;
On 7/18/07, Roberto Nunnari <[EMAIL PROTECTED]> wro
hehe.. ok.. let's add some context..
Till now I was using a servlet to serve to the web images stored
in a database. To access the database I had the myDAO
object in the applicationContext and so it was accessible by
the servlet and actions.
Now I have added Spring to the game, and the myDAO obj
--- temp temp <[EMAIL PROTECTED]> wrote:
> but can I call Class.forName() for same class
> more than once
> exmple
> class.forName("Test")
> class.forName("Test")
> even If i can do this i donot want to load the
> class once it is already loaded so how can I find
> if the class is a
I am running MyEclipse, JBoss 4.0.5 GA and JDK 1.4.2
I am looking for a way to hot deploy my struts-config.xml and tiles-def.xml
changes. Any suggestions on how to do this (and subsequently speed up my
development process) would be greatly appreciated.
See the transcript below from the MyEclips
Hello.
What is the best way to serve images stored in database in Struts2?
action, resultType, or servlet?
Thank you.
--
Robi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Here is a clear pic of my doubt.
* header row*
* columns *
group-total row <--- *how to get this?* --->
* grand-total row*
Regards.
Satheesh.C
-- Forwarded message --
From: Sachin <[EMAIL PROTECTED]>
Date: Jul 18, 2007 9:53 AM
Subject: Group Total
To: Struts U
Hi All,
Has anyone come across an struts 2 example that uses a tree viewer to represent
categories and questions, like what eclipse has for its online help webpage.
I'd like to copy a similar example for a project I'm working on. Any help
would be much appreciated.
Thanks,
Session
Any help would be greatly appreciated ... pls..
-- Forwarded message --
From: Sachin <[EMAIL PROTECTED]>
Date: Jul 18, 2007 10:03 AM
Subject: Re: Group Total
To: Struts Users Mailing List
sorry for the typo.
I need the group total value in separate row in the table for each g
sorry for the typo.
I need the group total value in separate row in the table for each grouped
item.
Please help me on this.
On 7/18/07, Sachin <[EMAIL PROTECTED]> wrote:
Hi ,
Here is an exmaple to get total value in footer. But i need to get this
value inside table for each grouped items
Hello.
I'm working on a new web application using
Struts2/Tiles2/Spring/Hibernate3 and tomcat5.5.23
and I'm now facing a problem that after a web search seams
to be Tiles related.
I'm talking about the issue https://issues.apache.org/struts/browse/WW-1724
on Tiles that don't include the Conten
You might get a problem if the class isn't there :).
-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
Sent: 18 July 2007 14:47
To: 'Struts Users Mailing List'
Subject: RE: [JAVA] using clas.forname()
Miro:
You can call Class.forName() as many times as you
like without a
Hmm, when I print out the value of the "data" argument
it seems to have the complete text of the JSP (in both
before and load sections of the function.)
All the JavaScript and HTML is in this argument.
Could it be because this JSP is included from another
JSP like this?
<%@ include file="sports
but can I call Class.forName() for same class more than once
exmple
class.forName("Test")
class.forName("Test")
even If i can do this i donot want to load the class once it is already
loaded so how can I find if the class is already loaded ?
Miro
Neil Aggarwal <[EMAIL PROTECTED]
Hi ,
Here is an exmaple to get total value in footer. But i need to get this
value inside table for each grouped items as a separate column in the table.
Total Bill:
Please help me on this. Is there any alternat way to do this without
using *total
*
Hi ,
Help me to get the totaled value of grouped items inside the body.
Here is an example
Total Bill:
--
Satheesh.c
Miro:
You can call Class.forName() as many times as you
like without a problem.
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
-Original Message-
From: temp temp [mailt
How can I know whether a class is already loaded ?
or if I call class.forname(Some class name) twice will there be any
problems ?
Thanks
Miro
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel.
Oops, my mistake: interceptor returns "needLogin" (global result) and not
"needAuthentication" :-)
By the way, about the redirect result, it indeed "forgets" your action
error/message, as they are request scoped (it's equivalent to a HTTP
Redirect).
Cheers,
Arnaud
-Message d'origine-
Perhaps your security interceptor could forward to an action, which has the
responsibility to handle the error message:
The interceptor:
public String intercept(ActionInvocation actionInvocation) throws Exception
{
Map session = actionInvocation.getInvocationContext().getSession();
User user
I tried many times,but there's no solutions then.
Any help could be greatly appreciated.
On 7/17/07, M.Liang Liu <[EMAIL PROTECTED]> wrote:
Thanks for you quick reply,Nuwan.
yeah,ur code works and action-error should be add to the original action(I
tested).
However,I set my global result in my
Same problem, even using the struts blank application. Perhaps some JAR
resources is not correctly closed. Yet it is a known problem of Tomcat on
Windows, it would be great if Struts 2 apps could avoid it.
Here's a workaround which worked for me, even if it is not totally
satisfying: create a META
2007/7/18, Arunkumar Balasubramanian <[EMAIL PROTECTED]>:
Hi
Thanks for your response.
Could you please elaborate on this. I read your message and was trying to
extract the information from it. If you could elaborate it, It will be of
great help.
Ok, I'll try to tell you step by step.
1.
75 matches
Mail list logo