yup
don't use the struts tags for your login page.
--m
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 12:59 PM
To: [EMAIL PROTECTED]
Subject: FORM based Auth and Struts
Since the Archive is down this may be there already but...
That's what we've used in our application. The container is supposed to manage
setting the principal, etc in the request so long as you use container based auth.
This should be portable across containers.
--m
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent:
Everyone's favorite!!! ;)
you can always disable control-N via JavaScript ;)
in an onkeydown handler probably for a body tag.
//check for control n
if (window.event.ctrlKey window.event.keyCode == 78)
{
window.event.returnValue = false;
return false;
}
I've also have had problems implementing a wizard. Make sure your reset method is
only reseting the piece of the form that is being posted back. Same with your
validate method.
Out of curiosity... Are you worried about 2 browsers attached to the same
session(ctrl-n) using your wizard? In
javascript
function submitForm(action)
{
form.action=someAction.do?dispatch= + action;
form.submit();
}
onclick=submitForm('someAction')
-Original Message-
From: Tim Stadinski [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 1:56 PM
To: [EMAIL PROTECTED]
Subject:
rename your text box.
frm.action should be the actual action that your form posts/gets to.
--m
-Original Message-
From: Balraj Goulikar [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 11:08 AM
To: Struts Users Mailing List
Subject: Re: Struts link to map viewer
hi,
i
you are removing items from a map you are iterating over. That's a no no.
--m
-Original Message-
From: awc [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 5:15 PM
To: Struts Users Mailing List
Subject: ConcurrentModificationException in logoff
Hi All,
In log off
See java.text.DateFormat.parse()
gets you a java.util.Date which you can call getTime() on.
Good Luck!
--m
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 8:28 AM
To: Struts Users Mailing List
Subject: [OT - a bit] Changing a date
http://www.mattkruse.com/javascript/
has a nifty calendar popup for a client side date picker.
--m
-Original Message-
From: Anand M S [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 9:10 AM
To: Struts Users Mailing List
Subject: Calendar tag lib
Hi All,
Is there any
Greetings all. I've searched google, looked at the mailing lists and the FAQs and
have not been able to come up with a satisfactory explanation of the ActionFormBean
class. I would like to initialize my ActionForm class with some custom properties, so
I have defined an ActionFormBean which
It's no different than using session/entity beans anywhere else.
In an action...
ClientServiceManagerHome home =
HomeLocator.getClientServiceManagerHome();
ServiceManager manager = home.create();
((ServiceListForm)form).setServiceModels(manager.findAll());
HomeLocator is
Struts does not necessairly create an ActionForm out of the returned data,
it uses the current one and repopulates it via the property names specified
in your html:form. What you need are indexed properties, see archive.
You'll end up having something like:
throw all this in an iterate tag to
I recently switched to the JBoss app server and
have been slowly been redeploying my struts application on it. I finally
got my ejbs deployed and my web application deployed, BUT whenever I click on a
link that is supposed to trigger a struts action, this is what I
get.
2001-06-28 11:11:30
I'm getting an error when linking to an action.
2001-06-28 02:29:48 - Ctx( /SecureExWeb ): 500 R( /SecureExWeb +
/servicemanager.do + null) No action instance for path /servicemanager could
be created
My struts-config.xml has the action entry:
action path=/servicemanager
' and the 'type'. This causes
the problem...
cheers,
Amar..
-Original Message-
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 3:50 PM
To: [EMAIL PROTECTED]
Subject: No action
I'm getting an error when linking to an action.
2001-06-28 02:29:48 - Ctx
try
bean:message key='%= myBean.getLabel() + .label.header %' /
--m
- Original Message -
From: Pal, Gaurav [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 7:48 AM
Subject: Dynamic label
Hi,
I am trying to create a dynamic label HTML form through the
Goto http://jakarta.apache.org/struts/struts-logic.html#iterate
--m
- Original Message -
From: Nanduri, Amarnath [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 2:01 PM
Subject: iterate over a HashMap
How do i iterate over a HashMap ? The key is a String but
fancy to satisfy the compiler and the JVM.
cheers,
Amar..
-Original Message-
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:09 PM
To: [EMAIL PROTECTED]
Subject: Re: iterate over a HashMap
Normally, each object exposed by the iterate tag
Here is my cut and pasted answer from last week
Looks like your index.jsp? Is trying to use the bean:message
key=index.title/ tag
and the key does not exist in your message props file or your message prop
file can not be found. In your web.xml you should have an entry
init-param
If your running in a J2EE container, you could always shove the entries into
the environment. Then you could look them up like:
try
{
InitialContext ic = new InitialContext();
Object myparm = ic.lookup(the/jndi/name/of/your/parameter);
}
catch (javax.naming.NamingException ex)
{
My guess is that database is a hashmap of some sort, so what you need is
bean:write name=user property=value.username/
see
http://jakarta.apache.org/struts/struts-logic.html#iterate
--m
- Original Message -
From: Corneliu Rachieru [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
no :(
all that is done with the put, if direct != true, is a
pageContext.include(yourfile);
--m
- Original Message -
From: Rick Horowitz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 21, 2001 4:24 PM
Subject: Can I put http://www.xyz.com/file.html using template?
Just make sure that struts.jar is in your war file under WEB-INF\lib.
- Original Message -
From: Peter Davey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 2:38 AM
Subject: Deploying Struts into J2EE RI
I have a Struts application (1.0beta3) that I'm trying to
logic:present role=ADMIN
html for administrator
/logic:present
logic:notPresent role=ADMIN
non admin links
/logic:notPresent
- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 12:06 PM
Subject: Tag Libraries for Checking
Everyone is saying use value objects. So you have your ServerBean return a
java class that just implements java.io.Serializable which is passed back to
your client. Client does what it wishes to this value object, which is
where all the get/set methods are. You can do validation here if you
Looks like your index.jsp? Is trying to use the bean:message key=?/ tag
and the key does not exist in your message props file or your message prop
file can not be found. In your web.xml you should have an entry
init-param
param-nameapplication/param-name
param-valueclass name of
I have a page with a series of rows and an update
button. When the update button is pressed, updates are made to the DB and
the page is redisplayed.
1) What is the normal way to do this?
Right now, to get to the page you follow an action listItems, and the form is
hooked to another action
Ok, so the fairly standard aproach is to
authenticate the user by hand and shove the user name into a session attribute
that is application defined? i.e.
session.setAttribute(Constants.USER_KEY,
user);
What if I'm using roles andI want to be able
to say
request.isUserInRole("ADMIN");
or
I didn't know the 2 were competing? How bout using the 2 in conjunction. I
have Struts Action classes that access EJBs, post them to Struts Forms,
etc...
--m
- Original Message -
From: Bill G [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 4:03 PM
Subject: RE:
Ok, so I'm trying to build my own version of struts
so that I may incorporate some of Mr. Trent's gridXXX tags.
Here is what I get:
C:\jakarta-strutsant distBuildfile:
build.xml
init: [echo] -
jakarta-struts 1.0-b1 -
[echo] [echo] java.class.path =
Can someone clarify the following:
WARNING: In order to correctly recognize unchecked
checkboxes, the ActionForm bean associated with this form must
include a statement setting the corresponding boolean property to
false in the reset() method.
Does this mean that if I use check boxes I have
, 15 Jun 2001, Mike Thompson wrote:
Can someone clarify the following:
WARNING: In order to correctly recognize unchecked checkboxes, the
ActionForm bean associated with this form must include a statement
setting the corresponding boolean property to false in the reset()
method
false).
Struts calls reset before setting the properties from the submit, so by
setting the checkbox to the default state (be it true or false), it will
either remain that way or be changed to reflect the user gesture.
Mike Thompson wrote:
Still confused. So in my reset method, I run
Here is the action mapping section of my
struts-config
action-mappings action
path="/servicemanager"
type="com.instanton.secureex.web.action.service.ListServicesAction"
forward name="success"
path="/service/listservices.jsp"/
/action
action
path="/servermanager"
Whoops, was an error in my .jsp. Sorry to
bother...
--m
- Original Message -
From:
Mike Thompson
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 10:21
AM
Subject: ClassCastException when
processing a forward?
Here is the action mapping section
I am displaying a collection of beans in a form
with logic:iterate. Here is the loop
html:form
action="updateservices.do"
name="serviceForm"
type="com.instanton.secureex.web.form.ServiceForm"
logic:iterate id="service"
name="services"
TR
TD
align="center"
html:text name="service"
Ok, I'm feeling totally lost.
Here is a snippet from my
struts-config.xml
action-mappings action
path="/servicemanager"
type="com.instanton.secureex.web.action.service.ListServiceAction"
forward name="success"
path="/service/listservices.jsp"/
/action
...
/action-mappings
now in a
.dgsystems.dgonline.bmo.OrgSummary" %%@ page
import="java.util.*" %
%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %%@ taglib uri="/WEB-INF/struts-logic.tld&qu
ag instead of the html:link="" tag in the jsp page;
html:form
action="/servicemanager.do"
Maby this can help???
/L
- Original Message -
From:
Mike Thompson
To: [EMAIL PROTECTED]
Sent: Wednesday, June 13, 2001 3:24
a 404 is generated :( No exception page or
anything.
- Original Message -
From:
Dan Marina
To: [EMAIL PROTECTED]
Sent: Wednesday, June 13, 2001 9:12
AM
Subject: Re: action help
what kind of error is generated by tomcat ? could you provide
an extract from
I've looked there is nothing :(
Manager[/SecureExWeb]: Seeding random number generator class
java.security.SecureRandomManager[/SecureExWeb]: Seeding of random number
generator has been completedContextConfig[/SecureExWeb]: Added certificates
- request attribute
). It's been fixed in the
recently released 1.3-beta-2.
Hope this helps.
--
Martin Cooper
Craig
- Original Message -
From: Mike Thompson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 13, 2001 6:24 AM
Subject: action help
Ok, I'm feeling totally
Ok, I'm new to this web based app thing, so any
help is greatly appreciated. There are a couple of things that confuse me
about Struts.
1) Say I've got a main page with a few links
on it. No formsplain vanilla. Is it a good struts practice to
create an Action for this page?
2) Struts
Title: RE: Putting it all together, help???
/
Another point about your example above is that you are
essentially going to need some kind of object to hold
your result data. Either you have all
44 matches
Mail list logo