You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by VJ22 <Vi...@iflexsolutions.com> on 2007/03/27 12:41:25 UTC

Newbie question

Hello,

Can anyone tell me how do I setup the AJAX theme in my struts pages ?

As far as I can see I only have the xhtml theme available in my project.

Do let me know.....

Thanks...Vijay
-- 
View this message in context: http://www.nabble.com/Newbie-question-tf3472286.html#a9689968
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Is it possible to tell if secure sockets in use froma Struts Action?

Posted by Larry Meadors <lm...@apache.org>.
...or request.isSecure()

Larry


On 3/27/07, Christopher Schultz <ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Adam,
>
> Adam Lipscombe wrote:
> > From a Struts Action is it possible to tell if SSL is in use?
> >
> > I tried httpServletRequest.getPathInfo(), getRequestURL() and
> > getAuthType(), but none of these seem to return anything that indicates
> > if the request started with "http:" or "https:".
>
> You gave up just before you found it: you are looking for
> ServletRequest.getScheme():
>
> http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletRequest.html#getScheme()
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGCQ+S9CaO5/Lv0PARAkmCAJ9hkkNR1L6Iw96RPblDI1Cdi2u2JACghzCx
> vXRRXPsacHdw8fF0S63CKxE=
> =Txbs
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Re: Is it possible to tell if secure sockets in use froma Struts Action?

Posted by Adam Lipscombe <ad...@expensys.com>.
 >> You gave up just before you found it: you are looking for ServletRequest.getScheme():


Silly me :-)

Many thanks all...


Adam


Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Adam,
> 
> Adam Lipscombe wrote:
>> From a Struts Action is it possible to tell if SSL is in use?
>>
>> I tried httpServletRequest.getPathInfo(), getRequestURL() and
>> getAuthType(), but none of these seem to return anything that indicates
>> if the request started with "http:" or "https:".
> 
> You gave up just before you found it: you are looking for
> ServletRequest.getScheme():
> 
> http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletRequest.html#getScheme()
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFGCQ+S9CaO5/Lv0PARAkmCAJ9hkkNR1L6Iw96RPblDI1Cdi2u2JACghzCx
> vXRRXPsacHdw8fF0S63CKxE=
> =Txbs
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 

________________________________
Adam Lipscombe
Escalus Software Systems
adam.lipscombe@expensys.com
Tel: 08450 170 850
www.expensys.com

This email and any files transmitted with it, including replies and
forwarded copies, may contain privileged and confidential information and
is intended solely for the person or organisation to whom it is addressed.
If you have received this communication in error, please notify us by email
(Notices@Escalus.net) or telephone (+44 (0)8450 170 850) and then delete the
email and any copies of it. Views or opinions expressed by an individual
within this email may not necessarily reflect the views of Escalus Software
Systems Ltd.

Although most emails and attachments from Escalus Software Systems Ltd are
screened, it is the responsibility of the recipient to ensure
that they are virus free. Escalus Software Systems Ltd will not accept any
liability for damage caused by a virus.

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


Re: Is it possible to tell if secure sockets in use froma Struts Action?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam,

Adam Lipscombe wrote:
> From a Struts Action is it possible to tell if SSL is in use?
> 
> I tried httpServletRequest.getPathInfo(), getRequestURL() and
> getAuthType(), but none of these seem to return anything that indicates
> if the request started with "http:" or "https:".

You gave up just before you found it: you are looking for
ServletRequest.getScheme():

http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletRequest.html#getScheme()

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

iD8DBQFGCQ+S9CaO5/Lv0PARAkmCAJ9hkkNR1L6Iw96RPblDI1Cdi2u2JACghzCx
vXRRXPsacHdw8fF0S63CKxE=
=Txbs
-----END PGP SIGNATURE-----

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


Re: The path of an ForwardConfig cannot be null

Posted by Dave Newton <ne...@yahoo.com>.
--- Christopher Schultz wrote:
> Sateeshn wrote:
>> <action-mappings>
>>   <action path="/viewAll"
>>           type="com.admin.DisplayAllAction"
>>           name="viewAllForm"
>>           scope="request">
>>     <forward name="success"
>>              path="/marketing/viewAllPromos.jsp"/>
>>   </action>
>> </action-mappings>
> Are you using Struts 2? If so, I don't understand
> how the validation plays into S2 action flow [...]

Heck, I wouldn't even understand how that would work
at *all* under S2 :/

