Re: ajax framework
temp temp wrote: I have to create highly interactive web page ie use of lot of java script. Are there open source java ajax frameworks where I code only in java and do not write any java script? I mean any ajax framework where I have the whole power of java script but I work with only java . GWT - google web toolkit -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: BROWSER CLOSE
Kranti wrote: I am working on a struts based application. I need to meet a special requirement that is when user clicks the X button on the browser the browser should not close immediately rather we should show a confirm box. if user says yes in the confirm box then only browser should close. It has nothing related to Struts. Ask java-script guys. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: Design within struts
Thom Burnett wrote: My question is, what's the recommended practice. Is it considered best to keep different actions for each major purpose or to have one Action (controller) sorting and dispatching incoming requests. There is controller already ;-) ActionServlet is a controller which dispatches requests to Action classes. So it does not make any sense to create another one. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: global auth. for application
Aljosa Mohorovic wrote: i'm using struts 1.2.9 and maybe we will use container-managed authorization, but my question is also related to similar tasks like howto implement statistics. extending request processor will solve all current problems. Switch to 1.3.x. You won't have to extends request processor, instead you will 'inject' your code in the command's chain. It'll be much more elegant. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: No taglib element in web.xml v2.4 ?
Thomas Thomas wrote: Well how am I supposed to declare my Struts taglibs then ? You don't. All tld files are present in META-INF directory of specific jars. Servlet container looks for those files in that location and it works ;-) Of course you can still put tld files in WEB-INF, WEB-INF/tld and specify them in web.xml, but you don't have to. -- Mikolaj Rydzewski <[EMAIL PROTECTED]>http://ceti.pl/~miki/ PGP KeyID: 8b12ab02 There are three kinds of people: men, women and unix. smime.p7s Description: S/MIME Cryptographic Signature
Re: more than one parameter in a link
Pierre Goupil wrote: Ho yes ! Here's a clean way to fill a map in a JSP ! By clean, I mean without a scriptlet that a Web developper wouldn't understand. Great ! I doubt whether web developer with no programming background would understand JSTL solution either... -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: more than one parameter in a link
Pierre Goupil wrote: Yes, of course, but it seems that doign things this way, you loose all other parameters of the request like, in particular, the jsessionid. Am I right or wrong ? Wrong. c:url rewrites url if necessary. Unfortunately it's not xhtml aware and will produce & as param separator instead of & -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: more than one parameter in a link
Pierre Goupil wrote: http://localhost/myApp/myAction.do?type=2&id=12 Of course, I could use a Map from my bean. But the problem is that, in my case, the bean have no way to know which value to give to the JSP : it's the JSP and it only who knows the values... link -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: How to set <%@ page session="false" %>, globally?
Bryce Nesbitt wrote: I'm having trouble with Google and Alexa indexing pages on my site hundreds of times, each with a different colon separated session ID. There's a big thread on tomcat-users list regarding the same issue. IMO the best solution is to apply a filter to disable url rewriting (one can enhance it to disable it only for spiders). http://mail-archives.apache.org/mod_mbox/struts-user/200311.mbox/[EMAIL PROTECTED] -- Mikolaj Rydzewski <[EMAIL PROTECTED]>http://ceti.pl/~miki/ PGP KeyID: 8b12ab02 There are three kinds of people: men, women and unix. smime.p7s Description: S/MIME Cryptographic Signature
Pros and cons of multi module applications
Hi, I've got three similiar web applications (struts 1.3). They are a part of one service, with single-sign-on enabled. It works fine. I wonder how difficult would it be to convert them into one, module aware application. There are session form-beans used. Probably with the same names. Would it be a problem? How does modules work with tiles? Will I have to modify forwards' paths and tiles definitions' paths to work with modules? I know the rule: if it works don't fix it ;-) Unfortunately there's one common module, shared by all the applications and that's the reason I want to join them. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
html:rewrite does not work from pure jsp?
Hi, The usual /index.jsp in a struts application just redirects user to /index.do or something similiar. I wanted to make it 'really good' and make use of html:rewrite, unfortunately neither: nor works. The exception 'cannot find null module' is thrown. I use struts 1.3.5. Is is normal? Does these tags work only when forwarded from an Action? -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: Tags nested
Juanjo Cuadrado wrote: I think that JSP spec firbids this. The inner ${dataQueries.name} -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: [Struts2] Redirect forward
David H. DeWolf wrote: Use the redirect result type: /path/to/target Not exactly what I need. I'd like to redirect user to: "/path/to/target.action?id=foo&id2=bar" With struts 1.x one could use ActionRedirect.addParameter(...) to add several parameters and return complete 'redirection' from an Action.execute() method. See: http://cwiki.apache.org/WW/result-types.html At this moment the page does not work. -- Mikolaj Rydzewski <[EMAIL PROTECTED]>http://ceti.pl/~miki/ PGP KeyID: 8b12ab02 There are three kinds of people: men, women and unix. smime.p7s Description: S/MIME Cryptographic Signature
[Struts2] Redirect forward
Hi, I'm not new to struts, but new to struts2. I have read a few tutorials, and some pages on the wiki and I think I'll use struts2 in future projects ;-) How can I achieve the functionality of ActionRedirect from the 'old' struts? I want my action to redirect to another url with some parameters added. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3 + Tiles + Chain config
Wendy Smoak wrote: See section 4.3 on Tiles in the upgrade notes: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 There is a chain-config file in the Tiles jar. You can use it directly, or extract it and modify it if you need to. Thanks for information. There is a bug in 1.3.5, however. https://issues.apache.org/struts/browse/STR-2935?decorator=printable So if one wants to use tiles with struts 1.3.5 it is recommended to download patched chain-config.xml from http://svn.apache.org/viewvc/struts/struts1/trunk/tiles/src/main/resources/org/apache/struts/tiles/chain-config.xml?r1=436857&view=log and use it instead of bundled one. -- Mikolaj Rydzewski <[EMAIL PROTECTED]>http://ceti.pl/~miki/ PGP KeyID: 8b12ab02 There are three kinds of people: men, women and unix. smime.p7s Description: S/MIME Cryptographic Signature
Struts 1.3 + Tiles + Chain config
Hi, I wanted to migrate my struts/tiles application from struts 1.2 to struts 1.3 to make use of its new feature: chain of responsibility. The old way of using tiles with struts was to override default request processor with special one designed for tiles. In the new way I should somehow "inject" new command into chain of commands to make tiles work. Unfortunately I cannot find anywhere in the docs how could it be done. Javadoc http://struts.apache.org/1.x/struts-tiles/apidocs/org/apache/struts/tiles/commands/TilesPreProcessor.html does not explain how to inject this command (should I copy/paste original chain config into the new one?). -- Mikolaj Rydzewski <[EMAIL PROTECTED]>http://ceti.pl/~miki/ PGP KeyID: 8b12ab02 There are three kinds of people: men, women and unix. smime.p7s Description: S/MIME Cryptographic Signature
Re: R: Form name
Marcello Savino wrote: Yes it works but the problem is that the rendered file is not a valid xhtml1.0 strict file, cause the atribute name. I need a workaround to avoid the attribute name to appears in the rendered file. I use struts 1.2.7. Sample JSP: And there's no name attribute in generated page. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: Form name
Marcello Savino wrote: Using Struts the tag is rendered in this way The problem is that in my application the rendered XML file MUST be a valide "xhtml1.0 strict" file and the DTD strict does not allow the attribute "name" for the tag . It works for me ;-) Do you use tag? -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: 2 listboxes with buttons t move from on list to other
Andy.de wrote: knows anyone a sample code for a page with 2 listboxes and 2 buttons to move objects from left list to right list and vice versa? Try uitags.sf.net -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: Parsing error processing resource path
Sandeep Gupta wrote: But when I am deploying the WAR it works perfectly. I have validated the struts-config.xml file using various validators and it is validated without any errors or warnings. Maybe some kind of file-locking occurs? How do you make a deploy? Just copy war's content into app's directory? Maybe this is the case, weblogic keeps reference to old struts-config.xml or something like that. When deploying as a war file, weblogic just removes old directory, creates a new one and no file-locking occurs. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: ClientAbortException
B.Sridhar wrote: I am writing a struts appliction a to download a file that is on the server. When the user clicks the download button, its displaying the open,save cancel window. Open and save are working fine, but while downloading a word doc or pdf, when the user clicks cancel, its displaying a ClientAbort Exception. Does this happen only with IE? Add "Pragma: cache" header to response. Should help. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: alternative
Yariel Ramos Moreno wrote: Any help is welcome, If you don't want go AJAX, then try uitags.sf.net. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature