Declarative Security and Struts
Can this be done? I have been able to get a MemoryRealm in Tomcat to work using BASIC authentication. If I try to do this with FORM based authentication it seems to think the ACTION="j_security_check" in my login.jsp seems to make struts think this is an action that should be in the struts-config. I admit, I know very little about security. Any links for MemoryRealm and JDBCRealm using struts would be great! The goal is Memory first, then get it to work with JDBC. Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LookupDispatchAction
Has anyone ever gotten a LookupDispatchAction to work with more than one locale? I am simply trying to do a small in english and spanish, all is well until I hit a lookupdispatchaction. It then uses the translated text as the method name instead of the map lookup name. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LookupDispatchAction and I18N
Greetins all, As a newbie in struts, I am sure this is something simple. I have some LookupDispatchActions setup and working fine. Now, I want to internationalize this app. I created a second resource file ending in es_MX. Ok, now what happens is when it does the lookup to find the method in my action class it uses the translated text as the method name so obviously it doesn't find it. Is there something simple I am missing? Some basics. application.properties button.edit=Edit application_es_MX.properties button.edit=NYT LookupDispatchAction map.put("button.edit", "Edit"); and I have a method called Edit. When I run the other language version, it tries to call a method of NYT instead of Edit. Any clues? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple struts-config.xml - multiple modules?
I have a question regarding overall architecture. I am going to have a huge web app; well it will be a suite of web based tools. Lets say I will have one main menu, and from there possibly 5 separate modules (separate content areas). First, how hard is it to have a struts-config for each module (I have an example below). Second, can each "module" be in its own war and still be able to go back and forth among the other modules? web.xml config /WEB-INF/config/struts-config.xml config/module1 /WEB-INF/config/struts-module1-config.xml now the actions work fine in the default config, but how do I call an action FROM the default to module 1? Here is what I have tried in my .jsp. Note, this .jsp is part of the default and im trying to call something in module1.
Indexed Properties examples?
I am still trying to get this to work. I simply want to display records in table format in a browser and be able to change the data, do a submit and have access to the changes back in the action. Currently I am getting : "HTTP ERROR: 500 No getter method for property AwardIndexed[0].safAwardCode of bean awards" If I can offer anymore info, please ask. Also, if anyone has a working example of this I would love to see the snippets of the jsp, formbean and any other relevant parts. Mike Here are some snippets. .jsp - form bean - private ArrayList awards; public void setAwardIndexed(int index, AwardMasView ob){ System.out.println("setAward"); this.awards.set(index, ob); } public AwardMasView getAwardIndexed(int index){ System.out.println("getAward"); return (AwardMasView)this.awards.get(index); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Processing a 'POST' from the JSP Page for an ArrayList?
I'm new to struts and so far love it, but this piece is killing me. I have a jsp, form bean, view, action. I am ok with loading an arraylist and embedding it into the jsp page using the iterate. Now, I want to make changes to the table in the browser which is represented as an iterator, and then I would like to get access to these changes back in my action class. Currently, the action class sees the original view and not the updated view. Here are some code snippets. JSP - . . . . Action Class - List awards = ((AwardMasResultsForm)form).getAwards(); AwardMasView awardView = (AwardMasView)awards.get(1); Iterator i = awards.iterator(); // this allows you to loop thru the Arraylist while (i.hasNext()) { AwardMasView awardmas = (AwardMasView)i.next(); // get a copy of an AwardMas bean from the list System.out.println(awardmas.getSafAwardCode()); //would like to see changed value here System.out.println("JLB -delete " + awardmas.getDeleteRecord()); // would like to see changed value here } Let me know if I can offer anything else to help with this. :) Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]