Re: CSS background images, struts2

2009-08-04 Thread Musachy Barroso
assuming your dir structure is like:

css
...main.css
images
someimage.jpg

you can use this in your css: url(../images/someimagejpg)

and then this in your jsp:




musachy

On Tue, Aug 4, 2009 at 9:38 AM, Andy Law wrote:
>
> I'm trying to specify a CSS style to be applied to a table header row that
> includes a reference to a background image (specifically as part of a table
> that uses JQuery/tablesorter). It is causing me pain.
>
> To clarify what may be a bit of a garbled question, my (final, effective)
> html needs to look something like this
>
> Header
>
> and my CSS file needs to look something like...
>
> th.myclass {
>    background-image: url('images/image.gif');
> }
>
>
> The problem is how to specify the url in the CSS file so that it works when
> the page is rendered as part of the web application.
>
>
> Of course, I don't know what context my web app will be deployed at, nor do
> I wish to hard-code it into the css file as that will then break if I try to
> deploy at a different context. I've been trawling through web pages all
> afternoon trying to find the answer but with no success so far.
>
> I have found reference to the FilterDispatcher serving static content along
> with some confusing documentation about what the struts.serve.static
> property actually does (starting from
> http://stackoverflow.com/questions/870440/how-does-struts-2-includes-javascript-files-in-a-jsp-from-their-struts-jar
> here ) but putting my static images in a subdirectory of the template
> directory (for want of a better place) still don't work.
>
> Can someone please point me in the right direction for getting this to work?
> Or point me at a work-around?
>
> Thanks in advance,
>
> Andy
> --
> View this message in context: 
> http://www.nabble.com/CSS-background-images%2C-struts2-tp24811929p24811929.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: CSS background images, struts2

2009-08-04 Thread Andy Engle
I made my CSS files out of JSPs, like so:

<%@ page contentType="text/css"%>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

body {
  background-color: #ECEDF1;
  font-family: 'Lucida Grande',Geneva,Verdana,Arial,sans-serif;
  background-image: url();
  margin-top: 0px;
  padding: 0;
}

And then called them like this:

" 
type="text/css">

Who cares if it's ugly or whatever; I don't have broken images in my apps 
anymore.  :)


Andy










- Original Message 
From: Andy Law 
To: user@struts.apache.org
Sent: Tuesday, August 4, 2009 5:00:12 PM
Subject: Re: CSS background images, struts2




Wes Wannemacher wrote:
> 
> One thing I've done in the past is to treat CSS files as JSPs and use
> s:url tags or EL expressions (${contextRoot}/images/image.gif)...
> 
> 


Oh. That feels s dirty!!!

There has to be a cleaner way to do it.

Later,

Andy
-- 
View this message in context: 
http://www.nabble.com/CSS-background-images%2C-struts2-tp24811929p24816196.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


  

Re: How can I download Struts 2.1.7?

2009-08-04 Thread Wes Wannemacher
On Tuesday 04 August 2009 03:31:19 am cmartin81 wrote:
> Thanks for your answers.
> We were actually planning to use Struts 2.1.7 in production. Is this safe?
> Or is it still in beta (or snapshot) version?  We got the jar file from
> this location:
> http://people.apache.org/builds/struts/2.1.7/m2-staging-repository/
> What was the main problem with 2.1.7?

The main problem was that while applying a patch, I didn't 'svn add' one of 
the files. The problem was with the REST plugin. IMO, if 2.1.7 works for you, 
use it, I'd assume that you have your own QE procedures to make sure that the 
functionality you expect is working the way you expect it. The difference 
between a GA release and a non-promoted release (like 2.1.7) is that we (the 
developers) agree to support a GA release. However, as you probably know as an 
open source user, open source support means that we'll work to answer your 
questions here in the mailing lists and patch bugs as time permits. 

If you are starting your project now, and plan to release later, 2.1.8 should 
be compatible, so you can upgrade to it when it is released. Of course, there 
are plenty of people willing to provide professional support if necessary as 
well ;-)

-Wes

-- 
Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts 2 portlet interceptor issue

2009-08-04 Thread Tracy12

Instead of writing interceptors I decided to go with the suggestion you made,
which is

use the raw session with the use of




but what I want to know is how can I access the jsp expression variables
inside the 


<%
UserSession userSession
=(UserSession)renderRequest.getPortletSession().getAttribute("UserSessionForApplication",PortletSession.APPLICATION_SCOPE);
String loginId= userSession.getLoginId();
%>








  

  

none of the above printed the value, how to proceed on this

Note: UserSession is one of our custom classes





Nils-Helge Garli wrote:
> 
>>                
>>                        > name="sessionScopeHandler">
>>                        /jsp/test/test.jsp
>>                
> 
> With this configuration, your sessionScopeHandler will be the only
> interceptor running for this action. You either need to include the
> portletDefaultStack or set up your own stack that also includes the
> framework interceptors that does the "introspection" magic.
> 
> Nils-H
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts-2-portlet-interceptor-issue-tp24799881p24819616.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2 Plug-in and JSP 404

2009-08-04 Thread Musachy Barroso
You might want to take a look at this:

http://cwiki.apache.org/confluence/display/S2PLUGINS/Embedded+JSP+Plugin

fresh from the oven, early adopters wanted ;)

musachy