IIRC validate defaults to "true"; try setting
validate="false". 

That may not be what you want to do from a workflow
perspective but it will determine why it's breaking.

d.



 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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


Re: The path of an ForwardConfig cannot be null

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sateeshn,

Sateeshn wrote:
> Hi,
> I'm getting the following error when the form name is used in the action
> mapping.
> 
> However, its working fine if the name attribute is removed.

Usually, this is an indication that you have validation turned on, the
validation is failing, and the "input" attribute is not set (i.e. it's
NULL). That does not appear to be the case, here:

>     <action-mappings>
>         <action path="/viewAll"
>                 type="com.admin.DisplayAllAction"
>                 name="viewAllForm"
>                 scope="request">
>                 <forward name="success"
> path="/marketing/viewAllPromos.jsp"/>
>         </action>
>     </action-mappings>

Are you using Struts 2? If so, I don't understand how the validation
plays into S2 action flow, but is it possible that your validation is
failing and you therefore need an "input" attribute in your <action>
mapping?

- -chris

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

iD8DBQFGCR5G9CaO5/Lv0PARAvvCAKCS6CaIBOdphhL542XRGNkQEsabOQCePOIx
JO81sn4RwLsmcilY14tOZqg=
=fplp
-----END PGP SIGNATURE-----

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


The path of an ForwardConfig cannot be null

Posted by Sateeshn <sa...@ivycomptech.com>.
Hi,
I'm getting the following error when the form name is used in the action
mapping.

However, its working fine if the name attribute is removed.


    <action-mappings>
        <action path="/viewAll"
                type="com.admin.DisplayAllAction"
                name="viewAllForm"
                scope="request">
                <forward name="success"
path="/marketing/viewAllPromos.jsp"/>
        </action>
    </action-mappings>

Can somebody help me?

java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be
null
	
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForwa
rd.java:70)
	
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerf
ormForward.java:54)

SKN



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


Re: Is it possible to tell if secure sockets in use froma Struts Action?

Posted by Dave Newton <ne...@yahoo.com>.
--- Adam Lipscombe <ad...@expensys.com>
wrote:
> I tried httpServletRequest.getPathInfo(),
> getRequestURL() and getAuthType(), but none of these
> seem to return anything that indicates if the
request
> started with "http:" or "https:".
> 
> Any ideas if this is possible? How?

getScheme()

d.



 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

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


RE: Is it possible to tell if secure sockets in use froma Struts Action?

Posted by "muralidharan.c" <mu...@catalytic.com>.
Hi
You can use java SSL with your application

And Check by request if SSL in Use

But you should import in your files 

If it is a wrong Idea , Please Drop it 

Regards
Muralidharan.C 
Senior Software Engineer
Catalytic Software, Ltd
Hyderabad. India





-----Original Message-----
From: Adam Lipscombe [mailto:adam.lipscombe@expensys.com] 
Sent: Tuesday, March 27, 2007 5:58 PM
To: Struts Users Mailing List
Subject: Is it possible to tell if secure sockets in use froma Struts
Action?

Hi


My app is using Struts 1.3.8. It is sometimes deployed with SSL, and
sometimes without.


 From a Struts Action is it possible to tell if SSL is in use?

I tried httpServletRequest.getPathInfo(), getRequestURL() and getAuthType(),
but none of these seem 
to return anything that indicates if the request started with "http:" or
"https:".



Any ideas if this is possible? How?


TIA - Adam

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





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


Is it possible to tell if secure sockets in use froma Struts Action?

Posted by Adam Lipscombe <ad...@expensys.com>.
Hi


My app is using Struts 1.3.8. It is sometimes deployed with SSL, and sometimes without.


 From a Struts Action is it possible to tell if SSL is in use?

I tried httpServletRequest.getPathInfo(), getRequestURL() and getAuthType(), but none of these seem 
to return anything that indicates if the request started with "http:" or "https:".



Any ideas if this is possible? How?


TIA - Adam

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


Re: Newbie question

Posted by Dave Newton <ne...@yahoo.com>.
--- VJ22 <Vi...@iflexsolutions.com> wrote:
> Can anyone tell me how do I setup the AJAX theme in
> my struts pages ?

<s:head theme="ajax"/>

http://struts.apache.org/2.x/docs/ajax-theme.html
http://struts.apache.org/2.x/docs/ajax-tags.html

d.



 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

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