Hello,
I have one problem with forwarding my action.
In my action mapping is:
action path=/MyAction input=/path/file.jsp ...
forward name=ok path=/path/file.jsp/
/action
and when I execute my action, then forwarding me to
localhost:8080/context/MyAction.do - not
Hi!
If you only want your Action to forward to the jsp, and do
nothing else, use a ForwardAction like this:
action path=/MyAction
input=/path/file.jsp
parameter=/path/file.jsp
type=org.apache.struts.actions.ForwardAction /
The parameter attribute defines the target of your
forward
The parameter attribute defines the target of your
forward action, that is your jsp.
Thanks.
And what if I want to execute my action (do something) and forward to
this path (/path/file.jsp or /path/MyAction.do)?
Regards
--
Andy
In that case, when action mapping looks like this
(as you wrote in your mail before):
action path=/MyAction
input=/path/file.jsp ...
forward name=ok path=/path/file.jsp/
/action
then you have to do the following at the end of your
action (after all work has been done):
return
[EMAIL PROTECTED] napisał(a):
In that case, when action mapping looks like this
(as you wrote in your mail before):
action path=/MyAction
input=/path/file.jsp ...
forward name=ok path=/path/file.jsp/
/action
then you have to do the following at the end of your
action (after all
Could you post your complete action mapping and
your corresponding Action (or only the important parts?)
Peter
-
[EMAIL PROTECTED] napisał(a):
In that case, when action mapping looks like this
(as you wrote
Could you post your complete action mapping and
your corresponding Action (or only the important parts?)
FormBean:
form-bean name=SendLinkForm
type=com.edirect.pl.app.cmsold.struts.form.SendLinkForm/
Action:
action path=/SendLink input=/popup/sendlink.jsp
parameter=/popup/sendlink.jsp
Hi -
I tried this approach after my initial question
My app uses dispatch action classes with parameter configured to method
names.
I have used ProGuard and configured in a such a way that public methods of
Action classes
are left untouched. (no name change)
My each public Action method has
If I understand this correctly Struts is doing the correct thing. It
should go to http://localhost/context/MyAction.do and not
http://localhost/context/path/MyAction.do
If you really must have path in your URL, then maybe you should put
that in your action path:
action path=/path/SendLink
Goodness Im a twit. Thank you!
chhum
Quoting Wendy Smoak [EMAIL PROTECTED]:
On 12/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I think so. I have this in the jsp
html:form action=/core/surveys/data_match /
this writes out as
form name=dataMatchForm method=post
Well, yes, but KlassMaster (sounds like ProGuard has this too) allows you to go
in and manually rename stuff that can't be renamed automatically. So, the
more XML-Java bindings you have, the more work it's going to be, but the people
who develop the obfuscators know this, so they (we hope) give
this is straight from the docs available at
http://jakarta.apache.org/commons/logging/apidocs/org/apache/commons/logging/Log.html
/*only enable when debug is enabled*/
if (log.isDebugEnabled()) {
log.debug(whatever);
}
Martin-
- Original Message -
From: su mo [EMAIL PROTECTED]
To:
Hmm, perhaps I misunderstood. I thought what he was saying was, he wants to
obfuscate the method name whatever, so the log.debug argument has to be
changed as well . . .
However, if the value of log.isDebugEnabled can be discovered at compile time
(not sure how commons logging works), perhaps
Should the jsp be tied to a form for this case?
I do not make up a form.
I do this in the jsp.
%
List availableSystemList =
UserSystemService.getInstance().getAvailableSystemList(request.getRemoteUser());
request.setAttribute(availableSystem, availableSystemList);
%
html:select
If someone decompile the obsfucated classes which have log.debug, they can
easily put the original names
with obsfucated method names.
and if they see the log statements in sources, they can set up log4j
properties with specific
package enabled to get the control flow etc..
I think I was not
you need to setup at least 2 environments
One for debug/development
One for release
When in debug/development you are in DEBUG mode which means you will generate
and be able to see the logs
When you are in release DEBUG is not enabled which means you will not be logging
code which contains
Mine are, because I do submits off of those pages. If you use a form,
then the scriptlet logic you have can go into the action and you don't
have that messy java code in your jsp.
On 12/12/05, Leung Ping Cheung [EMAIL PROTECTED] wrote:
Should the jsp be tied to a form for this case?
I do not
Laurie Harper wrote:
Because if they were relative Struts would have no way to know what they
were relative *to*?
But why does it need to know? I have links in sites that I look after like
foo/bar/bash.html
If I access this via http://mybox.com/, then the browser does the right
thing. If
I have several classes derived either from ValidatorForm or ActionForm. Both
classes mark my derived class as serializable. I get a compiler warning
about a missing serialVersionUID.
Why are those classes serializable, because data transfered through a
network connection? How do I have to handle
From the documentation:
The dynamicJavascript and staticJavascript attributes default to
true, but if dynamicJavascript is set to true and staticJavascript is
set to false then only the dynamic JavaScript will be rendered. If
dynamicJavascript is set to false and staticJavascript is set to
Struts uses the Jakarta ORO regex package [1]. It provides Perl5-like
regular expression support, so any guide to Perl5 regex's should be
applicable. If you want to *really* understand regular expressions, in
all their gory detail, I highly recommend Mastering Regular Exressions
from O'Reilly.
Hi
I have several classes derived either from ValidatorForm or ActionForm.
Both
classes mark my derived class as serializable. I get a compiler warning
about a missing serialVersionUID.
Maybe you are using non-serializable attributes. Check out the
serializable guide in java's docs.
Why
Bahadır Yağan wrote:
Hi,
Is there a way to change the behavior of the validation plug-in, to
print the errors inside the page rather than showing them in a message box.
You can place server-side validation errors anywhere in the page you
like, but there's currently no way to control how
I haven't used portlets, but my guess would be that if you look at the
links generated by a working portlet you'll see that they have extra
query parameters and/or point to a portlet container-specific servlet or
something, so that the portlet container can process the request and
reconstruct
There are also limitless ways in struts of instantiating the lists of
beans or values for dropdowns.
In my experience the only factors involved in making a list available to
a JSP taglib are: (1) which list is needed (2) what parameters are
required to constrain the list and (3) how long it
Andrzej Bengner wrote:
[EMAIL PROTECTED] napisał(a):
In that case, when action mapping looks like this
(as you wrote in your mail before):
action path=/MyAction
input=/path/file.jsp ...
forward name=ok path=/path/file.jsp/
/action
then you have to do the following at the end of
The documentation for html:select states that, 'This tag is only valid
when nested inside a form tag body.' It *might* work without an
enclosing html:form tag, but you would need to tell the
html:optionsCollection tag where to lookup the 'system_href' property.
Try adding name=availableSystem
Ah, in the modern world of AJAX and the like, enclosing forms many times
are no longer much use. I wouldn't say it does much harm to still do it
in most cases, it just becomes somewhat superfluous.
Maybe you have a select who's purpose is to change the contents of a
div by firing off an AJAX
Perry Jeung wrote:
I have a html:form tag with a dynamic action value that works in one version of
Struts and not in another.
I'm new to Tiles and I want to do the following in one of the reusable tiles
named report.jsp:
html:form action=%= (String)request.getAttribute(action) %
In an
Bit of a noob to debugging struts apps, what exactly does Failed to
obtain specified collection mean? I can't find anything on google that
explains it. I've gone over the JSP code and various actions and forms
etc, and can't see anything wrong, and the code is copied from another
jsp that's simply
[ANNOUNCEMENT] JSP Controls Tag Library v. 0.1 is released
Ho-ho-ho! The Christmas is around the corner, it is time to make
wishes come true. How about writing portlet-like web components using
Struts without need for Portal engine? Here you are!
JSP Controls is a solution for building
For developers, I suggest looking into this proposed enhancement. Instead of
duplicating the path
again in the forward, you can forward to actions. Please vote for this if you
think it is
valuable; perhaps it will make it into future versions of 1.3 or 1.4.
Can this be done easily with Tiles?
From: Yujun Liang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: tabs is struts
Date: Fri, 9 Dec 2005 09:02:42 +1100
On web page, there are two kinds of tabs,
1.
Hello all,
I have a requirement for a dynamically created menu on all pages of a
web site i am creating. So i created an action that creates a List of
MenuItems, and then forwards to a jsp that uses jstl to forEach through
the list and generate the appropriate html. the jsp page only has the
On 12/12/05, David Evans [EMAIL PROTECTED] wrote:
Hello all,
I have a requirement for a dynamically created menu on all pages of a
web site i am creating. So i created an action that creates a List of
MenuItems, and then forwards to a jsp that uses jstl to forEach through
the list and
Tiles is needed for option 1, but I am not sure if it is still needed if
using Struts-Layout.
On 12/13/05, Jim Douglas [EMAIL PROTECTED] wrote:
Can this be done easily with Tiles?
From: Yujun Liang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts
Josh McDonald [EMAIL PROTECTED] wrote on 12/12/2005
06:26:33 PM:
Bit of a noob to debugging struts apps, what exactly does Failed to
obtain specified collection mean? I can't find anything on google that
explains it. I've gone over the JSP code and various actions and forms
etc, and can't
Thanks, managed to get it working by re-writing a gang of code, so not
sure what exactly was the culprit :|
-Josh
--
His comrades fought beside him, Van Owen and the rest...
But of all the thompson gunners- Roland was the best.
Josh McDonald
Analyst Programmer
Information Technology
Paul, are you incliding the actions using jsp:include? And each included
action forwards to JSP fragment? This is against the spec and should
not work on Tomcat. Do you use Resin? It works on Resin, I tested
it when I started with Struts Dialogs. Resin is good ;)
So, if you are using the
Thanks Laurie :)
On 12/13/05, Laurie Harper [EMAIL PROTECTED] wrote:
Struts uses the Jakarta ORO regex package [1]. It provides Perl5-like
regular expression support, so any guide to Perl5 regex's should be
applicable. If you want to *really* understand regular expressions, in
all their gory
Is there a way to specify the order of validaions to occur using
validation.xml?? I have noticed that mask take precedence over minlength
On 12/13/05, Laurie Harper [EMAIL PROTECTED] wrote:
Bahadır Yağan wrote:
Hi,
Is there a way to change the behavior of the validation plug-in, to
Checkout this. Very good one
ditchnet.org/taglibs/
On 12/13/05, Yujun Liang [EMAIL PROTECTED] wrote:
Tiles is needed for option 1, but I am not sure if it is still needed if
using Struts-Layout.
On 12/13/05, Jim Douglas [EMAIL PROTECTED] wrote:
Can this be done easily with Tiles?
Hi all,
I am looking for a component to create menus in Java web applications. I
want to have a drop down menu with many levels and a tree menu with
expand/collapse. It should be configurable to work in client
side/serverside. It should work with Struts/Spring and should be Apache or
U can go for CoolMenus too
Check this out
http://www.dhtmlcentral.com/projects/coolmenus/
On 12/13/05, Antony Paul [EMAIL PROTECTED] wrote:
Hi all,
I am looking for a component to create menus in Java web applications.
I
want to have a drop down menu with many levels and a tree menu
Tigra menu is the bomb.
http://www.softcomplex.com/products/tigra_menu/demo/blue/
Larry
On 12/12/05, Antony Paul [EMAIL PROTECTED] wrote:
Hi all,
I am looking for a component to create menus in Java web applications. I
want to have a drop down menu with many levels and a tree menu with
On 12/13/05, Larry Meadors [EMAIL PROTECTED] wrote:
Tigra menu is the bomb.
http://www.softcomplex.com/products/tigra_menu/demo/blue/
Larry
On 12/12/05, Antony Paul [EMAIL PROTECTED] wrote:
Hi all,
I am looking for a component to create menus in Java web
applications. I
want to
On 12/12/05, Antony Paul [EMAIL PROTECTED] wrote:
I found Struts Menu to be good one
but it seems that it is not actively developed now. The last release was in
Sep 2004.
Why mess with perfection? ;) Struts Menu is well supported (questions
on the mailing list get answered) and it's included
I'm starting to begin looking at JSF in part because of what I've read
here on the Struts mailing list. i.e. Struts is embracing JSF, many
developers see it as inevitable. I have some experience with Tapestry and
Ruby on Rails so I'm excited about component frameworks. However, what I
don't know,
Have you tried using a regular struts tag?
html:link href=/jsp/CentralNoSearch.jsp/
We're using the Struts Portal Framework that ships with Webshere Portal
Server, and this works just fine for us.
Kjersti
On 08/12/05, Meenakshi Singh [EMAIL PROTECTED] wrote:
yes I am using WSAD V5.1.1 using
yes, I did try that. When I use it without encoding, it doesn't recognize
the .jsp file.
-Original Message-
From: Kjersti Berg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 12:36 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: IBM Portal server V5.0.2.3
50 matches
Mail list logo