internationalization
Hi i've a simple question: is possible obtain the languages supported from application? With the MessageResources class i could obtain the message in a particular language, if it is supported from application. For example if i've the properties file for the french languages i could obtain a message in this language...but how i know the language supported of my application ( in fact the file properties that there are in my application ). Is stupid try to obtain the message in all language for example try to obtain the message in french and if exists i know that there is a file properties for french...how obtain the list of file properties of application? Thank in advantage. Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
license
Hi i've a simple question about StrutsMenu and Display tag library... It's possible to use StrutsMenu and Display tag for realize commercial products? Thank in advance Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simple question
Hi, there is a possibility to send an object in the request if i don't pass it with parameter of the link? for example: % request.setAttribute(in,index); % ... hm:link page=/index.jsp transaction=true home /hm:link this obviously don't work...but there is a system to obtain this whit a Struts component? I should pass a String value to action, but this must be not visible in the url. In particular my action don't know the page that call it and for this... I try to pass it as message, but this don't work.. Any idea? Thanks in advance Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple question
Thank, but with this i must crete an ActionForm...it's possible avoid to create an ActionForm for an form? Thank for help Ale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple question
Thank you, you have been very kind. Ale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Menu
Hi i've a simple question: there is a possibility to add parameter at link created with Struts Menu? for example i've an Action that add an attribute to request, i would like that this attribute is added to link generated from Struts Menu..it's possible? example of code: script language=JavaScript1.2 src=scripts/coolmenus3.js/script script src=scripts/menu-config.js/script menu:useMenuDisplayer name=mymenu bundle=org.apache.struts.action.MESSAGE menu:displayMenu name=list/ /menu:useMenuDisplayer and in menu-config i've ?xml version=1.0 encoding=UTF-8 ? MenuConfig Displayers Displayer name=mymenu type=com.fgm.web.menu.displayer.CoolMenuDisplayer/ /Displayers Menus Menu name=list title=FILE description=test Itemname=TDLexit title=EXIT location=index.jsp/ Itemname=TDLexit title=EXIT location=index.jsp/ /Menu /Menus /MenuConfig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
urgent:projecting with tiles
Hi, i've an question about tiles.. i would use tiles for my application, but i have an problem. If i use tiles instead of frame but i face this problem: how obtain the definition of page? Example, i have in my application the login page and if an page call the login page i would that the module of login will put into body of this page( manteins header,footer an menu )..for this i append at the all link an parameter that rappresent the definition of page, in an action i use this definition for create an new definition and put the login module in the body. Now i have another problem: if there is an error in a action i would reload the page that call this action and display an error message. But the page not contains the logic, contains only tag that iterate on collection of element passed from preavious action. For this the action that have an error must call the preavious action and not preavious page..my action must know the url for call the preavious action ( path,param and definition of preavious page). For this i add another parameter at all my link, this parameter conteins the preavious url. example of a complect url: pathAction?itsParameterp=nameOfDefinitionOfThisPageu=pathPreaviousAction?itsParameterp=preaviousDefinitionOfPage it's very orrible..but how i know the definition of page and the preavious url if i not add this in the link? i think to save this in session, but first this is very heavy for my server and second if a client save the link and call my page with this savedlink??? i think to use the attribute input in action element, but some page dont't have this ( example action of menage language could call from some jsp...) i think to extends TilesRequestProcessor for adding at request an collection conteins the preavious url and definition, but this function if my client browsing normaly my site..if my client save the url and call my site with this don't work... there is an soluction of this problem?Somebody to explain the tecnics that use in your application for solve these problem? Thanks in advance, Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Errors in html corrected..
I think that the attribute action in tag form should be /find.do if in struts config you use path=/find..try it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Errors in html corrected..
I'm read only your preavious mail..Which error do you obtain? i don't understand your problem..explain its - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Errors in html corrected..
you're code appear rigth..try to use explicit parameter: html:form action=yourpath.do method=POST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem mapping/url
Hi, i've a problem with url..how i retrieve the mapping of url in a jsp? for example i have an jsp as index and an action-mapping as it: action type=org.apache.struts.actions.ForwardAction path=/homeA parameter=/index.jsp / now in another jsp call homeA.do and i see index.jsp in my browser, the url in my browser is .../homeA.do but if i try to obtain this url (with request.getRequestURI() )i obtain /index.jsp and not homeA.do that i would.. It's possible in a jsp retrieve the url that i see in my browser (in this case homeA.do) instead of the real url??? i'm new to Struts..sorry for my stupid question. Modena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error in action
Hi, if i've an a page that call an action if in this action i've an error how i return to page that invoked the action? i try to use mapping.getInputForward(), but this return me the path of my action...i try to save the url but have a problem (see my preavious mail Problem mapping/url)...there is an method like javascript:history.go(-1)?? sorry for my stupid question,thanks. Ale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GET/POST in Actions Form Validation
You can set validate=false and call the validation method from action if you would.. try it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Urgent, TilesRequestProcessor
Hi, i've a problem with TilesRequestProcessor; i insert in my struts-config.xml the definition of my classes: controller processorClass=struts.requestP / and requestP extends TilesRequestProcessor (i don't understand whi if i use tiles plug-in i don't exstend RequestProcessor..) in this class i overload the processPreprocess and processForwardConfig methods, now if i call an jsp page this processor dont't work (i use System.out for see if it work..), it's work if i use TilesAction...whi? example of my page: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=base flush=true controllerUrl=/til.do / and in my struts-config.xml: action type=struts.tilesA path=/til forward name=success path=mainLayout/ /action in my tiles-defs.xml: definition name=base path=/tilesLayout/baseLayout.jsp put name=page value=baseEstesa / put name=title value=prova.titolo / put name=header value=/tilesLayout/header.jsp / put name=body value=/tilesLayout/body.jsp / put name=menuI value=/tilesLayout/menuI.jsp / put name=footer value=/tilesLayout/footer.jsp / /definition in this case i use an TilesAction and i see the System.out from my processor(my processor work),but if i don't use the TilesAction: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insert definition=base flush=true / the processor don't work...whi? Thanks, Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
url-rewrite
Hi i've a problem: i use the struts's tag html:link in my jsp and mapping.findForward(...); in my Action but the url-rewrite doesn't work... In an Action i set an session variable and my code in all project is(for example): in jsp html:link action=/didatticaA.doDidattica/html:link in struts-config.xml action type=myActions.facoltaA path=/didatticaA forward name=success path=/didattica/facolta.jsp/ /action in facoltaA (in public ActionForward execute(ActionMapping mapping...)): return mapping.findForward(success); With ms explorer 6 this function,but with netscape or opera if i disable cookie this don't work...whi? Where mistake? I thank for the help. Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:link
Good day, my problem is the following: I use the Eric Fesler's taglib for realize dynamic link in this way: mytag:IterS colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoStudioId%/TD TD align=left%=CorsoStudioName%/TD TD align=left%=CorsoStudioFacolta%/TD TD align=left%=CorsoStudioCrediti%/TD TD align=left hm:link page=/corsiIA.do hm:linkparam id=IDCorsoS name=CorsoStudioId/ hm:linkparam id=IDFacolta name=IDFacolta/ Vis. Corsi Insegn. /hm:link /TD /TR /mytag:IterS where IDFacolta is an parameter that I get from the request and CorsoStudioId is a value that I get from my taglibrary (this iterate on a collection that i pass with the controller). Now I want to know if is possible use the tag html: link of struts with a HashMap, but using an only HashMap and passing this between the varied jsp/ action in the request (because I want to pass some parameter that it haven't displayed in the url). Before i usying: % HashMap mappaold= (HashMap) request.getAttribute ( map); // I recover the values from the old HashMap % mytag:IterS colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoStudioId%/TD TD align=left%=CorsoStudioName%/TD TD align=left%=CorsoStudioFacolta%/TD TD align=left%=CorsoStudioCrediti%/TD TD align=left % HashMap mappa = new HashMap(); mappa.putAll(mappaold); mappa.put(IDCorsoS,CorsoStudioId); % html:link action=/corsiIA.do name=mappa / /TD /TR /mytag:IterS Here I use more HashMap one for any cycles (es: 100 cycles= 100HashMap : ). .I'd like to know if it' s possible to use only one and if yes how?Or,if this are impossible, how i can pass other parameter from this jsp and its controller if i don't put this parameter on the link? I thank for the help. p.s. Sorry for my english. Alessio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameters
Good day..how i can pass other parameter from jsp and its controller if i don't put this parameter on the link?(see my previous mail html:link for more details) Example i have: hm:link page=/corsiIA.do hm:linkparam id=IDCorsoS name=CorsoStudioId/ hm:linkparam id=IDFacolta name=IDFacolta/ Vis. Corsi Insegn. /hm:link It' possible send in the request another parameter that not contained in the link(example other than CorsoStudioId and IDFacolta can i pass IDP...?) I thank for the help. p.s. Sorry for my english. Alessio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameter and html:link
Good day, my problem is the following: I use the Eric Fesler's taglib for realize dynamic link in this way: mytag:IterS colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoStudioId%/TD TD align=left%=CorsoStudioName%/TD TD align=left%=CorsoStudioFacolta%/TD TD align=left%=CorsoStudioCrediti%/TD TD align=left hm:link page=/corsiIA.do hm:linkparam id=IDCorsoS name=CorsoStudioId/ hm:linkparam id=IDFacolta name=IDFacolta/ Vis. Corsi Insegn. /hm:link /TD /TR /mytag:IterS where IDFacolta is an parameter that I get from the request and CorsoStudioId is a value that I get from my taglibrary (this iterate on a collection that i pass with the controller). Now I want to know if is possible use the tag html: link of struts with a HashMap, but using an only HashMap and passing this between the varied jsp/ action in the request (because I want to pass some parameter that it haven't displayed in the url). Before i usying: % HashMap mappaold= (HashMap) request.getAttribute ( map); // I recover the values from the old HashMap % mytag:IterS colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoStudioId%/TD TD align=left%=CorsoStudioName%/TD TD align=left%=CorsoStudioFacolta%/TD TD align=left%=CorsoStudioCrediti%/TD TD align=left % HashMap mappa = new HashMap(); mappa.putAll(mappaold); mappa.put(IDCorsoS,CorsoStudioId); % html:link action=/corsiIA.do name=mappa / /TD /TR /mytag:IterS Here I use more HashMap one for any cycles (es: 100 cycles= 100HashMap : ). .I'd like to know if it' s possible to use only one and if yes how?Or,if this are impossible, how i can pass other parameter from this jsp and its controller if i don't put this parameter on the link? I thank for the help. p.s. Sorry for my english. Alessio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameters
Good day, my problem is the following: I use the Eric Fesler's taglib for realize dynamic link in this way: mytag:IterS colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoStudioId%/TD TD align=left%=CorsoStudioName%/TD TD align=left%=CorsoStudioFacolta%/TD TD align=left%=CorsoStudioCrediti%/TD TD align=left hm:link page=/corsiIA.do hm:linkparam id=IDCorsoS name=CorsoStudioId/ hm:linkparam id=IDFacolta name=IDFacolta/ Vis. Corsi Insegn. /hm:link /TD /TR /mytag:IterS where IDFacolta is an parameter that I get from the request and CorsoStudioId is a value that I get from my taglibrary (this iterate on a collection that i pass with the controller). Now I want to know if is possible use the tag html: link of struts with a HashMap, but using an only HashMap and passing this between the varied jsp/ action in the request (because I want to pass some parameter that it haven't displayed in the url). Before i usying: % HashMap mappaold= (HashMap) request.getAttribute ( map); // I recover the values from the old HashMap % mytag:IterS colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoStudioId%/TD TD align=left%=CorsoStudioName%/TD TD align=left%=CorsoStudioFacolta%/TD TD align=left%=CorsoStudioCrediti%/TD TD align=left % HashMap mappa = new HashMap(); mappa.putAll(mappaold); mappa.put(IDCorsoS,CorsoStudioId); % html:link action=/corsiIA.do name=mappa / /TD /TR /mytag:IterS Here I use more HashMap one for any cycles (es: 100 cycles= 100HashMap : ). .I'd like to know if it' s possible to use only one and if yes how?Or,if this are impossible, how i can pass other parameter from this jsp and its controller if i don't put this parameter on the link? I thank for the help. p.s. Sorry for my english. Alessio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:link with Parameter
Good day! I'm new to struts and i need to help..my problem is: mytag:corsoSIter colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoSId%/TD TD align=left%=CorsoSName%/TD TD align=left%=CorsoSFacolta%/TD TD align=left%=CorsoSCrediti%/TD TD align=left % String url = corsiIA.do?IDFacolta=+request.getParameter(IDFacolta) +CorsoSId=+CorsoSId; % html:link action=%=url%Vis. Corsi Insegn./html:link /TD /TR /mytag:corsoSIter where corsoSIter is an customtag that i create for iterate on DB.Now i need to pass to action the CorsoSId and the IDFacolta(this is another parameter from another controller).I tryed to pas an HashMap: HashMap mappaOld=(HashMap)request.getAttribute(mappa); mytag:corsoSIter colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoSId%/TD TD align=left%=CorsoSName%/TD TD align=left%=CorsoSFacolta%/TD TD align=left%=CorsoSCrediti%/TD TD align=left % HashMap mappa = new HashMap(); mappa.putAll(mappaOld); mappa.put(CorsoSId); pageContext.setAttribute(mappa); % html:link action=corsiIA.do name=mappaVis. Insegn./html:link /TD /TR /mytag:corsoSIter This is corectly,but i'd like using only one HashMap..it's very heavy using more HashMap for each page in my WebApplication... Plese help me..is very important. Tanks Alessio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link with Parameter
Scrive [EMAIL PROTECTED]: a bit out of context but after looking at u r jsp it seems that u are packing too much logic in u r jsp..cant u prepare the link parameers in u r action and set them on the form... and then in the jsp just acces that property of form... Thanks,but i don't understand..i pass an collection of course of study and an IDFaculty(as hidden) and my tag iterate on than and show it in a jsp..now i need to pass to another control the ID of selected course and the IDFaculty.I realyze it with an HashMap..but i'd like use only one(see my code)... how prepare the link before to know the selected course? Sorry for the my horrible English. Thanks in advance Alessio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Urgent html:link
Good day! I'm new to struts and i need to help..: mytag:corsoSIter colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoSId%/TD TD align=left%=CorsoSName%/TD TD align=left%=CorsoSFacolta%/TD TD align=left%=CorsoSCrediti%/TD TD align=left % String url = corsiIA.do?IDFacolta=+request.getParameter(IDFacolta) +CorsoSId=+CorsoSId; % html:link action=%=url%Vis. Corsi Insegn./html:link /TD /TR /mytag:corsoSIter where corsoSIter is an customtag that i create for iterate on a collection of course of study(i pass it and IDFacolta in the request from my first Action)and IDFacolta is an ID that i need to next jsp.Now i need to pass to action the CorsoSId(the user's select course from jsp) and the IDFacolta.I tryed to pas an HashMap: HashMap mappaOld=(HashMap)request.getAttribute(mappa); /*the Attribute mappa contains now only IDFacolta and the next HashMap i would like to contains the IDFacolta and the CorsoSId that my user will select from jsp*/ mytag:corsoSIter colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoSId%/TD TD align=left%=CorsoSName%/TD TD align=left%=CorsoSFacolta%/TD TD align=left%=CorsoSCrediti%/TD TD align=left % HashMap mappa = new HashMap(); mappa.putAll(mappaOld); mappa.put(CorsoSId); pageContext.setAttribute(mappa); % html:link action=corsiIA.do name=mappaVis. Insegn./html:link /TD /TR /mytag:corsoSIter This is corectly,but i create an HashMap for each cycle..i'd like using only one HashMap..it's very heavy using more HashMap for each page in my WebApplication... Plese help me..is very important. Sorry for the my horrible English. Thanks in advance Alessio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
another html:link
Good day, my problem is the following: I use the Eric Fesler's taglib for realize dynamic link in this way: mytag:IterS colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoStudioId%/TD TD align=left%=CorsoStudioName%/TD TD align=left%=CorsoStudioFacolta%/TD TD align=left%=CorsoStudioCrediti%/TD TD align=left hm:link page=/corsiIA.do hm:linkparam id=IDCorsoS name=CorsoStudioId/ hm:linkparam id=IDFacolta name=IDFacolta/ Vis. Corsi Insegn. /hm:link /TD /TR /mytag:IterS where IDFacolta is an parameter that I get from the request and CorsoStudioId is a value that I get from my taglibrary (this iterate on a collection that i pass with the controller). Now I want to know if is possible use the tag html: link of struts with a HashMap, but using an only HashMap and passing this between the varied jsp/ action in the request (because I want to pass some parameter that it haven't displayed in the url). Before i usying: % HashMap mappaold= (HashMap) request.getAttribute ( map); // I recover the values from the old HashMap % mytag:IterS colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoStudioId%/TD TD align=left%=CorsoStudioName%/TD TD align=left%=CorsoStudioFacolta%/TD TD align=left%=CorsoStudioCrediti%/TD TD align=left % HashMap mappa = new HashMap(); mappa.putAll(mappaold); mappa.put(IDCorsoS,CorsoStudioId); % html:link action=/corsiIA.do name=mappa / /TD /TR /mytag:IterS Here I use more HashMap one for any cycles (es: 100 cycles= 100HashMap : ). .I'd like to know if it' s possible to use only one and if yes how?Or,if this are impossible, how i can pass other parameter from this jsp and its controller if i don't put this parameter on the link? I thank for the help. p.s. Sorry for my english. Alessio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Urgent..Problem wirh html:link tag
Good day! I'm new to struts and i need to help..my problem is: mytag:corsoSIter colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoSId%/TD TD align=left%=CorsoSName%/TD TD align=left%=CorsoSFacolta%/TD TD align=left%=CorsoSCrediti%/TD TD align=left % String url = corsiIA.do?IDFacolta=+request.getParameter(IDFacolta) +CorsoSId=+CorsoSId; % html:link action=%=url%Vis. Corsi Insegn./html:link /TD /TR /mytag:corsoSIter where corsoSIter is an customtag that i create for iterato on DB.Now i need to pass to action the CorsoSId and the IDFacolta(this is another parameter from another controller).I tryed to pas an HashMap: HashMap mappaOld=(HashMap)request.getAttribute(mappa); mytag:corsoSIter colors=#FF,#E5E9F5 TR bgcolor=%=Color% TD align=left%=CorsoSId%/TD TD align=left%=CorsoSName%/TD TD align=left%=CorsoSFacolta%/TD TD align=left%=CorsoSCrediti%/TD TD align=left % HashMap mappa = new HashMap(); mappa.putAll(mappaOld); mappa.put(CorsoSId); pageContext.setAttribute(mappa); % html:link action=corsiIA.do name=mappaVis. Corsi Insegn./html:link /TD /TR /mytag:corsoSIter This is corectly,but i'd like using only one HashMap..it's very heavy using more HashMap for each page in my WebApplication... Sorry for my horrible english... Plese help me..is very important. Tanks Alessio. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]