RE: Programmatically creating links to Struts forwards

2003-04-04 Thread Chen, Gin
The 'right' way I believe is to use Scaffold's (pre 1.1 b3)
or if ur using the latest builds then set up a ForwardAction that points to
your forward (can also be done for tiles definitions) and use that as you
link href.
ex:

-Tim

-Original Message-
From: Adam Sherman [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 12:41 PM
To: [EMAIL PROTECTED]
Subject: Programmatically creating links to Struts forwards


I have the need to create a link to a Struts Forward in code, is there a 
Right Way to do this?

Should I go dig into the Javadoc for the html taglib?

Thanks,

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819

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



Programmatically creating links to Struts forwards

2003-04-04 Thread Adam Sherman
I have the need to create a link to a Struts Forward in code, is there a 
Right Way to do this?

Should I go dig into the Javadoc for the html taglib?

Thanks,

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Struts forwards requests as http when jsp page was invoked as https

2003-01-10 Thread pantichd

Steve,

I did see that in my search for a solution to my problem. However, I
haven't been able to find any documentation and examples on how to use it.
I've poked around the site and downloaded the sslext-struts1.0-src.zip file
(I'm using struts 1.0). It has source code but no examples or documentation

Do you know where I can find examples and/or documentation?






   
   
  "Steve Vanspall" 
   
   <[EMAIL PROTECTED]>   
   
   cc: 
   
  01/09/2003 06:48     Subject:  RE: Struts forwards requests 
as http 
  PMwhen jsp page was invoked as https 
   
  Please respond to
   
  "Struts Users
   
  Mailing List"
   
   
   
   
   




Hi there,

Have you tried using the SSLext extension for Struts.

I've found it works quite well.

Took a little tweaking but you can use a new type of form called sslext
form. It work like html:form but set the action field to go through the
correct https port.

http://struts.ditlinger.com/

But the main advantage is that you can set action security in
struts-config.

Regards

Steve Vanspall



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, 10 January 2003 10:03 AM
To: [EMAIL PROTECTED]
Subject: Struts forwards requests as http when jsp page was invoked as
https


Hello,

I need help figuring out how to make my struts application work with ssl.
I'll try to give a brief overview of what I'm doing:

I invoke the mai.jsp file using https protocol. No problem there. Links off
that page work fine because they are built as "https://somelink...";.

The problem is that when I click on any of the buttons defined inside a
struts form it pops up a dialog box telling me that I'm about to be
redirected to a connection that is not secure.

If I click yes it goes to that page but the url is now
"http://host:443/somelink...";.

I'm sure there is a way to get struts to build the url using the protocol I
came into the application with but I can't figure it out.

Any help would be greatly appreciated!!

Here are some snippets of the main.jsp, struts-config.xml and java files.


Code snippet from main.jsp file:

<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
...

...

...

...


Snippet from struts-config.xml file:


  
...

...


Snippet from perform method of myAction class:

...
ActionForward forward = mapping.findForward("addDetail");
...
return forward;
...




--
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: Struts forwards requests as http when jsp page was invoked as https

2003-01-09 Thread Steve Vanspall
Hi there,

Have you tried using the SSLext extension for Struts.

I've found it works quite well.

Took a little tweaking but you can use a new type of form called sslext
form. It work like html:form but set the action field to go through the
correct https port.

http://struts.ditlinger.com/

But the main advantage is that you can set action security in struts-config.

Regards

Steve Vanspall



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, 10 January 2003 10:03 AM
To: [EMAIL PROTECTED]
Subject: Struts forwards requests as http when jsp page was invoked as
https


Hello,

I need help figuring out how to make my struts application work with ssl.
I'll try to give a brief overview of what I'm doing:

I invoke the mai.jsp file using https protocol. No problem there. Links off
that page work fine because they are built as "https://somelink...";.

The problem is that when I click on any of the buttons defined inside a
struts form it pops up a dialog box telling me that I'm about to be
redirected to a connection that is not secure.

If I click yes it goes to that page but the url is now
"http://host:443/somelink...";.

I'm sure there is a way to get struts to build the url using the protocol I
came into the application with but I can't figure it out.

Any help would be greatly appreciated!!

Here are some snippets of the main.jsp, struts-config.xml and java files.


Code snippet from main.jsp file:

<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
...

...

...

...


Snippet from struts-config.xml file:


  
...

...


Snippet from perform method of myAction class:

...
ActionForward forward = mapping.findForward("addDetail");
...
return forward;
...




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




Struts forwards requests as http when jsp page was invoked as https

2003-01-09 Thread pantichd
Hello,

I need help figuring out how to make my struts application work with ssl.
I'll try to give a brief overview of what I'm doing:

I invoke the mai.jsp file using https protocol. No problem there. Links off
that page work fine because they are built as "https://somelink...";.

The problem is that when I click on any of the buttons defined inside a
struts form it pops up a dialog box telling me that I'm about to be
redirected to a connection that is not secure.

If I click yes it goes to that page but the url is now
"http://host:443/somelink...";.

I'm sure there is a way to get struts to build the url using the protocol I
came into the application with but I can't figure it out.

Any help would be greatly appreciated!!

Here are some snippets of the main.jsp, struts-config.xml and java files.


Code snippet from main.jsp file:

<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
...

...

...

...


Snippet from struts-config.xml file:


  
...

...


Snippet from perform method of myAction class:

...
ActionForward forward = mapping.findForward("addDetail");
...
return forward;
...




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




Struts Forwards

2002-12-30 Thread Brian McPheeters
I have developed an application using tomcat and I am not trying to make it
work with websphere. I have defined a couple of forwards in my
struts-config.xml file that do not seem to work with websphere.

When I go to http://server/context and click on a button that executes my
forward websphere tells me that it cannot find the jsp page I am trying to
forward to and tells me that this is the path that it is looking for /context/initial/signin.jsp. The correct path is /initial/signin.jsp. For some reason websphere is adding in the context
root to the path statement when looking for the resource to forward to. This
is happening on my other forwards as well. I am able to fix the problem by
removing the / at the begining of my path in the forward definition. But the
/ is required by tomcat. Here is my forward tag definition.

Works in Tomcat


Works in Websphere


I don't want to have seperate code bases for different app servers. Does
anyone know why this is happening? 


Thanks
Brian McPheeters



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