Help required in bsh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Help required in bsh

Kumaraswamy nandipati
Hi.,

I am doing page validation in bsh script which will determine whether it is
a valid request or not. It is placed in all decorator screens(till before
shopping cart) as first script. So that invalid requests will point to 404
pages.  But, I am not able to achieve this. How I can point invalid links to
404 page??

Example:
*http://abcd.com/products/usa/amber-waves*  is a valid page.
I am doing validation for product-id(*amber-waves*) is available in db or
not.

instead of this,  *http://abcd.com/products/usa/amber-waves-test-test-test*,
this should return to 404 page.  But not able to achieve this.


Any help will be appreciated.


--
Thanks,
Kumaraswamy.N
91-9866805250.
Reply | Threaded
Open this post in threaded view
|

Re: Help required in bsh

Kumaraswamy nandipati
Am I not explained clearly about my problem???

On Tue, Nov 17, 2009 at 5:01 PM, Kumaraswamy nandipati <
[hidden email]> wrote:

> Hi.,
>
> I am doing page validation in bsh script which will determine whether it is
> a valid request or not. It is placed in all decorator screens(till before
> shopping cart) as first script. So that invalid requests will point to 404
> pages.  But, I am not able to achieve this. How I can point invalid links to
> 404 page??
>
> Example:
> *http://abcd.com/products/usa/amber-waves*  is a valid page.
> I am doing validation for product-id(*amber-waves*) is available in db or
> not.
>
> instead of this,  *http://abcd.com/products/usa/amber-waves-test-test-test
> *, this should return to 404 page.  But not able to achieve this.
>
>
> Any help will be appreciated.
>
>
> --
> Thanks,
> Kumaraswamy.N
> 91-9866805250.
>



--
Thanks,
Kumaraswamy.N
91-9866805250.
Reply | Threaded
Open this post in threaded view
|

Re: Help required in bsh

Scott Gray-2
Hi Kumaraswamy,

response.sendRedirect("http://google.com");
or
response.sendError(HttpServletResponse.SC_NOT_FOUND);

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 18/11/2009, at 6:02 PM, Kumaraswamy nandipati wrote:

> Am I not explained clearly about my problem???
>
> On Tue, Nov 17, 2009 at 5:01 PM, Kumaraswamy nandipati <
> [hidden email]> wrote:
>
>> Hi.,
>>
>> I am doing page validation in bsh script which will determine  
>> whether it is
>> a valid request or not. It is placed in all decorator screens(till  
>> before
>> shopping cart) as first script. So that invalid requests will point  
>> to 404
>> pages.  But, I am not able to achieve this. How I can point invalid  
>> links to
>> 404 page??
>>
>> Example:
>> *http://abcd.com/products/usa/amber-waves*  is a valid page.
>> I am doing validation for product-id(*amber-waves*) is available in  
>> db or
>> not.
>>
>> instead of this,  *http://abcd.com/products/usa/amber-waves-test-test-test
>> *, this should return to 404 page.  But not able to achieve this.
>>
>>
>> Any help will be appreciated.
>>
>>
>> --
>> Thanks,
>> Kumaraswamy.N
>> 91-9866805250.
>>
>
>
>
> --
> Thanks,
> Kumaraswamy.N
> 91-9866805250.


smime.p7s (4K) Download Attachment