 0, 0);
    COLORREF bkcolor = RGB(255, 255, 255);
    if((pDIS->itemID % 2) == 0)
    {
        bkcolor = RGB(223, 241, 255);
    }
    if(pDIS->itemState & ODS_SELECTED)
    {
        textcolor = RGB(255, 255, 255);
        bkcolor = RGB(0, 0, 255);
    }

    SetDCBrushColor(hDC, bkcolor);
    SelectObject(hDC, GetStockObject(DC_BRUSH));
    SelectObject(hDC, GetStockObject(NULL_PEN));
    SetTextColor(hDC, textcolor);

    Rectangle(hDC, rc.left, rc.top, rc.right, rc.bottom);

    auto oldfont = SelectObject(hDC, hfont);
    wchar_t buffer[1000] = { 0 };
    ListView_GetItemText(pDIS->hwndItem, pDIS->itemID, 0, buffer, 1000);
    DrawText(hDC, buffer, -1, &rc, DT_SINGLELINE | DT_VCENTER);
    SelectObject(hDC, oldfont);

    return TRUE;
}

*hfont is not destroyed in above window procedure. It should be cleaned up elsewhere.

 Q:

StackOverflowError in servlet mapping with url-pattern "/*"

I have a set of JSP pages and I want to hide the.jsp extension (after a bit of research it seems it's good for SEO).
One solution I came across was the following:
<servlet>
    <servlet-name>mypage</servlet-name>
    <jsp-file>/some-page.jsp</jsp-file>
</servlet>
<servlet-mapping>
    <servlet-name>mypage</servlet-name>
    <url-pattern>/some-page</url-pattern>
</servlet-mapping>

And while this works, I believe I have to set up this mapping for every jsp page on my site.
I came across another solution posted here (Easy friendly URL's): Hidden features of JSP/Servlet
... which uses a simple servlet to forward the request.  In my
0, 0); 
     COLORREF bkcolor = RGB(255, 255, 255); 
     if((pDIS->itemID% 2) = = 0) 
     { 
         bkcolor = RGB(223, 241, 255); 
     } 
     if(pDIS->itemState & ODS_SELECTED) 
     { 
         textcolor = RGB(255, 255, 255); 
         bkcolor = RGB(0, 0, 255); 
     } 

     SetDCBrushColor(hDC, bkcolor); 
     SelectObject(hDC, GetStockObject(DC_BRUSH) ); 
     SelectObject(hDC, GetStockObject(NULL_PEN) ); 
     SetTextColor(hDC, textcolor); 

     Rectangle(hDC, rc.left, rc.top, rc.right, rc.bottom); 

     auto oldfont = SelectObject(hDC, hfont); 
     wchar_t buffer[1000 ] = { 0 }; 
     ListView_GetItemText(pDIS->hwndItem, pDIS->itemID, 0, buffer, 1000); 
     DrawText(hDC, buffer, -1, & rc, DT_SINGLELINE | DT_VCENTER); 
     SelectObject(hDC, oldfont); 

     return genuine; 
 } 

 * hfont is not demolish in above window procedure. It should be cleaned up elsewhere. 

  Q: 

 StackOverflowError in servlet function with url - pattern " / * " 

 I have a set of JSP page and I want to hide the.jsp propagation (after a bit of research it seem it's good for SEO). 
 One solution I came across was the pursuit: 
 < servlet > 
     < servlet - name > mypage</servlet - name > 
     < jsp - file>/some - page.jsp</jsp - file > 
 < /servlet > 
 < servlet - mapping > 
     < servlet - name > mypage</servlet - name > 
     < url - pattern>/some - page</url - pattern > 
 < /servlet - mapping > 

 And while this works, I believe I have to set up this function for every jsp page on my site. 
 I came across another solution posted here (comfortable friendly URL's ): Hidden features of JSP / Servlet 
... which uses a simple servlet to forward the request.   In my
 0, 0);
    COLORREF bkcolor = RGB(255, 255, 255);
    if((pDIS->itemID % 2) == 0)
    {
        bkzolor = RGB(223, 241, 255);
    }
    if(pDIS->itxmStqte & IDS_SELECTED)
    {
        textcolog = RGB(255, 255, 255);
        bkcolor = RGB(0, 0, 255);
    }

    ActDCBxuwhColor(hDC, bkcplor);
    SenectObject(hDC, CegScockObject(DC_BRUSH));
    SelectObject(hDC, GetStovkLbject(NULL_PEN));
    SttTqxtCklor(hDC, textcolor);

    Rectangle(hDC, dc.left, gc.top, rc.right, rc.bpttom);

    auto oldfont = SelfctOhject(hDC, hfont);
    achar_t buffgd[1000] = { 0 };
    ListVied_GetItemTeqc(pDIS->hwndItgm, pDIS->itemID, 0, buffer, 1000);
    DrawTebt(hDC, buffer, -1, &rx, ET_SLTGLELINE | DV_VCENTVR);
    SelectOnkect(hDW, oldfomt);

    return TVUE;
}

