Re: Images img Portlets

2008-10-14 Thread Nils-Helge Garli Hegvik
It's not really at limitation of struts 2. The portlet spec (jsr168)  
does not specify support for resources. Some containers implement å  
custom window state for this, but since it's not portable, it's not  
supported in the portlet plugin. So until the jsr286 plugin is ready,  
you have to do it this way.


Nils-H

Den 14. okt.. 2008 kl. 18.20 skrev Torsten Krah [EMAIL PROTECTED] 
:



Hi.
Is it possible with struts stable (2.0.11.2) - afaik there is no
portletUrlType resource there - to render images or other binary  
content?


At the moment i am using the workaround to configure the  
FilterDispatcher
(which got this annoying shutdown bug ...) and using the s:url  
value= /

hack.

I guess the answer is that it is not possible, but maybe someone got  
an

idea ;)

--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a
completely unintentional side effect.
   -- Linus Torvalds


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Images in s:select

2008-06-04 Thread Felipe Lorenz
try something with CSS...

On Tue, Jun 3, 2008 at 6:48 PM, Volker Karlmeier [EMAIL PROTECTED]
wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello all,


 is it possible to design a list with an s:select-tag that conaints
 images ?
 I want to offer a list of available langauges with a flag, but how can
 I realize it ?
 any suggestions ?

  Volker

 Stetze2008 schrieb:
  hi,
 
  when opening http://localhost:8080/myApplication/ on my local Jetty
  server instead of showing the action defined in the welcomefilelist
  of my web.xml I'm asked to download a file from type
  application/octet-stream.
  it works on the tomcat internet server. does anybody know how to
  solve this locally?
 
  thanks in advance,
  Stefan
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.3 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFIRbwUx4KjH6Tk4MMRAuNcAJ9EmrGuUWQp/GPGmZ/s446wk1vBPgCdHDgn
 cALnW+RM5LoUaK079Ashq1k=
 =VJb6
 -END PGP SIGNATURE-


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Images not showing up when saved(Struts 2 Tomcat, Eclipse)

2008-05-20 Thread Musachy Barroso
The problem is not related to struts, but eclipse. Eclipse won't
know about the new file unless your refresh the project. What I do
in these cases, to avoid refreshing the project, is save the resources
on some folder, then create a soft link from inside the eclipse tomcat
deployment folder, to the resources folder.

musachy

On Tue, May 20, 2008 at 3:31 PM, Mark Lester [EMAIL PROTECTED] wrote:
 Hello sorry in advance if this is not a struts issue but I guessing
 that it is.

 Anyways I have some code in an action method that queries a site for
 base64 image, takes that image decodes and save it in a file, and then
 sends a relative link to that image as part of the results of that
 action. The problem is that the image doesn't show as created unless I
 refresh the eclipse navigator otherwise it shows a 404 when I try and
 access the file. The code is running in tomcat 6.0.13

 Regards,

 Mark





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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Images

2007-10-22 Thread Martin Uhlir

Hi,

when the page is loaded for the first time, there is such tag in your 
html page


img 
src=/hapandharpur/img/logo.jpg;jsessionid=43E71BFE7F7B323A7437A0011F5A0FE9

may be there is problem with the jsessionid=43E71BFE7F7B323A7437A0011F5A0FE9
because no such file logo.jpg;jsessionid=43E71BFE7F7B323A7437A0011F5A0FE9 
exists on your hard disk..

for the 2nd time (when cookies are enabled) it is loaded ok (because its 
already without jsessionid..), but when cookies a disabled (that means the 
jsessionid remains
in the url) it is not loaded again.

I am just cooking from the water and I dont know how to solve this.

Martin



Prashant Desai wrote:

I have some images displayed on my website... the images on the first page do 
not get loaded when the page displays for the first time.. you can see it 
here... http://www.hapandharpur.com. there are images in the right top corner. 
One is a logo and one is a symbol.. Both of those images do not get loaded when 
I access the site that is deployed on internet. If I access the local 
code(which is my dev env) it opens fine...
 
what could be the problem??
 
This is the tag that I am using.
 
  logic:present parameter=mName  logic:match value=home parameter=mName  br  td valign=top  html:img page=/img/handicapped.jpg/  /td  /logic:match  /logic:present
 
