Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Joe Germuska
The "action" attribute of the html:link tag and the "path" attribute 
of the action element should be identical.

Note that  the value of the "paramName" attribute ("viewcontactlist" 
in your example)  is not a string literal, but rather the name of a 
bean in some scope (page, request, session, or application) which 
will be looked up and converted to a string as the value of the 
parameter.  In your case, since you specify paramScope="request", the 
tag will specifically call "request.getAttribute("viewcontactlist")" 
to get the value.

Joe

At 18:02 +0100 9/9/03, Mehran Zonouzi wrote:
Does the name I use for action i.e ContactForm have to tie in with 
what I use in the struts-config.xml file?



i.e.
Do I need to put ContactForm instead of 'contacts' for path...
 
   
--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
	--Jaron Lanier

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


RE: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Slattery, Tim - BLS
> i.e.
> Do I need to put ContactForm instead of 'contacts' for path...
> 
>  type="com.db.gcp.lemweb.blotter.servlets.ContactAction"
>name="contactForm"
>input="/viewcontactlist.jsp"
>scope="request">
>


No, "contacts" is the URL that the browser asks for to invoke your
"ContactAction" class. "ContactForm" is the FormBean (explicitly defined
elsewhere in the struts-config.xml file) that will be passed to the
ContactAction class. Therefore, ContactForm should be the form bean used by
the form in viewcontactlist.jsp.

--
Tim Slattery
[EMAIL PROTECTED]


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



Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi

Does the name I use for action i.e ContactForm have to tie in with what I use in the 
struts-config.xml file?



i.e.
Do I need to put ContactForm instead of 'contacts' for path...

 
   










   

  Joe Germuska 

  <[EMAIL PROTECTED]To:   "Struts Users Mailing List" 
<[EMAIL PROTECTED]>  
  >cc: 

   Subject:  Re: How do you mimic the 'a 
href' functionality in Struts?
  09/09/03 17:53   

  Please respond to

  "Struts Users

  Mailing List"

   

   





At 15:03 +0100 9/9/03, Mehran Zonouzi wrote:
>Yes I am going to pass the same param to the link every time.
>
>This is what I have replaced the link with.
>I am not too sure if I should be using the href
>property to call my ActionForm class.
>
>

At first encounter, the distinctions between the various link
destination attributes can be a little confusing -- but you probably
don't want to use href in this case.

If you have a specific action mapping called "/ContactForm" then you
should use 'action="/ContactForm"'  You would generally only want to
use "href" when you were linking outside of your web application --
the other three provide dynamic URL rewriting to prepend the
application context path so that you can deploy the same web app
under different context paths without having to change your JSPs...
(Other tags like html:img provide similar rewriting...)

The below is copied from the docs for this tag:

The base URL for this hyperlink is calculated based on which of the
following attributes you specify (you must specify exactly one of
them):

* forward - Use the value of this attribute as the name of a global
ActionForward to be looked up, and use the
application-relative or context-relative URI found there.

* action - Use the value of this attribute as the name of a Action to
be looked up, and use the application-relative or context-relative
URI found there.

* href - Use the value of this attribute unchanged.

* page - Use the value of this attribute as a application-relative
URI, and generate a server-relative URI by
including the context path and application prefix.

Joe



--
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time."
 --Jaron Lanier

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






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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



Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Joe Germuska
At 15:03 +0100 9/9/03, Mehran Zonouzi wrote:
Yes I am going to pass the same param to the link every time.

This is what I have replaced the link with.
I am not too sure if I should be using the href
property to call my ActionForm class.

At first encounter, the distinctions between the various link 
destination attributes can be a little confusing -- but you probably 
don't want to use href in this case.

If you have a specific action mapping called "/ContactForm" then you 
should use 'action="/ContactForm"'  You would generally only want to 
use "href" when you were linking outside of your web application -- 
the other three provide dynamic URL rewriting to prepend the 
application context path so that you can deploy the same web app 
under different context paths without having to change your JSPs... 
(Other tags like html:img provide similar rewriting...)

The below is copied from the docs for this tag:

The base URL for this hyperlink is calculated based on which of the 
following attributes you specify (you must specify exactly one of 
them):

* forward - Use the value of this attribute as the name of a global 
ActionForward to be looked up, and use the 
application-relative or context-relative URI found there.

* action - Use the value of this attribute as the name of a Action to 
be looked up, and use the application-relative or context-relative 
URI found there.

* href - Use the value of this attribute unchanged.

* page - Use the value of this attribute as a application-relative 
URI, and generate a server-relative URI by 
including the context path and application prefix.

Joe



--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
	--Jaron Lanier

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


Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi

Yes I am going to pass the same param to the link every time.

This is what I have replaced the link with.
I am not too sure if I should be using the href
property to call my ActionForm class.






   

  Joe Germuska 

  <[EMAIL PROTECTED]To:   "Struts Users Mailing List" 
<[EMAIL PROTECTED]>  
  >cc: 

   Subject:  Re: How do you mimic the 'a 
href' functionality in Struts?
  09/09/03 14:47   

  Please respond to

  "Struts Users

  Mailing List"

   

   





In general, you use the  tag

http://jakarta.apache.org/struts/userGuide/struts-html.html#link


For the destination of the link, it takes one of four attributes:
forward, action, href, or page.

The mechanism for specifying a single parameter for the link uses
these attributes: paramId, paramName, paramProperty, paramScope

The value of paramId is the request parameter name.  In your HTML
sample, then, this would be "page", although in your ActionForm, this
would probably be "pageName".  (You probably want those to be
consistent with each other.)

You can specify the value for the parameter with the appropriate
combination of paramName, paramProperty, and paramScope, with
semantics analogous to "name", "property", and "scope" in the various
bean tags.

If you need to specify multiple parameters, this is done with a map
whose keys are parameter names and whose values are the values to be
put in the URL.  See the docs for more details.


However, I'm guessing from your example link that you'd pass the same
parameter in the link every time -- that is, you'd always want the
text "Contact List" linked to the same URL.  In this case, the better
Struts "way to do it" would be to define different action mappings
for each of the various parameters you would pass.  This leaves you a
lot of future flexibility about how the functionality is provided.
If necessary, you could write a separate Struts Action class for each
mapping, or you could use one action for several mappings and use an
action mapping "parameter" to dispatch execution to a
parameter-specific method inside the action.

Hope this helps.

Joe


At 14:23 +0100 9/9/03, Mehran Zonouzi wrote:
>Hi,
>
>I have the following link in my JSP page:
>
>href="/servlets/blotter/Contact?page=viewcontactlist"
>target="rightframe" class="linkbold">Contact List
>
>I want to mimic the above using Struts JSP tags(I don't want to use
>a SUBMIT button). However, I want to call my ActionForm class
>instead of the servlet and I would like to set the value of the
>param 'page' to 'viewcontactlist' for my ActionForm class so that my
>Action class can use it.
>
>Is it possible to do this?
>
>
>Here is my ActionForm implementation:
>
>import javax.servlet.http.HttpServletRequest;
>import org.apache.strus.action.*;
>
>public final class ContactForm extends ActionForm {
>
>   // page parameter from the CDS menu
>
>   private String pageName =null;
>   public String getPageName(){
>   }
>
>   public void setPageName(String pageName){
>   }
>}
>
>
>
>
>--
>
>This e-mail may contain confidential and/or privileged information.
>If you are not the intended recipient (or have received this e-mail
>in error) please notify the sender immediately and destroy this
>e-mail. Any unauthorized copying, disclosure or distribution of the
>material in this e-mail is strictly forbidden.
>
>
>
>-
>To unsub

Re: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Joe Germuska
In general, you use the  tag

http://jakarta.apache.org/struts/userGuide/struts-html.html#link

For the destination of the link, it takes one of four attributes: 
forward, action, href, or page.

The mechanism for specifying a single parameter for the link uses 
these attributes: paramId, paramName, paramProperty, paramScope

The value of paramId is the request parameter name.  In your HTML 
sample, then, this would be "page", although in your ActionForm, this 
would probably be "pageName".  (You probably want those to be 
consistent with each other.)

You can specify the value for the parameter with the appropriate 
combination of paramName, paramProperty, and paramScope, with 
semantics analogous to "name", "property", and "scope" in the various 
bean tags.

If you need to specify multiple parameters, this is done with a map 
whose keys are parameter names and whose values are the values to be 
put in the URL.  See the docs for more details.

However, I'm guessing from your example link that you'd pass the same 
parameter in the link every time -- that is, you'd always want the 
text "Contact List" linked to the same URL.  In this case, the better 
Struts "way to do it" would be to define different action mappings 
for each of the various parameters you would pass.  This leaves you a 
lot of future flexibility about how the functionality is provided. 
If necessary, you could write a separate Struts Action class for each 
mapping, or you could use one action for several mappings and use an 
action mapping "parameter" to dispatch execution to a 
parameter-specific method inside the action.

Hope this helps.

Joe

At 14:23 +0100 9/9/03, Mehran Zonouzi wrote:
Hi,

I have the following link in my JSP page:

Contact List

I want to mimic the above using Struts JSP tags(I don't want to use 
a SUBMIT button). However, I want to call my ActionForm class 
instead of the servlet and I would like to set the value of the 
param 'page' to 'viewcontactlist' for my ActionForm class so that my 
Action class can use it.

Is it possible to do this?

Here is my ActionForm implementation:

import javax.servlet.http.HttpServletRequest;
import org.apache.strus.action.*;
public final class ContactForm extends ActionForm {

  // page parameter from the CDS menu

  private String pageName =null;
  public String getPageName(){
return (this.pageName);
  }
  public void setPageName(String pageName){
this.pageName = pageName;
  }
}


--

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail 
in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized copying, disclosure or distribution of the 
material in this e-mail is strictly forbidden.



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


--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
	--Jaron Lanier

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


RE: How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread James Childers

> -Original Message-
> From: Mehran Zonouzi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 8:24 AM
> To: Struts Users Mailing List
> Subject: How do you mimic the 'a href' functionality in Struts?
> 
>  href="/servlets/blotter/Contact?page=viewcontactlist" 
> target="rightframe" class="linkbold">Contact List
> 
> I want to mimic the above using Struts JSP tags(I don't want 
> to use a SUBMIT button). However, I want to call my 
> ActionForm class instead of the servlet and I would like to 
> set the value of the param 'page' to 'viewcontactlist' for my 
> ActionForm class so that my Action class can use it.
> 
> Is it possible to do this?

Yes.

Your href attribute can point to a JavaScript function that sets some hidden form 
variables then submits the form. It would look something like this:


function submitFunctionForYou(lType) {
document.yerForm.elements["page"].value = lType;
}






Contact 
List


-= J

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



How do you mimic the 'a href' functionality in Struts?

2003-09-09 Thread Mehran Zonouzi
Hi,

I have the following link in my JSP page:

Contact List

I want to mimic the above using Struts JSP tags(I don't want to use a SUBMIT button). 
However, I want to call my ActionForm class instead of the servlet and I would like to 
set the value of the param 'page' to 'viewcontactlist' for my ActionForm class so that 
my Action class can use it.

Is it possible to do this?


Here is my ActionForm implementation:

import javax.servlet.http.HttpServletRequest;
import org.apache.strus.action.*;

public final class ContactForm extends ActionForm {

  // page parameter from the CDS menu

  private String pageName =null;
  public String getPageName(){
return (this.pageName);
  }

  public void setPageName(String pageName){
this.pageName = pageName;
  }
}




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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



Re: dinamically add href into html:link

2003-08-31 Thread Jiri Chaloupka
OK, thanks for your view. Maybe it will be better to rewrite it, until 
there is not much code...

Jiri

Mark Lowe wrote:

If you've the choice use JSTL..  If you're using the expression 
language then use that. I like using the standard struts tags but that 
because there's no el. and after reading the faces stuff, i'm sold on 
using jstl.

Although I'm not JSTL's biggest fan it does have a certain elegance of 
its own. I'm gradually being won over. The fmt tags are really nice.

Cheers Mark

On Sunday, August 31, 2003, at 07:53 PM, Carlos Sánchez wrote:

c:url is a standard tag from JSTL, so I think it's better to follow
standards
Maybe html:link will be deprecated in a near future.


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


Re: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
If you've the choice use JSTL..  If you're using the expression 
language then use that. I like using the standard struts tags but that 
because there's no el. and after reading the faces stuff, i'm sold on 
using jstl.

Although I'm not JSTL's biggest fan it does have a certain elegance of 
its own. I'm gradually being won over. The fmt tags are really nice.

Cheers Mark

On Sunday, August 31, 2003, at 07:53 PM, Carlos Sánchez wrote:

c:url is a standard tag from JSTL, so I think it's better to follow
standards
Maybe html:link will be deprecated in a near future.
-Mensaje original-
De: Jiri Chaloupka [mailto:[EMAIL PROTECTED]
Enviado el: domingo, 31 de agosto de 2003 18:36
Para: Struts Users Mailing List
Asunto: Re: dinamically add href into html:link
Thanks, I used html-el and it works.
what is the better to use, use c:url or html-el:link? Or it is
equivalent here?
And one more queestion:
I have object with application persistency (over all
sessions), and for
session I call some method to set some parameter and get
another object
(array list) and maybe store it in session.
Now I do:

and, now provisory, this as scriptlet:
<%
a.setRequest(request);
User user = (User)session.getAttribute("user");
if(user != null){
a.setUser(user);
}
getServletContext().setAttribute("b",
a.getSomething().toArray()); %> next, I call some  cykle for "b" object.
How I can do it correctly in struts / jstl?

Thanks, Jiri

Mark Lowe wrote:

The ideal way would be something like this.




Cheers Mark

On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote:

how I can do something as this:


?


Use the EL-tags (look in the contrib/struts-el directory of the
Struts 1.1
distribution), e.g.
 .. .. 

HTH,
Yann




-
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]



-
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]


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