On Thu, Jul 9, 2009 at 1:11 PM, stanlick wrote:
>
> Thanks brother!  Do you know of a decent JSP ---> Freemarker converter? I
> sort of wondered why the config-browser plug in was using Freemarker.  It
> really sucks when something like this rears it ugly head and brings
> productivity to a screeching halt!
>
> P.S. And I really thought I was going to have time this evening for that
> Harley ride up the river road!
>
> Peace,
> Scott
>
>
> DNewfield wrote:
>>
>> stanlick wrote:
>>> However, for a plug-in to be a drop-n-go deal, I sort of think the goods
>>> should all be in the plug-in jar itself?  Make sense?
>>
>> Agreed, but I believe I've been told that can't be done with jsp
>> templates.  This is why plugins that I've seen have been implemented in
>> freemarker.
>>
>>> I was looking at this
>>> article, and it appears this cat has a JSP working in his plug-in?
>>>
>>> http://www.struts2.org/category/struts2-plugins/
>>
>> I downloaded that zip, and looked inside the .jars:  no .jsps.
>>
>>> The reason for this plug-in is to eliminate a couple pages of
>>> configuration
>>> steps for the adopter of my application.  I'd rather not say just drop
>>> the
>>> plug-in in your WEB-INF/lib folder and then copy JSP files here...
>>
>> I'm simply reporting hear-say here, but I believe you've already hit the
>> roadblock that'll prevent you from getting farther w/o using a different
>> template engine.
>>
>> -Dale
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>>
> :rules::rules:%-|%-|%-|
> --
> View this message in context: 
> http://www.nabble.com/Struts-2-Plug-in-and-JSP-404-tp24415564p24417005.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: equivalent of request.getParameter();

2009-08-04 Thread musomesa

 



it possible to not click any url but
still set a setter


 If you don't need any user interraction why not do it in the action? It is not 
clear what
would be the point of a view that without any user input then proceeds to do 
further logic...
Chris 


 


 

-Original Message-
From: Bhaarat Sharma 
To: Struts Users Mailing List 
Sent: Tue, Aug 4, 2009 2:25 pm
Subject: Re: equivalent of request.getParameter();










thanks wes. so when that url will be clicked the setter will be set.
...maybe pushing the envelope but is it possible to not click any url but
still set a setter. just like we call a getter.




On Tue, Aug 4, 2009 at 2:22 PM, Bhaarat Sharma  wrote:

> wow ..just explaining the problem i figured out I can just avoid doing what
> i was thinking and just check for request.getParamter() inside the action
> class.
> anyways...still curious if there is a way to set a setter w/out doing form
> submission..
>
>
> On Tue, Aug 4, 2009 at 2:18 PM, Bhaarat Sharma wrote:
>
>> I know its not the best case scenario.  If i can do this then I will not
>> have to change major piece of the code.
>> I'll try to explain the scenario: basically one jsp page is used to show
>> results. this jsp page has pagination so each time 50 results are shown. But
>> the page has a printer friendly version.  when printer friendly link is
>> clicked this same jsp page is loaded again but this time around we want to
>> print everything not just 50 records. so in my action class there is a
>> method which returns sublist. but in this case i want it to return the whole
>> list.
>>
>> So in the jsp i know when printerfriendly is taking place because it is
>> being passed a parameter called ?print=true
>>
>> so i thought that in jsp i could check if print=true then set action class
>> Printer method to true. kind of confusing i bet it sounds..
>>
>>
>> On Tue, Aug 4, 2009 at 2:14 PM, Wes Wannemacher  wrote:
>>
>>> On Tue, Aug 4, 2009 at 2:09 PM, Bhaarat Sharma
>>> wrote:
>>> > Thanks.
>>> > I have another question, which might be a little off topic.
>>> >
>>> > if I have a method like this in my Action class
>>> >
>>> >public void setPrinter(String print)
>>> >{
>>> >this.printer = print;
>>> >}
>>> >
>>> > how can I call this setter with some value from my jsp page using
>>> struts2?
>>> >
>>> > I know this can be set if I submit a form with hidden value and stuff
>>> but I
>>> > dont want to submit a form. I just want to set the value from the jsp
>>> page.
>>> > ..
>>> >
>>>
>>> At which point will that value be used? If you need to know the value
>>> of the 'print' variable within the execute method of your action, then
>>> it should be part of the form submission... In fact, I am having
>>> trouble thinking of a scenario where you would want to call that sort
>>> of method from a JSP that doesn't involve form submission (except
>>> javascript, but still, just calling a setter alone doesn't really have
>>> any effect unless you are calling another action method afterwards
>>> that has an interest in that variable's value).
>>>
>>> -Wes
>>>
>>> --
>>> Wes Wannemacher
>>>
>>> Head Engineer, WanTii, Inc.
>>> Need Training? Struts, Spring, Maven, Tomcat...
>>> Ask me for a quote!
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>



 



Re: [OT} Re: Mixing portlet with regular pages

2009-08-04 Thread Dave Newton

Musachy Barroso wrote:

On Tue, Aug 4, 2009 at 3:11 PM, Dave Newton wrote:

Oh, great; now my Smart Card will *never* talk to my webapp.


I guess it wasn't that smart after all.


I'm going to introduce my own JSR for Stupid Cards.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Mixing portlet with regular pages

2009-08-04 Thread Martin Gainty

mg>understood..the gauntlet has been tossed
mg>what proof do you request?

> 
> >
> > probably wise to beg off this particular plugin until all P1 bugs are 
> > quashed
> >
> 
> Very insightful...
mg>thank you
 
