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 PROTE
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
http://java.sun.com/dtd/web-app_2_3.dtd";>
to this:
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:s
On 6/30/06, Felix Khazin <[EMAIL PROTECTED]> wrote:
Another interesting thing is that say i do something like:
and then in my JSP i write, for example, ${test}. I get ${test} in the browser. So the
only time that ${test} gets evaluated is when i do a
That says your container is not evalua
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:
and then in my JSP i write, for example, ${test}. I get ${test} in the
browser. So the only time t
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.
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 tru
In your TLD, do you have this set to true?
true
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:
java.lang.NumberFormatException: Fo
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.
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
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 act
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 , everything
is fine and it gets output. But if I want to use that same EL
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" input="/
Well I tried this but did not work:
And on my action:
String roles[] = mapping.getRoleNames();
Problem is that roles has a zero size array.
What have I done wrong here?
Best Regards
On 6/28/06, Paul Benedict <[EMAIL PROTE
Thanks for the help!
On 6/30/06, David Durham <[EMAIL PROTECTED]> wrote:
Mississippi John Hurt wrote:
> Hi,
> 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
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 sett
>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:
>
>...
>
>
>
>
>
>
>
>
>
Mississippi John Hurt wrote:
Hi,
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
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,
no longer allows "name" att
Hi,
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?? Help!
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 a
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
Hello,
I have a problem with the timezone attribute in a "convertDateTime"
component. The clay-config looks like:
...
.
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
-O
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 ever
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:
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 is an extension of the strutstag library.
What happens if you use an instead? That would show
whether i
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 is an extension of the strutstag library.
Den 6/30/2006, skrev "David Delbecq" <[EMAIL PROTECTED]>:
>Did you do
> which
>make sense
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 break
Did you do
which
make sense in a JSP, or did you do
which is a non
sense as a you can't put a jsp tag inside a parameter of a jsp tag.
if you use , use this way
Fredrik Andersson wrote:
Hi all
I'm still implementing the i18n internationalization on the page and now
I have noticed that
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 tha
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 M
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="" I get
the bean:message tag as the text on the button.
How is this supposed to be solved? I coud make an ugly solu
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 no
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 unde
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 User
Try
Hope this may help.
Halgurt Mustafa Ali wrote:
> Hi all,
>
> I have a form called TASKMANAGERform and in this form I have a field called
> taskDefinition of type TaskDefinition. TaskDefinition has a f
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 this:
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:
> http://www.cityexperi
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]
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 question:
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
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 keys
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
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?
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
http://www.cityexperi
45 matches
Mail list logo