RE: dinamically add href into html:link

2003-08-31 Thread Carlos Sánchez
c:url is a standard tag from JSTL, so I think it's better to follow
standards
Maybe html:link will be deprecated in a near future.

> -Mensaje original-
> De: Jiri Chaloupka [mailto:[EMAIL PROTECTED] 
> Enviado el: domingo, 31 de agosto de 2003 18:36
> Para: Struts Users Mailing List
> Asunto: Re: dinamically add href into html:link
> 
> 
> Thanks, I used html-el and it works.
> what is the better to use, use c:url or html-el:link? Or it is 
> equivalent here?
> 
> And one more queestion:
> I have object with application persistency (over all 
> sessions), and for 
> session I call some method to set some parameter and get 
> another object 
> (array list) and maybe store it in session.
> 
> Now I do:
>  scope="application" />
> and, now provisory, this as scriptlet:
> <%
> a.setRequest(request);
> User user = (User)session.getAttribute("user");
> if(user != null){
> a.setUser(user);
> }
> getServletContext().setAttribute("b", 
> a.getSomething().toArray()); %> next, I call some  ...> cykle for "b" object.
> 
> How I can do it correctly in struts / jstl?
> 
> Thanks, Jiri
> 
> Mark Lowe wrote:
> 
> >
> > The ideal way would be something like this.
> >
> > 
> > 
> > 
> >
> > Cheers Mark
> >
> > On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote:
> >
> >>> how I can do something as this:
> >>>
> >>>  >>> value="${menuItem.name}"  />
> >>> ?
> >>
> >>
> >> Use the EL-tags (look in the contrib/struts-el directory of the
> >> Struts 1.1
> >> distribution), e.g.
> >>
> >>  .. .. 
> >>
> >> HTH,
> >> Yann
> >>
> >>
> >>
> >>
> >> 
> -
> >> 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]
> >
> >
> 
> 
> 
> -
> 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: dinamically add href into html:link

2003-08-31 Thread Yann Cébron
> how I can do something as this:
>
> 
> ?

Use the EL-tags (look in the contrib/struts-el directory of the Struts 1.1
distribution), e.g.

 .. .. 

HTH,
Yann




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



Re: dinamically add href into html:link

2003-08-31 Thread Vic Cekvenich
Are you able to use JSTL?
I use JSTL for that.
Jiri Chaloupka wrote:
Hallo,
how I can do something as this:

?
I tried page (in manual I read that it canbe created dynamicaly, but it 
does not), action, href...

it is still generated as

Home
instead of /apl/Index.do
I know I can do
">
but it does not add application prefix :(
Thanks,
Jiri
--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training, mentoring and 
project recovery in North East.
Struts conversion and  fixed bid development.



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


dinamically add href into html:link

2003-08-31 Thread Jiri Chaloupka
Hallo,
how I can do something as this:

?
I tried page (in manual I read that it canbe created dynamicaly, but it 
does not), action, href...

it is still generated as

Home
instead of 
/apl/Index.do

I know I can do
">
but it does not add application prefix :(
Thanks,
Jiri
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
The ideal way would be something like this.




Cheers Mark

On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote:

how I can do something as this:


?
Use the EL-tags (look in the contrib/struts-el directory of the Struts 
1.1
distribution), e.g.

 .. .. 

HTH,
Yann


-
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: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
opps...




is better

On Sunday, August 31, 2003, at 05:02 PM, Mark Lowe wrote:

The ideal way would be something like this.




Cheers Mark

On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote:

how I can do something as this:


?
Use the EL-tags (look in the contrib/struts-el directory of the 
Struts 1.1
distribution), e.g.

 .. .. 

HTH,
Yann


-
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]


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


Re: dinamically add href into html:link

2003-08-31 Thread Jiri Chaloupka
Thanks, I used html-el and it works.
what is the better to use, use c:url or html-el:link? Or it is 
equivalent here?

And one more queestion:
I have object with application persistency (over all sessions), and for 
session I call some method to set some parameter and get another object 
(array list) and maybe store it in session.

Now I do:

and, now provisory, this as scriptlet:
<%
a.setRequest(request);
User user = (User)session.getAttribute("user");
if(user != null){
   a.setUser(user);
}
getServletContext().setAttribute("b", a.getSomething().toArray());
%>
next, I call some  cykle for "b" object.

How I can do it correctly in struts / jstl?

Thanks, Jiri

Mark Lowe wrote:

The ideal way would be something like this.




Cheers Mark

On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote:

how I can do something as this:


?


Use the EL-tags (look in the contrib/struts-el directory of the 
Struts 1.1
distribution), e.g.

 .. .. 

HTH,
Yann


-
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]



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


RE: [Tiles Beginner Question] Href & Tile Definitions

2003-06-09 Thread Trieu, Danny
Here is how you should do it:


  
  


...


..
  


Your.jsp




-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 08, 2003 5:07 PM
To: [EMAIL PROTECTED]
Subject: [Tiles Beginner Question] Href & Tile Definitions


I've successfully got tiles up and running... I do understand how i can use 
a tile definition as a struts forward for my actions but i'm looking to 
redirect to a tile definition using a href link. E.g.

I have the following tile definition:







I have tried the following but it doesn't work (i.e. passing the tile id as 
a parameter to the ForwardAction):





I guess what i'm really asking is there a predefined Action which will take 
my tile Id and forward to this view


Its not that i'm lazy as i could write one if i need too but this would mean

that i have to create a global forward for any tiles i want to access using 
a href and then pass the global id to a temporary action in order to view my

definition which sounds like a very round about way to achieve this.

Any ideas guys??

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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


This message and any attachments are for the intended recipient(s) only and may 
contain privileged, confidential and/or proprietary information about Downey Savings 
or its customers, which Downey Savings does not intend to disclose to the public. If 
you received this message by mistake, please notify the sender by reply e-mail and 
delete the message and attachments.

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



Re: [Tiles Beginner Question] Href & Tile Definitions

2003-06-09 Thread Sandeep Takhar
sorry I accidently hit  on the last reply and it
sent the email somehow (some weird combination of
keystrokes).

What I wanted to finish was the action...

 
   
 

this probably doesn't answer your question the way you
want is my guess.  

you can always call this from another action



sandeep
--- Pat Quinn <[EMAIL PROTECTED]> wrote:
> I've successfully got tiles up and running... I do
> understand how i can use 
> a tile definition as a struts forward for my
> actions but i'm looking to 
> redirect to a tile definition using a href link.
> E.g.
> 
> I have the following tile definition:
> 
> 
>   
>   
> 
> 
> 
> I have tried the following but it doesn't work (i.e.
> passing the tile id as 
> a parameter to the ForwardAction):
> 
>parameter="my.home"
>   scope="request"
>
> type="org.apache.struts.actions.ForwardAction"
>   validate="false">
> 
> 
> 
> I guess what i'm really asking is there a predefined
> Action which will take 
> my tile Id and forward to this view
> 
> 
> Its not that i'm lazy as i could write one if i need
> too but this would mean 
> that i have to create a global forward for any tiles
> i want to access using 
> a href and then pass the global id to a temporary
> action in order to view my 
> definition which sounds like a very round about way
> to achieve this.
> 
> Any ideas guys??
> 
>
_
> MSN 8 with e-mail virus protection service: 2 months
> FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: [Tiles Beginner Question] Href & Tile Definitions

2003-06-09 Thread Sandeep Takhar
I think you don't want to create an action to handle
the tiles reference right?

If not, then you can simply create a global action
that forwards to "display" say..

 
 




--- Pat Quinn <[EMAIL PROTECTED]> wrote:
> I've successfully got tiles up and running... I do
> understand how i can use 
> a tile definition as a struts forward for my
> actions but i'm looking to 
> redirect to a tile definition using a href link.
> E.g.
> 
> I have the following tile definition:
> 
> 
>   
>   
> 
> 
> 
> I have tried the following but it doesn't work (i.e.
> passing the tile id as 
> a parameter to the ForwardAction):
> 
>parameter="my.home"
>   scope="request"
>
> type="org.apache.struts.actions.ForwardAction"
>   validate="false">
> 
> 
> 
> I guess what i'm really asking is there a predefined
> Action which will take 
> my tile Id and forward to this view
> 
> 
> Its not that i'm lazy as i could write one if i need
> too but this would mean 
> that i have to create a global forward for any tiles
> i want to access using 
> a href and then pass the global id to a temporary
> action in order to view my 
> definition which sounds like a very round about way
> to achieve this.
> 
> Any ideas guys??
> 
>
_
> MSN 8 with e-mail virus protection service: 2 months
> FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



[Tiles Beginner Question] Href & Tile Definitions

2003-06-08 Thread Pat Quinn
I've successfully got tiles up and running... I do understand how i can use 
a tile definition as a struts forward for my actions but i'm looking to 
redirect to a tile definition using a href link. E.g.

I have the following tile definition:





I have tried the following but it doesn't work (i.e. passing the tile id as 
a parameter to the ForwardAction):



I guess what i'm really asking is there a predefined Action which will take 
my tile Id and forward to this view

Its not that i'm lazy as i could write one if i need too but this would mean 
that i have to create a global forward for any tiles i want to access using 
a href and then pass the global id to a temporary action in order to view my 
definition which sounds like a very round about way to achieve this.

Any ideas guys??

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


Re: html link href, forward an action attribute

2003-06-06 Thread Kevin Robair
Someone already has:

http://jakarta.apache.org/struts/userGuide/struts-html.html#link

-Kevin

--- [EMAIL PROTECTED] wrote:
> 
> Can someone explain me
> the great difference beetween action, href and
> forward attribute
> with the html link tag.
> supposing that there is an action that corresponds
> to the forward 
> attribute
> 
> Meissa
> 
> L'integrite de ce message n'etant pas assuree sur
> internet, Natexis
> Banques Populaires ne peut etre tenu responsable de
> son contenu. Toute utilisation ou diffusion non
> autorisee est
> interdite. Si vous n'etes pas destinataire de ce
> message, merci de le
> detruire et d'avertir l'expediteur.
> 
> The integrity of this message cannot be guaranteed
> on the Internet. Natexis Banques Populaires can not
> therefore be
> considered responsible for the contents.Any
> unauthorized use or dissemination is prohibited.
> If you are not the intended recipient of this
> message, then please delete it and 
> notify the sender.


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



html link href, forward an action attribute

2003-06-06 Thread meissa . Sakho

Can someone explain me
the great difference beetween action, href and forward attribute
with the html link tag.
supposing that there is an action that corresponds to the forward 
attribute

Meissa

L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is 
prohibited.
If you are not the intended recipient of this message, then please delete it and 
notify the sender.

Re: RE: how to put a in a href=""

2003-06-05 Thread Adolfo Miguelez
I meant:




From: "Adolfo Miguelez" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: RE: how to put a  in a href=""
Date: Wed, 04 Jun 2003 19:54:18 +
No way to embed custom tags so AFAIK  it is the only chance:



Adolfo