> > the JSR268 readme and core sample is located at
> > https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_JCP-Site/en_US/-/USD/ViewFilteredProducts-SimpleBundleDownload
> >
> 
> I'm not sure what you're trying to link to, but that only gives "The
> product you requested is not available at this time" for me.
mg>yep looks like admin is doing some maintenance
mg>i'll ping to see when he anticipates patches are operational

> > i would strongly suggest implementing your Portlets with JetSpeed 2 
> > released in May 2009
> > among the features:
> > Secure Access - Security based on standards, ACLsSingle Point of Entry 
> > (SSO, Federated) Enterprise Integration -  (EAI, integration 
> > points)Personalization - (customizers, skins) Dynamic Web Components - 
> > (portlets based on standards-in this case JSR268)
> > Scaleable, Component Architecture featuring multi-threading libraries
> >
> > there are roughly 17 rfcs the JSR-268 support ..get to know them on 
> > need-to-know basis
> > http://portals.apache.org/jetspeed-2
> >
> 
> I'd be very surprised if Jetspeed2 implements JSR-268...
> 
> Nils-H
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Express your personality in color! Preview and select themes for Hotmail®. 
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009

Re: [OT} Re: Mixing portlet with regular pages

2009-08-04 Thread Musachy Barroso
On Tue, Aug 4, 2009 at 3:11 PM, Dave Newton wrote:
> Oh, great; now my Smart Card will *never* talk to my webapp.

I guess it wasn't that smart after all.

musachy
-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Mixing portlet with regular pages

2009-08-04 Thread Musachy Barroso
"McMurphy: That's right, Mr. Martini. There is an Easter Bunny. " One
Flew Over the Cuckoo's Nest.


On Tue, Aug 4, 2009 at 2:53 PM, Nils-Helge Garli Hegvik wrote:
>>
>> probably wise to beg off this particular plugin until all P1 bugs are quashed
>>
>
> Very insightful...
>
>> the JSR268 readme and core sample is located at
>> https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_JCP-Site/en_US/-/USD/ViewFilteredProducts-SimpleBundleDownload
>>
>
> I'm not sure what you're trying to link to, but that only gives "The
> product you requested is not available at this time" for me.
>
>> i would strongly suggest implementing your Portlets with JetSpeed 2 released 
>> in May 2009
>> among the features:
>> Secure Access - Security based on standards, ACLsSingle Point of Entry (SSO, 
>> Federated) Enterprise Integration -  (EAI, integration 
>> points)Personalization - (customizers, skins) Dynamic Web Components - 
>> (portlets based on standards-in this case JSR268)
>> Scaleable, Component Architecture featuring multi-threading libraries
>>
>> there are roughly 17 rfcs the JSR-268 support ..get to know them on 
>> need-to-know basis
>> http://portals.apache.org/jetspeed-2
>>
>
> I'd be very surprised if Jetspeed2 implements JSR-268...
>
> Nils-H
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[OT} Re: Mixing portlet with regular pages

2009-08-04 Thread Dave Newton

Nils-Helge Garli Hegvik wrote:

I'd be very surprised if Jetspeed2 implements JSR-268...


Oh, great; now my Smart Card will *never* talk to my webapp.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Mixing portlet with regular pages

2009-08-04 Thread Nils-Helge Garli Hegvik
>
> probably wise to beg off this particular plugin until all P1 bugs are quashed
>

Very insightful...

> the JSR268 readme and core sample is located at
> https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_JCP-Site/en_US/-/USD/ViewFilteredProducts-SimpleBundleDownload
>

I'm not sure what you're trying to link to, but that only gives "The
product you requested is not available at this time" for me.

> i would strongly suggest implementing your Portlets with JetSpeed 2 released 
> in May 2009
> among the features:
> Secure Access - Security based on standards, ACLsSingle Point of Entry (SSO, 
> Federated) Enterprise Integration -  (EAI, integration points)Personalization 
> - (customizers, skins) Dynamic Web Components - (portlets based on 
> standards-in this case JSR268)
> Scaleable, Component Architecture featuring multi-threading libraries
>
> there are roughly 17 rfcs the JSR-268 support ..get to know them on 
> need-to-know basis
> http://portals.apache.org/jetspeed-2
>

I'd be very surprised if Jetspeed2 implements JSR-268...

Nils-H

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: CSS background images, struts2

2009-08-04 Thread Andy Law



Wes Wannemacher wrote:
> 
> One thing I've done in the past is to treat CSS files as JSPs and use
> s:url tags or EL expressions (${contextRoot}/images/image.gif)...
> 
> 


Oh. That feels s dirty!!!

There has to be a cleaner way to do it.

Later,

Andy
-- 
View this message in context: 
http://www.nabble.com/CSS-background-images%2C-struts2-tp24811929p24816196.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: CSS background images, struts2

2009-08-04 Thread Andy Law


Haroon Rafique wrote:
> 
> On Today at 9:38am, AL=>Andy Law  wrote:
> 
> If your file structure is somewhat like:
> 
> styles/base.css
> images/image.gif
> 
> then you can simply change your background-image directive to say:
> background-image: url('../images/image.gif');
> 
> or in other words, your image path will be relative to the path from where 
> the .css file is located. So, no need to worry about context paths and/or 
> nesting levels of action URLs.
> 

Is this the case? I always thought that *all* URLs were relative to the URL
of the web page/action. If I can use a known relationship between the CSS
file and the images then it should be trivial to fix, like you say.

