You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fea jabi <zy...@hotmail.com> on 2005/11/02 19:18:18 UTC

Jsp page size

In an application how can we specify the fixed size of the JSP page.

In the JSP page I created used a scrollbar in which there is a table.

To create a scrollbar,  I had to specify the height, width for the div in 
css.

This table is stable size but there is another table above this which has 
text in it.

When the browser size is changed the text is getting wrapped.

As a user I wouldn't prefer that to happen.

What is the better way of handing this? can we do this in struts? i.e 
setting page size?

Thanks.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


[OT] [HTML]Re: Jsp page size

Posted by Dave Newton <ne...@pingsite.com>.
fea jabi wrote:

> This table is stable size but there is another table above this which 
> has text in it.
>
> When the browser size is changed the text is getting wrapped.
>
> What is the better way of handing this? can we do this in struts? i.e 
> setting page size?

Set the table size for the other table? Wrap the entire page in a table 
(div?) of fixed size?

<meta>
On a side note, do people generally filter by "[OT]" or by "[OT"?

I ask because I have a tendency to tag stuff pretty heavily, like I 
would have tagged this as [OT:HTML] but I don't want to break anybody's 
filters.
</meta>

Dave



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


Re: [OT] [HTML] Jsp page size

Posted by Yujun Liang <yu...@acm.org>.
If you want it professionally, you may need to study CSS, instead of putting
layout in HTML tag.

for this case,

<table width="1024">

should be <table class="someClass">, however, you can use Struts to define
someClass as a varible and change it programatically.

Regards

On 11/3/05, Murray Collingwood <mu...@focus-computing.com.au> wrote:
>
> Use the html width parameter on your html object.
>
> eg
>
> <table width="1024">
>
> For more go to the source... http://www.w3.org/TR/html4/
>
> Cheers
> mc
>
> On 2 Nov 2005 at 13:18, fea jabi wrote:
>
> > In an application how can we specify the fixed size of the JSP page.
> >
> > In the JSP page I created used a scrollbar in which there is a table.
> >
> > To create a scrollbar, I had to specify the height, width for the div in
> > css.
> >
> > This table is stable size but there is another table above this which
> has
> > text in it.
> >
> > When the browser size is changed the text is getting wrapped.
> >
> > As a user I wouldn't prefer that to happen.
> >
> > What is the better way of handing this? can we do this in struts? i.e
> > setting page size?
> >
> > Thanks.
> >
> > _________________________________________________________________
> > Express yourself instantly with MSN Messenger! Download today - it's
> FREE!
> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date:
> 1/11/2005
> >
>
>
>
> FOCUS Computing - web design
> Mob: 0415 24 26 24
> murray@focus-computing.com.au
> http://www.focus-computing.com.au
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


--
Yujun Liang
yujun.liang@acm.org

Re: [OT] [HTML] Jsp page size

Posted by Max Cooper <ma...@maxcooper.com>.
Also consider <td nowrap="">The text that you do not want to wrap.</td>

This is all HTML stuff -- remember that browsers know absolutely nothing
about Struts, and that your app emits standard web stuff (HTML,
JavaScript, CSS, etc.) only.

-Max

On Thu, 2005-11-03 at 06:08 +1000, Murray Collingwood wrote:
> Use the html width parameter on your html object.
> 
> eg
> 
> <table width="1024">
> 
> For more go to the source... http://www.w3.org/TR/html4/
> 
> Cheers
> mc
> 
> On 2 Nov 2005 at 13:18, fea jabi wrote:
> 
> > In an application how can we specify the fixed size of the JSP page.
> > 
> > In the JSP page I created used a scrollbar in which there is a table.
> > 
> > To create a scrollbar,  I had to specify the height, width for the div in 
> > css.
> > 
> > This table is stable size but there is another table above this which has 
> > text in it.
> > 
> > When the browser size is changed the text is getting wrapped.
> > 
> > As a user I wouldn't prefer that to happen.
> > 
> > What is the better way of handing this? can we do this in struts? i.e 
> > setting page size?
> > 
> > Thanks.
> > 
> > _________________________________________________________________
> > Express yourself instantly with MSN Messenger! Download today - it's FREE! 
> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> > 
> > 
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
> > 
> 
> 
> 
> FOCUS Computing - web design
> Mob: 0415 24 26 24
> murray@focus-computing.com.au
> http://www.focus-computing.com.au
> 
> 
> 
> 


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


Re: [OT] [HTML] Jsp page size

Posted by Martin Gainty <mg...@hotmail.com>.
Greets all
I would use
http://displaytag.sourceforge.net/tagreference.html
and Play with the CSS class to controls the style characteristic width so 
that width can be based on percentage e.g."33%"
then when the operator resizes your table (previously defined as 
width="100%" )
your individual table data will resize to the same exact proportion
HTH,
Martin-

----- Original Message ----- 
From: "Murray Collingwood" <mu...@focus-computing.com.au>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Wednesday, November 02, 2005 3:08 PM
Subject: Re: [OT] [HTML] Jsp page size


> Use the html width parameter on your html object.
>
> eg
>
> <table width="1024">
>
> For more go to the source... http://www.w3.org/TR/html4/
>
> Cheers
> mc
>
> On 2 Nov 2005 at 13:18, fea jabi wrote:
>
>> In an application how can we specify the fixed size of the JSP page.
>>
>> In the JSP page I created used a scrollbar in which there is a table.
>>
>> To create a scrollbar,  I had to specify the height, width for the div in
>> css.
>>
>> This table is stable size but there is another table above this which has
>> text in it.
>>
>> When the browser size is changed the text is getting wrapped.
>>
>> As a user I wouldn't prefer that to happen.
>>
>> What is the better way of handing this? can we do this in struts? i.e
>> setting page size?
>>
>> Thanks.
>>
>> _________________________________________________________________
>> Express yourself instantly with MSN Messenger! Download today - it's 
>> FREE!
>> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
>>
>
>
>
> FOCUS Computing - web design
> Mob: 0415 24 26 24
> murray@focus-computing.com.au
> http://www.focus-computing.com.au
>
>
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 

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


Re: [OT] [HTML] Jsp page size

Posted by Murray Collingwood <mu...@focus-computing.com.au>.
Use the html width parameter on your html object.

eg

<table width="1024">

For more go to the source... http://www.w3.org/TR/html4/

Cheers
mc

On 2 Nov 2005 at 13:18, fea jabi wrote:

> In an application how can we specify the fixed size of the JSP page.
> 
> In the JSP page I created used a scrollbar in which there is a table.
> 
> To create a scrollbar,  I had to specify the height, width for the div in 
> css.
> 
> This table is stable size but there is another table above this which has 
> text in it.
> 
> When the browser size is changed the text is getting wrapped.
> 
> As a user I wouldn't prefer that to happen.
> 
> What is the better way of handing this? can we do this in struts? i.e 
> setting page size?
> 
> Thanks.
> 
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today - it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005
> 



FOCUS Computing - web design
Mob: 0415 24 26 24
murray@focus-computing.com.au
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.7/154 - Release Date: 1/11/2005


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