Found the issue. I had missed adding
<%@ page contentType="text/html; charset=UTF-8" session="false"
pageEncoding="UTF-8"%>
in the JSP page ( by default session is true ). Now no session is created (
and so no JSESSIONID cookie is set )
Thanks!
Jeromy Evans - Blue Sky Minds wrote:
>
>
Has anyone experienced a problem with a trailing front slash being added to
the generated URL?
I want to know when apache is planning to have the release of struts with
support of dojo1.x i.e. support of digits in Struts tags.
--
View this message in context:
http://www.nabble.com/Next-Struts-Release-with-support-dojo-1.x-i.e.-digits-tp19199189p19199189.html
Sent from the Struts - User
[EMAIL PROTECTED] wrote:
Has anyone experienced a problem with a trailing front slash being added to
the generated URL?
I've seen it before. I can't look at my code right now, but I think it's
because you have a trailing slash on a property either in struts xml
(default namespace?) or in
--- On Thu, 8/28/08, deepakdabas wrote:
> I want to know when apache is planning to have the
> release of struts with support of dojo1.x i.e. support
> of digits in Struts tags.
Digits?
Anyway, while these things are always subject to change, at this point it seems
unlikely that the Ajax tags
deepakdabas wrote:
I want to know when apache is planning to have the release of struts with
support of dojo1.x i.e. support of digits in Struts tags.
Have you tried using dijit? If so, I'm interested to hear what benefit
you think struts tags would provide over using dijit directly? It
you can create a separate project for your pesistence layer and
another project for the view.
you then add the persistence layer project as a dependecy to other projects.
i have here an example although this one didn't use JPA, i just used
Spring's JdbcTemplate for persistence.
http://edwin.quit
Jeremy,
Close...here is what I'm doing in order to support
ResourceBundle.Control.
1. Configure the TextProvider in struts.xml (constant
struts.xworkTextProvider)
2. Our TextProvider impl extends TextProviderSupport and overrides
getTexts(String name)
- we call ResourceBundle.getBundle with a
I hate to admit it, but i dont unterstand that question...
if it helps, i'm using JBoss 5 rc1 and the Interceptor i'm writing
naturally runs in the same container as my struts application.
Greetings
Alexander
Martin Gainty schrieb:
which EJB container are you using to implement the @EJB fun
Hello. I have an action that haves the method getOperador() . Also, in
my messages.properties file with internationalized strings there are two
lines:
operador.telefone=string1
telefone=string2
I am using in the jsp the tag
with this I want this 'operador.telefone' string to be translate
Generic answer for a generic question:
1. Read the Struts 2 documentation
2. Read the JSON plugin documentation
3. Read the YUI plugin documentation
4. Post questions to the users mailing list describing your problem,
and include relevant configuration/code/logs sections
musachy
On Thu, Aug 14,
"9-character JSP trick", what is this ?
--
Milan
newton.dave wrote:
>
> If the underlying implementation is ordered then the 9-character JSP trick
> would probably work. The solution is left as an exercise for the reader.
>
> Dave
>
> --- On Wed, 8/27/08, Milan Milanovic <[EMAIL PROTECTED]>
its magic.
On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic <[EMAIL PROTECTED]
> wrote:
>
> "9-character JSP trick", what is this ?
>
> --
> Milan
>
>
> newton.dave wrote:
> >
> > If the underlying implementation is ordered then the 9-character JSP
> trick
> > would probably work. The solution i
--- On Thu, 8/28/08, Milan Milanovic wrote:
> "9-character JSP trick", what is this ?
It's a clue that you could (potentially) solve [1] your issue by adding 9
characters to your JSP, without having to change anything in the Java code. The
Set Javadocs may help.
Dave
[1] ObCaveat: it's unteste
--- On Thu, 8/28/08, bhaarat Sharma wrote:
> its magic.
I've been accused of writing magic OGNL :/
Unfortunately lots of my tricks end with "make my data disappear" ;)
Dave
> On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic wrote:
> > "9-character JSP trick", what is this ?
> >
> > newton.dave
You are maybe familiar with this "magic" ?! If so, please let us know.
omnipresent wrote:
>
> its magic.
>
> On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic
> <[EMAIL PROTECTED]
>> wrote:
>
>>
>> "9-character JSP trick", what is this ?
>>
>> --
>> Milan
>>
>>
>> newton.dave wrote:
>> >
>> >
Dave,
please add that 9 character here, please, I don't have time anymore to
search for "clues"...I'm stuck with this for days know :-.
newton.dave wrote:
>
> --- On Thu, 8/28/08, Milan Milanovic wrote:
>> "9-character JSP trick", what is this ?
>
> It's a clue that you could (potentiall
Hi all,
Again thanks for ur past replies.
Now, I am in a new issue.
I need to use the ajax theme for two buttons (s:button id=A and s:button id
=B). But, as default, each s: tag will create a tr and td tags. I dont want
this type of table structure(row by row). I want to customize table
structu
Thanks Jeromy :jumping:
Have you considered the transparency of the REST URL as it relates to
security and tampering? Would something like Acegi provide a solution?
Also, have you considered the likliehood of a user discovering parms that
can be passed and mapped onto your action? I am getting
C... I love a puzzle..
Can you give us the 9 characters in an anagram??
Dave Newton wrote:
--- On Thu, 8/28/08, Milan Milanovic wrote:
"9-character JSP trick", what is this ?
It's a clue that you could (potentially) solve [1] your issue by adding 9
characters to your JSP, wi
--- On Thu, 8/28/08, Al Sutton wrote:
> C... I love a puzzle..
>
> Can you give us the 9 characters in an anagram??
A rotary? (Plus two non-alpha, but it's already too easy now.)
Not having enough information sure is a pain, huh.
Dave
>
> Dave Newton wrote:
> > --- On Thu, 8/28/08, Mi
bahahaah @ making my data disappear!
On Thu, Aug 28, 2008 at 11:26 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- On Thu, 8/28/08, Al Sutton wrote:
> > C... I love a puzzle..
> >
> > Can you give us the 9 characters in an anagram??
>
> A rotary? (Plus two non-alpha, but it's already too
Can anyone please help me with this?
Thanks and regards.
Sunil
sunilmitta wrote:
>
> Hi all,
>
> I know that this is an old problem but i couldnt get the solution
> anywhere.It would be good if you could direct me one.
> I get the
> ClassCastException(ClassCastException:org.apache.struts.uplo
Interesting post I must say!
I would try this:
"share log"
2008/8/28, bhaarat Sharma <[EMAIL PROTECTED]>:
> bahahaah @ making my data disappear!
>
> On Thu, Aug 28, 2008 at 11:26 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> > --- On Thu, 8/28/08, Al Sutton wrote:
> > > C... I love a puzzle
toArray() ? It works, but it is too expesive ?
Milan
newton.dave wrote:
>
> --- On Thu, 8/28/08, Al Sutton wrote:
>> C... I love a puzzle..
>>
>> Can you give us the 9 characters in an anagram??
>
> A rotary? (Plus two non-alpha, but it's already too easy now.)
>
> Not having enoug
Define "expesive"... Do you mean expensive?, if so expensive in what
terms; memory, speed, required goat sacrifices?
Al.
Milan Milanovic wrote:
toArray() ? It works, but it is too expesive ?
Milan
newton.dave wrote:
--- On Thu, 8/28/08, Al Sutton wrote:
C... I love a puzzle..
Hi,
I'm currently writing a form based on a set, and each object of the
set has it's own textfield and it's own id/name.
The question is the way i read the returned value in the action.
I've tried using a map, but puting the varname[key] doesn't work; How
can I acomplish this using struts2?
The go
Have you bought any goats lately?
On Thu, Aug 28, 2008 at 1:12 PM, Al Sutton <[EMAIL PROTECTED]> wrote:
> Define "expesive"... Do you mean expensive?, if so expensive in what terms;
> memory, speed, required goat sacrifices?
>
> Al.
>
> Milan Milanovic wrote:
>
>> toArray() ? It works, but it is
If been using toArray recently so it's been kind of a necessity. Have
you found a non-goat sacrificing optimisation?
Jim Kiley wrote:
Have you bought any goats lately?
On Thu, Aug 28, 2008 at 1:12 PM, Al Sutton <[EMAIL PROTECTED]> wrote:
Define "expesive"... Do you mean expensive?, if so
Hi,
I'm using Struts 1. I'm trying to clean up some code and make it into a
proper Struts form. How do I create a button whose disabled attribute is
set to true or false depending on a certain condition on my page? (The
condition is if the variable "endCount" is less than the variable
"maxCoun
i love this discussion.
On Thu, Aug 28, 2008 at 1:17 PM, Al Sutton <[EMAIL PROTECTED]> wrote:
> If been using toArray recently so it's been kind of a necessity. Have you
> found a non-goat sacrificing optimisation?
>
>
> Jim Kiley wrote:
>
>> Have you bought any goats lately?
>>
>> On Thu, Aug 28
I've also read:
http://struts.apache.org/2.x/docs/type-conversion.html
but I don't understand how to use a Map
Si quieres ser más positivo, pierde un electrón
Miguel Ruiz Velasco S.
On Thu, Aug 28, 2008 at 12:14, Miguel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm currently writing a form based
I'm trying to call the String replace method from OGNL. I can't find
any specific examples on how to do this.
I tried the following as a test: [EMAIL PROTECTED]@toString()
This worked ok. My problem is I don't know how to pass string
literals to the method.
Here is my current code:
'
Here i
"Expensive", you got it. In terms of speed, of course, because I need to do
this 3-4 times in a jsp...but we definitely should think about goat
sacrifices too.
--
Milan
Al Sutton wrote:
>
> Define "expesive"... Do you mean expensive?, if so expensive in what
> terms; memory, speed, required
It's generally a good idea, if you don't get a response to a question,
to try providing addition information. For example, where the exception
is being thrown, the full stack trace, exactly what you did to get it,
etc. The information you've provided so far really isn't enough to
diagnose the p
This really isn't a Struts issue. You can convince yourself of that by
removing the Struts tags from your login JSP; you should see the same
behaviour.
I would start by looking for any additional information in your
container log files and/or searching the mailing list for you container
to se
nabbler12999 wrote:
Hello,
I want to read a directory. But canRead() gives false. How can I do it?
Firstly, you show this code as a scriptlet; while you certainly can do
this sort of thing from a JSP, such logic really belongs in your action.
That asside:
My code:
[code]
<%
String filenam
Can you post a code sample of what you are doing? html:text will only
escape its output once, so perhaps you are passing it a string that has
already been converted into the character entity form (£)?
You could try escape="false", but I'd suggest understanding what's going
on first so you're c
MyAshok wrote:
Hi all,
Again thanks for ur past replies.
Now, I am in a new issue.
I need to use the ajax theme for two buttons (s:button id=A and s:button id
=B). But, as default, each s: tag will create a tr and td tags. I dont want
this type of table structure(row by row). I want to customi
Probably not too expensive in terms of speed considering this has been going
on for 9 days now
On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic
<[EMAIL PROTECTED]>wrote:
>
> "Expensive", you got it. In terms of speed, of course, because I need to do
> this 3-4 times in a jsp...but we definitely s
Miguel wrote:
Hi,
I'm currently writing a form based on a set, and each object of the
set has it's own textfield and it's own id/name.
The question is the way i read the returned value in the action.
I've tried using a map, but puting the varname[key] doesn't work; How
can I acomplish this using
If you had solution, I'm sure that we would solve it in 5mins.
georz1 wrote:
>
> Probably not too expensive in terms of speed considering this has been
> going
> on for 9 days now
>
> On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic
> <[EMAIL PROTECTED]>wrote:
>
>>
>> "Expensive", you got it.
Hello,
You should try something like this :
" value="">
I haven't try it myself but this is the idea.
M
And everything always has a price, even if you don't what it costs it
may still be the only way to get what you want.
georz1 wrote:
Probably not too expensive in terms of speed considering this has been going
on for 9 days now
On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic
<[EMAIL PROTECTED]
Wouldn't do what you need?
L.
Richard Sayre wrote:
I'm trying to call the String replace method from OGNL. I can't find
any specific examples on how to do this.
I tried the following as a test: [EMAIL PROTECTED]@toString()
This worked ok. My problem is I don't know how to pass string
lite
If I had a solution I would give it to you faster than that :).
Maybe you need to approach the problem from a different angle (i.e.
display the data differently), or do some reworking in the action to put
the data in a more friendly format.
Milan Milanovic wrote:
If you had solution, I'm sur
O.K. One more thing, is it possible to define an array in jsp, where I will
call set.toArray() and then to use this array (without calling toArray()
every time) ?
--
Milan
Al Sutton wrote:
>
> If I had a solution I would give it to you faster than that :).
>
> Maybe you need to approach the
> Heya!
>
> Does Struts save the exception anywhere in the request
> before loading a global-error-page?
>
> I would not like to catch exceptions in my Action and
> save the error message, and I guess that is a common
> problem.
>
> So is there any way I can print the
> Exception.getMessage()
Have you tried JSTL's replace tag?
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/replace.fn.html
2008/8/28, Richard Sayre <[EMAIL PROTECTED]>:
> I'm trying to call the String replace method from OGNL. I can't find
> any specific examples on how to do this.
>
> I tried the following
Did you tried iterating using JSTL's forEach tag?
2008/8/28, Milan Milanovic <[EMAIL PROTECTED]>:
>
> O.K. One more thing, is it possible to define an array in jsp, where I will
> call set.toArray() and then to use this array (without calling toArray()
> every time) ?
>
> --
> Milan
>
>
>
> Al Sut
Hi guys!
What are the plans for v2.1 release? Is there
any roadmap available?
Like this one but with dates:
http://cwiki.apache.org/S2WIKI/21-to-25-roadmap.html
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
--- On Thu, 8/28/08, Milan Milanovic wrote:
> "Expensive", you got it. In terms of speed, of
> course, because I need to do this 3-4 times in a jsp...
Or you could do it once and use
Or use a map. Or an array in the first place. And of course you could put it in
the array in your action and use
--- On Thu, 8/28/08, Richard Sayre wrote:
> I'm trying to call the String replace method from OGNL.
> I can't find any specific examples on how to do this.
>
> I tried the following as a test:
In addition to the other responses... if you have a string already you can just
call replaceAll on it
Nop.
Gabriel Belingueres-2 wrote:
>
> Did you tried iterating using JSTL's forEach tag?
>
> 2008/8/28, Milan Milanovic <[EMAIL PROTECTED]>:
>>
>> O.K. One more thing, is it possible to define an array in jsp, where I
>> will
>> call set.toArray() and then to use this array (without calling toA
Hi,
I am using Struts Validation using annotations such as
FieldExpressionValidator and VisitorFieldValidator on the Person Object.
Now the wierd part is even though I do not invoke the getter on the
Person objects, struts starts to validate it. Is this correct behavior.
Shouldn't struts initiate
Oleg Mikheev wrote:
Hi guys!
What are the plans for v2.1 release? Is there
any roadmap available?
Like this one but with dates:
http://cwiki.apache.org/S2WIKI/21-to-25-roadmap.html
Thanks
With dates; no. Work happens as the project's volunteers find time to do it.
Anyone interested in forthc
Just for the record, the problem wasn't from the action to the jsp,
but from the submited action to load the data.
Continued trying and this was the thing that worked:
ResponseAction-conversion.properties:
Key_resp=java.lang.Long
Element_resp=java.lang.Double
CreateIfNull_resp=true
ResponseActio
since you're using a freemarker variable why not use j_string to insert into
string literal ..the example
<#assign user = "Big Joe's \"right hand\"">
alert("Welcome ${user?js+string}!");
outputs
alert("Welcome Big Joe\'s \"right hand\"!");
http://freemarker.sourceforge.net/docs/ref
stanlick wrote:
Thanks Jeromy :jumping:
Have you considered the transparency of the REST URL as it relates to
security and tampering? Would something like Acegi provide a solution?
Also, have you considered the likliehood of a user discovering parms that
can be passed and mapped onto your act
Hi,
I am using Result annotations in the following manner ( static way )
@Results({
@Result(name = "index", value = "/jsp/en_US/help.jsp")
})
How can I pass a dynamic value to the result annotation, so that I can
achieve something like this
@Results({
@Result(name = "index", value = "/j
60 matches
Mail list logo