I'll try it in the morning.

Later,

Andy
-- 
View this message in context: 
http://www.nabble.com/CSS-background-images%2C-struts2-tp24811929p24816098.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: equivalent of request.getParameter();

2009-08-04 Thread Greg Lindholm
@OP: You should listen to Wes, he knows what he's talking about.  There is
no reason to call a setter on your action after the action method has
executed and the jsp result page is being rendered. (OK, maybe if the setter
has some side effect, but this would be a really odd case and a bad design.)

You would be better off explaining what behavior you are trying to achieve
and asking how it's done with struts.


On Tue, Aug 4, 2009 at 3:57 PM, Wes Wannemacher  wrote:

> On Tue, Aug 4, 2009 at 2:25 PM, Bhaarat Sharma wrote:
> > thanks wes. so when that url will be clicked the setter will be set.
> > ...maybe pushing the envelope but is it possible to not click any url but
> > still set a setter. just like we call a getter.
> > 
> >
> >
> >
>
>
> The paradigms are different... in your little example, the getter is
> called, yes, but you are looking at a "view" of your data, so it sort
> of makes sense that you can get to getters. I am sure there is a way
> to get to setters, but what I was trying to get to before is that
> there doesn't appear to be any good reason to call a setter when you
> are rendering a view (unless you are going to read that value from the
> action further down the page, but why use an action property for
> that)... What I am trying to say is that you send parameters to
> struts, struts performs some magic (well, not really) that converts
> those parameters and calls your setters, then struts calls your
> action's business method (most likely 'public String execute()') and
> returns a string indicating to struts which view to render. What
> you're asking is how to call a setter from the last step... What I am
> saying is that it's only really helpful to call a setter if you are
> planning on calling an action method afterwards. Calling an action
> method means making some sort of call back to your server. So,
> construct an URL that specifies the appropriate parameters, then hit
> that URL... whether you do it by clicking, async JS, trojan horse,
> whatever, it doesn't matter.
>
> To answer your question (after making the point that it may be
> useless), you can probably call your setter by doing -
>
> 
>
> You might have to do this -
>
> 
>
> or
>
> 
>
> again, though, I question the point because this will happen after
> your business method has returned and further requests to your action
> will result in the creation of a new instance of your action (meaning
> that setter call will have no discernible purpose, it won't even
> output anything).
>
> -Wes
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: equivalent of request.getParameter();

2009-08-04 Thread Musachy Barroso
On Tue, Aug 4, 2009 at 12:57 PM, Wes Wannemacher wrote:
>
> 



If my memory is not failing "#top" doesn't work, it has to be "top".

musachy

-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: equivalent of request.getParameter();

2009-08-04 Thread Wes Wannemacher
On Tue, Aug 4, 2009 at 2:25 PM, Bhaarat Sharma wrote:
> thanks wes. so when that url will be clicked the setter will be set.
> ...maybe pushing the envelope but is it possible to not click any url but
> still set a setter. just like we call a getter.
> 
>
>
>


The paradigms are different... in your little example, the getter is
called, yes, but you are looking at a "view" of your data, so it sort
of makes sense that you can get to getters. I am sure there is a way
to get to setters, but what I was trying to get to before is that
there doesn't appear to be any good reason to call a setter when you
are rendering a view (unless you are going to read that value from the
action further down the page, but why use an action property for
that)... What I am trying to say is that you send parameters to
struts, struts performs some magic (well, not really) that converts
those parameters and calls your setters, then struts calls your
action's business method (most likely 'public String execute()') and
returns a string indicating to struts which view to render. What
you're asking is how to call a setter from the last step... What I am
saying is that it's only really helpful to call a setter if you are
planning on calling an action method afterwards. Calling an action
method means making some sort of call back to your server. So,
construct an URL that specifies the appropriate parameters, then hit
that URL... whether you do it by clicking, async JS, trojan horse,
whatever, it doesn't matter.

To answer your question (after making the point that it may be
useless), you can probably call your setter by doing -



You might have to do this -



or



again, though, I question the point because this will happen after
your business method has returned and further requests to your action
will result in the creation of a new instance of your action (meaning
that setter call will have no discernible purpose, it won't even
output anything).

-Wes

-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Mixing portlet with regular pages

2009-08-04 Thread Martin Gainty

probably wise to beg off this particular plugin until all P1 bugs are quashed 

the JSR268 readme and core sample is located at 
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_JCP-Site/en_US/-/USD/ViewFilteredProducts-SimpleBundleDownload

i would strongly suggest implementing your Portlets with JetSpeed 2 released in 
May 2009 
among the features:
Secure Access - Security based on standards, ACLsSingle Point of Entry (SSO, 
Federated) Enterprise Integration -  (EAI, integration points)Personalization - 
(customizers, skins) Dynamic Web Components - (portlets based on standards-in 
this case JSR268)
Scaleable, Component Architecture featuring multi-threading libraries

there are roughly 17 rfcs the JSR-268 support ..get to know them on 
need-to-know basis
http://portals.apache.org/jetspeed-2

