xhtml-mobile with Struts?

2006-06-30 Thread Jose Benjamin Perez Soto
Hello! Good, my question is, if there is some tool to work with xhtml-mobile with the Struts, like the one of wml, but I need is something for xhtml-mobile. cheers, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Validation does not verify the hidden controls?

2006-06-30 Thread José María Tristán
Hello, the validation is of side of client. The values of text and select are send to server of correct form. Thank you -Mensaje original- De: Yee, Richard K CTR DMDC [mailto:[EMAIL PROTECTED] Enviado el: jueves, 29 de junio de 2006 20:55 Para: 'Struts Users Mailing List'

AW: xhtml-mobile with Struts?

2006-06-30 Thread Martin Kindler
I do not know, if there is a tool for XHTML MP, but we have done our mobile site with ordinary Struts and a set of XHTML MP JSPs. Very easy. If you want to look: http://www.cityexperience.net/. If you do use a normal browser and would like to see the mobile version, start at

Re: Tiles not rendering body, footer when put %@ taglib % at top of body

2006-06-30 Thread Antonio Petrelli
Mississippi John Hurt ha scritto: Its as if when the Tiles processes these to lines in the body.jsp, it just stops rendering and the html output cuts off right at that point. If it cuts off the page, then probably you got an exception. Did you check the console for an exception stack trace?

Re: AW: xhtml-mobile with Struts?

2006-06-30 Thread Jorge Martín Cuervo
El vie, 30 de 06 de 2006 a las 09:12, Martin Kindler escribió: I do not know, if there is a tool for XHTML MP, but we have done our mobile site with ordinary Struts and a set of XHTML MP JSPs. Very easy. If you want to look: http://www.cityexperience.net/. If you do use a normal browser and

Quick question about the Resources.properties files.

2006-06-30 Thread Fredrik Andersson
Hi all just a quick question: Can I in somehow reuse previously stated keys in the files on other keys? Let's say that I have stated the key error.notAuthorized now I edit my webpages and add a key for all text messages naming them depending on where they resides in my folder for example the

AW: xhtml-mobile with Struts?

2006-06-30 Thread Martin Kindler
Sorry for that! I sent the wrong URL (normally a Typo3/PHP-page is in front of the main Struts-app, so to force XHTML MP I have to skip the T3 part). The correct one is: http://www.cityexperience.net/cxpCat/Welcome.do?ua=MOBILE Martin -Ursprüngliche Nachricht- Von: Jorge Martín Cuervo

RE: Quick question about the Resources.properties files.

2006-06-30 Thread Mukta
You can say admin.admin.notAuthorized={error.notAuthorized} -Original Message- From: Fredrik Andersson [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 1:39 PM To: Struts Users Mailing List Subject: Quick question about the Resources.properties files. Hi all just a quick

Sorry wrong url (xhtml mp)

2006-06-30 Thread Martin Kindler
Sorry I posted the wrong url. If you are interested, try http://www.cityexperience.net/cxpCat/Welcome.do?ua=MOBILE Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: xhtml-mobile with Struts?

2006-06-30 Thread Jorge Martín Cuervo
thank. It looks good pretty! El vie, 30 de 06 de 2006 a las 10:14, Martin Kindler escribió: Sorry for that! I sent the wrong URL (normally a Typo3/PHP-page is in front of the main Struts-app, so to force XHTML MP I have to skip the T3 part). The correct one is:

Object field validation

2006-06-30 Thread Halgurt Mustafa Ali
Hi all, I have a form called TASKMANAGERform and in this form I have a field called taskDefinition of type TaskDefinition. TaskDefinition has a field domain of type Integer. Is it possible to validate this field? I meen to validate taskDefinition.domain? If aes, in which way? I have tried

Re: Object field validation

2006-06-30 Thread Truong Xuan Tinh
Try form name=TASKMANAGERform field property=taskDefinition.domain depends=integer arg position=0 key=TASKMANAGERform.taskDefinition.domain/ /field /form Hope this may help. Halgurt Mustafa Ali wrote: Hi

AW: Object field validation

2006-06-30 Thread Halgurt Mustafa Ali
Hi, Sorry, I tried that also, but it seems not to work, I am not sure if it is possible to validate fields von objects, do you mean it works? Regards, Halgurt -Ursprüngliche Nachricht- Von: Truong Xuan Tinh [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 30. Juni 2006 13:05 An: Struts

Changing Role Access to Actions on the Fly

2006-06-30 Thread Thomas Joseph
Hi all great brains, I would like my application to use roles to access any actions. However, I want to make access to these actions change while the application is running. User in a role could access a particular action at one time, but not the other time (when change has been made). (I

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread stephan opitz
hello, i defined my ejb 3.0... created a persistence.xml with a pu in the meta-inf folder. using eclipse with maven2 plugin (all dependicies are correct) Exception: javax.persistence.PersistenceException: No Persistence provider for EntityManager. i'm not the only one with this problem, but

Quick question about the Resources.properties files.

2006-06-30 Thread Fredrik Andersson
Hi all I'm still implementing the i18n internationalization on the page and now I have noticed that my buttons don't behave as expected. When I change my values of buttons to value=bean:message key='blabla' I get the bean:message tag as the text on the button. How is this supposed to be solved?

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread Adam Brod
I had to put my directory structure like this: [mywebapp]\WEB-INF\classes\META-INF\persistence.xml It didn't work when I put it in a top-level META-INF directory. HTH, Adam Brod Product Development Team stephan opitz [EMAIL PROTECTED] 06/30/2006 08:13 AM Please respond to Struts Users

How to add service servlet in Struts ?

2006-06-30 Thread A. Lotfi
Hi, we had a client/server application : Client :Swing application Server :Servlet The client is communicating lot with the servlet. Now we are moving to Struts, how can I keep the servlet in Struts so I will use it in all my actions, I am looking in a way that at the strut up

Re: Quick question about the Resources.properties files.

2006-06-30 Thread David Delbecq
Did you do input type=button .. value=bean:message key='blabla'/ which make sense in a JSP, or did you do html:button .. value=bean:message key='blabla'/ which is a non sense as a you can't put a jsp tag inside a parameter of a jsp tag. if you use html:button, use this way

Strtus and Portlets

2006-06-30 Thread Andy Foster
Hi all, I am about to develop a new struts app that will be ported afterwards to be used in a portlet and I plan to use the struts bridge support. I want to try and ensure that I don't break the bridge with my normal conceptual design before I start building anything. The pattern I use is to

Re: Quick question about the Resources.properties files.

2006-06-30 Thread Fredrik Andersson
ohh ok, didn't think of that. however, when I tried it the text fell out of the button (it says Submit Query) and sits besides it. I did this, smc:submit bean:message key='admin.ny.abort' / /smc:submit smc:submit is an extension of the strutstag library. Den 6/30/2006, skrev David Delbecq

Re: Quick question about the Resources.properties files.

2006-06-30 Thread Emmanouil Batsis
Fredrik Andersson wrote: ohh ok, didn't think of that. however, when I tried it the text fell out of the button (it says Submit Query) and sits besides it. I did this, smc:submit bean:message key='admin.ny.abort' / /smc:submit smc:submit is an extension of the strutstag library. What

Struts config question (w/ tiles, validation)

2006-06-30 Thread Adam Gordon
I've been racking my brains for several hours now and can't seem to find the exact way to configure struts for validation when using tiles and a form bean. My problem is when the URI hits Index.do, so for the first action mapping. Here are the snippets from my config files: validation:

Re: Strtus and Portlets

2006-06-30 Thread Paul Benedict
Portlets use the Portlet API. Struts uses the Servlet API. The Portlet API is nothing but a facade over the servlet api. I do not have any experience with Struts in a portlet, but I envision it is not possible because every portlet instance as container-encoded request parameter names. And

RE: Strtus and Portlets

2006-06-30 Thread Andy Foster
There is actually an apache struts portlet bridge and it is this that puts some limitations on how you define struts-config and your actions. http://portals.apache.org/bridges/multiproject/portals-bridges-struts/ It is this bridge and my pattern that I want to double check Regards Andy

shale convertDateTime problem (timeZone)

2006-06-30 Thread Daniel del Río
Hello, I have a problem with the timezone attribute in a convertDateTime component. The clay-config looks like: ... component jsfid=iniciColumn extends=column id=inici element renderId=1 jsfid=outputText attributes set name=value value=#{t.dataInici} /

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread Craig McClanahan
On 6/30/06, Adam Brod [EMAIL PROTECTED] wrote: I had to put my directory structure like this: [mywebapp]\WEB-INF\classes\META-INF\persistence.xml It didn't work when I put it in a top-level META-INF directory. It also works if the persistence.xml file is in the META-INF directory of a jar

Re: How to add service servlet in Struts ?

2006-06-30 Thread Craig McClanahan
On 6/30/06, A. Lotfi [EMAIL PROTECTED] wrote: Hi, we had a client/server application : Client :Swing application Server :Servlet The client is communicating lot with the servlet. Now we are moving to Struts, how can I keep the servlet in Struts so I will use it in all my actions, I am

Struts 1.2.x, How reference form.field if HTML:FORM disallows form Name attribute?

2006-06-30 Thread Mississippi John Hurt
Hi, html:form no longer allows name attribute. Problem is I have javascript that refers to a field on the form by the formName.fieldName. So now I get a javascript error. If I can no longer assign a name to the form, then the big question is how can I refer to a field on that form in javascript??

Re: Struts 1.2.x, How reference form.field if HTML:FORM disallows form Name attribute?

2006-06-30 Thread Vantuir Muniz
Hi, Try this field document.forms[0].elements[field].value select var codUnidade = document.forms[0].codunidadegestor.options[document.forms[0].codunidadegestor.selectedIndex].value; Vantuir Muniz On 6/30/06, Mississippi John Hurt [EMAIL PROTECTED] wrote: Hi, html:form no longer allows

Re: Struts 1.2.x, How reference form.field if HTML:FORM disallows form Name attribute?

2006-06-30 Thread David Durham
Mississippi John Hurt wrote: Hi, html:form no longer allows name attribute. Problem is I have javascript that refers to a field on the form by the formName.fieldName. So now I get a javascript error. If I can no longer assign a name to the form, then the big question is how can I refer to a

Re: shale convertDateTime problem (timeZone)

2006-06-30 Thread Gary VanMatre
From: Daniel del Río [EMAIL PROTECTED] Hello, I have a problem with the timezone attribute in a convertDateTime component. The clay-config looks like: ... component jsfid=iniciColumn extends=column id=inici element renderId=1 jsfid=outputText attributes

Urgent! Clipboard capability in Struts

2006-06-30 Thread Victor.T. Ying
Hi, I need your suggestions on Struts(v1.2.7) Clipboard capabilities i.e I have TextArea in the webpage and I need to paste file content from the server to the text area when userclick the download button. but seems like that the struts html:textArea tag does not support dynamica value

Re: Struts 1.2.x, How reference form.field if HTML:FORM disallows form Name attribute?

2006-06-30 Thread Mississippi John Hurt
Thanks for the help! On 6/30/06, David Durham [EMAIL PROTECTED] wrote: Mississippi John Hurt wrote: Hi, html:form no longer allows name attribute. Problem is I have javascript that refers to a field on the form by the formName.fieldName. So now I get a javascript error. If I can no longer

Re: Securing an Action

2006-06-30 Thread Vinicius Carvalho
Well I tried this but did not work: action path=/listInvoice scope=request validate=true roles=ADMIN,MANAGER type=com.acme.InvoiceList name=invoiceForm input=/invoicelist.do forward name=success path=def.success/forward

Re: Securing an Action

2006-06-30 Thread Paul Benedict
Are you testing your action with the action mapping you showed? Remember, the roles are tied to a mapping, not the action class. Vinicius Carvalho [EMAIL PROTECTED] wrote: Well I tried this but did not work: roles=ADMIN,MANAGER type=com.acme.InvoiceList name=invoiceForm

Passing Struts request attribute to custom tag

2006-06-30 Thread Felix Khazin
Hi, I am having a problem with a view using struts that I can't figure out... I have a controller that sets an attribute for example: request.setAttribute(pageSize, _pageSize); In my view if I use JSTL like c:out value=${pageSize}/, everything is fine and it gets output. But if I

Re: Struts config question (w/ tiles, validation)

2006-06-30 Thread Adam Gordon
Whew, ok, so after 7 hours of debugging, we figured it out. If you want to use validation and you need to use a custom form bean (that extends the validator form) that can pre-populate some form elements while leaving others alone you need to specify the 'validate=false' attribute on the

Re: Passing Struts request attribute to custom tag

2006-06-30 Thread Paul Benedict
Can you explain in more detail how it doesn't work? Felix Khazin [EMAIL PROTECTED] wrote: Hi, I am having a problem with a view using struts that I can't figure out... I have a controller that sets an attribute for example: request.setAttribute(pageSize, _pageSize); In my view if

RE: Passing Struts request attribute to custom tag

2006-06-30 Thread Felix Khazin
Sure, Sorry about that... My custom tag takes in an integer value and then does some math to it. This is the error I am getting: java.lang.NumberFormatException: For input string: ${pageSize} This error is coming from a line in my custom tag where I attempt to parse the string to get an int.

RE: Passing Struts request attribute to custom tag

2006-06-30 Thread Paul Benedict
In your TLD, do you have this set to true? rtexprvaluetrue/rtexprvalue Also, what JSP version is your container? Felix Khazin [EMAIL PROTECTED] wrote: Sure, Sorry about that... My custom tag takes in an integer value and then does some math to it. This is the error I am getting:

RE: Passing Struts request attribute to custom tag

2006-06-30 Thread Felix Khazin
I'm using 2.0, and no I don't have rtexprvalue set to true. I am not using a TLD. I just wrote a custom.tag put it in my WEB-INF/tags/ directory and then did this in my code: %@ taglib prefix=mytags tagdir=/WEB-INF/tags/ % Do I need to make a TLD, or can I just define rtexprvalue to be true in

RE: Passing Struts request attribute to custom tag

2006-06-30 Thread Paul Benedict
Okay. So you're writing a JSP Tag file, not a JSP Java tag. Understood. The JSP should evaluate the attribute for you. So I don't know why it is not, but I am going to take a shot in the dark. %@ tag isELIgnored=false % Add isELIgnored=false to the tag file directive and see what happens.

RE: Passing Struts request attribute to custom tag

2006-06-30 Thread Felix Khazin
Paul, That didn't help. I've tried putting that line the tag file, and then even in my JSP page as a page directive. Nothing helped. Another interesting thing is that say i do something like: c:set var=test value=1/ and then in my JSP i write, for example, p${test}/p. I get ${test} in the

Re: Passing Struts request attribute to custom tag

2006-06-30 Thread Wendy Smoak
On 6/30/06, Felix Khazin [EMAIL PROTECTED] wrote: Another interesting thing is that say i do something like: c:set var=test value=1/ and then in my JSP i write, for example, p${test}/p. I get ${test} in the browser. So the only time that ${test} gets evaluated is when i do a c:out

RE: Passing Struts request attribute to custom tag

2006-06-30 Thread Felix Khazin
Indeed I am: I am using http://java.sun.com/dtd/web-app_2_3.dtd After you told me that I did the following and fixed the problem: change ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN

RE: Passing Struts request attribute to custom tag

2006-06-30 Thread Paul Benedict
Felix, I wish I could have saved you the 6 hours! I went through this very same upgrade process myself, and it is not well documented that JSP-EL is off by default in a 2.3 container :-( And it gives the illusion it is on when all your EL are within JSTL tags. -- Paul Felix Khazin [EMAIL