dear,
i am not getting the parameter values whlie dispalying the errors. i am
providing all my code here can any one help me regarding this
Form Bean class:URformBean.java
java Code:
*import* javax.servlet.http.*;*import*
org.apache.struts.action.*;*import*
Hi,
It was in the right place, but didn't work. So, i've tried to put the
hilbernate-all.jar in the build path, and it worked. I don't know the
reason, but probably i was using the latest version of the requested
libraries and it need something older..
Thank you everybody for the time you
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.
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
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
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
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-
De :
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.
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
Hi ,
Help me to get the totaled value of grouped items inside the body.
Here is an example
display:table name=someList varTotals=totals
display:column property=itemName group = 1 /
display:column property=price total=true/
display:footer
tr
tdTotal Bill:/td
tdc:out
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.
display:table name=someList varTotals=totals
display:column property=itemName group=1 /
display:column property=price total=true/
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]
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
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
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
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
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 user@struts.apache.org
sorry for the typo.
I need the group total value in separate row in
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
Here is a clear pic of my doubt.
thead
* header row*
/thead
tbody
* columns *
group-total row --- *how to get this?* ---
/tbody
tfooter
* grand-total row*
/tfooter
Regards.
Satheesh.C
-- Forwarded message --
From: Sachin [EMAIL PROTECTED]
Date: Jul 18, 2007 9:53 AM
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]
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
--- 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 already loaded
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
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] wrote:
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 =
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
You could use the stream result-type.
result name=all type=stream
param name=contentTypeimage/jpg/param
param name=inputNameimageStream/param
param
name=contentDispositionfilename=image.jpg/param
param
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:
s:url id=statesUrl
action=AjaxTest
namespace=/nodecorate
includeParams='none'/
div
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
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.
result name=all type=stream
param name=contentTypeimage/jpg/param
param
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
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
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 check it
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.
However,
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
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 showcase in trunk
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
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
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
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.
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 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
I've read this like 10 times just to make sure I'm not missing something,
but:
validator type=fieldexpression
friendEmail
reason.equals('friend') and friendEmail == null
messagePlease provide your friend's email/message
/validator
why is friendEmail in the
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
I am having the exact same problem, except I am also using Freemarker along
with Sitemesh and Struts 2. I tried using the decorator:head/ 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
Hi Matt,
I've used the fieldexpression validator with some success. I use the
param name=expression element. I would have written the validator
as follows:
field name=friendEmail
field-validator type=fieldexpression
param name=expression![CDATA[ reason == 'friend'
reasonEmail
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
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:
field name=reason
field-validator type=requiredstring
true
messageReason is
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
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
We had the same concern, so by putting this in the top of our struts.xml:
constant name=struts.action.extension value=html/
It makes all the actions look like regular old .html requests.
(*Chris*)
-
To unsubscribe, e-mail:
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 s:iterator tag.
Thanks,
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate
Looks ok, here is one that I have:
field name=customer.creditCards[0].type
field-validator type=fieldexpression
param name=expression
'AMERICAN_EXPRESS'.equals(customer.creditCards
[0].type.toString())
||
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
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
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.useIFrame =
s:if test=collection != null collection.size() 0
...
/s:if
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
s:if test=collection != null !collection.isEmpty()
...
/s:if
//more elegant :)
On 7/18/07, Musachy Barroso [EMAIL PROTECTED] wrote:
s:if test=collection != null collection.size() 0
...
/s:if
musachy
On 7/18/07, Neil Aggarwal [EMAIL PROTECTED] wrote:
Hello:
Is there a struts tag to
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. And
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.
Strange...
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 Struts 2
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,
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,
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.
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',
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
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
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.
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
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,
Try xdoclets
Thanks,
Nuwan
- Original Message -
From: Antoine Solomon [EMAIL PROTECTED]
To: user@struts.apache.org
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
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 -
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.
thead
* header row*
/thead
tbody
* columns *
group-total row ---
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: user@struts.apache.org
Sent: Thursday, July 19, 2007 4:03 AM
Subject:
74 matches
Mail list logo