feel free to ping me offline for any questions
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Tue, 4 Aug 2009 17:40:01 +0200
> Subject: Re: Mixing portlet with regular pages
> From: nil...@gmail.com
> To: user@struts.apache.org
> 
> What do you mean by "accessed from a totally different server"? Are
> you referring to WSRP?
> 
> There's a bug in the current version that causes some problems when
> you mix servlet actions and portlet actions in the same app. The next
> version (hopefully 2.1.8) should have this bug fixed.
> 
> Nils-H
> 
> On Tue, Aug 4, 2009 at 4:05 PM, Scott Nesbitt wrote:
> >
> >
> > I have an existing Struts 2.1.6 configuration that is working fine.  I am 
> > interested in adding a new page that contains a single portlet, and also 
> > having the portlet be accessed from a totally different server.  Is this 
> > possible with the Struts portlet plugin?
> >
> > I have read the portlet plugin and tutorial pages and am about to dive into 
> > this but wanted to make sure it is feasible first.
> >
> > Any tips or pointers would be appreciated.
> >
> > Thanks,
> >
> > Scott
> >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_
Express your personality in color! Preview and select themes for Hotmail®. 
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009

Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
thanks wes. so when that url will be clicked the setter will be set.
...maybe pushing the envelope but is it possible to not click any url but
still set a setter. just like we call a getter.




On Tue, Aug 4, 2009 at 2:22 PM, Bhaarat Sharma  wrote:

> wow ..just explaining the problem i figured out I can just avoid doing what
> i was thinking and just check for request.getParamter() inside the action
> class.
> anyways...still curious if there is a way to set a setter w/out doing form
> submission..
>
>
> On Tue, Aug 4, 2009 at 2:18 PM, Bhaarat Sharma wrote:
>
>> I know its not the best case scenario.  If i can do this then I will not
>> have to change major piece of the code.
>> I'll try to explain the scenario: basically one jsp page is used to show
>> results. this jsp page has pagination so each time 50 results are shown. But
>> the page has a printer friendly version.  when printer friendly link is
>> clicked this same jsp page is loaded again but this time around we want to
>> print everything not just 50 records. so in my action class there is a
>> method which returns sublist. but in this case i want it to return the whole
>> list.
>>
>> So in the jsp i know when printerfriendly is taking place because it is
>> being passed a parameter called ?print=true
>>
>> so i thought that in jsp i could check if print=true then set action class
>> Printer method to true. kind of confusing i bet it sounds..
>>
>>
>> On Tue, Aug 4, 2009 at 2:14 PM, Wes Wannemacher  wrote:
>>
>>> On Tue, Aug 4, 2009 at 2:09 PM, Bhaarat Sharma
>>> wrote:
>>> > Thanks.
>>> > I have another question, which might be a little off topic.
>>> >
>>> > if I have a method like this in my Action class
>>> >
>>> >public void setPrinter(String print)
>>> >{
>>> >this.printer = print;
>>> >}
>>> >
>>> > how can I call this setter with some value from my jsp page using
>>> struts2?
>>> >
>>> > I know this can be set if I submit a form with hidden value and stuff
>>> but I
>>> > dont want to submit a form. I just want to set the value from the jsp
>>> page.
>>> > ..
>>> >
>>>
>>> At which point will that value be used? If you need to know the value
>>> of the 'print' variable within the execute method of your action, then
>>> it should be part of the form submission... In fact, I am having
>>> trouble thinking of a scenario where you would want to call that sort
>>> of method from a JSP that doesn't involve form submission (except
>>> javascript, but still, just calling a setter alone doesn't really have
>>> any effect unless you are calling another action method afterwards
>>> that has an interest in that variable's value).
>>>
>>> -Wes
>>>
>>> --
>>> Wes Wannemacher
>>>
>>> Head Engineer, WanTii, Inc.
>>> Need Training? Struts, Spring, Maven, Tomcat...
>>> Ask me for a quote!
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>


Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
wow ..just explaining the problem i figured out I can just avoid doing what
i was thinking and just check for request.getParamter() inside the action
class.
anyways...still curious if there is a way to set a setter w/out doing form
submission..

On Tue, Aug 4, 2009 at 2:18 PM, Bhaarat Sharma  wrote:

> I know its not the best case scenario.  If i can do this then I will not
> have to change major piece of the code.
> I'll try to explain the scenario: basically one jsp page is used to show
> results. this jsp page has pagination so each time 50 results are shown. But
> the page has a printer friendly version.  when printer friendly link is
> clicked this same jsp page is loaded again but this time around we want to
> print everything not just 50 records. so in my action class there is a
> method which returns sublist. but in this case i want it to return the whole
> list.
>
> So in the jsp i know when printerfriendly is taking place because it is
> being passed a parameter called ?print=true
>
> so i thought that in jsp i could check if print=true then set action class
> Printer method to true. kind of confusing i bet it sounds..
>
>
> On Tue, Aug 4, 2009 at 2:14 PM, Wes Wannemacher  wrote:
>
>> On Tue, Aug 4, 2009 at 2:09 PM, Bhaarat Sharma
>> wrote:
>> > Thanks.
>> > I have another question, which might be a little off topic.
>> >
>> > if I have a method like this in my Action class
>> >
>> >public void setPrinter(String print)
>> >{
>> >this.printer = print;
>> >}
>> >
>> > how can I call this setter with some value from my jsp page using
>> struts2?
>> >
>> > I know this can be set if I submit a form with hidden value and stuff
>> but I
>> > dont want to submit a form. I just want to set the value from the jsp
>> page.
>> > ..
>> >
>>
>> At which point will that value be used? If you need to know the value
>> of the 'print' variable within the execute method of your action, then
>> it should be part of the form submission... In fact, I am having
>> trouble thinking of a scenario where you would want to call that sort
>> of method from a JSP that doesn't involve form submission (except
>> javascript, but still, just calling a setter alone doesn't really have
>> any effect unless you are calling another action method afterwards
>> that has an interest in that variable's value).
>>
>> -Wes
>>
>> --
>> Wes Wannemacher
>>
>> Head Engineer, WanTii, Inc.
>> Need Training? Struts, Spring, Maven, Tomcat...
>> Ask me for a quote!
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>


