mosho ha scritto:
Hi,
I have property pageTitle in my java bean.
How can I pass that value to tile attribute?
i have xml file, where I am defining my tile definitions.
For example, if I include
Errr... no, you need to know that:
1) there is a "receiving tile" that exposes an attribute
2
Could you try to encode your link URL to struts using the encodeURL method
of the http response object. The encodeURL method will encode the URL with
session id if cookies are disabled.
See if this works.
Thanks
Tejas
-Original Message-
From: Jin Chen [mailto:[EMAIL PROTECTED]
Sent: Frid
You Mean this solves the problem partially ?
Or What can be done either on server side or on client side.
Is there any way this can be done?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 03, 2006 8:16 PM
To: user@struts.apache.org; [EMAIL PR
On 8/4/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
Hi,
I need to build indexed properties in my jsp. For this im using a logic
iterate tag. But im not able to figure out how to use the indexId to define
the index of my property.
SO in place of the zero in the above code i need to put the
Hi,
I need to build indexed properties in my jsp. For this im using a logic
iterate tag. But im not able to figure out how to use the indexId to define
the index of my property.
SO in place of the zero in the above code i need to put the value of the
index.
if i use then i need to put quote
I tried Appfuse on my machine, it works. so I assume the browser
configuration is fine.
I use Tiles, Struts, and Spring framework in my application btw.
Hi,
I am trying to enable I18N in my struts based application, here is what I
have done:
- added a LocaleFilter, which I copied from Appfuse:
String locale = request.getParameter("locale");
Locale preferredLocale = (*null* == loca
check the cookies permission on your browser.. and try in other browser,
just to be shure.
On 8/3/06, Jin Chen <[EMAIL PROTECTED]> wrote:
I have a login.jsp page and it directs to welcome.jsp page. Inside
welcome.jsp page, it has one link to call struts action and another link
to
call another j
Is there a method anywhere I can use to quickly determine whether or not
a given String is a tiles definition?
- Scott
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 8/3/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
I've looked a Struts-scripting, but AFAIK this requires me to rewrite
all my struts-config.xml to set the Action java source as parameter.
Lot's of my action already use a parameter and I don't want to change my
projet (huge) struts-configs.
Do you have the property "page" being submitted with your form:
Also, are you sure that the validation isn't working and the error
messages aren't getting displayed? Can you send the jsp source?
-Matt
On 8/3/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
I'm either missing something stupid (wh
I'm either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses validator all
over the place and it's working fine in all my other actions but for
this one action it is simply not getting called.
I can't see any difference between
I have a login.jsp page and it directs to welcome.jsp page. Inside
welcome.jsp page, it has one link to call struts action and another link to
call another jsp. All jsp and struts are running within the same browser.
However, I debug and find struts one always creates a new session, because I
prin
Adam Gordon wrote:
Heh. Regular Expressions aren't for everyone - I happen to work w/
two engineers who live and die by them.
In your bean setter for the date, I'd make sure no exceptions could be
thrown, or handle them - the code I took over from an engineer we had
that left had this issue
On Thu, 2006-08-03 at 10:25 +0530, Raghu Kanchustambham wrote:
> Hi,
> I am interested in building a e-Learning/Distance learning framework. Was
> wondering if there is any framework that exists that I can use as a starting
> point.
>
> First preference would be for a struts based application sinc
Neil,
I am trying to do same thing my page_title comes from the db and it depends
on the parameter.
I fail to understand, how are you doing it? Do you have some example code.
You are creating another class as MyController?
Thanks
--
View this message in context:
http://www.nabble.com/How-to-
Also, if the user leaves the field for BigDecimal as blank, I
get an exception (string->BigDecimal conversion exception). So, is the
solution to this is to make all formbean properties to be "String" type?
you coud do something like
BigDecimal bigDecimalProperty;
public setBigDecimalProperty
Hi,
I have property pageTitle in my java bean.
How can I pass that value to tile attribute?
i have xml file, where I am defining my tile definitions.
For example, if I include
Thanks
--
View this message in context:
http://www.nabble.com/how-to-pass-attribute-values-from-bean-in-tiles-tf20
Hello,
I saw that has a "format" attribute for formatting dates and
dollar values. But I didn't see similar thing for . If my bean
has a property called "amount" of type BigDecimal, and I want to display
that as a for the user to modify the value, How can I format
it?
Also, if the user leaves
On 8/3/06, Jeevan Kumar Kade <[EMAIL PROTECTED]> wrote:
Hi,
Is there is major differeence between Struts-Shale framework and JSF.
Please, categorize and differentiate on this.
Your best bet is to ask this kind of question on the Shale user mailing
list[1] since Shale is now a top level Apa
Heh. Regular Expressions aren't for everyone - I happen to work w/ two
engineers who live and die by them.
In your bean setter for the date, I'd make sure no exceptions could be
thrown, or handle them - the code I took over from an engineer we had
that left had this issue and it took me almos
I'm implementing my own MessageResources and
MessageResourcesFactory-derived classes. Do these need to be
thread-safe, specifically, the 'String MessageResources.getMessage(
Locale locale, String key )'?
Thanks,
Scott
-
To
HAHA! I would have done the same thing. I don't want things like that
(regexp) creeping around my application, even if I do only have to touch it
once. Ech!
On 8/3/06, Scott Van Wart <[EMAIL PROTECTED]> wrote:
Adam Gordon wrote:
> IIOC, the only way you can do this with the stock validator
Adam Gordon wrote:
IIOC, the only way you can do this with the stock validator is to use "mask"
rather than "date" as the validator. Then, you can use a regex to dictate
your mask. I'll warn you though, if you use a regular expression it's going
to be VERY long because it will also need to vali
You could create another validator, and inside that perform a stripping of
non-numeric characters (stripCommas), then
execute code similar to the existing "long range" validator like this:
/**
* Determines if a formatted numeric value is between a range as defined by
* the user-suppl
Per Jørgen Walstrøm ha scritto:
and my nextPage.jsp contains this:
Beans are not passed automatically to a tile, but they can be passed as
attributes.
Rewrite the first piece this way:
And your nextpag
Tiles assembles pages using dynamic (runtime) inclusion. The logic:iterate tag
defines a page scoped attribute under the key specified by the id tag
attribute. The nextPage.jsp will have it's own pageContext, so the
outageElement is not visible. Perhaps you could put the outageElement into
requ
hello list,
I have the following code:
and my nextPage.jsp contains this:
When I run my code, I get the following error:
17:18:42,768 ERROR [Engine] ApplicationDispatcher[/oweb] Servlet.service() for
servlet jsp threw exception
javax.servlet.jsp.JspException:
IIOC, the only way you can do this with the stock validator is to use "mask"
rather than "date" as the validator. Then, you can use a regex to dictate
your mask. I'll warn you though, if you use a regular expression it's going
to be VERY long because it will also need to validate that the date en
[EMAIL PROTECTED] ha scritto:
Do you realize that browsers are not required to send a Referer header?
And that many proxies strip out such a header?
And referer can be easily spoofable ;-)
http://refspoof.mozdev.org/
-
To u
Have you looked at Struts Scripting? It would be interesting to see
how your approach differs from this. (And whether Struts Scripting
works with Spring 2.0 the way you need it to.)
I've looked a Struts-scripting, but AFAIK this requires me to rewrite
all my struts-config.xml to set the Act
Do you realize that browsers are not required to send a Referer header?
And that many proxies strip out such a header?
You will have far better success if you create a robust application that
can do the correct thing even if URLs are received out of the expected
order. Trying to hamstring the bro
Yeah, leave it to IE to not work with DOM-compliant code :) I guess I
only tried it in FF, which is odd since I don't generally use FF (it was
probably just open at the time!). Glad you got it working!
Frank
Puneet Lakhina wrote:
On 8/3/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
Any
On 8/3/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
To those of you that are using Struts with Spring,
I've searched a way to make my actions hot-reloadable (no recompile
neither redeploy) for quick prototyping using Spring 2.0 groovy scripted
bean, without having to hardly change my existing
can someone help me with this please?
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: validate integer with a comma thousands seperator using Validator
Date: Wed, 02 Aug 2006 10:09:19 -0400
Using struts validator.
have to validat
In my Struts Web application
i need to restict the user accessing pages from Browser History.
When i access any page from Browser History i get
http-referer=null
So,
I am checking this by below code on Server side in All my execute method in
Struts Action File .
if(request.getHeader("REFERER")==n
Hi thanks for reply,
I have already gone through this solution. I have compiled all my jsp's
using probe.
I think this is related to somewhat .xml's .
-Original Message-
From: Thomas Joseph [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 03, 2006 7:14 PM
To: Struts Users Mailing List
Sub
I know this is not the real solution you want but, one workaround could be
pre-compiling your JSPs, using Ant (or Maven). This could pin point if there is
error in your JSP itself. Morover, then there is no runtime compilation.
Thanks and Regards,
Thomas Joseph
Kott Software Pvt. Ltd. | Vallam
To those of you that are using Struts with Spring,
I've searched a way to make my actions hot-reloadable (no recompile
neither redeploy) for quick prototyping using Spring 2.0 groovy scripted
bean, without having to hardly change my existing actions and configuration.
I've found a "not so ba
hi all
currently i am facing ParserUtils: warning org.xml.sax.SAXParseException
message while compiling any jsp page.
after jsp file is compiled this message dosenot come for next request to
jsp page.
i am developing application from struts. currently i used JFreeChart to
design some chart. for
Hi
I have recently recovered a MiniDV tape of Patrick Lightbody's
presentation of ``WebWork / Struts 2.0 in Action''
at VeriSign's Mountain View office. I thought
I had lost that first hour of tape on my travels to northern
California, but I found it in the suitcase comparant, and then
digitise
On 8/3/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote:
Any form elements created dynamically on the client-side will have no
> intrinsic link to the ActionForm. However, this is not necessarily a
> problem... imagine if your ActionForm has this in it:
>
> private String firstName;
> public voi
Hi,
Is there is major differeence between Struts-Shale framework and JSF.
Please, categorize and differentiate on this.
Thanks in Advance
Jeevan Kumar
-
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
Any form elements created dynamically on the client-side will have no
intrinsic link to the ActionForm. However, this is not necessarily a
problem... imagine if your ActionForm has this in it:
private String firstName;
public void setFirstName(String inFirstName) {
firstName = inFirstName;
}
Hi,
Is there is major differeence between Struts-Shale framework and JSF.
Please, categorize and differentiate on this.
Thanks in Advance
Jeevan Kumar
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
I am writing a taglib at the moment to do some complex display logic and I need
to get at the message resources.
Please correct me if I am wrong but it seems that under some circumstances there
can be different Locales (or sub-locales) available from different places in the
servlet container a
Hi,
I have four classes.
public class AccountForm
{
private String accNum;
}
public class Account
{
private String accNum;
}
public class CustomerForm
{
private String custRef = "";
private Vector accounts= null;//Contains objects
of AccountForms classes
//Get, set methods
}
Hi Ted,
I downloaded xworks 1.1.3. The exception has changed now to :
[Servlet Error]-[Filter [action2]: could not be initialized]:
java.lang.NoClassDefFoundError:
com/opensymphony/xwork2/config/ConfigurationProvider
Can you tell me whats wrong. I'll also try to debug but right now I am
b
Thanks a lot for you help! I've got it!!! At the end my problem was that
the info didn't arrive to the session.
First I've checked if info came to the jsp with c:out and then I've use the
html:select...
From: Aiping <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts U
I have changed the name to attendeeDetailsForm everywhere as you have
suggested
And have
html:form action="/addAttendeeDetails" onsubmit="return
validateAttendeeDetailsForm(this)">
But this is not helping me still.
I only get Server side validation, no Client Side Validation.
Thanks.
Chetan
50 matches
Mail list logo