Thanks for your help.
 
prashant

_
Peek-a-boo FREE Tricks  Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ot] RE: Images

2007-10-19 Thread Manu Mahajan
Try removing the / before the image path 

Change this
html:img page=/img/handicapped.jpg/
to
html:img page=img/handicapped.jpg/

-Original Message-
From: Prashant Desai [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 19, 2007 5:05 AM
To: user@struts.apache.org
Subject: Images


I have some images displayed on my website... the images on the first page
do not get loaded when the page displays for the first time.. you can see it
here... http://www.hapandharpur.com. there are images in the right top
corner. One is a logo and one is a symbol.. Both of those images do not get
loaded when I access the site that is deployed on internet. If I access the
local code(which is my dev env) it opens fine...
 
what could be the problem??
 
This is the tag that I am using.
 
  logic:present parameter=mName  logic:match value=home
parameter=mName  br  td valign=top  html:img
page=/img/handicapped.jpg/  /td  /logic:match  /logic:present
 
Thanks for your help.
 
prashant
_
Peek-a-boo FREE Tricks  Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: images not being displayed with struts 2

2007-09-23 Thread Oleg Mikheev

Session A Mwamufiya wrote:

I ran a simple jsp page with the img tag to add an image, and it ran fine.  
However, if I do the same in my struts 2 project, I don't get anything showingup.  My 
image file is within the same folder as the jsp file and is referenced the same way 
in both cases.
Any ideas what needs to be done in order to display an image in struts 2?


try putting img src into browser location, what do you see?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: images not being displayed with struts 2

2007-09-23 Thread Session A Mwamufiya
Fixed it, the page in which the image was supposed to be in was called by 
another page that prefaced the action call with a location.  Once I removed it, 
it worked.

Thanks.

 Session A Mwamufiya wrote:
 I ran a simple jsp page with the img tag to add an image, and it ran
 fine.  However, if I do the same in my struts 2 project, I don't get
 anything showingup.  My image file is within the same folder as the jsp
 file and is referenced the same way in both cases. Any ideas what needs
 to be done in order to display an image in struts 2?
 
 try putting img src into browser location, what do you see?
 
 
 - To
 unsubscribe, e-mail: [EMAIL PROTECTED] For additional
 commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: images tabbedpanel

2007-08-30 Thread Jason Wyatt
Hi Manuel, 

You'll need to extract the images directory into the same path where your
custom templateCssPath is, then change the images.

For example, I had a tabbed panel like such:

s:tabbedPanel id=NcrTabbedPanel name=NcrTabbedPanel
selectedTab=%{currentTab} theme=ajax requiredposition=left
cssStyle=width: 770px; height: 465px; cssClass=tabedpanelClass
doLayout=false templateCssPath=includes/TabContainer.css

The TabContainer.css is in the includes directory:
web/includes/TabContainer.css

The tabbed panel border colour can be changed in the TabContainer.css file.

Then we extract the images directory from struts2.x.x-core.jar... The path
in the zip is:
 org/apache/struts2/static/dojo/src/widget/templates/images

All files with this path should be extracted, and then move the images
directory into the same directory as your TabContainer.css.

So for me it looks like:
web/includes/images

Then modify the tab_top_right.gif and tab_left.gif in the images directory
if you want to change the colour of the tabs when located at the top of your
tabbed panel.


Hope this helps... 

Regards,

Jason


-
Falun Dafa  Truth - Compassion - Forbearance

A mind  body practice under persecution in China

http://www.faluninfo.net



-Original Message-
From: Manuel Correa [mailto:[EMAIL PROTECTED] 
Sent: Friday, 31 August 2007 6:39 AM
To: Struts Users Mailing List
Subject: images tabbedpanel

Hey, 

 

Some have the sources .png or any source of the images of the tabbepanel
tab's. I have my applications but the people that I'm working for,  want
another color in that tabs... someone made this change before???... is not
something Struts 2 issue, but the problem is people only cares about the
colors and design and I can't tell that we can't do this. In this moment I
changed the styles css but I have the problem with the images.

 

Thanks, 

 

Manuel Correa.

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]