Re: equivalent of request.getParameter();

2009-08-04 Thread Wes Wannemacher
No, it's not confusing, the thing about http / html is that it is
still a submission... Just not using 

-Wes

On Tue, Aug 4, 2009 at 2:18 PM, Bhaarat Sharma wrote:
> I know its not the best case scenario.  If i can do this then I will not
> have to change major piece of the code.
> I'll try to explain the scenario: basically one jsp page is used to show
> results. this jsp page has pagination so each time 50 results are shown. But
> the page has a printer friendly version.  when printer friendly link is
> clicked this same jsp page is loaded again but this time around we want to
> print everything not just 50 records. so in my action class there is a
> method which returns sublist. but in this case i want it to return the whole
> list.
>
> So in the jsp i know when printerfriendly is taking place because it is
> being passed a parameter called ?print=true
>
> so i thought that in jsp i could check if print=true then set action class
> Printer method to true. kind of confusing i bet it sounds..
>
> On Tue, Aug 4, 2009 at 2:14 PM, Wes Wannemacher  wrote:
>
>> On Tue, Aug 4, 2009 at 2:09 PM, Bhaarat Sharma wrote:
>> > Thanks.
>> > I have another question, which might be a little off topic.
>> >
>> > if I have a method like this in my Action class
>> >
>> >    public void setPrinter(String print)
>> >    {
>> >        this.printer = print;
>> >    }
>> >
>> > how can I call this setter with some value from my jsp page using
>> struts2?
>> >
>> > I know this can be set if I submit a form with hidden value and stuff but
>> I
>> > dont want to submit a form. I just want to set the value from the jsp
>> page.
>> > ..
>> >
>>
>> At which point will that value be used? If you need to know the value
>> of the 'print' variable within the execute method of your action, then
>> it should be part of the form submission... In fact, I am having
>> trouble thinking of a scenario where you would want to call that sort
>> of method from a JSP that doesn't involve form submission (except
>> javascript, but still, just calling a setter alone doesn't really have
>> any effect unless you are calling another action method afterwards
>> that has an interest in that variable's value).
>>
>> -Wes
>>
>> --
>> Wes Wannemacher
>>
>> Head Engineer, WanTii, Inc.
>> Need Training? Struts, Spring, Maven, Tomcat...
>> Ask me for a quote!
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
I know its not the best case scenario.  If i can do this then I will not
have to change major piece of the code.
I'll try to explain the scenario: basically one jsp page is used to show
results. this jsp page has pagination so each time 50 results are shown. But
the page has a printer friendly version.  when printer friendly link is
clicked this same jsp page is loaded again but this time around we want to
print everything not just 50 records. so in my action class there is a
method which returns sublist. but in this case i want it to return the whole
list.

So in the jsp i know when printerfriendly is taking place because it is
being passed a parameter called ?print=true

so i thought that in jsp i could check if print=true then set action class
Printer method to true. kind of confusing i bet it sounds..

On Tue, Aug 4, 2009 at 2:14 PM, Wes Wannemacher  wrote:

> On Tue, Aug 4, 2009 at 2:09 PM, Bhaarat Sharma wrote:
> > Thanks.
> > I have another question, which might be a little off topic.
> >
> > if I have a method like this in my Action class
> >
> >public void setPrinter(String print)
> >{
> >this.printer = print;
> >}
> >
> > how can I call this setter with some value from my jsp page using
> struts2?
> >
> > I know this can be set if I submit a form with hidden value and stuff but
> I
> > dont want to submit a form. I just want to set the value from the jsp
> page.
> > ..
> >
>
> At which point will that value be used? If you need to know the value
> of the 'print' variable within the execute method of your action, then
> it should be part of the form submission... In fact, I am having
> trouble thinking of a scenario where you would want to call that sort
> of method from a JSP that doesn't involve form submission (except
> javascript, but still, just calling a setter alone doesn't really have
> any effect unless you are calling another action method afterwards
> that has an interest in that variable's value).
>
> -Wes
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


RE: equivalent of request.getParameter();

2009-08-04 Thread Kawczynski, David
Ajax call?  ESP?  

> -Original Message-
> From: Bhaarat Sharma [mailto:bhaara...@gmail.com] 
> Sent: Tuesday, August 04, 2009 2:10 PM
> To: Struts Users Mailing List
> Subject: Re: equivalent of request.getParameter();
> 
> Thanks.
> I have another question, which might be a little off topic.
> 
> if I have a method like this in my Action class
> 
> public void setPrinter(String print)
> {
> this.printer = print;
> }
> 
> how can I call this setter with some value from my jsp page 
> using struts2?
> 
> I know this can be set if I submit a form with hidden value 
> and stuff but I
> dont want to submit a form. I just want to set the value from 
> the jsp page.
> ..
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: equivalent of request.getParameter();