From: "António Santos" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: RE: how to put a   in a href=""
Date: Wed, 4 Jun 2003 20:40:24 +
Thanks. Nice tip.
By the way, is there any other way to put a bean property in a "value"
attribute of an input of a HTML form?
I mean, supposing that I have a "orgview" bean, is there a better way to 
do
this (which of course doesn't work):

"/>

in order to put the orgview's "id" property value in the "value" attribute 
of
the html:text tag?
Must I put a  tag before and then use a scriplet inside the
"value" attribute? This is tiresome if if I have several HTML inputs in a 
form...

Thanks again,

Antonio Santos

---

>
>Do this
>
>paramProperty="id"  >
>
>-Original Message-
>From: António Santos [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 04, 2003 11:54 AM
>To: [EMAIL PROTECTED]
>Subject: how to put a   in a href=""
>
>
>
>Hi all,
>
>Maybe this is a simple question, but I'm stuck with this:
>How can I set a href in a   tag with a string concatenated
>with a  ? I mean, I want to do something like this:
>
>property="id"/>">
>
>Of course, this doesn't work.
>
>I want href to have the string  "getorg.do?id=" concatenated with the
>output from  
>
>I suppose this must be done with a scriptlet. By the way, the  "orglist"
>bean comes from a logic:iterate over a vector of Beans (named
>"orglistview").
>
>Anyone?
>
>Thanks,
>
>Antonio Santos
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: RE: how to put a in a href=""

2003-06-05 Thread Adolfo Miguelez
No way to embed custom tags so AFAIK  it is the only chance:



Adolfo

From: "António Santos" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: RE: how to put a   in a href=""
Date: Wed, 4 Jun 2003 20:40:24 +
Thanks. Nice tip.
By the way, is there any other way to put a bean property in a "value"
attribute of an input of a HTML form?
I mean, supposing that I have a "orgview" bean, is there a better way to do
this (which of course doesn't work):
"/>

in order to put the orgview's "id" property value in the "value" attribute 
of
the html:text tag?
Must I put a  tag before and then use a scriplet inside the
"value" attribute? This is tiresome if if I have several HTML inputs in a 
form...

Thanks again,

Antonio Santos

---

>
>Do this
>
>paramProperty="id"  >
>
>-Original Message-
>From: António Santos [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 04, 2003 11:54 AM
>To: [EMAIL PROTECTED]
>Subject: how to put a   in a href=""
>
>
>
>Hi all,
>
>Maybe this is a simple question, but I'm stuck with this:
>How can I set a href in a   tag with a string concatenated
>with a  ? I mean, I want to do something like this:
>
>property="id"/>">
>
>Of course, this doesn't work.
>
>I want href to have the string  "getorg.do?id=" concatenated with the
>output from  
>
>I suppose this must be done with a scriptlet. By the way, the  "orglist"
>bean comes from a logic:iterate over a vector of Beans (named
>"orglistview").
>
>Anyone?
>
>Thanks,
>
>Antonio Santos
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: RE: how to put a in a href=""

2003-06-05 Thread Mike Whittaker

>By the way, is there any other way to put a bean property in a "value"
>attribute of an input of a HTML form?
>I mean, supposing that I have a "orgview" bean, is there a better way to do
>this (which of course doesn't work):
>
>property="id"/>"/>
>
>in order to put the orgview's "id" property value in the "value"
>attribute of
>the html:text tag?
>Must I put a  tag before and then use a scriplet inside the
>"value" attribute? This is tiresome if if I have several HTML
>inputs in a form...
>

Total guess, but this might be what you want:



--
Mike W.


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



Re: RE: how to put a in a href=""

2003-06-05 Thread António Santos

Thanks. Nice tip.
By the way, is there any other way to put a bean property in a "value"
attribute of an input of a HTML form?
I mean, supposing that I have a "orgview" bean, is there a better way to do
this (which of course doesn't work): 

"/>

in order to put the orgview's "id" property value in the "value" attribute of
the html:text tag?
Must I put a  tag before and then use a scriplet inside the
"value" attribute? This is tiresome if if I have several HTML inputs in a form...

Thanks again,

Antonio Santos

---


>
>Do this
>
>paramProperty="id"  >
>
>-Original Message-
>From: António Santos [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 04, 2003 11:54 AM
>To: [EMAIL PROTECTED]
>Subject: how to put a   in a href=""
>
>
>
>Hi all,
>
>Maybe this is a simple question, but I'm stuck with this:
>How can I set a href in a   tag with a string concatenated
>with a  ? I mean, I want to do something like this:
>
>property="id"/>">
>
>Of course, this doesn't work.
>
>I want href to have the string  "getorg.do?id=" concatenated with the
>output from  
>
>I suppose this must be done with a scriptlet. By the way, the  "orglist"
>bean comes from a logic:iterate over a vector of Beans (named
>"orglistview").
>
>Anyone?
>
>Thanks,
>
>Antonio Santos
>

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



Re: how to put a in a href=""

2003-06-05 Thread Mark Lowe
I hate dollar signs :o)

I'd do this


I Love Sparrows!!!

Mark

On Wednesday, Jun 4, 2003, at 17:03 Europe/London, Chen, Gin wrote:

2 possibilities without using scriplets:

1) Struts-EL:

2) JSTL:

   

-Tim

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: how to put a  in a href=""


Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a  tag with a string concatenated 
with a
?
I mean, I want to do something like this:

">
Of course, this doesn't work.

I want href to have the string "getorg.do?id=" concatenated with the 
output
from 

I suppose this must be done with a scriptlet. By the way, the 
"orglist" bean
comes from a logic:iterate over a vector of Beans (named 
"orglistview").

Anyone?

Thanks,

Antonio Santos

-
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]


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


RE: how to put a in a href=""

2003-06-05 Thread Varun Garg
Do this



-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 11:54 AM
To: [EMAIL PROTECTED]
Subject: how to put a  in a href=""



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a  tag with a string concatenated
with a ? I mean, I want to do something like this:

">

Of course, this doesn't work.

I want href to have the string "getorg.do?id=" concatenated with the
output from 

I suppose this must be done with a scriptlet. By the way, the "orglist"
bean comes from a logic:iterate over a vector of Beans (named
"orglistview").

Anyone?

Thanks,

Antonio Santos


-
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: how to put a in a href=""

2003-06-05 Thread Chen, Gin
2 possibilities without using scriplets:

1) Struts-EL:


2) JSTL:

   


-Tim

-Original Message-
From: António Santos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: how to put a  in a href=""



Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a  tag with a string concatenated with a
?
I mean, I want to do something like this:

">

Of course, this doesn't work.

I want href to have the string "getorg.do?id=" concatenated with the output
from 

I suppose this must be done with a scriptlet. By the way, the "orglist" bean
comes from a logic:iterate over a vector of Beans (named "orglistview").

Anyone?

Thanks,

Antonio Santos


-
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]



how to put a in a href=""

2003-06-05 Thread António Santos

Hi all,

Maybe this is a simple question, but I'm stuck with this:
How can I set a href in a  tag with a string concatenated with a
?
I mean, I want to do something like this:

">

Of course, this doesn't work.

I want href to have the string "getorg.do?id=" concatenated with the output
from 

I suppose this must be done with a scriptlet. By the way, the "orglist" bean
comes from a logic:iterate over a vector of Beans (named "orglistview").

Anyone?

Thanks,

Antonio Santos


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



Re: href

2003-02-10 Thread Nicolas De Loof
> > 

 only print your bean property value in JSP outputStream. You
should look at data type used for your "url" property, and it's toString()
method.

Nico.


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




Re: href

2003-02-10 Thread Michael Burke
Michael Burke wrote:


I've got a jsp page that iterates through a list of web links, I can
t figure out how to use just the link without it being appended to 
http://localhost...
Here's the page in question:

<%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/template" prefix="template" %>







  

 
  
  
  
 Categories
  
  

  
   id="links"
   scope="request"
   type="linkapp.entity.Links">

   
   


   


  

  


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


