Re: converting to submit...

2001-12-11 Thread Trever M. Shick

With standard html you can do this:




This way, the submitted form will now have a NV pair of action=link1
as well as the rest of the form values.


Trever

- Original Message -
From: "Marcelo Caldas - CCSC" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 11, 2001 8:19 AM
Subject: converting  to submit...


Hi,
Someone knows a way to convert a  linK into a form 

I know that I can use , but my problem is
that I have several links with that, and I need to know which one the user
clicked on...

Any sugestions?




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help with jsp:include tag

2001-11-16 Thread Trever M. Shick

I'd like to use an action/action form to handle a JSP include, can this be
done...?


I'd like to do the following..


...

...

My view-calendar.do will either choose:
month.jsp
daily.jsp
week.jsp

for it's view.

However, when I try to use this, it tells me that the response has already
been committed.  I understand the mechanics behind it all, but I don't know
Struts well enough to work around this.

I could probably do this via the template tags, but I don't want to use them
as I'm still working on learning the others...  I have enough darned tags in
my brain.


Trever

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What are the 5 optional args in Bean Message Tag for

2001-11-14 Thread Trever M. Shick

They are used as arguments to the place holders in the message

arg1-5
arg1="ab"
arg2="test"

my.message=this is a message {0} for the standard {1}
this is a message ab for the standard test


see java.text.MessageFormat


- Original Message -
From: "Kevin Yap" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 8:37 PM
Subject: What are the 5 optional args in Bean Message Tag for


> Hi,
>
> Can anyone explain to me how to use the args1 - args5 in the bean message
> tag.
>
> Where can i get more information about the usage of these arguments
>
> Regards
> Kevin
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: properties file in action class

2001-11-14 Thread Trever M. Shick

You could load it via a singleton... For example if you need to load a
different properties file depending upon the Action class, your Singleton's
interface would look like this:



public class PropertyLoader {

public static synchronized PropertyLoader getInstance();
public void load(String actionClassName, String propertyFile)
public Properties get(String actionClassName)
}

The singleton could utilize a Map to store the properties loaded with a key
of "actionClassName".
Load would only load if it hadn't previously been loaded (properties file)
And get would simply return the properties object from the map...

Trever

- Original Message -
From: "Dua, Amit" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 1:10 PM
Subject: properties file in action class


>
> Hi
>  if  I have to load a properties file in my action class.
> I can do it in perform method.
> But  I want to do it in init of Action Servlet , so that it does not get
> loaded every time a call is made to the action class.How can I do this.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: Disabling controls

2001-11-14 Thread Trever M. Shick

Before when we did this, we weren't using struts...
But the logic can be accomplished using the Struts logic taglibs.
otherwise use the standard struts html taglibs.

Trever

- Original Message -
From: "Jacob Marcus" <[EMAIL PROTECTED]>
To: ""Struts Users Mailing List"" <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 12:55 PM
Subject: RE: Re: Disabling controls


> Hi Triver,
>
> I guess this is a good idea. In the worst case we can show images in
Netscape. Also, the hidden field idea is good. This way the form bean can
still contain the values. Neat.
>
> Will you be using custom tags for all fields?
>
> Thanks a lot.
>
> Jacob
>
>
> "Trever M. Shick" <[EMAIL PROTECTED]> wrote:
>
> >What I've seen done, and I've done my self is to use stylesheets or
graphics
> >to mimic the look of a disabled field.
> >
> >So when rendering your screen, each field has a flag in the request that
> >states whether or not it is enabled,
> >if it's enabled then you show the regular field,
> >if it's disabled, render a hidden field to hold the value instead, then
> >render some sort of "placeholder" which is a graphic (generally) or HTML
> >text that is outlined to mimic a disabled text field.
> >
> >
> >Trever
> >
> >
> >- Original Message -
> >From: "Jacob Marcus" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, November 14, 2001 12:41 PM
> >Subject: Disabling controls
> >
> >
> >> Hello people,
> >>
> >> I have a requirement to disable input controls like text fields,
buttons,
> >check boxes etc. This should work in Netscape 4.7 also. Currently the
> >disabled property does not support in Netscape 4.7.
> >>
> >> Is there any work around?
> >>
> >> thanks,
> >> Jacob
> >>
> >>
> >> __
> >> Your favorite stores, helpful shopping tools and great gift ideas.
> >Experience the convenience of buying online with Shop@Netscape!
> >http://shopnow.netscape.com/
> >>
> >> Get your own FREE, personal Netscape Mail account today at
> >http://webmail.netscape.com/
> >>
> >>
> >> --
> >> To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >> For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >>
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> __
> Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Disabling controls

2001-11-14 Thread Trever M. Shick

What I've seen done, and I've done my self is to use stylesheets or graphics
to mimic the look of a disabled field.

So when rendering your screen, each field has a flag in the request that
states whether or not it is enabled,
if it's enabled then you show the regular field,
if it's disabled, render a hidden field to hold the value instead, then
render some sort of "placeholder" which is a graphic (generally) or HTML
text that is outlined to mimic a disabled text field.


Trever


- Original Message -
From: "Jacob Marcus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 14, 2001 12:41 PM
Subject: Disabling controls


> Hello people,
>
> I have a requirement to disable input controls like text fields, buttons,
check boxes etc. This should work in Netscape 4.7 also. Currently the
disabled property does not support in Netscape 4.7.
>
> Is there any work around?
>
> thanks,
> Jacob
>
>
> __
> Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Html:select question

2001-10-02 Thread Trever M. Shick

It does this because it needs to pull the value as a property from the bean
in order to determine what value to make "selected" in the list box.

If you don't want this to be pulled from the bean, then just use regular
HTML tags.

Trever

- Original Message -
From: "Kilmer, Erich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 1:04 PM
Subject: Html:select question


> In the struts example struts-select.jsp there is this code:
>   
> Single 0
> Single 1
> ...
> Single 9
>   
>
> When I try this code:
> 
>Enabled
>Disabled
> 
>
> I get:
> 500 Internal Server Error
> javax.servlet.jsp.JspException: No getter method available for property
> status for bean under name org.apache.struts.taglib.html.BEAN
> at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:304)
> at /input.jsp._jspService(/input.jsp.java:322) (JSP page line 98)
> at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
>
> Why? I want status to be the name of the request parameter that is sent
> back. Why does Struts think this is a bean property?
>
> Should I use something other than property?
> TIA,
>
> Erich Kilmer
> Bell+Howell
> RTP, NC
>