2009-08-04 Thread Wes Wannemacher
On Tue, Aug 4, 2009 at 2:09 PM, Bhaarat Sharma wrote:
> Thanks.
> I have another question, which might be a little off topic.
>
> if I have a method like this in my Action class
>
>    public void setPrinter(String print)
>    {
>        this.printer = print;
>    }
>
> how can I call this setter with some value from my jsp page using struts2?
>
> I know this can be set if I submit a form with hidden value and stuff but I
> dont want to submit a form. I just want to set the value from the jsp page.
> ..
>

At which point will that value be used? If you need to know the value
of the 'print' variable within the execute method of your action, then
it should be part of the form submission... In fact, I am having
trouble thinking of a scenario where you would want to call that sort
of method from a JSP that doesn't involve form submission (except
javascript, but still, just calling a setter alone doesn't really have
any effect unless you are calling another action method afterwards
that has an interest in that variable's value).

-Wes

-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
Thanks.
I have another question, which might be a little off topic.

if I have a method like this in my Action class

public void setPrinter(String print)
{
this.printer = print;
}

how can I call this setter with some value from my jsp page using struts2?

I know this can be set if I submit a form with hidden value and stuff but I
dont want to submit a form. I just want to set the value from the jsp page.
..

On Tue, Aug 4, 2009 at 2:00 PM, Kawczynski, David <
david_kawczyn...@merck.com> wrote:

> Implement the requestAware interface to have access to a Map containing
> request parameters as name-value pairs.
> In terms of an html tag, use OGNL to get to the request parameters.
> Especially the #request object.  EG %{#request.someParam}
>
> > -Original Message-
> > From: Bhaarat Sharma [mailto:bhaara...@gmail.com]
> > Sent: Tuesday, August 04, 2009 1:56 PM
> > To: Struts Users Mailing List
> > Subject: equivalent of request.getParameter();
> >
> > In servlets we can do request.getParameter("someParm"); to
> > gain access to
> > parameters passed to the jsp.
> > what is the equivalent of this in struts2?
> >
> > is there an html tag for this?
> >
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: equivalent of request.getParameter();

2009-08-04 Thread Chris Pratt
RequestAware gives you access to the Request Attribute map, not the
Parameter map.  You can use ParameterAware to get the Map of Parameters or
ServletRequestAware to get access to the HttpServletRequest directly.  But
the best way to get access to values from forms or query strings is to allow
Struts to inject the values into you action automatically.  By default if
you have:



in your HTML, Struts will look for and call

public void setFieldOne (String fieldOne) {
  // do something with the value
}

automatically for you.
  (*Chris*)

On Tue, Aug 4, 2009 at 11:00 AM, Kawczynski, David <
david_kawczyn...@merck.com> wrote:

> Implement the requestAware interface to have access to a Map containing
> request parameters as name-value pairs.
> In terms of an html tag, use OGNL to get to the request parameters.
> Especially the #request object.  EG %{#request.someParam}
>
> > -Original Message-
> > From: Bhaarat Sharma [mailto:bhaara...@gmail.com]
> > Sent: Tuesday, August 04, 2009 1:56 PM
> > To: Struts Users Mailing List
> > Subject: equivalent of request.getParameter();
> >
> > In servlets we can do request.getParameter("someParm"); to
> > gain access to
> > parameters passed to the jsp.
> > what is the equivalent of this in struts2?
> >
> > is there an html tag for this?
> >
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


RE: equivalent of request.getParameter();

2009-08-04 Thread Kawczynski, David
Implement the requestAware interface to have access to a Map containing
request parameters as name-value pairs.
In terms of an html tag, use OGNL to get to the request parameters.
Especially the #request object.  EG %{#request.someParam}

> -Original Message-
> From: Bhaarat Sharma [mailto:bhaara...@gmail.com] 
> Sent: Tuesday, August 04, 2009 1:56 PM
> To: Struts Users Mailing List
> Subject: equivalent of request.getParameter();
> 
> In servlets we can do request.getParameter("someParm"); to 
> gain access to
> parameters passed to the jsp.
> what is the equivalent of this in struts2?
> 
> is there an html tag for this?
> 
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



equivalent of request.getParameter();

2009-08-04 Thread Bhaarat Sharma
In servlets we can do request.getParameter("someParm"); to gain access to
parameters passed to the jsp.
what is the equivalent of this in struts2?

is there an html tag for this?


Re: CSS background images, struts2

2009-08-04 Thread Haroon Rafique
On Today at 9:38am, AL=>Andy Law  wrote:

AL> [..snip..]
AL> 
AL> th.myclass {
AL> background-image: url('images/image.gif');
AL> }
AL> 

Andy,

If your file structure is somewhat like:

styles/base.css
images/image.gif

then you can simply change your background-image directive to say:
background-image: url('../images/image.gif');

or in other words, your image path will be relative to the path from where 
the .css file is located. So, no need to worry about context paths and/or 
nesting levels of action URLs.

Now, if your css is specified inline as part of the HTML, then you will 
need to make sure that your image path is relative to the path of the URL 
where the HTML was generated. That's a different scenario.

Hope this helps.

Later,
--
Haroon Rafique



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: CSS background images, struts2

2009-08-04 Thread Wes Wannemacher
One thing I've done in the past is to treat CSS files as JSPs and use
s:url tags or EL expressions (${contextRoot}/images/image.gif)...

Pointing your jsp servlet in tomcat to CSS files, IIRC, didn't work
right (I think I found the JSP servlet was actually looking at the
file and saying - "hey, this isn't a JSP, I'm just going to serve it
up w/o parsing/compiling). But, you can create a JSP and set the
content-type via JSP directive and put CSS content within.

