Thanks a lot, I will try it.
2010/10/15 Robert Taylor :
> Hi Li,
>
> JSTL and EL give you access to the implicit pageContext object.
> From there you can access attributes from request and session.
>
>
> For example:
>
>
> And then use contextPath variable however you wish.
>
> I'm not sure how
rs on this list do :)
/robert
- Original Message -
From: "Li Ying"
To: "Struts Users Mailing List"
Sent: Friday, October 15, 2010 4:12 AM
Subject: Re: referencing javascript files from (action) jsp file
Hi Robert and Dave:
I tried in my application, and it
On 10/15/10 4:12 AM, Li Ying wrote:
I tried "%{#request.getContextPath()}", but it don't work for some
reason i don't know.
#request is not the request object, it's a map containing the items in
request scope.
-Dale
-
To un
You can read this document:
http://struts.apache.org/2.2.1/docs/static-content.html
and check if your configuration is right.
2010/10/15 Guy Thomas :
> Thank you, this works. I would like to draw your attention to possible
> problems with the struts head tag. See below.
>
>
> Domain Security
[utils.js] is used for client side validation.
it should be found in
[struts2-core-2.2.1.jar/org/apache/struts2/static/utils.js]
[styles.css] is used for Struts themes.
it should be found in [struts2-core-2.2.1.jar/template/theme_name/styles.css]
2010/10/15 Guy Thomas :
> Thank you, this work
Hi Robert and Dave:
I tried in my application, and it works for almost all the case.
But there is one exception:
In my application, i customized the CSS files shiped with Struts JQuery plugin
and put them under path [{contextPath}/res/struts/].
In JSP, i need add code likes:
to tell Struts
e utils.js error message is
generated.
-Oorspronkelijk bericht-
Van: Robert Taylor [mailto:rtay...@dtgresults.com]
Verzonden: donderdag 14 oktober 2010 16:54
Aan: Struts Users Mailing List
Onderwerp: Re: referencing javascript files from (action) jsp file
Or you could simply use JSTL.
Hi guys:
looks like a better choice. I will try it in my project.
Thanks~~~
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
hu, Oct 14, 2010 at 10:54 AM, Robert Taylor wrote:
> Or you could simply use JSTL.
> The following works for me:
> ">
>
>
>
> /robert
>
> - Original Message - From: "Li Ying"
> To: "Struts Users Mailing List"
> Sent: Thursday, Oct
Or you could simply use JSTL.
The following works for me:
">
/robert
- Original Message -
From: "Li Ying"
To: "Struts Users Mailing List"
Sent: Thursday, October 14, 2010 10:33 AM
Subject: Re: referencing javascript files from (action) jsp file
I s
I suggest you to reference your resource file(js, image, css and so
on) in this way:
/path/filename.js">
The [] part will
render the contextPath where the web application
is deployed.
The [contextPath] is a property defined in Action:
public String getContextPath() {
ret
vascript">
>
>
>
> Still does not work.
>
> -Oorspronkelijk bericht-
> Van: Dave Newton [mailto:davelnew...@gmail.com]
> Verzonden: donderdag 14 oktober 2010 15:42
> Aan: Struts Users Mailing List
> Onderwerp: Re: referencing javascript
new...@gmail.com]
Verzonden: donderdag 14 oktober 2010 15:42
Aan: Struts Users Mailing List
Onderwerp: Re: referencing javascript files from (action) jsp file
On Thu, Oct 14, 2010 at 9:36 AM, Guy Thomas wrote:
What am I doing wrong?
Using relative paths.
Dave
-
Aan dit be
What happens if you go at http://yourservername//js/util.js (and
/js/domainsecurityadmin.js)
Can you see those files?
If yes, check their syntax.
--
Maurizio Cucchiara
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.o
javascript files from (action) jsp file
On Thu, Oct 14, 2010 at 9:36 AM, Guy Thomas wrote:
> What am I doing wrong?
>
Using relative paths.
Dave
-
Aan dit bericht kunnen geen rechten worden ontleend. Alle berichten naar dit
professioneel e-mailadres kunnen door de wer
On Thu, Oct 14, 2010 at 9:36 AM, Guy Thomas wrote:
> What am I doing wrong?
>
Using relative paths.
Dave
16 matches
Mail list logo