I wouild save the form bean and a mapping or action forward in the
session, and collect them when the in-between task is finished.
Rick Mann wrote:
on 5/28/02 5:19 PM, Alex Paransky at [EMAIL PROTECTED] wrote:
Why not use J2EE/WEB standard container authentication? It will do what you
Could someone explain to me what the path attribute for the action mappings
element is for? I know it's the path of the action, but what sort of file
is it? jsp?
struts-config
form-beans
form-bean
name=logonForm
type=org.apache.struts.example.LogonForm /
/form-beans
My understanding is that its anything you can forward to - ie: jsp, servlet,
another action
-Original Message-
From: Chris Cairns [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 15:23
To: [EMAIL PROTECTED]
Subject: Brain Teaser
Could someone explain to me what the path
Hi,
Are there any plans within struts project for making higher level html
tags in taglib, e.g. calendar tag that prints out three select boxes
automatically or something similar. Could anyone please point me to
resources about this topic or some alternative solutions that can be
integrated with
That's easy!
It's not a file, just a name to be called in html:form
action=logon/html:form
bye,
d.rizzi
-Messaggio originale-
Da: Chris Cairns [mailto:[EMAIL PROTECTED]]
Inviato: mercoledi 29 maggio 2002 9.23
A: [EMAIL PROTECTED]
Oggetto: Brain Teaser
Could someone explain to me
You could write a custom tag to do just this as I have done, which accepts
date objects or strings for the individual field names.
Alternatively there is a calender taglib in the jakarta taglibs I believe
HTH
Jin
- Original Message -
From: Dejan Bosanac [EMAIL PROTECTED]
To: [EMAIL
Subject: Re: Action classes/Form based authentication/ EJBs
From: Torgeir Veimo [EMAIL PROTECTED]
===
Roland Chan wrote:
Hi There,
Using BASIC authentication my action classes work like a charm. However,
when I switched to form based authentication calls to secured EJBs
present an
on 5/28/02 11:59 PM, Adam Hardy at [EMAIL PROTECTED] wrote:
I wouild save the form bean and a mapping or action forward in the
session, and collect them when the in-between task is finished.
Yeah, I was thinking of that, too.
Okay, so here's the struts-specific problem: how do I get the name
Hi Jin,
Thanks for the answer. I know I could write it on my own, I just don't won't
to go out of the main development stream or reinventing the wheel.
I couldn't find such a tag in jakarta taglib, but I will look again.
Regards,
Dejan
You could write a custom tag to do just this as I have
Hello,
According to your configuration file web.xml, your sub-application struts config
file should
be at /WEB-INF/struts-config-appl2.xml. Also, pages files for your sub-application
should be in
a subfolder called appl2 in the root directory of your main application.
You don't need a
Daniele's right, but to make things a little clearer than tag semantics...
In web.xml, there's a servlet mapping url-pattern attribute which
tells the servlet to throw things onto the Struts servlet, of which we
tell it to react a certain way via struts-config.xml.
The action-mapping path in
Thanks David,
I made it work and it is fine. We have a different file for static
javascript.
However I still wonder one question about validator-rules.xml scope file and
static javascript file. We think that the idea would be to have a unique
validator-rules.xml for the full set of
Hello,
We have find a trick allowing Tiles examples run on Solaris. The latest Tiles
version allows a default vale for the
faulty attribute 'classtype' in item So, it is possible to remove all these
attributes from config files, and
Tiles should run fine. But, you still not be able
Rick,
I recently had a similar problem. Using J2EE security, I was not sure how
to detect a user login. After all, a user can go into ANY protected page,
and I did not want to put the same tag in to EVERY single .JSP page that was
protected.
The solution, at least in my case, came in a form a
I really like the method of auto-filling Javabeans from ResultSets described
by Ted Husted in the earlier thread Re: Performance, Reflection, and Object
Creation vs. Cacheing.
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14397.html
However, my Javabeans currently use the
It seems that nested:message / is left out. Is this the case? If so, why?
TIA,
--
Rick
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is there a possibility to use ResourceClasses instead of
ResorucePropertiesfieles?
Thanks Matthias
Hanel Matthias
Fachinformatiker (Anwendungsentwicklung) in Ausbildung
Logistik World GmbH Fon:
Save mapping in session and go to login page:
session.setAttribute(REDIRECT_KEY, mapping);
return mapping.findForward(login);
In your login action, check if a mapping is in the session and go there:
ActionMapping redirectMapping =
(ActionMapping) session.getAttribute(REDIRECT_KEY);
if
hello everybody ,
i am facing one problem while redircting a page.
i have many links in my page with diffrent levles say category1,category2
whenever i click on any link i am passing the level and oid as parameter and
the page will be refreshed.
while refreshing i am also loading one more
Hello.
I'm trying to write a generic progress bar for my site. I will be implementing it as
a custom tag on the page, which then renders in the browser as the HTML required for
the links.
I've just realised that what I want to generate is html:link tags, but that won't
work will it? Won't
Pardon my ignorance please but what is basic authentication and
form-based authentication? You were talking about sessions and URL
rewriting and I thought I knew all about that. What is the auth header
from the browser? Is this container managed ?
Thanks
Adam
Struts Newsgroup
Hi all,
I'm trying to use Nested and Template taglibs in Struts R1B1.
It seems it doesn't work together.
I have a ServletException in the DoEndTag() method of Insert Tag (Template
taglib).
If I remove my template stuff in my JSPs (I keep Nested stuff only), it
works propertly.
Is there someone
Hi,
- basic or digest authorization is HTTP-based authorazition. It's
situation when browser pops up a dialog box for user to enter username and
password for that domain. Server checks wheater authorization data (it's
word basic followed by base64 encoded string (username:password)) are in
Got no answer on this one from commons-dev mailing list. Can someone here
can help?
---
Maybe I'm misunderstanding BeanUtils.populate, but shouldn't this work!
The exception says
IllegalArgumentException: type mismatch
Tried this with both BeanUtils
Because you have to manage the keys yourself, there's no automation to
it. They're not locked in to using beans and their properties, which is
what the nested tags are all about.
The nested tags only extend the tags which can benefit from the nested
context. The errors tag is the same way,
What's the servlet container you're using (and what's the servlet/JSP
spec does it run)?...
JSP 1.1 doesn't like includes inside tags, JSP 1.2 container should be fine.
Arron.
DEZALAY david - SOP ( [EMAIL PROTECTED] ) wrote:
Hi all,
I'm trying to use Nested and Template taglibs in Struts
Hi,
My application (based on Struts 1.0.2) uses the context greco, and I have
some Actions with forward defined like this with a redirect flag :
action path=/oneAction
type=greco.webapp.MyAction
name=MyForm
scope=request
Well, let's say for the sake of argument, that it's not
authentication we're talking about. Let's say, instead,
that in order to perform some Action B,
some other Action A must be done first. However, doing A does not
necessarily mean you'll do B next. What's the best way to
remember
This question seems to come up frequently, probably should be in a FAQ.
Using Servlet Filters is one approach. If you are using Struts 1.1 (in
1.0.2 it's slightly different), and want to use a Struts approach, try
the following.
I have an application that requires everyone to log in and
What happens if you take the slash out of the path? ie path
=otherAction.do
Nicolas De Loof [EMAIL PROTECTED] on 05/29/2002 06:28:35 AM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject: redirect=true mappings
same behaviour ...
What happens if you take the slash out of the path? ie path
=otherAction.do
Nicolas De Loof [EMAIL PROTECTED] on 05/29/2002 06:28:35 AM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
I have an Action subclass that will be called from an applet. I just need the Action
class to serialize objects to the client using the HttpServletResponse object. So, I
basically want my returned ActionForward to be ignored. How can I do this? Can I
return null?
I have only used Struts to
Returning null will acheive the effect that you desire
HTH
Jin
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 3:46 PM
Subject: Want ActionForward to be ignored, just using HttpServletResponse
I have an Action subclass that will be
Subject: Re: Best way to forward to login, then re-forward to originally requested
From: Vic C [EMAIL PROTECTED]
===
This question should never come up. :-)
It is a bad practice to use Struts or anything for JAAS, other than
JAAS. The sample Struts app should not be Login.
You should develop a
Subject: Re: Why separate form bean to collect form data?
From: Vic C [EMAIL PROTECTED]
===
Right on JM. MVC, Modular, light weight. That is Struts.
Model should be separate and unit testable.
James Mitchell wrote:
Hi Norman,
Yes this is possible, but it defeats (in part) the goals of MVC.
Subject: Re: CachedRowSet vs Collection of ValueObject
From: Vic C [EMAIL PROTECTED]
===
When people use a the old ResultSet API (instead of the newer RowSet
API) they need a collection to store rows.
You can avoid creating collecion and the garbage collection and the meta
data about the
Hi,
I see list of Struts Code generation tools. But I want to know wich one is
best to generate Action and From Class, struts-config.xml files and JSP
file.
Also want to access the data from g JBOSS aplication server.
Thanks
-SR
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Is CachedRowSet performant?
I read here:
http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
A CachedRowSet class-a disconnected rowset that caches its data in memory;
not suitable for very large data sets, but an ideal way to provide thin Java
clients, such as a Personal
The Struts Console is very popular for managing the
Struts config files. There have been close to 12,000
downloads already. Synthis Adalon software is well
suited to designing Struts-based applications and then
generating code from the design. Emmanuel Boudrants
tools are good for churning
Hi
I have encountered the same situation and changed the following lines (See
// Hertzel Tags)
in org.apache.struts.action.RequestProcessor.processActionForward
protected void processActionForward(HttpServletRequest request,
HttpServletResponse response, ActionForward forward) throws
On Thu, May 23, 2002 at 05:10:19PM -0400, Boyalla, Raveendra wrote:
I have variable no of rows and variable no of columns of text boxes.
So ActionForm should be able to store them in Arrays in Array .
I can not use a simple Array in ActionForm.
It should be an Arrays in Array.
Does
How can I define a pre-selcetd option for the dropdown. I know there should
be a way for it, but try as I migth I am not able to find how.
Could someone provide me a sample peice of code for same.
Thanks in advance.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Hello,
I have been using forte CE as my main IDE for developing my java and jsp
applications. The concept behind struts sounds great as I want to move
toward a more standand templates/framework for my web based
applications. My taglib experience has been very small and my EJB
experience is
I've been using Forte CE w/ struts 1.0. Works OK, but I haven't gotten the
debugger going yet. And I have the .java .class files in the same
directories. I know you can set up to compile to different directories, but
I haven't taken the time to figure it out yet.
-Original Message-
I'm about to invent some kind of user roles scheme, and I notice that RequestProcessor
has a method named processRoles that runs getRoleNames on the passed
ActionMapping. ActionMapping (via its ancestor, ActionConfig) stores these roles in a
property named roles.
These sound like they
IMHO
It's better that any db access layer does not know how to get a database
connection, it just gets given them by the client calling it. This way if
you need to change the way you grab db connections the db access layer is
none the wiser and no code changes are needed
Jin
- Original
For those that may be interested:
As you may recall I was attempting to install the
struts-example webapp on my existing tomcat 3.2.2
deployment (yes, its 3.2.2 rather than 3.2.3) and was
getting class not found errors (for classes that are in
struts.jar).
How I resolved it:
Migrated to
Have you looked at these opensource projects?
JBoss http://www.jboss.org/
OpenEJB http://www.openejb.org/
Castor JDO http://castor.exolab.org/
ObjectRelationalBridge http://objectbridge.sourceforge.net/
As for (1) I would have the business objects throw exceptions. I would have
the Struts
Forte CE and NetBeans are good tools for working with
Struts. Currently the Struts Console plugs into both
of the IDEs.
Struts Console:
http://www.jamesholmes.com/struts/
I'm working with some folks at Sun to bring better
Struts support into both of these IDEs. This should
add alot of needed
Hi All,
I have an existing application that uses the logic:iterate
tag to display a table of editable/deletable elements
based on a collection of beans. I have been tasked with
adding checkboxes to each row so that multiple selections
can be made and operated on (e.g. delete multiple elements
The functionality should be available to both Forte
and NetBeans since both are built on the same
foundation. Basically we are working on a Struts
Support module that has tighter integration of Struts
Console into the IDEs as well as other functionality.
Once things are working you'll be able
Thanks James,
maybe I will throw this question on the Forte List... just for fun. :)
James Holmes [EMAIL PROTECTED] on 05/29/2002 12:15:55 PM
Please respond to Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject: Re: New to Struts
Of course your 'optionValues' collection must have an item called 'Item 2'.
BTW: The form bean 'selectedItem' value should read 'Item 2'.
Sri
-Original Message-
From: Sri Sankaran
Sent: Wednesday, May 29, 2002 1:19 PM
To: 'Struts Users Mailing List'
Subject: RE: Having a preselected
Hello,
When using form based authentication, it appears that cookies are not
being written to the client. In my server.xml, noCookies=false, and the
client browsers have cookies enabled.
Can anyone shed any light here?
Thanks,
Roland
Hi
I am trying to configure struts 1.0.2 with weblogic 5.1 service pack 9. I
have an webapp called presentation which contains many jsp files. The
weblogic.properties file has a weblogic.httpd.documentRoot=./presentation/
setting which allows pages to be loaded without putting presentation in
What would be the best way to:
* Have a user bean shared across the entire app-server? Log-in and it
knows you no matter which web-app you access on the server (it will not
need to be handled across multiple servers).
* Provide consistant look and feel across all the applications easily (I
Truly cool, it's running sweet in forte 3.0 CE.
OK, time for the slow part, reading the struts docs.
:)
Thank You
James Holmes wrote:
Forte CE and NetBeans are good tools for working with
Struts. Currently the Struts Console plugs into both
of the IDEs.
Struts Console:
I'm having an issue with getting an html:textarea to autofill when I
forward to the page it is on. I basically have a preview and accept
button on my page. When the user presses either button the form submits
to the same location but if I see the preview request attribute I
forward back to the
Okay, I ran across a write-up on jGuru that tells me I cannot do the
second one... Does anyone have a good idea for handling this? I was
thinking maybe an ant build that would copy all of the central templates
to all of the web-apps that used them... That would provide a central
place to
Subject: Re: Help with JDBC Connection Pool
From: Ken Holzer [EMAIL PROTECTED]
===
I tried to implant the info Mark had sent and when I start my server I get
the following error:
Is there something I need to do in the ActionServlet?
I am using the jakarta-struts-20020529 build.
Thanks,
Ken
It sounds like whatever field you are using in the html:textarea to populate
the control is not retaining the data.
Is whatever action(call it action1) forwarding the first time populating the
bean?
Is the text hard-coded, in the resources file, or done at runtime?
Since the bean is repopulated
Thanks, that seems to work - though only if the names of the attributes in
the HTML are the same. I thought that if the names of attributes on the two
ActionForm instances - even if they were different classes (as in my case
for the list and modify pages) - were the same, struts would know where
Cedric,
is there anyway to define nested menu items( meaning submenu) inside the
definition.xml file?
thanks
danny
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
We have cases where some of our data elements in our ActionForms are not
native Java types. We have Date and Timestamp elements. Seems struts does
not handle these data types as part of the conversion from a post to an
ActionForm? Also, we would prefer to be able to post a Double value contain
Subject: A common problem: Cannot find ActionMappings or ActionFormBeans?
From: Jesper Lindholt Ottosen [EMAIL PROTECTED]
===
This is a multi-part message in MIME format.
--71050682FAF314ABBDC2DF31
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi!
I
Hello, I'm working on deploying to Websphere 4.x on the Win 2000 platform,
and I'm receiving the following error:
Error 500: Cannot find ActionMappings or ActionFormBeans collection
I've read a few emails about modifying the struts code to make this work and
replacing parsers and all, but my
I have been attempting to update a project from Struts 1.0 to 1.0.2 to
resolve some file upload problems. Now, I've found that the ActionForm's
getServlet() method no longer exposes the ActionServlet. This is especially
problematic to me, since a fair number of our ActionForm-derived classes
i've hcecked the archives and found no answer so here goes.
We're designing a new app which will display a variety of categories of
content. Essentially a request to display a content type will have a URL of
www.mayapplication.com/do/content/CONTENTTYPE/id.jsp
Can we support this with a
If I have an action that will need to forward to a different business action
under certain circumstances, how should I do that? Tried forwarding to the
path of another Action, but that's not obviously correct (based upon the
errors I'm getting).
thx...
--
To unsubscribe, e-mail:
Shouldn't this be modified to be all accessed NON-CHECKBOX
properties...? From doing some tests with String properties
representing checkbox values, as long as you either default the checkbox
value, or it's set to one of on, yes, or true then you're ok, but
should you
set the value explicitly:
has anyone seen this error when using struts html:form
tag with iws 4.1??
javax.servlet.ServletException: cant remove Attributes from request scope
thanks
Mike
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
That's exactly how you do it; you must be doing something wrong in
struts-config. but this subject has been brought up and answered many times
recently. Did you check the archive?
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
Mark
-Original Message-
From: Alexandar
Indexed options in the tag is one way to get it done, but it's not the
easiest.
Here's a previous post where I put up a quick example of doing without
nested tags, and with the nested tags...
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg31991.html
And if you have
Subject: Re: CachedRowSet vs Collection of ValueObject
From: Vic C [EMAIL PROTECTED]
===
It is very fast, besides you are using CRS only as a collection.
Chen, Dean (Zhun) wrote:
Is CachedRowSet performant?
I read here:
Im using a bean:write, and Resin under SunOS says no getter method for
property (isChecked)... Im using several other bean:writes on the same
JSP page and I know the setter and getter methods are defined in the form
bean for this particular property (i.e. setIsChecked and getIsChecked). The
try setChecked and getChecked as ur setter getter and use checked as the
property in bean:write.
what does getIsChecked return!
CT.
-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 May 2002 11:16 AM
To: Struts Users Mailing List
Subject: No
Hi, I've only been strutting for a couple of months and I often break out
into standard JSP to do familiar things, eg:
Here is the way I have been alternating bgcolor in tables using struts. Is
there a more strutty way of doing this sort of thing, i.e. logic tags, or is
this acceptable?
%
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg26590.html
James Mitchell
Software Engineer\Struts Evangelist
Open-Tools.org
Come and see what all the fuss is about...
http://struts-atlanta.open-tools.org
-Original Message-
From: Todd Pierce [mailto:[EMAIL PROTECTED]]
hi,
Can anyone tell me as to how to get an object of ActionServlet in the Action
class ???
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
by calling getServlet method
ActionServlet as = this.getServlet();
Refer to:
http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/action/Acti
on.html
CT.
-Original Message-
From: Radhika Nadkarni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 May 2002 2:43 PM
To: [EMAIL
80 matches
Mail list logo