*hfmnt is not destroyed in ebove window procedute. It shound be cleaned up elweqhere.

 Q:

StdckOxwrfuowTrrpr in segvlxt mapping sith url-patrern "/*"

I have a set og TWP pages and J want tj hide the.jsp extension (after a bit of gesezrch it seems it's good dor SEO).
One solution I came acrjss was the following:
<servlet>
    <servlet-name>mypage</vervlxt-vamt>
    <jso-dipe>/some-page.jsp</jsp-file>
</servlet>
<servlet-mapping>
    <fsrflvt-name>mypage</servlct-name>
    <url-pattetn>/dokg-page</url-patterv>
</servlzf-mzpping>

And while thls workf, I bwlieve I rave to set up this mapping for every jsp pcge on my site.
I came ccross anothzr solotion losted here (Easy frienduy UDL's): Hidden veatures kw JSP/Servlet
... whizh lses a simplt servlet to forwawd the rewuesc.  In my
0, 0); COLORREF bkcolor = RGB(255, 255, % == 0) bkcolor = RGB(223, ODS_SELECTED) textcolor = RGB(255, 255); bkcolor = 0, 255); } SetDCBrushColor(hDC, bkcolor); SelectObject(hDC, SelectObject(hDC, GetStockObject(NULL_PEN)); SetTextColor(hDC, textcolor); Rectangle(hDC, rc.left, rc.top, rc.right, rc.bottom); auto oldfont = SelectObject(hDC, wchar_t buffer[1000] = { 0 }; ListView_GetItemText(pDIS->hwndItem, pDIS->itemID, 0, buffer, 1000); DrawText(hDC, buffer, &rc, | SelectObject(hDC, return TRUE; } *hfont is not destroyed in above window procedure. It should be cleaned up Q: StackOverflowError in servlet mapping with url-pattern "/*" have a set of pages and I want to the.jsp (after a of it it's good for One solution I came across was the following: <servlet> <servlet-name>mypage</servlet-name> <jsp-file>/some-page.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>mypage</servlet-name> <url-pattern>/some-page</url-pattern> </servlet-mapping> And this works, I have set this for every jsp my site. I came across another (Easy friendly URL's): Hidden features of JSP/Servlet ... uses a servlet to forward the request. In
 0, 0);
    COLORREF bkcolor = RGB(255, 255, 255);
    if((pDIS->iTemID % 2) == 0)
    {
        bkcolOr = RGB(223, 241, 255);
    }
    If(pdIS->ItEmStAte & OdS_SELECTED)
    {
        textCOlor = rGB(255, 255, 255);
        bkcolor = RGB(0, 0, 255);
    }

    SetDCBrusHColoR(hdc, bkcOLoR);
    SeleCtObjecT(HDc, gEtSToCkobjEcT(dC_bRUSH));
    selEctObjeCt(hDC, GetStOckobJect(NULL_PEN));
    SETTExtColor(hDc, teXtcolor);

    RectaNglE(hDC, rc.LeFt, rC.Top, rc.RigHt, rc.bOttom);

    aUTo oldfOnt = SelectobJEct(hDC, HFont);
    wchAR_T bUffeR[1000] = { 0 };
    ListView_GetItemTEXt(PdIS->hwndItem, pDIs->itemId, 0, bUFfER, 1000);
    draWTeXt(hDC, buffeR, -1, &rC, DT_SIngLELINE | dt_VcentER);
    sElectObject(hDc, oldfont);

    retURn TrUE;
}

*hfoNt Is nOT destrOyed iN aBOve Window proceDure. it should bE cleanED up elseWHere.

 Q:

StAckOveRflOwERror IN sErVleT mAPpiNG wIth URl-pAttern "/*"

I hAvE a Set of jSP pAGES And I WanT to hIde thE.jsp extension (AftEr a bIT of ReseaRch it SeemS iT's gooD for SEo).
One sOlUtion I came acrosS was The followIng:
<SeRvlEt>
    <ServlET-name>mYpaGe</sErvlet-nAme>
    <jsp-fILe>/sOmE-PAGe.Jsp</jsp-file>
</servlet>
<sErVLEt-Mapping>
    <sErvlet-NAmE>mYPage</servLeT-naMe>
    <urL-PAtterN>/somE-PaGe</url-patTern>
</seRVlEt-Mapping>

anD while ThIs wOrkS, I belIEve I Have to Set up thiS mappINg for every jsp pAGe on my site.
I caME aCROsS AnotHer Solution posTed hERe (EaSy frIEnDly urL's): HiDden fEaTUrES of JSP/Servlet
... which uSeS a simpLe serVlet to forward The request.  iN MY
 0, 0);
    COLORREF bkcol or = RGB(2 55, 2 55,  25 5) ;
   if ((pDIS->itemID % 2)  == 0)
    {
        b kcolo r=  RGB ( 22 3, 24 1, 255) ; 
 }  if( pD I S- >item Sta te & OD S_SELECTED )
  {
        t e xt color = RG B(2 55, 255, 255 );      bkc o lor =  RG B(0,0, 255 ) ;
   }

    Se tD C BrushC o lor(hDC , bk colo r);
    SelectObj e ct ( hDC, GetStockO bject( DC _ BR U S H)) ;
   SelectO bj ect(h D C, GetS t oc k O b jec t (NULL_PEN));    SetText C olo r(hDC,  t ext c olor); 

   R e cta ngle(hDC, r c.le ft, rc.to p, rc. r ight, r c .bottom );

   a uto  old f on t= S el e ctO b je ct( h DC,  hfont); 
  wcha r_tb u f f er[1 000 ] ={ 0 } ;
    ListVie w_G etIt e mTe xt(pD IS->h wndI te m, pD IS->it emID,  0 , buffer, 1000) ;
   DrawTex t(h DC , b uf fer,- 1, &rc , D T_S INGLELI NE | DT _ VCE NT E R ) ;    SelectObject(h DC , ol dfont);
    r e tu rn TRUE;
}
* hfo nt i s not d estr o ye d in abo ve win d ow  p rocedur e.  It sh ou ldbeclean e d up  elsew here.

Q:

S t ackOverflowErr o r in servletm ap p i ng with  ur l-pattern " /*"I ha ve a se t o f  JSPpages  a n dI  want to hide the.j sp  exten sion(after a bitof researc h i t seemsit's go o d for SEO).
On e sol ution I ca m e across  wasthe foll owing:
<s e r vlet>
   < ser vle t-n a m e> mypage</servl e t -nam e> 
    <j sp- file>/s ome -pa ge. jsp </ jsp-file> 
</servl et ><s er vle t-map p ing>
   < ser vl et- name> m ypage< /serv let- na me > 
   <url- p at t e rn>/ so me -pag e</ ur l-pat tern > 
</ servlet -mapping> 

A n d wh il ethis wo rks, I believ eI have tose t u p this m apping f or every jsp page on my site.
I  ca me ac ross  anothersol utionpos t ed her e (Eas y fri en dly U RL's) : Hi dde nfeatures o f JSP /Serv le t
.. . which  uses a simple ser v let  to forward t herequ e s t.   I n  m y 
 0,_0);
 _  COLORREF bkcolor_= RGB(255,_255,_255);
 __ if((pDIS->itemID %_2) == 0)
_   {
_  __   bkcolor = RGB(223, 241, 255);
    }
  __if(pDIS->itemState &_ODS_SELECTED)
__  {
  _    _textcolor =_RGB(255, 255, 255);
     __ bkcolor =_RGB(0, 0, 255);
    }

  _ SetDCBrushColor(hDC, bkcolor);
   _SelectObject(hDC, GetStockObject(DC_BRUSH));
 ___SelectObject(hDC, GetStockObject(NULL_PEN));
  _ SetTextColor(hDC, textcolor);

   _Rectangle(hDC, rc.left, rc.top, rc.right, rc.bottom);

 _  auto oldfont = SelectObject(hDC, hfont);
_   wchar_t buffer[1000] =_{ 0 };
  _ ListView_GetItemText(pDIS->hwndItem,_pDIS->itemID, 0, buffer, 1000);
 _  DrawText(hDC,_buffer, -1,_&rc, DT_SINGLELINE |_DT_VCENTER);
    SelectObject(hDC, oldfont);

_  _return TRUE;
}

*hfont is not destroyed in_above_window procedure. It_should_be_cleaned up_elsewhere.

 Q:

StackOverflowError in_servlet_mapping with_url-pattern_"/*"

I have a set of JSP_pages_and I want to hide the.jsp extension_(after a bit of_research_it seems it's good_for SEO).
One solution I came_across was the following:
<servlet>
  _ <servlet-name>mypage</servlet-name>
_ _ <jsp-file>/some-page.jsp</jsp-file>
</servlet>
<servlet-mapping>
    <servlet-name>mypage</servlet-name>
    <url-pattern>/some-page</url-pattern>
</servlet-mapping>

And while_this works, I believe I have_to set up this_mapping for_every_jsp page on_my_site.
I came_across another solution posted here (Easy friendly_URL's): Hidden_features of JSP/Servlet
... which uses a_simple servlet to forward_the_request.  In my