Where to locate jspx files in my code - jspx

Hello All,
<div id="Main">
Admin Home
View Logging
View Cache
View Sessions
Admin Logout
</div>
Now I have the above code in my jsp file. If I try to locate the jspx files in my source code, I do not see them. Please help me by directing me on where can I find them.
FYI I am using struts 1.x, Velocity. Please let me know If I need to add more details.

If you want to search in files: Ctrl+H and then choose tab File Search.
If you want to search for resources: Ctrl+Shift+R.
If you want to search for Java types: Ctrl+Shift+T.
If you want more shortcut keys: Ctrl+Shift+L.
Also at this link you can find a list of all eclipse shortcuts
I found at this link a part of this solution

Related

Need help on showing the test output in html format containing screen capture link

I have a framework with Webdriver+testng.
I want the result of all the methods i have run, in html format with their status and screen capture link.
please let me know whts the way of doing this.
Thanks in advance.
You can make use of this, But this only for BDD styled stories. If you are looking for a plain web driver scripts, try this selenium loggers.
TestNG creates a report in HTML format in 'test-output' folder (or, if you're using testNG plugin in Eclipse, you can specify the path in Window-Preferences-testNG). The folder is created and rewritten after each run. Look for index.html there.
You can add custom information there using Reporter.log (from org.testng.Reporter), the information can be found after 'Reporter output' link in the report. So basically all you need is an #AfterMethod which will take the screenshot and embed it into the log. This discussion may help.

drupal 6 /user/permissions checkbox page core module

Does anyone know where i can find the code that makes the user/permissions checkbox page in drupal? I'd like to see how it's done to make something similar for a custom module i'm building.
The function you're looking for is theme_checkbox($element) and can be found in root/includes/form.inc. If you ever want to know what function/template is responsible for a certain HTML element then Theme developer is your friend.
Enable the module, set the permissions and you'll see a small checkbox Themer info. Then just point to the HTML part you're interested and see what theme function/template is doing the rendering.
i think on default module folder there is user folder on user.admin.inc file contain code for permission function is user_admin_perm(); see this code

Spotify Preview API CSS Resources

I can't see a reference to the api.css, adam.css and eve.css files in the Preview API, nor can I find any reference to the buttons and icons they would like the app to use.
Is there a page I'm missing?
I've tried:
Here and here
(incompatible with Preview API)
There is also this but it doesn't provide much help (other than help to decode the horrific JSDoc site)
The monolithic api.css file have been split into separated stylesheets, each of them corresponding to a certain views module. Thus, you only need to include the CSS files for the modules you use.
Right now, these are the files:
$views/css/list.css
$views/css/image.css
$views/css/buttons.css
$views/css/throbber.css
$views/css/popup.css
You can see them in action in the Views tutorial preview, and some of them are also used in the Apps Tutorial on GitHub.

How can I include sitemap breadcrumb in my Tridion page?

I used to write
<asp:SiteMapPath ID="SiteMapPath1" Runat="server" />
in my .net application to show the navigation site map breadcrumb. Can anyone please tell me how to use this type of functionality in Tridion page? Or should I use this as a user control and add it to my page?
And one more thing as you see download PDF link in the image. How can I link this text to my respective PDF file placed in building block folder? Should I write tcm id of the file(multimedia component) like this?
<a href="tcm id of file" > Download PDF </a>
Would this be the correct approach?
OK, you have 2 questions in here - these should really be 2 separate questions. Moving on.
There's nothing stopping you from using <asp:SiteMapPath> from a website that uses Tridion - as long as you have a SiteMap provider and you create the required navigation.sitemap (or whatever .NET calls it).
Alternatively, you could create your breadcrumb at publish time by determining the location of your page in the website like I explain in this post.
For your pdf download, yes, you should have a template in Tridion generating those <a tridion:href="##Component.ID##"><img src="images/pdf.png" /></a> or something like that. Don't go hard-coding your TCM Uris please.
Have a look at this article that explains how to publish a Sitemap data source XML from Tridion. You can then use it with standard .net navigation user controls.:
http://www.tridiondeveloper.com/web-sitemap

Adding image to project description in google code

I want to update a background image in google code projects.I searched their wiki, it talks about pointing image to an external world.Is there anyway we can upload the image to google code and provide a link?
I got the solution.First you need to upload the image to 'Download' area.After that, give the image url like this.
<img src="http://yourgoogleproject.googlecode.com/files/name of your image.PNG" alt="Logo"/>
You have to paste the above code inside apostrophe(') and end with apostrophe and can paste this in project description of your project summary tab.(I have just added here, in my case)
The file uploaded will go under 'files' folder of your project automatically.
This answer is no longer correct. Google Code removed the downloads option in May 2013, due to misuse. You can, as they suggest, move your files to Google Drive and link to them from there, which is fine for project downloads, but for items such as images in wiki pages or the project home page, I recommend checking the images into your source repository and linking to them. For example, ig you use a mercurial repository and your files are checked into docs/images, then:
http://yourproject.googlecode.com/hg/yourproject/docs/images/logo.png
should work.

Resources