-Wes

On Tue, Aug 4, 2009 at 12:38 PM, Andy Law wrote:
>
> I'm trying to specify a CSS style to be applied to a table header row that
> includes a reference to a background image (specifically as part of a table
> that uses JQuery/tablesorter). It is causing me pain.
>
> To clarify what may be a bit of a garbled question, my (final, effective)
> html needs to look something like this
>
> Header
>
> and my CSS file needs to look something like...
>
> th.myclass {
>    background-image: url('images/image.gif');
> }
>
>
> The problem is how to specify the url in the CSS file so that it works when
> the page is rendered as part of the web application.
>
>
> Of course, I don't know what context my web app will be deployed at, nor do
> I wish to hard-code it into the css file as that will then break if I try to
> deploy at a different context. I've been trawling through web pages all
> afternoon trying to find the answer but with no success so far.
>
> I have found reference to the FilterDispatcher serving static content along
> with some confusing documentation about what the struts.serve.static
> property actually does (starting from
> http://stackoverflow.com/questions/870440/how-does-struts-2-includes-javascript-files-in-a-jsp-from-their-struts-jar
> here ) but putting my static images in a subdirectory of the template
> directory (for want of a better place) still don't work.
>
> Can someone please point me in the right direction for getting this to work?
> Or point me at a work-around?
>
> Thanks in advance,
>
> Andy
> --
> View this message in context: 
> http://www.nabble.com/CSS-background-images%2C-struts2-tp24811929p24811929.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



CSS background images, struts2

2009-08-04 Thread Andy Law

I'm trying to specify a CSS style to be applied to a table header row that
includes a reference to a background image (specifically as part of a table
that uses JQuery/tablesorter). It is causing me pain.

To clarify what may be a bit of a garbled question, my (final, effective)
html needs to look something like this

Header

and my CSS file needs to look something like...

th.myclass {
background-image: url('images/image.gif');
}


The problem is how to specify the url in the CSS file so that it works when
the page is rendered as part of the web application.


Of course, I don't know what context my web app will be deployed at, nor do
I wish to hard-code it into the css file as that will then break if I try to
deploy at a different context. I've been trawling through web pages all
afternoon trying to find the answer but with no success so far.

I have found reference to the FilterDispatcher serving static content along
with some confusing documentation about what the struts.serve.static
property actually does (starting from 
http://stackoverflow.com/questions/870440/how-does-struts-2-includes-javascript-files-in-a-jsp-from-their-struts-jar
here ) but putting my static images in a subdirectory of the template
directory (for want of a better place) still don't work.

Can someone please point me in the right direction for getting this to work?
Or point me at a work-around? 

Thanks in advance,

Andy
-- 
View this message in context: 
http://www.nabble.com/CSS-background-images%2C-struts2-tp24811929p24811929.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Mixing portlet with regular pages

2009-08-04 Thread Nils-Helge Garli Hegvik
What do you mean by "accessed from a totally different server"? Are
you referring to WSRP?

There's a bug in the current version that causes some problems when
you mix servlet actions and portlet actions in the same app. The next
version (hopefully 2.1.8) should have this bug fixed.

Nils-H

On Tue, Aug 4, 2009 at 4:05 PM, Scott Nesbitt wrote:
>
>
> I have an existing Struts 2.1.6 configuration that is working fine.  I am 
> interested in adding a new page that contains a single portlet, and also 
> having the portlet be accessed from a totally different server.  Is this 
> possible with the Struts portlet plugin?
>
> I have read the portlet plugin and tutorial pages and am about to dive into 
> this but wanted to make sure it is feasible first.
>
> Any tips or pointers would be appreciated.
>
> Thanks,
>
> Scott
>
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Mixing portlet with regular pages

2009-08-04 Thread Scott Nesbitt


I have an existing Struts 2.1.6 configuration that is working fine.  I am 
interested in adding a new page that contains a single portlet, and also having 
the portlet be accessed from a totally different server.  Is this possible with 
the Struts portlet plugin?

I have read the portlet plugin and tutorial pages and am about to dive into 
this but wanted to make sure it is feasible first.

Any tips or pointers would be appreciated.

Thanks,

Scott



  

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: HSSFWorkbook - set direction right to left

2009-08-04 Thread Nils-Helge Garli Hegvik
Why don't you try the POI mailing list instead?

http://poi.apache.org/mailinglists.html

Nils-H

On Tue, Aug 4, 2009 at 3:01 PM, Odelya YomTov wrote:
> Hi!
>
> When I export HSSFWorkbook it writes it from left to right
>
> I would like to right it from right to left
>
> How can I do it?
>
> Thanks!
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



HSSFWorkbook - set direction right to left

2009-08-04 Thread Odelya YomTov
Hi!

When I export HSSFWorkbook it writes it from left to right

I would like to right it from right to left

How can I do it?

Thanks!


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How can I download Struts 2.1.7?

2009-08-04 Thread cmartin81

Thanks for your answers.
We were actually planning to use Struts 2.1.7 in production. Is this safe?
Or is it still in beta (or snapshot) version?  We got the jar file from this
location:
http://people.apache.org/builds/struts/2.1.7/m2-staging-repository/
What was the main problem with 2.1.7?


-- 
View this message in context: 
http://www.nabble.com/How-can-I-download-Struts-2.1.7--tp24787434p24803575.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org