Posts

tomcat - What are all the possible tags that can be used inside the web.xml concerning a Java EE project? -

tomcat - What are all the possible tags that can be used inside the web.xml concerning a Java EE project? - concerning java ee tomcat know there web.xml file used , edited. know there tags <web-app> , <servlet> , <servlet-mapping> can written within web.xml file. want know there other tags can used ? can larn possible tags can set in web.xml file ? brief: http://docs.oracle.com/cd/e13222_01/wls/docs81/webapp/web_xml.html xsd: http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd java servlet 2.5 specification: http://jcp.org/aboutjava/communityprocess/mrel/jsr154/index.html java-ee tomcat servlets

function - Error in c programme conflicting types for xx and previous implicit declaration of xx was here -

function - Error in c programme conflicting types for xx and previous implicit declaration of xx was here - suppose have file insert.c in 2 functions defined: 1.insert_after 2.insert_before the definitions of these func this: insert_after(arg1) { if(condition 1) { ......... } else insert_before(arg1); } insert_before(arg) { if(condition 1) { ......... } else insert_after(arg); } now if file insert.c included in main.c , insert_after function called # include "insert.c" int main() { insert_after(arg); homecoming 0; } on compiling main.c using gcc,the next error encountered: conflicting types ‘insert_before’ note: previous implicit declaration of ‘insert_before’ here what wrong here , how avoid it? this because don't declare prototypes functions. function has no prototype, default, has unknown set of arguments , returns int. not case insert_before . create file insert.h in declare them: #ifn...

android - On second test getActivity() never returns -

android - On second test getActivity() never returns - i have couple of simple tests, assertnotnull(mactivity); (i'm reading m.d.torres "android application testing guide"). activity under test runs okay. every single test runs okay well. if run several tests @ 1 time on sec test getactivity() never returns. no errors in logcat (last line "starting intent ..."), no nothing. debugging doesn't help much either, if step getactivity() complains there no source code available. test project - activitytesting google runs okay several tests, eclipse configured right. did ever encounter that? i recreated test project 1 time more (like "clean room") , worked. compared 2 projects , found culprit. empty teardown: protected void teardown() throws exception { } if remove it, tests run green. if paste back, sec test hangs. read explanation , ready mark answer. edit: should calling super.teardown() @ end of teardown method. sorry bothe...

html5 - jQuery Mobile Dual Range slider -

html5 - jQuery Mobile Dual Range slider - i made dual range slider in jqm placing slider on top of each other. there way can stop min exceeding max value? i'm not sure slider using html5 range input type <style type="text/css"> .pricerangeinfo{ position: relative; height: 30px; margin-top: 60px; } .pricerangeinfo label{ position: absolute; top: -30px; left: 10px; } /* moves label field */ .pricerangeinfo #buying_slider_min{ top: -40px; position: absolute; left: 100px; } /* moves first input field */ .pricerangeinfo #buying_slider_max{ top: -40px; position: absolute; left: 170px; } /* move sec input field */ .pricerangeinf...

alignment - Jasper Reports image and text mix -

alignment - Jasper Reports image and text mix - i want write jasper reports application. has arrange image , text such appropriately placed. want. i images , texts web service, can fetch image size on runtime. if width bigger text should below, , vice versa. tried setting width alternative parameter, did not work. how can it? correct: cannot set image width using parameter. the quickest solution this: determine maximum width is. utilize 'print when expression' display either picture-next-to-text layout or picture-above-text layout. study have 2 image elements , 2 text elements, you'll take 1 display based on image size. an alternative investigate dynamic jasper. that's project designed dynamically generate .jrxml on fly, has ability modify width similar you're describing. jasper-reports alignment

php - Redirect if site is not shown in a frame -

php - Redirect if site is not shown in a frame - i have page want visible if shown in iframe. is possible in php, htaccess or something? how? i prefer solution in php thanks! frames client side can't check through php or .htaccess. can check in javascript. see thread: how identify if webpage beingness loaded within iframe or straight browser window? edit here's illustration redirect you. it's straight javascript if doing jquery write same function document.ready <script> function check_frame() { if( top === self ) { // not in frame location.href = "/link/to/some/url"; // either frameset or error. } } </script> <body onload="check_frame()"> ... normal code page here ... </body> note page can still php page, need output bit of javascript. php .htaccess redirect

javascript - How can I see the output of document.write while debugging? -

javascript - How can I see the output of document.write while debugging? - i need step thought js scripts in firebug debugging purposes. script utilize document.write() generate new html content , while can see code lines generate code, much see the generated contents while debugging. in other words, can see the output document.write while debugging? update: to avoid misunderstandings, need clarify mean debugging , scrutinizing other people's scripts banner scripts utilize document.write generate content. have no command on utilize of document.write, need explore output. i not utilize document.write myself. the easiest way write firebug console looks this: console.log("hello world") you can pass many arguments want , joined in row, console.log(2,4,6,8,"foo",bar). intro: firebug , logging api doc javascript firebug