Sorry for the questions, I realized if I didn't enter a correct address 
(http://www...) it gets appended to my webapp address.


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



Re: href

2003-02-10 Thread Michael Burke
Michael Burke wrote:


I've got a jsp page that iterates through a list of web links, I can
t figure out how to use just the link without it being appended to 
http://localhost...
Here's the page in question:

<%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/template" prefix="template" %>







  

 
  
  
  
 Categories
  
  

  
   id="links"
   scope="request"
   type="linkapp.entity.Links">

   
   


   


  

  


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


I thought this was an easy question, as I said in my first post when I 
iterate and print a list of hyperlinks the link gets appended to the 
link of my webapp (http://localhost:8080/linkapp) instead of just being 
an independant link. any suggestions would be appreciated.


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



href

2003-02-09 Thread Michael Burke
I've got a jsp page that iterates through a list of web links, I can
t figure out how to use just the link without it being appended to 
http://localhost...
Here's the page in question:

<%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/template" prefix="template" %>







  

 
  
  
  
 Categories
  
  

  
   id="links"
   scope="request"
   type="linkapp.entity.Links">

   
   


   


  

  


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



href to perform an action

2002-10-30 Thread Mohan Radhakrishnan
Hi,
I have a doubt related to this and the html-img tag.


  


I am refreshing some data in the session scope when the user hits the
"reload" button.
I am planning to use html-img tag if it really helps. The "href" shown above
already reloads the current page.
I am using a simple "NoDataForm" as advised.

 How can I both reload the current page throught javascript and refresh the
session variable throught an action?
Will html-img help here?

bye,
Mohan

-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Thursday, October 31, 2002 7:29 AM
To: [EMAIL PROTECTED]
Subject: RE: href to perform an action


you have to add an input attribute to your action definition that points to 
the jsp that has your form on it.  Struts needs to know where to forward to 
when there are errors.  Validation is done in the ActionForm.validate() 
method.  See the users guide for details.

David






>From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: href to perform an action
>Date: Wed, 30 Oct 2002 15:25:23 -0800
>
>This is the error I have in the log:
>
><[WebAppServletContext(852414,vcsc,/vcsc)] action:   No input form, but
>validation returned errors>
>
>Where is this validation taking place?
>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: href to perform an action

2002-10-30 Thread David Graham
you have to add an input attribute to your action definition that points to 
the jsp that has your form on it.  Struts needs to know where to forward to 
when there are errors.  Validation is done in the ActionForm.validate() 
method.  See the users guide for details.

David






From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: href to perform an action
Date: Wed, 30 Oct 2002 15:25:23 -0800

This is the error I have in the log:

<[WebAppServletContext(852414,vcsc,/vcsc)] action:   No input form, but
validation returned errors>

Where is this validation taking place?

-Original Message-
From: James Mitchell [mailto:jmitchtx@;telocity.com]
Sent: Wednesday, October 30, 2002 2:24 PM
To: Struts Users Mailing List
Subject: RE: href to perform an action


500 is an internal server error.

Can you check your log files and try to find more detail or even a stack
trace?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm 
not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Wednesday, October 30, 2002 5:15 PM
> To: 'Struts Users Mailing List'
> Subject: RE: href to perform an action
>
>
> Then why would this not work?  The first line I have in my
> perform method is
> a debug line and this is not showing up.  It's behaving as though
> it can not
> find the action class.  Here is my definition in the config file:
>
> 
>   path="/shipmentTracking"
>   type="com.matson.shipment.web.ShipmentTrackingAction"
>   name="shipmentTrackingForm"
>   scope="session"
> >
>
> -Original Message-
> From: David Graham [mailto:dgraham1980@;hotmail.com]
> Sent: Wednesday, October 30, 2002 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: href to perform an action
>
>
> Actions do accept GET requests.
>
>
> >From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >Subject: RE: href to perform an action
> >Date: Wed, 30 Oct 2002 12:25:32 -0800
> >
> >I've tried the  tag and I get a 500:
> >
> >10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
> >/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
> >
> >This is the tag I'm using:
> >
> >
> >paramName="container" paramProperty="equipmentNumber">
> >
> >
> >I have debugging lines in my Action class and those are not getting
> >invoked.
> >Does the action class not accept a GET?
> >
> >-Original Message-
> >From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
> >Sent: Wednesday, October 30, 2002 10:17 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: Re: href to perform an action
> >
> >
> >You might want to checkout  tag. Using that tag, you need 
to
> >use
> >attributes page="/vcsc/shipmentTracking.do". You can even pass 
parameters
> >using other attributes like paramProperty,paramId and paramName etc
> >
> >Thanks,Rajani.
> >
> >
> >
> >"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
> >news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > > I have a jsp with a list of shipment data where hrefs are
> defined on the
> > > equipment keys.  I would like the client to click on the link to 
drill
> >down
> > > from the list to a detailed jsp.  If I do the following:
> > >
> > > 
> > >
> > > I get a 404 url not found.  How do I get the link to go to the
> > > shipmentTracking Action?  Do I need to create a form on the
> jsp and use
> >the
> > > onClick javascript to set the action of the form?
> > >
> > > Thanks in advance,
> > >
> > > Cindy
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
> > >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> >For additional commands, e-mail:
> ><ma

RE: href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
This is the error I have in the log:

<[WebAppServletContext(852414,vcsc,/vcsc)] action:   No input form, but
validation returned errors> 

Where is this validation taking place?

-Original Message-
From: James Mitchell [mailto:jmitchtx@;telocity.com]
Sent: Wednesday, October 30, 2002 2:24 PM
To: Struts Users Mailing List
Subject: RE: href to perform an action


500 is an internal server error.

Can you check your log files and try to find more detail or even a stack
trace?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Wednesday, October 30, 2002 5:15 PM
> To: 'Struts Users Mailing List'
> Subject: RE: href to perform an action
>
>
> Then why would this not work?  The first line I have in my
> perform method is
> a debug line and this is not showing up.  It's behaving as though
> it can not
> find the action class.  Here is my definition in the config file:
>
>path="/shipmentTracking"
>   type="com.matson.shipment.web.ShipmentTrackingAction"
>   name="shipmentTrackingForm"
>   scope="session"
> >
>
> -Original Message-
> From: David Graham [mailto:dgraham1980@;hotmail.com]
> Sent: Wednesday, October 30, 2002 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: href to perform an action
>
>
> Actions do accept GET requests.
>
>
> >From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >Subject: RE: href to perform an action
> >Date: Wed, 30 Oct 2002 12:25:32 -0800
> >
> >I've tried the  tag and I get a 500:
> >
> >10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
> >/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
> >
> >This is the tag I'm using:
> >
> > >paramName="container" paramProperty="equipmentNumber">
> >
> >
> >I have debugging lines in my Action class and those are not getting
> >invoked.
> >Does the action class not accept a GET?
> >
> >-Original Message-
> >From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
> >Sent: Wednesday, October 30, 2002 10:17 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: Re: href to perform an action
> >
> >
> >You might want to checkout  tag. Using that tag, you need to
> >use
> >attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
> >using other attributes like paramProperty,paramId and paramName etc
> >
> >Thanks,Rajani.
> >
> >
> >
> >"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
> >news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > > I have a jsp with a list of shipment data where hrefs are
> defined on the
> > > equipment keys.  I would like the client to click on the link to drill
> >down
> > > from the list to a detailed jsp.  If I do the following:
> > >
> > > 
> > >
> > > I get a 404 url not found.  How do I get the link to go to the
> > > shipmentTracking Action?  Do I need to create a form on the
> jsp and use
> >the
> > > onClick javascript to set the action of the form?
> > >
> > > Thanks in advance,
> > >
> > > Cindy
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
> > >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> >For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
>
>
> _
> Surf the Web without missing calls! Get MSN Broadband.
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: href to perform an action

2002-10-30 Thread David Graham
The generated link must look like:

link

If you have that link and it still doesn't work, it's likely to be your 
Action class.  Try substituting your action for the struts ForwardAction and 
see what happens.

David




From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: href to perform an action
Date: Wed, 30 Oct 2002 14:15:06 -0800

Then why would this not work?  The first line I have in my perform method 
is
a debug line and this is not showing up.  It's behaving as though it can 
not
find the action class.  Here is my definition in the config file:


  path="/shipmentTracking"
  type="com.matson.shipment.web.ShipmentTrackingAction"
  name="shipmentTrackingForm"
  scope="session"
>

-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Wednesday, October 30, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: href to perform an action


Actions do accept GET requests.


>From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>Subject: RE: href to perform an action
>Date: Wed, 30 Oct 2002 12:25:32 -0800
>
>I've tried the  tag and I get a 500:
>
>10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
>/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
>
>This is the tag I'm using:
>
>
>paramName="container" paramProperty="equipmentNumber">
>
>
>I have debugging lines in my Action class and those are not getting
>invoked.
>Does the action class not accept a GET?
>
>-Original Message-
>From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
>Sent: Wednesday, October 30, 2002 10:17 AM
>To: '[EMAIL PROTECTED]'
>Subject: Re: href to perform an action
>
>
>You might want to checkout  tag. Using that tag, you need to
>use
>attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
>using other attributes like paramProperty,paramId and paramName etc
>
>Thanks,Rajani.
>
>
>
>"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
>news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > I have a jsp with a list of shipment data where hrefs are defined on 
the
> > equipment keys.  I would like the client to click on the link to drill
>down
> > from the list to a detailed jsp.  If I do the following:
> >
> > 
> >
> > I get a 404 url not found.  How do I get the link to go to the
> > shipmentTracking Action?  Do I need to create a form on the jsp and 
use
>the
> > onClick javascript to set the action of the form?
> >
> > Thanks in advance,
> >
> > Cindy
> >
> > --
> > To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
><mailto:struts-user-help@;jakarta.apache.org>
> >
>
>--
>To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@;jakarta.apache.org>


_
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: 
<mailto:struts-user-help@;jakarta.apache.org>


_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>



RE: href to perform an action

2002-10-30 Thread James Mitchell
500 is an internal server error.

Can you check your log files and try to find more detail or even a stack
trace?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Wednesday, October 30, 2002 5:15 PM
> To: 'Struts Users Mailing List'
> Subject: RE: href to perform an action
>
>
> Then why would this not work?  The first line I have in my
> perform method is
> a debug line and this is not showing up.  It's behaving as though
> it can not
> find the action class.  Here is my definition in the config file:
>
>path="/shipmentTracking"
>   type="com.matson.shipment.web.ShipmentTrackingAction"
>   name="shipmentTrackingForm"
>   scope="session"
> >
>
> -Original Message-
> From: David Graham [mailto:dgraham1980@;hotmail.com]
> Sent: Wednesday, October 30, 2002 12:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: href to perform an action
>
>
> Actions do accept GET requests.
>
>
> >From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >Subject: RE: href to perform an action
> >Date: Wed, 30 Oct 2002 12:25:32 -0800
> >
> >I've tried the  tag and I get a 500:
> >
> >10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
> >/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
> >
> >This is the tag I'm using:
> >
> > >paramName="container" paramProperty="equipmentNumber">
> >
> >
> >I have debugging lines in my Action class and those are not getting
> >invoked.
> >Does the action class not accept a GET?
> >
> >-Original Message-
> >From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
> >Sent: Wednesday, October 30, 2002 10:17 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: Re: href to perform an action
> >
> >
> >You might want to checkout  tag. Using that tag, you need to
> >use
> >attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
> >using other attributes like paramProperty,paramId and paramName etc
> >
> >Thanks,Rajani.
> >
> >
> >
> >"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
> >news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > > I have a jsp with a list of shipment data where hrefs are
> defined on the
> > > equipment keys.  I would like the client to click on the link to drill
> >down
> > > from the list to a detailed jsp.  If I do the following:
> > >
> > > 
> > >
> > > I get a 404 url not found.  How do I get the link to go to the
> > > shipmentTracking Action?  Do I need to create a form on the
> jsp and use
> >the
> > > onClick javascript to set the action of the form?
> > >
> > > Thanks in advance,
> > >
> > > Cindy
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
> > >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> >For additional commands, e-mail:
> ><mailto:struts-user-help@;jakarta.apache.org>
>
>
> _
> Surf the Web without missing calls! Get MSN Broadband.
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
Then why would this not work?  The first line I have in my perform method is
a debug line and this is not showing up.  It's behaving as though it can not
find the action class.  Here is my definition in the config file:



-Original Message-
From: David Graham [mailto:dgraham1980@;hotmail.com]
Sent: Wednesday, October 30, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: RE: href to perform an action


Actions do accept GET requests.


>From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>Subject: RE: href to perform an action
>Date: Wed, 30 Oct 2002 12:25:32 -0800
>
>I've tried the  tag and I get a 500:
>
>10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
>/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53
>
>This is the tag I'm using:
>
>paramName="container" paramProperty="equipmentNumber">
>
>
>I have debugging lines in my Action class and those are not getting 
>invoked.
>Does the action class not accept a GET?
>
>-Original Message-
>From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
>Sent: Wednesday, October 30, 2002 10:17 AM
>To: '[EMAIL PROTECTED]'
>Subject: Re: href to perform an action
>
>
>You might want to checkout  tag. Using that tag, you need to 
>use
>attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
>using other attributes like paramProperty,paramId and paramName etc
>
>Thanks,Rajani.
>
>
>
>"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
>news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> > I have a jsp with a list of shipment data where hrefs are defined on the
> > equipment keys.  I would like the client to click on the link to drill
>down
> > from the list to a detailed jsp.  If I do the following:
> >
> > 
> >
> > I get a 404 url not found.  How do I get the link to go to the
> > shipmentTracking Action?  Do I need to create a form on the jsp and use
>the
> > onClick javascript to set the action of the form?
> >
> > Thanks in advance,
> >
> > Cindy
> >
> > --
> > To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
><mailto:struts-user-help@;jakarta.apache.org>
> >
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@;jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@;jakarta.apache.org>


_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: href to perform an action

2002-10-30 Thread David Graham
Actions do accept GET requests.



From: Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts (E-mail)" <[EMAIL PROTECTED]>
Subject: RE: href to perform an action
Date: Wed, 30 Oct 2002 12:25:32 -0800

I've tried the  tag and I get a 500:

10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53

This is the tag I'm using:


paramName="container" paramProperty="equipmentNumber">


I have debugging lines in my Action class and those are not getting 
invoked.
Does the action class not accept a GET?

-Original Message-
From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
Sent: Wednesday, October 30, 2002 10:17 AM
To: '[EMAIL PROTECTED]'
Subject: Re: href to perform an action


You might want to checkout  tag. Using that tag, you need to 
use
attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
using other attributes like paramProperty,paramId and paramName etc

Thanks,Rajani.



"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> I have a jsp with a list of shipment data where hrefs are defined on the
> equipment keys.  I would like the client to click on the link to drill
down
> from the list to a detailed jsp.  If I do the following:
>
> 
>
> I get a 404 url not found.  How do I get the link to go to the
> shipmentTracking Action?  Do I need to create a form on the jsp and use
the
> onClick javascript to set the action of the form?
>
> Thanks in advance,
>
> Cindy
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
>

--
To unsubscribe, e-mail:   
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: 
<mailto:struts-user-help@;jakarta.apache.org>


_
Surf the Web without missing calls! Get MSN Broadband.  
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>



RE: href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
I've tried the  tag and I get a 500:

10.3.5.43 - - [30/Oct/2002:12:05:42 -0800] "GET
/vcsc/shipmentTracking.do?equipmentNumber=MATU334466 HTTP/1.1" 500 53 

This is the tag I'm using:




I have debugging lines in my Action class and those are not getting invoked.
Does the action class not accept a GET?  

-Original Message-
From: Penubothu, Rajani [mailto:rpenubothu@;epocrates.com]
Sent: Wednesday, October 30, 2002 10:17 AM
To: '[EMAIL PROTECTED]'
Subject: Re: href to perform an action


You might want to checkout  tag. Using that tag, you need to use
attributes page="/vcsc/shipmentTracking.do". You can even pass parameters
using other attributes like paramProperty,paramId and paramName etc

Thanks,Rajani. 



"Cindy Horn at SF x4874" <[EMAIL PROTECTED]> wrote in message
news:<769F76EB4C93D31192850008C7B98C1106097180@mnc03p2e>...
> I have a jsp with a list of shipment data where hrefs are defined on the
> equipment keys.  I would like the client to click on the link to drill
down
> from the list to a detailed jsp.  If I do the following:
> 
> 
> 
> I get a 404 url not found.  How do I get the link to go to the
> shipmentTracking Action?  Do I need to create a form on the jsp and use
the
> onClick javascript to set the action of the form?
> 
> Thanks in advance,
> 
> Cindy
> 
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: href to perform an action

2002-10-30 Thread James Mitchell
No, if #1 is your application name (i.e. you deployed vcsc.war) and #2 is
correctly defined in your struts-config, then all should be fine (btw. case
matters)

 
    
#1#2






James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -Original Message-
> From: Cindy Horn at SF x4874 [mailto:CHorn@;matson.com]
> Sent: Wednesday, October 30, 2002 12:58 PM
> To: Struts (E-mail)
> Subject: href to perform an action
>
>
> I have a jsp with a list of shipment data where hrefs are defined on the
> equipment keys.  I would like the client to click on the link to
> drill down
> from the list to a detailed jsp.  If I do the following:
>
> 
>
> I get a 404 url not found.  How do I get the link to go to the
> shipmentTracking Action?  Do I need to create a form on the jsp
> and use the
> onClick javascript to set the action of the form?
>
> Thanks in advance,
>
> Cindy
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: [href to perform an action]

2002-10-30 Thread Josh Berry
Responses below...

Cindy Horn   at SF   x4874 <[EMAIL PROTECTED]> wrote:
> I have a jsp with a list of shipment data where hrefs are defined
> on the equipment keys.  I would like the client to click on the
> link to drill down from the list to a detailed jsp.  If I do the
> following:
>
> 
>
> I get a 404 url not found.  How do I get the link to go to the
> shipmentTracking Action?  Do I need to create a form on the jsp
> and use the onClick javascript to set the action of the form?

First, that should technically work, assuming that that is the correct
relative path to the action.  Make sure you have the correct path being
defined.  (As a hint, when you click the link and get a 404, look at what is
in the address bar at that point.  I have found that the webapp base is
usually lost if you do an HREF such as this.)

Second, though, I would recommend using the  tag for things such as
this.  Used in conjunction with global-forwards for your actions, this
relieves you of having to worry about keeping the web-app base, and it also
gives a lot of flexibility with the creation of the queryString.  Examples are
in the users guide, though I would be happy to provide you with some more, if
you need.

-josh


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




href to perform an action

2002-10-30 Thread Cindy Horn at SF x4874
I have a jsp with a list of shipment data where hrefs are defined on the
equipment keys.  I would like the client to click on the link to drill down
from the list to a detailed jsp.  If I do the following:



I get a 404 url not found.  How do I get the link to go to the
shipmentTracking Action?  Do I need to create a form on the jsp and use the
onClick javascript to set the action of the form?

Thanks in advance,

Cindy

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




javascript with a href

2002-10-21 Thread Michael Burke
When I click on the edit, delete  bid  or Accept Bid links in the logic 
tags below nothing happens. Any suggestions why?

%@ taglib uri="/bean" prefix="bean" %>
<%@ taglib uri="/html" prefix="html" %>
<%@ taglib uri="/logic" prefix="logic" %>
<%@ taglib uri="/template" prefix="template" %>







function editOffer() {
offerList.action = "editOffer.do?action=edit";
offerList.actn.value = "edit";
offerList.submit();
}

function deleteOffer() {
offerList.action = "deleteOffer.do";
offerList.actn.value = "delete";
offerList.submit();
}

function acceptBid() {
offerList.action = "acceptBid.do";
offerList.actn.value = "accept";
offerList.submit();
}

function bid() {
offerList.action = "bid.do";
offerList.actn.value = "bid";
offerList.submit();
}

User Name Description Expected Value Max Bid id="offer" scope="request" type="auction.entity.Offer">   Bid Edit   Delete   Accept Bid   -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: base href (html:base) tag

2002-09-24 Thread Anand Belaguly

Both approaches work fine, in fact we had a discussion about using
Both.

Actually the BASE tag just works fine, the same view may be generated by

Any action and the JSP URL will get masked by the one from where
The jsp is called(forwarded action). Base tag supports all the other
Reference links(like stylesheets,images etc etc) on the page, and it 
is already available (we don't Need to re-desing/re-write anything).

Anand

-Original Message-
From: Dylan MacDonald [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 24, 2002 12:04 PM
To: [EMAIL PROTECTED]
Subject: base href (html:base) tag


Hi -

I'm a bit of a newbie to Struts so I hope you can bear with me.

I'm one of several developers working on a struts framework Registration
project for my company. We are currently having an internal debate as to
how to set up application contexts and asset pathing in our JSP pages
for this and future projects we are slated to build.

The Java Architect on the project believes we should use the
 tag in our JSPs. That way we can set the context (or
pathing) via the taglib. This would help for transferring files between
our Dev and Production environments, for example.

A few of the web developers believe that we should set a J2EE directive
which maps all requests to the application context we set. That way, we
can set the pathing to be whatever we want without being constrained by
what the Base Href is.

By using , I assume that we will be adding a BASE HREF tag
to the top of every JSP page. I think this is odd. I never set a BASE
HREF tag unless I want to view the page completely out of context (like
on my desktop). Moreover, who really uses BASE HREF on every JSP page? I
almost never see it in the source code of sites I visit. It just strikes
me as odd and an unusual practice.

Any thoughts?

Thanks,

Dylan MacDonald


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




base href (html:base) tag

2002-09-24 Thread Dylan MacDonald

Hi -

I'm a bit of a newbie to Struts so I hope you can bear with me.

I'm one of several developers working on a struts framework Registration
project for my company. We are currently having an internal debate as to how
to set up application contexts and asset pathing in our JSP pages for this
and future projects we are slated to build.

The Java Architect on the project believes we should use the 
tag in our JSPs. That way we can set the context (or pathing) via the
taglib. This would help for transferring files between our Dev and
Production environments, for example.

A few of the web developers believe that we should set a J2EE directive
which maps all requests to the application context we set. That way, we can
set the pathing to be whatever we want without being constrained by what the
Base Href is.

By using , I assume that we will be adding a BASE HREF tag to
the top of every JSP page. I think this is odd. I never set a BASE HREF tag
unless I want to view the page completely out of context (like on my
desktop). Moreover, who really uses BASE HREF on every JSP page? I almost
never see it in the source code of sites I visit. It just strikes me as odd
and an unusual practice.

Any thoughts?

Thanks,

Dylan MacDonald



dynamic href variable

2002-08-25 Thread Christian Pich

How do I populate the href attribute in the  tag?
I have the following code with a bean 'score' that contains
the url I want to put in the hyperlink tag.





where xxx should be the same as the body of this (mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Building a dynamic list of html (href) links from a Map

2002-06-25 Thread Karim Saloojee

Hi

I am trying to build a dynamic list of links (href's) from a map that has
been created in my Action class and put into the request for the JSP.

My map looks something like this:
key: Log On
Value: /logon.do
key: Display Users
value: /displayusers.do

Is there a way to use the  tag to build these links so that I
would get something like:
Log On 
Display Users

Is this possible or should I just use plain HTML to build the list of links?

TIA,
Karim



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




RE: Help to manage html href tag with sruts

2002-03-05 Thread Don Dumrauf

I did this:
 etc.
I defined mailTo as a String = "mailto:";
Hope this answers your question

-Original Message-
From: Apollinaire Coulibaly [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 12:41 PM
To: [EMAIL PROTECTED]
Subject: Help to manage html href tag with sruts


Hi all,

I've the following situation: I have to manage this html tag 
Can some tell to me how to manage it using taglibrary? how can I pass the
user 
email adress to the tag as:  
Thanks all

PitB

-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup




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




This email and any files transmitted with it are confidential and are
intended for the sole use of the individual to whom they are addressed.
Black Box Corporation reserves the right to scan all e-mail traffic for
restricted content and to monitor all e-mail in general. If you are not the
intended recipient or you have received this email in error, any use,
dissemination or forwarding of this email is strictly prohibited. If you
have received this email in error, please notify the sender by replying to
this email.



Help to manage html href tag with sruts

2002-03-05 Thread Apollinaire Coulibaly

Hi all,

I've the following situation: I have to manage this html tag 
Can some tell to me how to manage it using taglibrary? how can I pass the user 
email adress to the tag as:  
Thanks all

PitB

-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup




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




RE: HREF issue

2002-01-24 Thread Andrew B Forman

I've used the following style and it's worked
could probably streamline it a bit with a
custom tag or something:


function openWindow()
{
  window.open( "", "CreateNew",
"height=500,width=550,resizable=1,scrollbars=1" );
}



 


_\|/___
  generation-d development
  andrew b forman

> -Original Message-
> From: Sidhartha Jain [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 8:52 AM
> To: [EMAIL PROTECTED]
> Subject: HREF issue
>
>
>
> Hi
> I am waiting for the solution for my problem for someone and
> seems no one is responding to it.I dunno know why this is
> happening.I would highly appreciate if someone could help me
> solve my problem. here i am stating my problem once again.
>
> I am having an issue with  tag of struts. I think I
> don't know how to use it.
> Actually I have a java script fucntion which looks like this
> function launchEdit(field, accField, relation, newType)
> {
> currentField = document.editForm.field;
> currentAccField = document.editForm.accField;
> isRelation = relation;
> var url =
> 'LoadObject.do?parent=true&action=Edit&type='+newType+'&accNum='+a
ccField.value;
> window.open(url,'CreateNew','height=500,width=550,resizable=1,scro
llbars=1');
> }
> And it needs to be called by passing the parameters that would
> also be dynamic for me (which will change everytime we call it.)
>
> Can Someone throw some light on this issue as to how we achieve
> this functionality .
> I would be highly thankful to you.
>
> Thanks in Advance
> Sidhartha
>
>
>
>
> --
> 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]>




HREF issue

2002-01-24 Thread Sidhartha Jain


Hi
I am waiting for the solution for my problem for someone and seems no one is 
responding to it.I dunno know why this is happening.I would highly appreciate if 
someone could help me solve my problem. here i am stating my problem once again.

I am having an issue with  tag of struts. I think I don't know how to use 
it.
Actually I have a java script fucntion which looks like this
function launchEdit(field, accField, relation, newType)
{
currentField = document.editForm.field;
currentAccField = document.editForm.accField;
isRelation = relation;
var url = 
'LoadObject.do?parent=true&action=Edit&type='+newType+'&accNum='+accField.value;
window.open(url,'CreateNew','height=500,width=550,resizable=1,scrollbars=1');
}
And it needs to be called by passing the parameters that would also be dynamic for me 
(which will change everytime we call it.)

Can Someone throw some light on this issue as to how we achieve this functionality .
I would be highly thankful to you.

Thanks in Advance
Sidhartha

 


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




Fwd: Href issue

2002-01-23 Thread Sidhartha Jain


Hi
I am having an issue with  tag of struts. I think I don't know how to use 
it.
Actually I have a java script fucntion which looks like this
function launchEdit(field, accField, relation, newType)
{
 currentField = document.editForm.field;
 currentAccField = document.editForm.accField;
 isRelation = relation;
var url = 
'LoadObject.do?parent=true&action=Edit&type='+newType+'&accNum='+accField.value;
window.open(url,'CreateNew','height=500,width=550,resizable=1,scrollbars=1');
}
And it needs to be called by passing the parameters that would also be dynamic for me 
(which will change everytime we call it.)

Can Someone throw some light on this issue as to how we achieve this functionality .
I would be highly thankful to you.

Thanks in Advance
Sidhartha


 

--- Begin Message ---


Hi
I am having an issue with  tag of struts. I think I don't know how to use 
it.
Actually I have a java script fucntion which looks like this
function launchEdit(field, accField, relation, newType)
{
  currentField = document.editForm.field;
  currentAccField = document.editForm.accField;
  isRelation = relation;
var url = 
'LoadObject.do?parent=true&action=Edit&type='+newType+'&accNum='+accField.value;
window.open(url,'CreateNew','height=500,width=550,resizable=1,scrollbars=1');
}
And it needs to be called by passing the parameters that would also be dynamic for me 
(which will change everytime we call it.)

Can Someone throw some light on this issue as to how we achieve this functionality .
I would be highly thankful to you.

Thanks in Advance
Sidhartha
 



--- End Message ---

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


RE: Question on forwarding/redirecting/href usage...

2002-01-21 Thread Alex Paransky

I looked at html:link, and it seems to require using a Map class to pass
parameters to the link.  Seems like a lot of setup, and scriplet code (which
I am not crazy about) just to generate
/school/maintenance.jsp?schoolId=223&context=ready.  Is there an easier way
to do this?

Here is how I imagine the code would look like with the current STRUTS
html:link tag:




<%
Map map = new HashMap();
map.put("schoolId", schoolId);
map.put("context", contextMode);
%>



I would rather see syntax like this:


  
  


The map, is a good feature, but it's TOO dynamic in this case.  I could
create my own tag, but I thought I would ask around before re-inventing the
wheel.

Thanks.
-AP_

-Original Message-
From: neel [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 11:25 AM
To: Struts Users Mailing List
Subject: RE: Question on forwarding/redirecting/href usage...


try using  instead of 

-- Original Message --

>When I use ActionForward I supply it the Context-relative URI to which
>control should be forwarded.  However, when I want to use cannot use the Context-relative URI.  Thus my returnTo= backlink works
>correctly if I use it with the ActionForward, but fails to work when used
>with 
>Is there a BEAN/TAG/METHOD that would convert a Context-relative URI to
>something that I can use with an anchor tag?  I guess I could always call
>request.getContext() and prepend that to the URI, however, this will only
>work if the URI is context-relative.  In case URI is page-relative, no
such
>append is needed.  Is there something in JSP/Servlet/Struts that would
do
>these checks for me?
>
>Thanks.
>-AP_
>
>
>
>--
>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]>


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




RE: Question on forwarding/redirecting/href usage...

2002-01-21 Thread neel

try using  instead of 

-- Original Message --

>When I use ActionForward I supply it the Context-relative URI to which
>control should be forwarded.  However, when I want to use cannot use the Context-relative URI.  Thus my returnTo= backlink works
>correctly if I use it with the ActionForward, but fails to work when used
>with 
>Is there a BEAN/TAG/METHOD that would convert a Context-relative URI to
>something that I can use with an anchor tag?  I guess I could always call
>request.getContext() and prepend that to the URI, however, this will only
>work if the URI is context-relative.  In case URI is page-relative, no
such
>append is needed.  Is there something in JSP/Servlet/Struts that would
do
>these checks for me?
>
>Thanks.
>-AP_
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>




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




Question on forwarding/redirecting/href usage...

2002-01-21 Thread Alex Paransky

When I use ActionForward I supply it the Context-relative URI to which
control should be forwarded.  However, when I want to use mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Solved: Access to localized messages to build an href

2002-01-08 Thread Jim Tomlinson


Got around it by using the actual locale:

  <%@ page import="org.apache.struts.action.Action" %>

  

  ">Click here
  

I still haven't answered my original question, but it's now moot.

> -Original Message-
> From: Jim Tomlinson 
> Sent: Monday, January 07, 2002 3:39 PM
> To: '[EMAIL PROTECTED]'
> Subject: Access to localized messages to build an href
> 
> 
> I'm trying to get access to the MessageResources object that, 
> according to
> the docs, is an application scope bean. I need to build an 
> href in this
> manner:
> 
>+
> "/refend.html"%>">Click here
>   
> 
> Of course, this doesn't work (with single quotes, either, as 
> suggested for a
> similar problem on this list). I've worked around it like this:
> 
>   <% MessageResources resources =
>  
> MessageResources.getMessageResources("com.foo.bar.Resources");
>  String locale = resources.getMessage("footer_locale");
>   %>
>   ">Click here
>   
> 
> but I'd like to avoid the scriptlet. What name is the MessageResources
> object registered as in the application scope, so I can use 
> bean:define to
> get at it? Or is there another way to accomplish this without 
> using the
> scriptlet (no, I don't want to put the entire href in the 
> resource file).
> Thanks.
> -- 
> Jim Tomlinson
> [EMAIL PROTECTED]
> 

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




Access to localized messages to build an href

2002-01-07 Thread Jim Tomlinson

I'm trying to get access to the MessageResources object that, according to
the docs, is an application scope bean. I need to build an href in this
manner:

   +
"/refend.html"%>">Click here
  

Of course, this doesn't work (with single quotes, either, as suggested for a
similar problem on this list). I've worked around it like this:

  <% MessageResources resources =
 MessageResources.getMessageResources("com.foo.bar.Resources");
 String locale = resources.getMessage("footer_locale");
  %>
  ">Click here
  

but I'd like to avoid the scriptlet. What name is the MessageResources
object registered as in the application scope, so I can use bean:define to
get at it? Or is there another way to accomplish this without using the
scriptlet (no, I don't want to put the entire href in the resource file).
Thanks.
-- 
Jim Tomlinson
[EMAIL PROTECTED]

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




RE: html:link href to external URL in a

2001-12-05 Thread Rob Breeds

No way to do this with purely Struts tags?

Thanks

Rob Breeds




   
  
"Siggelkow, Bill"  
  
   
irant.com>  cc:
  
Subject: RE: html:link href to 
external URL in a 
05/12/2001 16:17   
  
Please respond to  
  
"Struts Users  
  
Mailing List"  
  
   
  
   
  




You can do this by just coding the link in with an HTML anchor tag as
folows:
">



or use an expression





-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 11:03 AM
To: Struts Users Mailing List
Subject: html:link href to external URL in a



Hi

This may be in the FAQ/archive but I can't find it!

If I have a dynamically generated external URL available in the
request/session object, e.g. "http://www.banana.com";, how do I write a
 tag such that the link takes the user to that external
URL? (Without using scriptlets?)

I effectively want to do: ">



but can't do nested tags.

How do I dynamically populate the content of the href attribute?

Help please!

Thanks

Rob Breeds




--
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]>





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




RE: html:link href to external URL in a

2001-12-05 Thread Siggelkow, Bill

You can do this by just coding the link in with an HTML anchor tag as
folows:
">



or use an expression





-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 11:03 AM
To: Struts Users Mailing List
Subject: html:link href to external URL in a 



Hi

This may be in the FAQ/archive but I can't find it!

If I have a dynamically generated external URL available in the
request/session object, e.g. "http://www.banana.com";, how do I write a
 tag such that the link takes the user to that external
URL? (Without using scriptlets?)

I effectively want to do: ">



but can't do nested tags.

How do I dynamically populate the content of the href attribute?

Help please!

Thanks

Rob Breeds




--
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]>




html:link href to external URL in a

2001-12-05 Thread Rob Breeds


Hi

This may be in the FAQ/archive but I can't find it!

If I have a dynamically generated external URL available in the
request/session object, e.g. "http://www.banana.com";, how do I write a
 tag such that the link takes the user to that external
URL? (Without using scriptlets?)

I effectively want to do: ">



but can't do nested tags.

How do I dynamically populate the content of the href attribute?

Help please!

Thanks

Rob Breeds




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




Re: Reaching Action class from Href Link

2001-08-31 Thread CityBoyForLove
Hi,

U can use the link some like this.

click here <
/html:link>

to replace the html form.

enjoy
bala


RE: Linking HREF with Action

2001-08-16 Thread dhay



Is it not possible to not use a form at all?

Section 1.3 of the user guide says:  "At a minimum, a mapping must specify (1) a
request path and (2) the object type to act upon the request.".

However when I try leaving off the form name in config file, and in html:form
tag, I get an error.

I can obviously get around it by just using the regular html  tag, but
would like to keep everything consistant (the reason I don't need a form, is
that my action creates performs a download).

Cheers for any help,

Dave







"Dudley Butt@i-Commerce" 
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: Linking HREF with Action






In that case you can just use any old actionformobject and asssociate it,
what you will then use out of the mapping in the config file is only the
action, and just ignore the actionform.

   
   
   
   
   
   


-Original Message-
From: Olivier Houyoux [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 8:45 AM
To: [EMAIL PROTECTED]
Subject: Linking HREF with Action


Hi all,

I just wanted to know if it's possible to define an Action in the Struts
config XML file that would be called from an HTML link (html:link tag) that
IS NOT within a form ?
I tried but it seems that the framework needs an ActionForm bean associated
with each Action.

Any idea, comments ?

Thanks for your help.


NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
Une gamme d'outils gratuits et performants à votre service.
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min)
Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**







RE: Linking HREF with Action

2001-08-15 Thread Dudley [EMAIL PROTECTED]

In that case you can just use any old actionformobject and asssociate it,
what you will then use out of the mapping in the config file is only the
action, and just ignore the actionform.

   
   
   
   
   
   


-Original Message-
From: Olivier Houyoux [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 8:45 AM
To: [EMAIL PROTECTED]
Subject: Linking HREF with Action


Hi all,

I just wanted to know if it's possible to define an Action in the Struts
config XML file that would be called from an HTML link (html:link tag) that
IS NOT within a form ?
I tried but it seems that the framework needs an ActionForm bean associated
with each Action.

Any idea, comments ?

Thanks for your help.


NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
Une gamme d'outils gratuits et performants à votre service.
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min)
Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Re: Linking HREF with Action

2001-08-15 Thread Oleg V Alexeev

Hello Olivier,

Thursday, August 16, 2001, 10:44:54 AM, you wrote:

OH> Hi all,

OH> I just wanted to know if it's possible to define an Action in the Struts config 
XML file that would be called from an HTML link (html:link tag) that IS NOT within a 
form ?
OH> I tried but it seems that the framework needs an ActionForm bean associated with 
each Action.

OH> Any idea, comments ?

If you are not define form for some action then reference to
ActionForm in perform() method for this action will be null. And you
can use html:link in any place of the JSP, not only in forms.

-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]





Linking HREF with Action

2001-08-15 Thread Olivier Houyoux

Hi all,

I just wanted to know if it's possible to define an Action in the Struts config XML 
file that would be called from an HTML link (html:link tag) that IS NOT within a form ?
I tried but it seems that the framework needs an ActionForm bean associated with each 
Action.

Any idea, comments ?

Thanks for your help.


NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Une gamme d'outils gratuits et performants à votre service.
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min)
Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)




Reaching Action class from Href Link

2001-08-03 Thread John M. Corro

I've recently begun working with Struts and am looking to create a scenario
where a user can click on a link and trigger some event in an Action class
(ie the clicking of a link would be the same as clicking a form's submit
button).  My understanding is that within Struts forms submit by the post
method by default so I don't know if the only way to reach an Action class
is by an actual form.  Any one have any insight?







RE: Reaching Action class from Href Link

2001-08-03 Thread Fletcher, Ken

I haven't played around with paramID, paramName and paramProperty in the tag
yet (still experimenting).  However, I have been able to get the bean to
show up on the forwarded JSP by putting it in the HttpSession (from the
action class) and then have the JSP access the properties in regular
fashion:



Does anyone else have a more elegant solution to this?

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


In my JSP, I've got:


My link goes here



In my struts-config.xml file, I've got:

...


...






What I'm finding is that my EditProduct action isn't being called at all.
I'm wanting EditProduct in this case to prepopulate the form bean with data
so it will display for editing on the next JSP.  Because of this problem, no
data is being written into the form bean, so my form comes up blank when I
want it to be pre-filled with data.

Any help is greatly appreciated!

--Greg


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 12:07 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I'm using Tomcat.don't know if it'll work using something else.  Maybe
if you show some of your code I can help.

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


It's not working for me, for some reason.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 11:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


 does work, as long as you have
the .do in there (did for me, anyway).

-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Reaching Action class from Href Link


Thanks to John and Ken for the assistance.

Point of clarification other interested newbies, using a form's 'action'
value as the link's 'href' value will not work - the reason mine wasn't
working.  For instance,



may work, where as

~~~ or 

will not.




- Original Message -
From: "John Schroeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 11:22 AM
Subject: RE: Reaching Action class from Href Link


> Using the struts html:form tag will set the method to POST by default.
This
> won't prevent you from using the link as you describe though.  The service
> methods of an HttpServlet doPost() and doGet() will accomplish essentially
> the same goal (often doGet() will just call doPost() ).  In the case of
the
> struts ActionServlet, both of these methods call process().  So you can
use
> a query string to pass your parameters (or extra path info if you wish).
>
> So, that was a little long-winded way of saying that your link can look
> like:
> LINK
> TEXT
>
> Hope this helps!!
>
> --John
>
>
>
>
>
> -Original Message-
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Reaching Action class from Href Link
>
>
> I've recently begun working with Struts and am looking to create a
scenario
> where a user can click on a link and trigger some event in an Action class
> (ie the clicking of a link would be the same as clicking a form's submit
> button).  My understanding is that within Struts forms submit by the post
> method by default so I don't know if the only way to reach an Action class
> is by an actual form.  Any one have any insight?
>
>
>



RE: Reaching Action class from Href Link

2001-08-03 Thread Fletcher, Ken

I tried unsuccessfully to do that.  Maybe I missed something - do you still
have to add the bean to the HttpSession?

-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link





In addition, If you set the variables from your bean into an ActionForm you
won't even have to use the  neither.

-Original Message-
From: Fletcher, Ken [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:32 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I haven't played around with paramID, paramName and paramProperty in the tag
yet (still experimenting).  However, I have been able to get the bean to
show up on the forwarded JSP by putting it in the HttpSession (from the
action class) and then have the JSP access the properties in regular
fashion:



Does anyone else have a more elegant solution to this?

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


In my JSP, I've got:


My link goes here



In my struts-config.xml file, I've got:

...


...






What I'm finding is that my EditProduct action isn't being called at all.
I'm wanting EditProduct in this case to prepopulate the form bean with data
so it will display for editing on the next JSP.  Because of this problem, no
data is being written into the form bean, so my form comes up blank when I
want it to be pre-filled with data.

Any help is greatly appreciated!

--Greg


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 12:07 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I'm using Tomcat.don't know if it'll work using something else.  Maybe
if you show some of your code I can help.

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


It's not working for me, for some reason.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 11:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


 does work, as long as you have
the .do in there (did for me, anyway).

-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Reaching Action class from Href Link


Thanks to John and Ken for the assistance.

Point of clarification other interested newbies, using a form's 'action'
value as the link's 'href' value will not work - the reason mine wasn't
working.  For instance,



may work, where as

~~~ or 

will not.




- Original Message -
From: "John Schroeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 11:22 AM
Subject: RE: Reaching Action class from Href Link


> Using the struts html:form tag will set the method to POST by default.
This
> won't prevent you from using the link as you describe though.  The service
> methods of an HttpServlet doPost() and doGet() will accomplish essentially
> the same goal (often doGet() will just call doPost() ).  In the case of
the
> struts ActionServlet, both of these methods call process().  So you can
use
> a query string to pass your parameters (or extra path info if you wish).
>
> So, that was a little long-winded way of saying that your link can look
> like:
> LINK
> TEXT
>
> Hope this helps!!
>
> --John
>
>
>
>
>
> -Original Message-
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Reaching Action class from Href Link
>
>
> I've recently begun working with Struts and am looking to create a
scenario
> where a user can click on a link and trigger some event in an Action class
> (ie the clicking of a link would be the same as clicking a form's submit
> button).  My understanding is that within Struts forms submit by the post
> method by default so I don't know if the only way to reach an Action class
> is by an actual form.  Any one have any insight?
>
>
>



Re: Reaching Action class from Href Link

2001-08-03 Thread Martin Cooper

Yes, that's correct. Using extension mapping with Struts, and ".do" in 
particular, is just a Struts convention. I suspect that most people are 
probably following that convention, but it is not a requirement. You are 
free to use a different extension, such as ".act" or ".cmd" or whatever, or 
to use path mapping, if you want.

As you point out, changing the mapping method or the extension after the 
project is in development may have repercussions, so it's a decision you 
really want to make up front, and stick with.

--
Martin Cooper


At 02:09 PM 8/3/01, John M. Corro wrote:
>Ken clarified my point - that in a form's 'action' you don't need to tack
>the '.do' extension to the end of the action mapping (ie
>action="SomeAction").  In a link's 'href' value you do need to tack on the
>'do' extension (ie the value changes to href="SomeAction.do").
>
>I believe this comes w/ a caveat as the '.do' extension can be changed.  By
>default the extension is '.do' in the web.xml file.  I haven't tried this,
>but I would imagine if you changed the extension in the web.xml file, you'd
>have to also reflect the change in your links.
>
>----- Original Message -
>From: "Greg Maletic" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, August 03, 2001 11:57 AM
>Subject: RE: Reaching Action class from Href Link
>
>
> > Now I'm really confused!  Your original problem was that you wanted to
>have
> > a link forward to an action.  Your clarification shows how to do it from a
> > form (" > href will not work.  That doesn't seem to solve your original problem,
>does
> > it?
> >
> > Please let me know what I'm missing here, because I'm having this problem
>as
> > well.
> >
> > Thanks!
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > rg]On Behalf Of John M. Corro
> > Sent: Friday, August 03, 2001 1:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Reaching Action class from Href Link
> >
> >
> > Thanks to John and Ken for the assistance.
> >
> > Point of clarification other interested newbies, using a form's 'action'
> > value as the link's 'href' value will not work - the reason mine wasn't
> > working.  For instance,
> >
> > 
> >
> > may work, where as
> >
> > ~~~ or href="SomeAction"~~~>
> >
> > will not.
> >
> >
> >
> >
> > - Original Message -
> > From: "John Schroeder" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, August 03, 2001 11:22 AM
> > Subject: RE: Reaching Action class from Href Link
> >
> >
> > > Using the struts html:form tag will set the method to POST by default.
> > This
> > > won't prevent you from using the link as you describe though.  The
>service
> > > methods of an HttpServlet doPost() and doGet() will accomplish
>essentially
> > > the same goal (often doGet() will just call doPost() ).  In the case of
> > the
> > > struts ActionServlet, both of these methods call process().  So you can
> > use
> > > a query string to pass your parameters (or extra path info if you wish).
> > >
> > > So, that was a little long-winded way of saying that your link can look
> > > like:
> > > href="/someContext/someAction.do?param1=foo¶m2=bar¶m3=baz">LINK
> > > TEXT
> > >
> > > Hope this helps!!
> > >
> > > --John
> > >
> > >
> > >
> > >
> > >
> > > -Original Message-
> > > From: John M. Corro [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, August 03, 2001 1:07 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Reaching Action class from Href Link
> > >
> > >
> > > I've recently begun working with Struts and am looking to create a
> > scenario
> > > where a user can click on a link and trigger some event in an Action
>class
> > > (ie the clicking of a link would be the same as clicking a form's submit
> > > button).  My understanding is that within Struts forms submit by the
>post
> > > method by default so I don't know if the only way to reach an Action
>class
> > > is by an actual form.  Any one have any insight?
> > >
> > >
> > >
> >
> >
> >





RE: Reaching Action class from Href Link

2001-08-03 Thread Gus Delgado




In addition, If you set the variables from your bean into an ActionForm you
won't even have to use the  neither.

-Original Message-
From: Fletcher, Ken [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:32 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I haven't played around with paramID, paramName and paramProperty in the tag
yet (still experimenting).  However, I have been able to get the bean to
show up on the forwarded JSP by putting it in the HttpSession (from the
action class) and then have the JSP access the properties in regular
fashion:



Does anyone else have a more elegant solution to this?

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


In my JSP, I've got:


My link goes here



In my struts-config.xml file, I've got:

...


...






What I'm finding is that my EditProduct action isn't being called at all.
I'm wanting EditProduct in this case to prepopulate the form bean with data
so it will display for editing on the next JSP.  Because of this problem, no
data is being written into the form bean, so my form comes up blank when I
want it to be pre-filled with data.

Any help is greatly appreciated!

--Greg


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 12:07 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I'm using Tomcat.don't know if it'll work using something else.  Maybe
if you show some of your code I can help.

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


It's not working for me, for some reason.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 11:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


 does work, as long as you have
the .do in there (did for me, anyway).

-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Reaching Action class from Href Link


Thanks to John and Ken for the assistance.

Point of clarification other interested newbies, using a form's 'action'
value as the link's 'href' value will not work - the reason mine wasn't
working.  For instance,



may work, where as

~~~ or 

will not.




- Original Message -
From: "John Schroeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 11:22 AM
Subject: RE: Reaching Action class from Href Link


> Using the struts html:form tag will set the method to POST by default.
This
> won't prevent you from using the link as you describe though.  The service
> methods of an HttpServlet doPost() and doGet() will accomplish essentially
> the same goal (often doGet() will just call doPost() ).  In the case of
the
> struts ActionServlet, both of these methods call process().  So you can
use
> a query string to pass your parameters (or extra path info if you wish).
>
> So, that was a little long-winded way of saying that your link can look
> like:
> LINK
> TEXT
>
> Hope this helps!!
>
> --John
>
>
>
>
>
> -Original Message-
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Reaching Action class from Href Link
>
>
> I've recently begun working with Struts and am looking to create a
scenario
> where a user can click on a link and trigger some event in an Action class
> (ie the clicking of a link would be the same as clicking a form's submit
> button).  My understanding is that within Struts forms submit by the post
> method by default so I don't know if the only way to reach an Action class
> is by an actual form.  Any one have any insight?
>
>
>




Re: Reaching Action class from Href Link

2001-08-03 Thread Martin Cooper

If you use the Struts  tag, the value of the 'action' attribute 
is used to look up the corresponding action mapping, and Struts will append 
the ".do" if you are using extension mapping for your servlet.

If you use the Struts  tag with the 'href' attribute, then that 
value is taken literally. You have a bit more flexibility if you use the 
'forward' or 'page' attributes with this tag.

--
Martin Cooper


At 01:32 PM 8/3/01, John M. Corro wrote:
>Thanks to John and Ken for the assistance.
>
>Point of clarification other interested newbies, using a form's 'action'
>value as the link's 'href' value will not work - the reason mine wasn't
>working.  For instance,
>
>
>
>may work, where as
>
>~~~ or 
>
>will not.
>
>
>
>
>- Original Message -
>From: "John Schroeder" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, August 03, 2001 11:22 AM
>Subject: RE: Reaching Action class from Href Link
>
>
> > Using the struts html:form tag will set the method to POST by default.
>This
> > won't prevent you from using the link as you describe though.  The service
> > methods of an HttpServlet doPost() and doGet() will accomplish essentially
> > the same goal (often doGet() will just call doPost() ).  In the case of
>the
> > struts ActionServlet, both of these methods call process().  So you can
>use
> > a query string to pass your parameters (or extra path info if you wish).
> >
> > So, that was a little long-winded way of saying that your link can look
> > like:
> > LINK
> > TEXT
> >
> > Hope this helps!!
> >
> > --John
> >
> >
> >
> >
> >
> > -Original Message-
> > From: John M. Corro [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 03, 2001 1:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: Reaching Action class from Href Link
> >
> >
> > I've recently begun working with Struts and am looking to create a
>scenario
> > where a user can click on a link and trigger some event in an Action class
> > (ie the clicking of a link would be the same as clicking a form's submit
> > button).  My understanding is that within Struts forms submit by the post
> > method by default so I don't know if the only way to reach an Action class
> > is by an actual form.  Any one have any insight?
> >
> >
> >





RE: Reaching Action class from Href Link

2001-08-03 Thread Greg Maletic

Now I'm really confused!  Your original problem was that you wanted to have
a link forward to an action.  Your clarification shows how to do it from a
form ("mailto:[EMAIL PROTECTED]
rg]On Behalf Of John M. Corro
Sent: Friday, August 03, 2001 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Reaching Action class from Href Link


Thanks to John and Ken for the assistance.

Point of clarification other interested newbies, using a form's 'action'
value as the link's 'href' value will not work - the reason mine wasn't
working.  For instance,



may work, where as

~~~ or 

will not.




- Original Message -
From: "John Schroeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 11:22 AM
Subject: RE: Reaching Action class from Href Link


> Using the struts html:form tag will set the method to POST by default.
This
> won't prevent you from using the link as you describe though.  The service
> methods of an HttpServlet doPost() and doGet() will accomplish essentially
> the same goal (often doGet() will just call doPost() ).  In the case of
the
> struts ActionServlet, both of these methods call process().  So you can
use
> a query string to pass your parameters (or extra path info if you wish).
>
> So, that was a little long-winded way of saying that your link can look
> like:
> LINK
> TEXT
>
> Hope this helps!!
>
> --John
>
>
>
>
>
> -Original Message-
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Reaching Action class from Href Link
>
>
> I've recently begun working with Struts and am looking to create a
scenario
> where a user can click on a link and trigger some event in an Action class
> (ie the clicking of a link would be the same as clicking a form's submit
> button).  My understanding is that within Struts forms submit by the post
> method by default so I don't know if the only way to reach an Action class
> is by an actual form.  Any one have any insight?
>
>
>





RE: Reaching Action class from Href Link

2001-08-03 Thread Greg Maletic

I don't believe I can use this approach because my original JSP has many
links that all lead to the EditProduct action, but each link specifies a
different productId, corresponding to a different product.  I need to wait
until the user clicks on a specific product before I can populate the bean,
and I need to have my action called to do this, which is the source of the
problem.  My action isn't being called at all--it's just going directly to
the next JSP.

After finding out that it wasn't calling my action class, my next question
was:  how does the ActionServlet know what JSP to go to?  The answer is it's
using the "input" tag on the "editProduct" action mapping, and jumping
directly to that.  The Struts docs imply that "input" is only used when a
ActionForm.validate() method returns ActionErrors, but apparently it's not
true:  it's being jumped to in lieu of calling my action.

What have other people experienced when using the "input" tag?

Thanks.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 12:32 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I haven't played around with paramID, paramName and paramProperty in the tag
yet (still experimenting).  However, I have been able to get the bean to
show up on the forwarded JSP by putting it in the HttpSession (from the
action class) and then have the JSP access the properties in regular
fashion:



Does anyone else have a more elegant solution to this?

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 2:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


In my JSP, I've got:


My link goes here



In my struts-config.xml file, I've got:

...


...






What I'm finding is that my EditProduct action isn't being called at all.
I'm wanting EditProduct in this case to prepopulate the form bean with data
so it will display for editing on the next JSP.  Because of this problem, no
data is being written into the form bean, so my form comes up blank when I
want it to be pre-filled with data.

Any help is greatly appreciated!

--Greg


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 12:07 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


I'm using Tomcat.don't know if it'll work using something else.  Maybe
if you show some of your code I can help.

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


It's not working for me, for some reason.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 11:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


 does work, as long as you have
the .do in there (did for me, anyway).

-Original Message-----
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Reaching Action class from Href Link


Thanks to John and Ken for the assistance.

Point of clarification other interested newbies, using a form's 'action'
value as the link's 'href' value will not work - the reason mine wasn't
working.  For instance,



may work, where as

~~~ or 

will not.




- Original Message -
From: "John Schroeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 11:22 AM
Subject: RE: Reaching Action class from Href Link


> Using the struts html:form tag will set the method to POST by default.
This
> won't prevent you from using the link as you describe though.  The service
> methods of an HttpServlet doPost() and doGet() will accomplish essentially
> the same goal (often doGet() will just call doPost() ).  In the case of
the
> struts ActionServlet, both of these methods call process().  So you can
use
> a query string to pass your parameters (or extra path info if you wish).
>
> So, that was a little long-winded way of saying that your link can look
> like:
> LINK
> TEXT
>
> Hope this helps!!
>
> --John
>
>
>
>
>
> -Original Message-
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Reaching Action class from Href Link
>
>
> I've recently begun working with Struts and am looking to create a
scenario
> where a user can click on a link and trigger some event in an Action class
> (ie the clicking of a link would be the same as clicking a form's submit
> button).  My understanding is that within Struts forms submit by the post
> method by default so I don't know if the only way to reach an Action class
> is by an actual form.  Any one have any insight?
>
>
>




RE: Reaching Action class from Href Link

2001-08-03 Thread Fletcher, Ken

I'm using Tomcat.don't know if it'll work using something else.  Maybe
if you show some of your code I can help.  

-Original Message-
From: Greg Maletic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Reaching Action class from Href Link


It's not working for me, for some reason.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Fletcher, Ken
Sent: Friday, August 03, 2001 11:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Reaching Action class from Href Link


 does work, as long as you have
the .do in there (did for me, anyway).

-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Reaching Action class from Href Link


Thanks to John and Ken for the assistance.

Point of clarification other interested newbies, using a form's 'action'
value as the link's 'href' value will not work - the reason mine wasn't
working.  For instance,



may work, where as

~~~ or 

will not.




- Original Message -
From: "John Schroeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 11:22 AM
Subject: RE: Reaching Action class from Href Link


> Using the struts html:form tag will set the method to POST by default.
This
> won't prevent you from using the link as you describe though.  The service
> methods of an HttpServlet doPost() and doGet() will accomplish essentially
> the same goal (often doGet() will just call doPost() ).  In the case of
the
> struts ActionServlet, both of these methods call process().  So you can
use
> a query string to pass your parameters (or extra path info if you wish).
>
> So, that was a little long-winded way of saying that your link can look
> like:
> LINK
> TEXT
>
> Hope this helps!!
>
> --John
>
>
>
>
>
> -Original Message-----
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 03, 2001 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Reaching Action class from Href Link
>
>
> I've recently begun working with Struts and am looking to create a
scenario
> where a user can click on a link and trigger some event in an Action class
> (ie the clicking of a link would be the same as clicking a form's submit
> button).  My understanding is that within Struts forms submit by the post
> method by default so I don't know if the only way to reach an Action class
> is by an actual form.  Any one have any insight?
>
>
>



Re: HREF link question - oops!

2001-06-17 Thread Rick Horowitz

Sorry about the last message. It didn't work due to a spelling mistake on 
my part.  The  tag seems to work as expected.

Thanks again,

Rick

At 02:18 PM 6/14/01 -0700, you wrote:
>Hi Craig,
>
>Thanks for your response. Unfortunately, it still doesn't work.  I tried 
>two different approaches: with the  tag and without it, and I 
>get the same result in both cases:
>
> I code the following link:
>
>  page="/jsp/prodinfo/prodinfo.jsp">Introduction
>
> The html source (in the browser, Netscape 4.6.1 or IE 4.72) shows:
>
> When I use the  tag:
>
>  href="http://localhost:8080/backup/jsp/prodinfo/prod-info.jsp";>   in the 
> HTML head section, and
>
> The link is generated as:
>
>  href="/backup/jsp/prodinfo/prodinfo.jsp">Introductionas the href link
>
> When I mouse over the link in the browser, the status line at the 
> bottom of the browser window displays:
>
> http://localhost:8080/backup/jsp/prodinfo/prod-info.jsp
>
> When I click the link, I get the following in the browser window:
>
> Not Found (404)
> Original request: /backup/jsp/prodinfo/prodinfo.jsp
>
> Not found request: /backup/jsp/prodinfo/prodinfo.jsp
>
>Am I doing something wrong?  Must be, since you use this approach all the 
>time.  Thanks again for your help.  It is greatly appreciated.
>
>Rick Horowitz
>
>
>At 09:59 AM 6/14/01 -0700, you wrote:
>
>
>>On Wed, 13 Jun 2001, Rick Horowitz wrote:
>>
>> > Hi,
>> >
>> > I'm trying to use href links with Struts templates, and can't figure out
>> > how to make my href links work properly.  [Templates seem to work just
>> > fine, otherwise.]... my compliments.
>> >
>> > 1. I want to use Struts  tags so that to automatically do URL
>> > session encoding.
>> >
>>
>>Struts does this automatically for you.
>>
>> > 2. I want to use absolute URLs to make coding of urls more robust. For
>> > example, if I have a directory structure of JSPs:
>> >  jsp
>> >  jsp/prodinfo
>> >  jsp/faq
>> >   ...I want to be able to code the url something like...
>> > jsp/faq/faq1.jsp or jsp/prodinfo/info1.jsp, in case I change the directory
>> > structure, rather than using relative links, e.g. ../faq/faq1.jsp.
>> >
>>
>>I have found it best to use context-relative URLs starting with a
>>"/" character throughout my applications, rather than trying to use
>>relative links -- for the reasons that you are probably familiar with.  To
>>do that for links, use the "page" attribute to specify the destination --
>>Struts will prepend the context path of the current application for you,
>>so that the browser always goes the right place.  For example, you might
>>code:
>>
>> To the FAQ
>>
>> > 3. For the portion of the website that I'm currently working on, I am
>> > creating href links from one JSP to other JSPs.  [For other portions 
>> of the
>> > website, I will be using an MVC architecture, hence forwarding from a
>> > servlet to a JSP and vice versa.]
>> >
>>
>>It works either way, but remember that links directly from one page to
>>another bypasses the controller -- and therefore bypasses the stuff that
>>the controller servlet does for you.
>>
>>
>> > 4. I have tried various approaches to using the  tag in the
>> > HTML  section of my Struts template file, not using a base tag, and
>> > have tried using the following to set the html base:
>> >  http://";
>> >  +request.getServerName() +":"
>> >  +request.getServerPort()
>> >  +request.getContextPath() %>/" >
>> >   Although the latter works with regular  tags, it does not
>> > seem to work with  Struts tags.
>> >
>>
>>See the  tag for a way to do this automatically.
>>
>>However, whether you create it yourself or not, the  element affects
>>only relative hyperlinks.  If you follow my suggestion above (always use
>>context-relative links), you won't need it.
>>
>> > I have tried a variety of combinations of these base tags with a 
>> variety of
>> > combinations of url encodings, but cannot seem to get them to work --
>> > except with regular  tags using the
>> >  http://";
>> >  +request.getServerName() +":"
>> >  +request.getServerPort()
>> >  +request.getContextPath() %>/" >
>> >  base tag setting.
>> >
>> > Thank you in advance to anyone who can help,
>> >
>> > 
>> > Rick Horowitz
>> >
>> >
>>
>>Craig
>
>
>Rick Horowitz


Rick Horowitz




Re: HREF link question

2001-06-14 Thread Rick Horowitz

Hi Craig,

Thanks for your response. Unfortunately, it still doesn't work.  I tried 
two different approaches: with the  tag and without it, and I 
get the same result in both cases:

 I code the following link:

 Introduction

 The html source (in the browser, Netscape 4.6.1 or IE 4.72) shows:

 When I use the  tag:

 http://localhost:8080/backup/jsp/prodinfo/prod-info.jsp";>   in the 
HTML head section, and

 The link is generated as:

 Introduction    as the href link

 When I mouse over the link in the browser, the status line at the 
bottom of the browser window displays:

 http://localhost:8080/backup/jsp/prodinfo/prod-info.jsp

 When I click the link, I get the following in the browser window:

 Not Found (404)
 Original request: /backup/jsp/prodinfo/prodinfo.jsp

 Not found request: /backup/jsp/prodinfo/prodinfo.jsp

Am I doing something wrong?  Must be, since you use this approach all the 
time.  Thanks again for your help.  It is greatly appreciated.

Rick Horowitz


At 09:59 AM 6/14/01 -0700, you wrote:


>On Wed, 13 Jun 2001, Rick Horowitz wrote:
>
> > Hi,
> >
> > I'm trying to use href links with Struts templates, and can't figure out
> > how to make my href links work properly.  [Templates seem to work just
> > fine, otherwise.]... my compliments.
> >
> > 1. I want to use Struts  tags so that to automatically do URL
> > session encoding.
> >
>
>Struts does this automatically for you.
>
> > 2. I want to use absolute URLs to make coding of urls more robust. For
> > example, if I have a directory structure of JSPs:
> >  jsp
> >  jsp/prodinfo
> >  jsp/faq
> >   ...I want to be able to code the url something like...
> > jsp/faq/faq1.jsp or jsp/prodinfo/info1.jsp, in case I change the directory
> > structure, rather than using relative links, e.g. ../faq/faq1.jsp.
> >
>
>I have found it best to use context-relative URLs starting with a
>"/" character throughout my applications, rather than trying to use
>relative links -- for the reasons that you are probably familiar with.  To
>do that for links, use the "page" attribute to specify the destination --
>Struts will prepend the context path of the current application for you,
>so that the browser always goes the right place.  For example, you might
>code:
>
> To the FAQ
>
> > 3. For the portion of the website that I'm currently working on, I am
> > creating href links from one JSP to other JSPs.  [For other portions of 
> the
> > website, I will be using an MVC architecture, hence forwarding from a
> > servlet to a JSP and vice versa.]
> >
>
>It works either way, but remember that links directly from one page to
>another bypasses the controller -- and therefore bypasses the stuff that
>the controller servlet does for you.
>
>
> > 4. I have tried various approaches to using the  tag in the
> > HTML  section of my Struts template file, not using a base tag, and
> > have tried using the following to set the html base:
> >  http://";
> >  +request.getServerName() +":"
> >  +request.getServerPort()
> >  +request.getContextPath() %>/" >
> >   Although the latter works with regular  tags, it does not
> > seem to work with  Struts tags.
> >
>
>See the  tag for a way to do this automatically.
>
>However, whether you create it yourself or not, the  element affects
>only relative hyperlinks.  If you follow my suggestion above (always use
>context-relative links), you won't need it.
>
> > I have tried a variety of combinations of these base tags with a 
> variety of
> > combinations of url encodings, but cannot seem to get them to work --
> > except with regular  tags using the
> >  http://";
> >  +request.getServerName() +":"
> >  +request.getServerPort()
> >  +request.getContextPath() %>/" >
> >  base tag setting.
> >
> > Thank you in advance to anyone who can help,
> >
> > 
> > Rick Horowitz
> >
> >
>
>Craig


Rick Horowitz




Re: HREF link question

2001-06-14 Thread Craig R. McClanahan



On Wed, 13 Jun 2001, Rick Horowitz wrote:

> Hi,
> 
> I'm trying to use href links with Struts templates, and can't figure out 
> how to make my href links work properly.  [Templates seem to work just 
> fine, otherwise.]... my compliments.
> 
> 1. I want to use Struts  tags so that to automatically do URL 
> session encoding.
> 

Struts does this automatically for you.

> 2. I want to use absolute URLs to make coding of urls more robust. For 
> example, if I have a directory structure of JSPs:
>  jsp
>  jsp/prodinfo
>  jsp/faq
>   ...I want to be able to code the url something like... 
> jsp/faq/faq1.jsp or jsp/prodinfo/info1.jsp, in case I change the directory 
> structure, rather than using relative links, e.g. ../faq/faq1.jsp.
> 

I have found it best to use context-relative URLs starting with a
"/" character throughout my applications, rather than trying to use
relative links -- for the reasons that you are probably familiar with.  To
do that for links, use the "page" attribute to specify the destination --
Struts will prepend the context path of the current application for you,
so that the browser always goes the right place.  For example, you might
code:

To the FAQ

> 3. For the portion of the website that I'm currently working on, I am 
> creating href links from one JSP to other JSPs.  [For other portions of the 
> website, I will be using an MVC architecture, hence forwarding from a 
> servlet to a JSP and vice versa.]
> 

It works either way, but remember that links directly from one page to
another bypasses the controller -- and therefore bypasses the stuff that
the controller servlet does for you.


> 4. I have tried various approaches to using the  tag in the 
> HTML  section of my Struts template file, not using a base tag, and 
> have tried using the following to set the html base:
>  http://";
>  +request.getServerName() +":"
>  +request.getServerPort()
>  +request.getContextPath() %>/" >
>   Although the latter works with regular  tags, it does not 
> seem to work with  Struts tags.
> 

See the  tag for a way to do this automatically.

However, whether you create it yourself or not, the  element affects
only relative hyperlinks.  If you follow my suggestion above (always use
context-relative links), you won't need it.

> I have tried a variety of combinations of these base tags with a variety of 
> combinations of url encodings, but cannot seem to get them to work -- 
> except with regular  tags using the
>  http://";
>  +request.getServerName() +":"
>  +request.getServerPort()
>  +request.getContextPath() %>/" >
>  base tag setting.
> 
> Thank you in advance to anyone who can help,
> 
> 
> Rick Horowitz
> 
> 

Craig





HREF link question

2001-06-13 Thread Rick Horowitz

Hi,

I'm trying to use href links with Struts templates, and can't figure out 
how to make my href links work properly.  [Templates seem to work just 
fine, otherwise.]... my compliments.

1. I want to use Struts  tags so that to automatically do URL 
session encoding.

2. I want to use absolute URLs to make coding of urls more robust. For 
example, if I have a directory structure of JSPs:
 jsp
 jsp/prodinfo
 jsp/faq
  ...I want to be able to code the url something like... 
jsp/faq/faq1.jsp or jsp/prodinfo/info1.jsp, in case I change the directory 
structure, rather than using relative links, e.g. ../faq/faq1.jsp.

3. For the portion of the website that I'm currently working on, I am 
creating href links from one JSP to other JSPs.  [For other portions of the 
website, I will be using an MVC architecture, hence forwarding from a 
servlet to a JSP and vice versa.]

4. I have tried various approaches to using the  tag in the 
HTML  section of my Struts template file, not using a base tag, and 
have tried using the following to set the html base:
 http://";
 +request.getServerName() +":"
 +request.getServerPort()
 +request.getContextPath() %>/" >
  Although the latter works with regular  tags, it does not 
seem to work with  Struts tags.

I have tried a variety of combinations of these base tags with a variety of 
combinations of url encodings, but cannot seem to get them to work -- 
except with regular  tags using the
 http://";
 +request.getServerName() +":"
 +request.getServerPort()
 +request.getContextPath() %>/" >
 base tag setting.

Thank you in advance to anyone who can help,


Rick Horowitz