Hello Michael,
***
MK> Hello Dirk,
MK> thanks for your answer.
MK> That means that I end up with tons of redundant struts packages on my
MK> production machines and many redundantdantdant class loading processes
MK> on server start
I'm not getting your question.
You'd have
-- I assume an OptionsCollection or Options tag follows. I generally
don't do it that way...
-- I assume an OptionsCollection or Options tag follows. I generally
don't do it that way...
...etc
It's doesn't look like your lists content is going
hi,
I have N ejb jars packaged into a single EAR file.
1. ProductEJB.jar ( with entities Product, Category etc..)
2. OrderEJB.jar (with entities OrderItem, Orders etc..)
Now, i have a unidirectional cmr based relation OrderItem-Product where
each item refers to one of the products. But both e
Just wondering if there are any docs up on how the validator works in the
new nightly builds of struts... trying to transition everything to using
ActionMessages and storing the errors/messages under different keys within
that object, just wondering how to do that using the validator.xml plugin.
Th
I know how to create a drop-down menu; for example:
ArrayList sort = new ArrayList();
sort.add(new LabelValueBean("Last Post
Date", "thread_last_post_date"));
sort.add(new LabelValueBean("First Post
Date", "thread_creation_date"));
sort.add(new Label
I haven't tried this, but...
Instead of doing what is usually done in an action, that is, ending with...
return mapping.findForward("whatever");
...get a reference to the ActionForward returned like so...
ActionForward af = mapping.findForward("whatever");
...then, add your anchor portion like so..
I'm using one of the newest daily builds of struts, and I am employing
modules within my app. Each struts config file declares tiles as a plugin
and its associated tiles-XXX.xml mapping. What is strange to me is that
while the struts actions are all relative to its module name, the tiles defs
are
Hi,
Our application resides on a machine which does not
have a direct connection to the internet. So, I have
changed all the references to dtds to be on the local
machine.
The struts & the tiles config file reference their
dtds in the same directory.
This works fine with Struts. However, Tile
From: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED]
> Normally (well under Servlets) you can pass a parameter in
> the url like
> this: http://www.pyplia.com/wibble.jsp#ImAnAnchor, and the
> browser will take
> you to the point of the Anchor. Has anyone managed to get
> this to work unde
A couple of comments - I'm streaming pdf files and using IE6 and my action
is only called once - are you sure its not a pre IE6 issue?
Secondly - what about implementing this behaviour in the request processor.
You could customise ActionMapping to add a contentType property - when
required you set
Olivier,
Here's the article that Jacob is talking about (I think):
http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
I'm using this approach and am very pleased.
Colin
Hookom, Jacob wrote:
Look up request tokens in the documentation/API.
There was also an article on www.javaworld.com a
Look up request tokens in the documentation/API.
There was also an article on www.javaworld.com a while back that you can
search for.
-Original Message-
From: Olivier Citeau [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 4:10 PM
To: [EMAIL PROTECTED]
Subject: Preventing user from
Evening All
I have a sticky problem, and it goes something like this:
I have a JSP which will be returned by an Action. On this JSP page there
are a fair few Anchors like: I¹m an Anchor.
Normally (well under Servlets) you can pass a parameter in the url like
this: http://www.pyplia.com/wibble.js
I would look at perhaps encapsulating this functionality with a Custom Tag. This way
you can define the functioanlity you want and how you want to return it to the
JSP/HTML/...
They are very easy to knock up and really allow you to extend the functionality you
can embed.
Cheers
Christopher M
Hi,
i think it must be a FAQ, but i did not found anything on
this issue.
When my user submits a form, the action executes an SQL
Insert in the DBMS.
What happened is that when user click twice, the second
inserts fails with SQLException.
What is strange, is that i cannot reproduce it in WSAD, but
Thanks for your help Frank, Davlid, Shayam,
Unfortunatly, non of the solutions worked.
I renamed my reset method in the form bean and am calling it manually
at the end of the action - this stops the booleans from being reset
when IE resubmits the request. Dodgy but it works.
Also, there was a bi
Chris, i think what David is trying to say is that such a test of authorization does
not belong in a tag (because of the nesting problem). An easy and (non-javascript!)
way of dealing with this is to in the Action *before* the jsp is shown, determine what
the authority of the user is and then di
GR> Pavlikus, the error message you posted was:
>> >> But when jsp compiles - it show following error:
>> >> -- The end tag " So are you saying this is not the error you got (or are getting now?)
GR> In any case, post the error you got and then maybe someone can take it from there.
Ok.
The code:
Can someone illustrate an example of this?
-Original Message-
From: Hibbs, David [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 2:51 PM
To: Struts Users Mailing List
Subject: RE: Different form tags on same jsp
You've got a tag nesting error, to be sure. This is like doing
Pavlikus, the error message you posted was:
> >> But when jsp compiles - it show following error:
> >> -- The end tag " -Original Message-
> From: Pavlikus [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 2:22 PM
> To: Struts Users Mailing List
> Subject: Re[2]: Different form tags
You've got a tag nesting error, to be sure. This is like doing
...or at least to a JSP compiler it is.
The solution to your problem is that the form action attribute (and onsubmit
attribute) can be a runtime expression.
David Hibbs, ACS
Staff Programmer / Analyst
American Na
Looking at this :
is missing closing tag
.
Just give another try with closing .
Reddy Pingili
> -Original Message-
> From: Pavlikus [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 2:22 PM
> To: Struts Users Mailing List
> Subject:
Hello All,
Thanks to all who have responded to the same post on commons-user list.
Here are the settings that solved the problem:
After deploying J2EE app (.ear) on WAS 5.1, make sure you have
Classloader mode as PARENT_LAST and WAR Classloader Policy as
Application.
Now it's logging all message
Hello Geeta,
Tuesday, June 22, 2004, 8:47:08 PM, you wrote:
GR> Hi Pavlikus :
GR> I think you may just have a typo:
GR> <-- don't end tag here..
I'm sorry, this is just misprint when I typing letter. I decide to
simplify example and make an error.
Original tags:
May be s
In my humble opinion, which is humble for good reason, learning the ins and
outs and use of reflection is one of the most important things a Java
developer can do to enhance his or her career.
Mike
At 10:49 AM 6/22/2004, Frank Zammetti wrote:
This is similar to some things we've done or thought
Hi Pavlikus :
I think you may just have a typo:
<-- don't end tag here..
Regards,
Geeta
> -Original Message-
> From: Pavlikus [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 1:53 PM
> To: Struts Users Mailing List
> Subject: Different form tags on same jsp
>
>
> Hi all.
> I
You've closed this tag -.
/>
Pavlikus <[EMAIL PROTECTED]>
06/22/2004 01:52 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>
cc
Subject
Different form tags on same
jsp
Hi all.
I want to re
I had to do something almost identical... My solution was to make my CSS
file a JSP, and when I referenced that stylesheet in all the other JSP's, I
did:
where styles.act is actually an ActionMapping. I then had my StylesAction
class, just like any other Action, that got some info out of the
Hi all.
I want to reuse the jsp page with form where user can Register or Edit
Profile.
I do like:
I expect what it render form tag for registrationForm if user have
GUEST_ROLE role, and tag for editProfileForm is user have prepotent
roles.
But when jsp compiles - it show follo
This is similar to some things we've done or thought about.
Well, at least that makes me think I'm on the right track :)
Personally, I'm a pretty big fan of using reflection to find methods (a la
DispatchAction) although I do think that some folks find it less appealing.
I've always been a bit con
Sounds like a custom JSP tag would work pretty well here ...
Voinea, Marina wrote:
Hi everybody,
Can you please help with the following question:
What are the possible ways (and best) to modify the style sheet at run time using Struts framework?
Our application is using Struts tags which refer
Hello:
all of the web app when using Sevlets or Jsps, must conform
the Servlet 2.1 especification. I mean it must have a WEB-INF
directory and a lib and classes directories into it, in addition to
a web.xml file, called the web deployment descriptor.
The webclassloader follows certain steps when
One way I could see doing it would be do add a PrepView attribute to
the action mapping that would be in the form "class.method".
Basically, any time validation fails and your going to return to the
input page, call that method, who's job it is to prep the page for
viewing. There's of course d
I notice that as soon as someone is talking about forwarding to
another Action all these flags go up and "Chain of Responsibility"
gets said.
The flags go up just because Struts was not designed to make two
passes through the RequestProcessor with a single HttpServletRequest,
and action chainin
Mike,
Thanks so much. This solution works if my classes are in a directory (like
WEB-INF/classes), but not if my classes are in a JAR file (like WEB-INF/lib/myJar.jar).
Here's the Exception:(i shortened it with "..."s).
java.io.FileNotFoundException:
file:/.../jakarta-tomcat-5.0.18/webapps
I was thinking very simplistically... from within execute() of ActionA:
ActionB a = new ActionB();
ActionForward af = a.execute(mapping, inForm, request, response);
I've done this in some limited circumstances. Then you can either use the
ActionFoward returned, or just ignore it (which is almost
Hi everybody,
Can you please help with the following question:
What are the possible ways (and best) to modify the style sheet at run time using
Struts framework?
Our application is using Struts tags which refer to a static style sheet elements as
presented below:
This might be caused by bumping into a 64K bytecode limit -- here's a
link that discusses it:
http://www.scioworks.net/devnews/strutsDistilled/updates/update-030401/jspSize.html
P.S. Google is your friend ;)
Le Goff, Yoann wrote:
Hi,
does this message talk to somebody ?
Illegal target of jump
Actually -- that is how its supposed to work :)
Sharing of the Struts jars across applications is not supported. For
more details see:
http://jakarta.apache.org/struts/userGuide/configuration.html#config_add
Bill Siggelkow
Michael Kastner wrote:
Hello,
maybe someone can help. I've tried to deploy
In your execute() method:
DynaActionForm myForm = (DynaActionForm) form;
String foo = (String) myForm.get("foo");
String bar = (String) myForm.get("bar");
Asim Ghosh wrote:
hi guys,
if somebody can give me the solution to this problem.
i am using DynaActionForm and now i want to retrieve the
Joe Germuska wrote:
At 10:48 PM -0400 6/21/04, Joe Hertz wrote:
Okay, whew. Knew I had seen something else about it.
http://www.jguru.com/faq/view.jsp?EID=1057613
"...There are times when one Action should forward to another, but only
to display the final result. Using a second action to complete a
Hello Dirk,
thanks for your answer.
That means that I end up with tons of redundant struts packages on my
production machines and many redundantdantdant class loading processes
on server startup. Oh well, hard to digest ...
BTW, do you know by any chance whether this applies to the velocity
pac
DynaActionForm theForm = (DynaActionForm) form;
String myValue = (String) theForm.get("myValueName");
robert
> -Original Message-
> From: Asim Ghosh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 5:30 AM
> To: [EMAIL PROTECTED]
> Subject: how do i get members of DynaActionForm i
Hello Michael,
***
MK> Hello,
MK> maybe someone can help. I've tried to deploy two struts applications to
MK> two tomcat test servers (one running tomcat 5.0 and one running tomcat
MK> 4.1) but I can't get it to work on neither of t
At 9:28 AM -0400 6/22/04, Frank Zammetti wrote:
Interesting... I wonder if the answer would be different if you make
the distinction between forwarding to another Action and just
calling execute() of another Action. I think both have problems
certainly, but just calling execute() seems a little
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
For classes and resources that must
be shared across all web applications, place unpacked classes and resources
under $CATALINA_BASE/shared/classes, or p
execute(...){
DynaActionForm myForm = (DynaActionForm) form;
myForm.get("property");
Cheers,
> -Original Message-
> From: Asim Ghosh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 22, 2004 11:30 AM
> To: [EMAIL PROTECTED]
> Subject: how do i get members of DynaActionForm inside Actio
> -Original Message-
> From: Van Riper, Mike [mailto:[EMAIL PROTECTED]
====
>
> Since there were no strong preferences stated in the initial
> responses, I
> made an executive decision and went with Sunday evening after
> the conference
> opening reception. We'll be gathering around
We are detecting when the user closes the browser window with this
javascript (only in IE with JS enabled):
function logoff() {
if (document.all) {
// IExplorer
if (window.screenTop > 9000) {
// window closed
top.location="<%=req
I have a blank page appearing when a null forward is returned.
How is your input page attribute in the validator form set?
May be Struts is trying to forward to a null forward so blank page
appears.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Lunes, 21 de J
Dear Friends
Thank you very much for your attention; I checked both 'validate="true" '
and also 'empty spaces', they didn't solve the problem. Actually the part of
'if (!errors.isEmpty())' returns false all the time(see below, section 4).
My previous project is already working properly with 'val
I've converted the property type to String, there's no difference.
Regards,
Nafise
-Original Message-
From: Pavlikus [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 5:36 PM
To: Struts Users Mailing List
Subject: Re[2]: I Wondor Why Validation Doesn't Validate
ML> Dear Friends
do work.
But i also show all my other messages, which aren't errors this way :
And additional I only want to show the errors from the validator framework, but it
doesn't work
as for my own messages.
- Original Message -
From: "Joe Hertz" <[EMAIL PROTECTED]>
To: "'Struts Users Mail
Hi,
does this message talk to somebody ?
Illegal target of jump or branch
I've get it by spelling a jsp through struts ...
Tomcat 4.0 / JB-X / Struts 1.1
when i'm using jb-8 it works ...
Y.
At 10:48 PM -0400 6/21/04, Joe Hertz wrote:
Okay, whew. Knew I had seen something else about it.
http://www.jguru.com/faq/view.jsp?EID=1057613
"...There are times when one Action should forward to another, but only
to display the final result. Using a second action to complete a
business transactio
> -Original Message-
> From: Van Riper, Mike [mailto:[EMAIL PROTECTED]
> Sent: 19 June 2004 22:11
> To: 'Struts Users Mailing List'
> Cc: '[EMAIL PROTECTED]'
> Subject: [OT] JavaOne Struts User Gathering
>
>
> Hi Everyone,
>
> Depending upon the interest level, I'm willing to organize a
Hello,
maybe someone can help. I've tried to deploy two struts applications to
two tomcat test servers (one running tomcat 5.0 and one running tomcat
4.1) but I can't get it to work on neither of them.
For development purposes I had all required jar files in the
application's WEB-INF lib. Then
Interesting... I wonder if the answer would be different if you make the
distinction between forwarding to another Action and just calling execute()
of another Action. I think both have problems certainly, but just calling
execute() seems a little less offensive to me because there is a greater
hi guys,
if somebody can give me the solution to this problem.
i am using DynaActionForm and now i want to retrieve the value of a particular field.
in execute method i have the reference of ActionForm.
asim
-
ALL-NEW Yahoo! Messenger
Turn validation off in your struts config and manually in your action.
Otherwise, when form validation fails, it will go to your input location.
If manual validation invokation doesn't work for you, then you probably want
to use the "us an action as input parameter" suggestion.
David Hibbs, ACS
S
ML> Dear Friends
ML> Thank you very much for your attention; I checked both 'validate="true" '
ML> and also 'empty spaces', they didn't solve the problem.
ML> Actually the part of 'if (!errors.isEmpty())' returns false all the time(see
ML> below, section 4).
ML> My previous project is already wor
Hi all,
Is it possible to call directly a static method using tag .Actually i need to write something in the jsp with help of some utility class and the utility class is static.But it seems tag requires so is there any other way to do this?
Thanx in Advance for u r suggestions
-Original Message-
From: Mailing List
Sent: Tuesday, June 22, 2004 1:47 PM
To: 'Struts Users Mailing List'
Subject: RE: I Wondor Why Validation Doesn't Validate
Dear Friends
Thank you very much for your attention; I checked both 'validate="true" '
and also 'empty spaces', they didn't s
I have a blank page appearing when a null forward is returned. How is
your input page attribute in the validator form set? May be Struts is
trying to forward to a null forward so blank page appears.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Lunes, 21 de J
We are detecting when the user closes the browser window with this
javascript (only in IE with JS enabled):
function logoff() {
if (document.all) {
// IExplorer
if (window.screenTop > 9000) {
// window closed
top.location="<%=re
65 matches
Mail list logo