RE: FORM based Auth and Struts

2003-05-30 Thread Mike Thompson
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...

RE: FORM based Auth and Struts

2003-05-30 Thread Mike Thompson
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:

RE: Struts and the infamous IE multiple browser/same session problem

2003-05-29 Thread Mike Thompson
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; }

RE: Same but Different ( I hope )?

2003-04-03 Thread Mike Thompson
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

RE: [ImageButtonBean] usage with LookupDispatchAction

2003-04-03 Thread Mike Thompson
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:

RE: Struts link to map viewer

2003-04-01 Thread Mike Thompson
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

RE: ConcurrentModificationException in logoff

2003-03-27 Thread Mike Thompson
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

RE: [OT - a bit] Changing a date from dd.mm.yyyy hh:mm:ss to number of milliseconds since 1970

2003-03-26 Thread Mike Thompson
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

RE: Calendar tag lib

2003-03-18 Thread Mike Thompson
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

ActionFormBean / FormBeanConfig

2003-03-17 Thread Mike Thompson
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

Re: EJB with Struts

2001-07-03 Thread Mike Thompson
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

Re: variable number of inputs

2001-07-03 Thread Mike Thompson
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

struts with jboss problems

2001-06-28 Thread Mike Thompson
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

No action

2001-06-28 Thread Mike Thompson
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

Re: No action

2001-06-28 Thread Mike Thompson
' 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

Re: Dynamic label

2001-06-26 Thread Mike Thompson
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

Re: iterate over a HashMap

2001-06-26 Thread Mike Thompson
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

Re: iterate over a HashMap

2001-06-26 Thread Mike Thompson
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

Re: Struts installation questions

2001-06-25 Thread Mike Thompson
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

Re: Configuration for Action

2001-06-21 Thread Mike Thompson
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) {

Re: iteration of users database in struts-example

2001-06-21 Thread Mike Thompson
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]

Re: Can I put http://www.xyz.com/file.html using template?

2001-06-21 Thread Mike Thompson
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?

Re: Deploying Struts into J2EE RI

2001-06-19 Thread Mike Thompson
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

Re: Tag Libraries for Checking Role?

2001-06-19 Thread Mike Thompson
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

Re: Breaking MVC separation?

2001-06-19 Thread Mike Thompson
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

Re: struts-blank on iPlanet

2001-06-19 Thread Mike Thompson
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

ActionForwards and request parameters

2001-06-19 Thread Mike Thompson
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

Re: Logon API in struts?

2001-06-18 Thread Mike Thompson
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

Re: java report article says bye-bye struts

2001-06-18 Thread Mike Thompson
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:

help build

2001-06-15 Thread Mike Thompson
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 =

html:checkbox

2001-06-15 Thread Mike Thompson
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

Re: html:checkbox

2001-06-15 Thread Mike Thompson
, 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

Re: html:checkbox

2001-06-15 Thread Mike Thompson
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

ClassCastException when processing a forward?

2001-06-14 Thread Mike Thompson
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"

Re: ClassCastException when processing a forward?

2001-06-14 Thread Mike Thompson
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

adding checkbox to form

2001-06-14 Thread Mike Thompson
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"

action help

2001-06-13 Thread Mike Thompson
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

Re: action help

2001-06-13 Thread Mike Thompson
.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

Re: action help

2001-06-13 Thread Mike Thompson
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

Re: action help

2001-06-13 Thread Mike Thompson
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

Re: action help

2001-06-13 Thread Mike Thompson
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

Re: action help

2001-06-13 Thread Mike Thompson
). 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

Putting it all together, help???

2001-06-12 Thread Mike Thompson
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

Re: Putting it all together, help???

2001-06-12 Thread Mike Thompson
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